Feature/Fix: Preserve lineage accounting dimensions#2143
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 9:16 PM ET / July 14, 2026, 01:16 UTC. Summary Reproducibility: no. live high-confidence reproduction is attached to this PR. The linked investigation and focused synthetic tests make the fork-lineage overcounting path source-reproducible, but they do not show a failing current-main scan against a real rollout family. 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Merge the predecessor first, make lineage-observation collection opt-in for ledger parsing so legacy scans retain their resource profile, then validate the rebased ledger with a redacted real forked-rollout before the shadow consumer in #2144 is considered. Do we have a high-confidence way to reproduce the issue? No live high-confidence reproduction is attached to this PR. The linked investigation and focused synthetic tests make the fork-lineage overcounting path source-reproducible, but they do not show a failing current-main scan against a real rollout family. Is this the best way to solve the issue? No, not yet. A lineage-scoped ledger is a plausible narrow model for forked cumulative counters, but collecting its observations unconditionally inside the legacy scan path should be replaced with opt-in collection before merge. Full review comments:
Overall correctness: patch is incorrect 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 #2156; closing this draft to keep the upstream review surface manageable. |
Stack dependency
This is slice 4 of 15. It follows Feature/Fix: Discover referenced long-lived Codex parents; review and merge that PR first.
Summary
This is the fourth isolated component of the planned Codex scanner rearchitecture. Production aggregation remains unchanged.
Validation
swift test --filter CodexLineageLedgerTests(13 tests)make checkenv SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk make test(640 selections)Related investigation: steipete/CodexBar#2037.