Skip to content

fix(release): preserve canonical main PR provenance - #104166

Merged
vincentkoc merged 4 commits into
mainfrom
fix/release-changelog-pr-provenance
Jul 11, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
fix/release-changelog-pr-provenance

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a release-note provenance problem where backport PRs could replace the original merged PR from main, making changelogs point at integration mechanics instead of the canonical contribution.

Why This Change Was Made

The release-note verifier now resolves equivalent release commits against current origin/main, preferring explicit cherry-pick origins and then unique same-author, same-subject, overlapping-path matches. The release process also makes changelog generation the final candidate source mutation, after version preparation and backports.

User Impact

Release notes consistently credit and link the original merged main PR. A release-branch PR remains only when the change has not yet been forward-ported; direct main forward-ports suppress the backport PR without inventing a replacement PR.

Evidence

@vincentkoc vincentkoc self-assigned this Jul 11, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 11, 2026 04:27
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR agents Agent runtime and tooling size: L and removed size: M labels Jul 11, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 11, 2026
@clawsweeper

clawsweeper Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed July 11, 2026, 12:42 AM ET / 04:42 UTC.

Summary
The PR canonicalizes backported release-note provenance to equivalent mainline PRs and moves changelog generation after release preparation and forward-port work.

PR surface: Source +176, Tests +405, Docs +25, Other +187. Total +793 across 12 files.

Reproducibility: yes. Create a release target, then add an equivalent forward-port to main after that target; the new full base..origin/main scan still treats the later commit as canonical.

Review metrics: 1 noteworthy metric.

  • Release CLI surface: 1 option added (--main-ref). The new mainline input can change generated attribution and must be constrained to the historical release target.

Stored data model
Persistent data-model change detected: migration/backfill/repair: src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-engine.test.ts, vector/embedding metadata: .agents/skills/release-openclaw-maintainer/SKILL.md. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Bound canonical main candidates and PR associations to the release target timestamp.
  • [P2] Add end-to-end fixtures for later PR-based and direct forward-ports.

Risk before merge

  • [P1] Historical release reruns can cite a main PR merged after the release target or omit the valid release PR when an equivalent direct main forward-port occurred later.

Maintainer options:

  1. Enforce the historical cutoff (recommended)
    Exclude main commits and associated PRs after the release target timestamp and add regressions for later PR-based and direct forward-ports.
  2. Pause canonicalization
    Keep the current provenance behavior until canonical mapping can be made deterministic against the historical target rather than today's main.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Filter canonical main candidates and their associated PRs to the release target timestamp, then add regression fixtures showing later PR-based and direct forward-ports preserve the release-branch PR.

Next step before merge

  • [P2] The blocker is a narrow timestamp-boundary repair with clear implementation files and regression tests.

Security
Cleared: The effective release-tooling-only diff adds no dependency, permission, secret, package-source, lifecycle-hook, or downloaded-code execution concern.

Review findings

  • [P2] Bound canonical main commits by the release target — .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:845-850
Review details

Best possible solution:

Filter canonical main commits and their PR associations to the release target timestamp, then add branch-level regression fixtures proving later PR-based and direct forward-ports cannot change historical provenance.

Do we have a high-confidence way to reproduce the issue?

Yes. Create a release target, then add an equivalent forward-port to main after that target; the new full base..origin/main scan still treats the later commit as canonical.

Is this the best way to solve the issue?

No in its current form. Canonical-main matching is the right ownership boundary, but it must be bounded by the release target time to preserve historical release truth.

Full review comments:

  • [P2] Bound canonical main commits by the release target — .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:845-850
    canonicalMainCommits scans through current origin/main, so a forward-port added after the release target can replace the release PR with a future main PR or suppress it when the forward-port is direct. Filter candidate commits and associations by targetTimestamp, and cover both later-forward-port cases.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e009a41410a6.

Label changes

Label changes:

  • add P2: The defect can produce incorrect release-note links and contributor attribution but does not affect product runtime.
  • add merge-risk: 🚨 automation: Merging the current implementation can make automated changelog generation rewrite historical provenance using future main commits.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its focused Testbox test and changed-check results are supplemental validation.

Label justifications:

  • P2: The defect can produce incorrect release-note links and contributor attribution but does not affect product runtime.
  • merge-risk: 🚨 automation: Merging the current implementation can make automated changelog generation rewrite historical provenance using future main commits.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This repository-member PR is exempt from the external-contributor proof gate; its focused Testbox test and changed-check results are supplemental validation.
Evidence reviewed

PR surface:

Source +176, Tests +405, Docs +25, Other +187. Total +793 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 5 204 28 +176
Tests 4 418 13 +405
Docs 2 41 16 +25
Config 0 0 0 0
Generated 0 0 0 0
Other 1 190 3 +187
Total 12 853 60 +793

Acceptance criteria:

  • [P1] pnpm test:serial test/scripts/verify-release-notes.test.ts.
  • [P1] pnpm check:changed.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • steipete: Introduced the current release-note verifier and its source-discovery contract in merged history. (role: introduced behavior; confidence: high; commits: d6f07f36db62; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs, .agents/skills/openclaw-changelog-update/SKILL.md, .agents/skills/release-openclaw-maintainer/SKILL.md)
  • vincentkoc: Implemented the canonical-main provenance logic, policy updates, and focused tests in this PR. (role: recent area contributor; confidence: high; commits: e6da4d1d578e, 588668e65ba4; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs, .agents/skills/openclaw-changelog-update/SKILL.md, .agents/skills/release-openclaw-maintainer/SKILL.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • 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 requested a review from a team as a code owner July 11, 2026 05:12
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: nextcloud-talk Channel integration: nextcloud-talk scripts Repository scripts docker Docker and sandbox tooling extensions: minimax extensions: openrouter size: XL and removed size: L labels Jul 11, 2026
@vincentkoc
vincentkoc force-pushed the fix/release-changelog-pr-provenance branch from e4ceb93 to e0174dc Compare July 11, 2026 05:13
@openclaw-barnacle openclaw-barnacle Bot removed docs Improvements or additions to documentation channel: discord Channel integration: discord channel: nextcloud-talk Channel integration: nextcloud-talk labels Jul 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed scripts Repository scripts docker Docker and sandbox tooling agents Agent runtime and tooling extensions: minimax extensions: openrouter size: XL labels Jul 11, 2026
@vincentkoc
vincentkoc merged commit 2158873 into main Jul 11, 2026
81 of 84 checks passed
@vincentkoc
vincentkoc deleted the fix/release-changelog-pr-provenance branch July 11, 2026 05:21
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 11, 2026
* fix(release): canonicalize changelog PR provenance

* fix(release): finalize changelog provenance policy

* fix(release): resolve canonical PRs from current main

* fix(release): support divergent beta baselines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant