Skip to content

fix: validation findings — git correlation, waste categories, data accuracy#3

Merged
Mahiler1909 merged 1 commit intomainfrom
fix/validation-findings-v0.2.2
Mar 30, 2026
Merged

fix: validation findings — git correlation, waste categories, data accuracy#3
Mahiler1909 merged 1 commit intomainfrom
fix/validation-findings-v0.2.2

Conversation

@Mahiler1909
Copy link
Copy Markdown
Owner

Summary

  • Fix cross-project git correlation contamination: session command was passing all sessions (across all projects) to correlateBranch, causing sessions on main to inherit commit windows from unrelated projects. Backoffice-ui session (4 days) was getting 5 commits instead of 1.
  • Separate waste into avoidable vs platform overhead: context_rebuild (74% of waste signals) is now categorized as "platform_overhead" and displayed separately from user-avoidable waste in the waste report.
  • Use actual model pricing for context_rebuild: Was hardcoded at $3.75/M (Sonnet). Now uses real pricing — $18.75/M for Opus sessions, fixing 5x cost underestimation.
  • Conservative outcome inference without session-meta: Sessions without meta data now infer mostly_achieved instead of fully_achieved (can't confirm zero errors without evidence).
  • Add tokenBreakdown to session JSON: Exposes input/output/cacheCreation/cacheRead separately for debugging.
  • Fix filesModified precision: Activity tracking now uses full file paths instead of basenames, fixing undercounting when files in different directories share the same name (33 → 35 for routing-function).

Test plan

🤖 Generated with Claude Code

…ccuracy

- Fix cross-project contamination in session git correlation by filtering
  sessions to the same project before calling correlateBranch
- Separate waste signals into "avoidable" vs "platform_overhead" categories
  with distinct display in waste report
- Use actual model pricing for context_rebuild cost (was hardcoded Sonnet)
- Make outcome inference conservative when session-meta is missing
- Add tokenBreakdown (input/output/cache) to session JSON output
- Fix filesModified precision by using full paths instead of basenames

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cli/commands/session.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Mahiler1909 Mahiler1909 merged commit 9a348eb into main Mar 30, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant