Repository navigation
fix(release): report seeded changelog provenance truthfully - #119897
Conversation
|
@clawsweeper re-review The head changed to address the exact prior review finding:
|
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review The head changed to address both findings from the review of
Current head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 6:29 AM ET / 10:29 UTC. ClawSweeper reviewWhat this changesThis PR makes seeded release provenance report in-range pull requests, retained seed-only pull requests, and their unique total separately across generation, verification, and the ephemeral release audit manifest. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: current main still has the aggregate-only provenance path, while this exact head provides the needed canonical split and has addressed the prior review hardening requests. No blocking correctness or security finding remains; finish exact-head CI and refresh for the behind base before normal maintainer merge review. Priority: P2 Review scores
Verification
How this fits togetherRelease tooling builds a contribution ledger from the current release range plus any retained seed records, then renders and validates a changelog record. The same provenance data is written to an ephemeral audit manifest used by release checks. flowchart LR
A[Release range] --> C[Contribution ledger]
B[Retained seed records] --> C
C --> D[Canonical provenance]
D --> E[Changelog record]
D --> F[Audit manifest]
E --> G[Release validation]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +278, Docs +8, Other +68. Total +354 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical provenance representation at the ledger boundary, preserve parsing only for already-published legacy records, and merge after current-head validation completes. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main's aggregate-only ledger rendering can include retained seed records in a count described as merged in the release range; no test was executed in this read-only review. Is this the best way to solve the issue? Yes: recording the split at the ledger owner and consuming one formatter/parser removes the prior duplicated aggregate parsing while retaining published legacy records for verification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7321c4424683. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* fix(release): report seeded changelog provenance truthfully * fix(release): reject legacy provenance formatting * fix(release): enforce complete provenance records (cherry picked from commit d73eb23)
…#119897) * fix(release): report seeded changelog provenance truthfully * fix(release): reject legacy provenance formatting * fix(release): enforce complete provenance records
What Problem This Solves
Fixes an issue where seeded beta release notes could label the cumulative contribution record as entirely merged within the current narrow release range. For the recent beta provenance, this made 5 in-range PRs plus 5,084 retained seed-only PRs appear as 5,089 PRs merged in the range.
Why This Change Was Made
Adds one canonical formatter/parser for contribution-record provenance that reports in-range PRs, retained seed-only PRs, and the unique total separately. Range membership wins for overlapping seeded rows, legacy published provenance remains readable, and verification now rejects duplicate rows, bad arithmetic, row-count mismatches, forged range/seed partitions, noncanonical leading-zero counts, and positive records without a complete Pull requests subsection.
Legacy aggregate provenance remains parseable for published-note verification but is explicitly rejected as formatter input because it lacks the split counts needed for canonical output.
The release manifest schema advances to version 3 so the same split is available to the release audit. This manifest is an ephemeral per-rewrite artifact: supported consumers must use version 3, and older manifests are regenerated rather than carried through a version-2 transition. This does not rewrite previously published beta notes.
User Impact
Maintainers get truthful, machine-checked provenance when a release changelog is seeded from an earlier beta. Runtime behavior and package publishing are unchanged.
Evidence
check:changed: all pre-lint gates and full typecheck passed; the exact lint rerun passed after correcting three brace-style findings.test:changed: 120 tests passed ontbx_01kzb5gjf6v8ged2dcq08dnrtd.git diff --check: passed.