Repository navigation
Conversation
Prepared with AI assistance (audit + implementation: gpt-5.6-sol; review: Claude Fable 5); reviewed and tested before filing. Co-Authored-By: gpt-5.6-sol <[email protected]> Co-Authored-By: Claude Fable 5 <[email protected]>
Prepared with AI assistance (audit + implementation: gpt-5.6-sol; review: Claude Fable 5); reviewed and tested before filing. Co-Authored-By: gpt-5.6-sol <[email protected]> Co-Authored-By: Claude Fable 5 <[email protected]>
|
This PR was auto-closed. Only contributors approved with Maintainers review auto-closed issues and reopen worthwhile ones. Issues that do not meet the quality bar in CONTRIBUTING.md may not be reopened or receive a reply. If a maintainer replies See CONTRIBUTING.md. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughChangesCodex replay parsing now derives line-aware boundaries from session ancestry and task-start events for modern and legacy logs. Aggregation deduplication always includes session identity, preserving matching usage from distinct sessions while counting copied parent history once. Tests and fixtures cover replay boundaries and reconciled daily/session totals. Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant SessionFile
participant ReplayBoundary
participant CodexParser
participant Aggregator
SessionFile->>ReplayBoundary: parse session_meta and task_started records
ReplayBoundary-->>CodexParser: return replay boundary
CodexParser->>CodexParser: filter inherited token_count events
CodexParser->>Aggregator: emit accepted usage events
Aggregator->>Aggregator: deduplicate using session-aware keys
Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Historical audit: this pull request was auto-closed by the legacy contributor gate. That closure did not assess technical importance. Audit result: needs review. The current state does not prove resolution, but a fresh technical or product check is required before deciding whether the underlying request is still relevant. This closed PR will not be revived as-is; create a new PR only after reviewing the related issue and current |
Summary
The collision probe and oracle comparison use the same independent fixture methodology documented in the Logpile accounting review. The exact 2026-07-18 probe behind this change is published as the 2026-07-18 ccusage verification.
Testing
cargo +1.96.0 test --manifest-path rust/Cargo.toml --workspace --offline(445 passed)Prepared with AI assistance; I reviewed the implementation and test results.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Scopes Codex dedupe to sessions and adds structural fork-replay detection, so identical usage from different sessions is kept while copied parent history is counted only once. This fixes undercounting across independent sessions and keeps intra-session duplicates collapsed.
Bug Fixes
session_idin loader keys and aggregation keys; remove report-kind from the key.Refactors
session_meta, nativetask_started, and a legacy creation-second heuristic; skip replayedtoken_countevents before the live turn.Written for commit 95ed95e. Summary will update on new commits.
Summary by CodeRabbit