Skip to content

fix(release): report seeded changelog provenance truthfully - #119897

Merged
vincentkoc merged 3 commits into
mainfrom
fix/release-changelog-provenance
Aug 6, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/release-changelog-provenance

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

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

  • Focused release-note suites: 120 tests passed on the current head.
  • Script declaration contracts: 252 contracts matched.
  • Blacksmith Testbox check:changed: all pre-lint gates and full typecheck passed; the exact lint rerun passed after correcting three brace-style findings.
  • Blacksmith Testbox test:changed: 120 tests passed on tbx_01kzb5gjf6v8ged2dcq08dnrtd.
  • Autoreview: clean before publication and after the first review-driven legacy formatter guard.
  • Exact-head review repairs add focused regressions for noncanonical counts and missing contribution rows.
  • Formatting and git diff --check: passed.

@vincentkoc vincentkoc self-assigned this Aug 6, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 6, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 6, 2026 09:50
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The head changed to address the exact prior review finding:

  • canonical formatting now rejects legacy aggregate-only parser results instead of rendering NaN
  • format(parse(legacy)) has focused regression coverage
  • the skill records schema version 3 as the required ephemeral manifest contract; older generated manifests are regenerated rather than supported as a version-2 downstream boundary

@clawsweeper

clawsweeper Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The head changed to address both findings from the review of 8977085108a11f60cfcf7a493cfab83fa6d0c177:

  • canonical split counts now reject leading-zero and other noncanonical numeric forms
  • positive contribution records now require an exact #### Pull requests subsection and matching rows
  • focused parser and generated-record regressions cover both cases

Current head: e902d4961d8d84c425285330f8da4d481f4ba140

@clawsweeper

clawsweeper Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 6, 2026
@clawsweeper

clawsweeper Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 6:29 AM ET / 10:29 UTC.

ClawSweeper review

What this changes

This 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 provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: e902d4961d8d84c425285330f8da4d481f4ba140

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent repair with strong source and regression-coverage signal; required exact-head CI is still pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored release-tooling PR is exempt from the external-contributor real-behavior-proof gate; focused deterministic validation is the relevant proof path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored release-tooling PR is exempt from the external-contributor real-behavior-proof gate; focused deterministic validation is the relevant proof path.
Evidence reviewed 5 items Current-main behavior remains incomplete: Current main renders a single aggregate merged-PR count, so seeded rows can still be described as if they all belonged to the narrow release range.
Exact-head canonical owner boundary: The PR centralizes the split-count formatter/parser and has the ledger supply range and retained-seed counts to that canonical representation.
Prior review repairs are present: The current head adds canonical-number, row-total, duplicate-row, and required Pull requests subsection validation; the prior review-cycle requests are no longer outstanding.
Findings None None.
Security None None.

How this fits together

Release 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
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch as cleanly mergeable but behind main; complete required exact-head checks and refresh against the current base if the merge queue requires it.
  • Complete next step (P2) - No concrete repair remains; await exact-head CI and ordinary maintainer merge review.
Agent review details

Security

None.

PR surface

Tests +278, Docs +8, Other +68. Total +354 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 283 5 +278
Docs 1 8 0 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 4 119 51 +68
Total 9 410 56 +354

Review metrics

Metric Value Why it matters
Production versus test delta production +119/-51, tests +283/-5, skill documentation +8 The tooling growth is justified by the new canonical provenance contract and is accompanied by focused parser, ledger, verifier, and candidate-validation coverage.

Stored data model

Persistent data-model change detected: database schema: test/scripts/verify-release-notes.test.ts, serialized state: test/scripts/verify-release-notes.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one canonical provenance representation at the ledger boundary, preserve parsing only for already-published legacy records, and merge after current-head validation completes.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This corrects release-maintainer audit provenance with limited blast radius outside release operations.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-tooling PR is exempt from the external-contributor real-behavior-proof gate; focused deterministic validation is the relevant proof path.

Label justifications:

  • P2: This corrects release-maintainer audit provenance with limited blast radius outside release operations.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored release-tooling PR is exempt from the external-contributor real-behavior-proof gate; focused deterministic validation is the relevant proof path.

Evidence

What I checked:

Likely related people:

  • steipete: Current release-pipeline history includes substantial work on the ledger semantics and related release tooling. (role: release-tooling area contributor; confidence: medium; commits: c2b4ac02; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs, scripts/release-candidate-checklist.mjs)
  • vincentkoc: Current and historical release-tooling work includes the three commits that introduce and harden this canonical provenance path. (role: recent release-tooling contributor; confidence: high; commits: eeb0a5f36489, 8977085108a1, e902d4961d8d; files: scripts/render-github-release-notes.mjs, .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the required exact-head checks complete, then refresh the base if the merge queue requires it.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit d73eb23 into main Aug 6, 2026
113 checks passed
@vincentkoc
vincentkoc deleted the fix/release-changelog-provenance branch August 6, 2026 11:22
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 6, 2026
* fix(release): report seeded changelog provenance truthfully

* fix(release): reject legacy provenance formatting

* fix(release): enforce complete provenance records

(cherry picked from commit d73eb23)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 7, 2026
…#119897)

* fix(release): report seeded changelog provenance truthfully

* fix(release): reject legacy provenance formatting

* fix(release): enforce complete provenance records
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant