Feature/Fix: Validate lineage accounting on frozen local histories#2151
Feature/Fix: Validate lineage accounting on frozen local histories#2151iam-brain wants to merge 12 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 9:21 PM ET / July 14, 2026, 01:21 UTC. Summary Reproducibility: yes. at source-reproducible confidence: the opt-in frozen-history test provides a concrete replay path and the PR reports detailed results over 819,779 observations, though the private corpus cannot be independently replayed from the checkout alone. Review metrics: 3 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the ordered stack only if legacy accounting remains the default and the promotion evaluator continues blocking lineage authority until ordinary-day references, repeat corpus validation, and acceptable cold/warm performance are demonstrated. Do we have a high-confidence way to reproduce the issue? Yes, at source-reproducible confidence: the opt-in frozen-history test provides a concrete replay path and the PR reports detailed results over 819,779 observations, though the private corpus cannot be independently replayed from the checkout alone. Is this the best way to solve the issue? Yes for staged evidence gathering, but not yet for production promotion; a reversible legacy-default selector plus explicit evidence gates is safer than replacing the current scanner while residual accuracy and performance remain unresolved. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0437067deaa8. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Superseded by the consolidated four-PR review stack. This slice is now included in #2158; closing this draft to keep the upstream review surface manageable. |
Stack dependency
This is slice 12 of 15. It follows Feature/Fix: Add a reversible lineage accounting selector; review and merge that PR first.
Summary
Real-world result
On the frozen July 9–11 UTC history, ledger selection reduced aggregate absolute error by about 65% relative to the legacy scanner and finished about 3.1% below the OpenAI aggregate.
The remaining evidence is not strong enough to promote the ledger yet. July 9 remains 10.4% low and unchanged from legacy, which points to discovery, parsing, or reference semantics outside lineage deduplication. July 11 is 4.4% high. July 5–8 diverge enough from legacy that they need OpenAI daily totals before they can be classified as corrections or regressions. The replay therefore emits
supportsLegacyRemoval: false.The frozen replay covered 819,779 observations across 37 families. It also showed that the current lineage path is materially slower than legacy scanning on this corpus, so performance remains a promotion blocker.
Tests
swift test --jobs 4 --filter 'CodexLineage(Ledger|AccountingSelector|LocalValidation)Tests'(32 tests passed)make checkmake test(647 selections in 54 groups; 54 passed, 0 failures, 0 retries)Part of the planned scanner rearchitecture.
Related investigation: steipete/CodexBar#2037.