Skip to content

fix(release): verify notes against pushed branch - #190042

Open
RomneyDa wants to merge 2 commits into
mainfrom
tideclaw/rri-611-release-notes-remote-ref
Open

RomneyDa wants to merge 2 commits into
mainfrom
tideclaw/rri-611-release-notes-remote-ref

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Repair update — November 25, 2026

Resolved conflicts against pinned main ba6d94ec1771. Unqualified release branch names now accept a candidate reachable from either the local branch or its origin remote-tracking ref. This handles a stale local branch without breaking documented pre-push preparation when the local branch is ahead of origin. Explicit refs/... and origin/... selections remain exact.

Removed the test-only exported resolver and injection seam identified in the earlier review. The regression now invokes the real verifier with real Git branches: local-behind, local-ahead, and an explicitly selected stale remote. Existing off-branch rejection is retained.

Validation:

  • New stale-local CLI regression failed on main before the fix and passes afterward.
  • Local ClawSweeper found the missing local-ahead case in the initial repair; reproduced it red and fixed it.
  • Current focused owner proof: 4 passed, including exact-ref rejection.
  • Full verifier suite before the final local-ahead correction: 211 passed; that correction was then covered by the focused owner proof above.
  • Targeted type-aware lint, formatting, and diff checks passed. Independent source review and refreshed local ClawSweeper committed-range review found no remaining actionable findings (reviewed ba6d94ec1771..7468e42e64b7).

RRI-611

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Prefer the origin remote-tracking ref when verifying release notes against an unqualified release-branch name.

Example: Generate 2026.7.1 notes when origin/release/2026.7.1 contains the target commit but local release/2026.7.1 remains behind.

  • Before: The verifier rejects the target as unreachable from the local branch.
  • After: The verifier checks refs/remotes/origin/release/2026.7.1 and accepts the target's lineage.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful and narrowly correct production logic with green exact-head CI; the new regression relies on a test-only injection seam.
Proof confidence 🦐 gold shrimp (3/6) This MEMBER-authored PR is outside the ordinary contributor-proof gate; supplied validation supports the helper path and existing rejection behavior rather than a separate operator execution.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators can push the intended target and still have note generation rejected because their local release branch is stale.
Reason: Maintainer-authored direction approves remote-tracking precedence, and the change preserves the existing early lineage invariant.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: it addresses a source-confirmed release-operator failure, with one low-priority test-design correction.

Priority: P2
Reviewed head: 571b8f872bf7d52abb79cb97075ae2bd6ab4de10

Before merge

  • Remove the test-only resolver injection (P3) - The exported resolver's second parameter exists only for the new test; the production caller always uses gitCommit. With a target present only on the remote-tracking branch, the map-based test never exercises real ref lookup or CLI acceptance and would still pass if main stopped using this resolver. The repository's test-audit authoring gate rejects test-only exports and injection hooks. Keep the resolver private, remove the callback parameter, and replace the helper test using the existing real-Git runVerifier fixture.

Findings

  • [P3] Remove the test-only resolver injection — .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:270

Tests

  • Low-value test test/scripts/verify-release-notes.test.ts: The new test asserts an injected map and resolver visitation order instead of exercising Git ref resolution and the verifier's lineage decision; replace it with a real-ref CLI regression.
  • Missing end-to-end proof: No supplied execution demonstrates successful CLI generation with a stale local branch and a current remote-tracking branch, or failure of that scenario on the base.
Agent review details

How this fits together

The release-note verifier consumes Git refs and contribution metadata, checks target lineage before generating notes, and supplies records independently checked during release-candidate validation.

flowchart TD
  A[CLI arguments and Git refs] --> B[Canonical branch resolution]
  B --> C[Target ancestry check]
  C --> D[Reject unreachable target]
  C --> E[Contribution discovery]
  E --> F[Notes and contribution record]
  F --> G[Release candidate validation]
Loading

Technical review

Best possible solution:

Keep branch selection in the existing verifier, remove the test-only resolver seam, and cover stale local versus remote-tracking refs through the existing CLI fixture.

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

Current-main source directly explains the failure when the target is reachable from origin/release/2026.7.1 but absent from local release/2026.7.1; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Selecting the canonical ref before the existing ancestry check fixes the owning boundary without changing contribution discovery or final candidate validation.

Full review comments:

  • [P3] Remove the test-only resolver injection — .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:270
    The exported resolver's second parameter exists only for the new test; the production caller always uses gitCommit. With a target present only on the remote-tracking branch, the map-based test never exercises real ref lookup or CLI acceptance and would still pass if main stopped using this resolver. The repository's test-audit authoring gate rejects test-only exports and injection hooks. Keep the resolver private, remove the callback parameter, and replace the helper test using the existing real-Git runVerifier fixture.
    Confidence: 0.96

Overall correctness: patch is correct
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5371e4dfa7cb.

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

Acceptance criteria:

  • pnpm exec vitest run test/scripts/verify-release-notes.test.ts --config vitest.config.ts
  • pnpm exec oxfmt --check .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs test/scripts/verify-release-notes.test.ts
  • pnpm exec oxlint --type-aware .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs test/scripts/verify-release-notes.test.ts
  • git diff --check

What I checked:

PR surface

Tests +17, Other +18. Total +35 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 17 0 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 23 5 +18
Total 2 40 5 +35

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A stale local release branch can unnecessarily block release-note generation; the failure is confined to release-operator tooling.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 11:45 PM ET / November 1, 2026, 03:45 UTC.

@RomneyDa
RomneyDa force-pushed the tideclaw/rri-611-release-notes-remote-ref branch from 571b8f8 to 7468e42 Compare November 25, 2026 19:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

2 participants