Skip to content

fix(release): release notes abort when a commit body mentions a deleted PR - #160305

Merged
steipete merged 1 commit into
mainfrom
fix/release-notes-deleted-refs
Sep 28, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/release-notes-deleted-refs

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: release-note generation for 2026.9.7 aborts with GitHub could not resolve source references: #155121 because a merged commit body (#156166) mentions a pull request that GitHub no longer returns.

User Impact

No user-visible product change. Release maintainers can regenerate release notes and contribution records for ranges whose commit bodies mention deleted pull requests, without a local workaround.

Why This Change Was Made

The verifier now keeps exact GraphQL NOT_FOUND results and omits a reference only when it appears solely as contextual commit-body text: not a subject PR reference, closing reference, provenance override, or notes/record citation, and lower than the highest number that resolved. Omitted references are reported as unavailableReferences in the manifest and on stderr and never produce credit or record rows. Every other unresolved reference stays fatal.

Evidence

  • Real range: verify-release-notes.mjs --base 814a7e752afc --target d09ffd222826 --shipped-ref v2026.9.6 --version 2026.9.7 against the prepared 2026.9.7 notes verifies 2,498 PRs and reports only #155121 (commit b6b45244ab75) as unavailable; before this change the same command aborted.
  • node scripts/run-vitest.mjs test/scripts/verify-release-notes.test.ts: 120 tests pass (134.9 s wall for the whole file; the 21 new cases take 4.9 s). The regression reproduced the abort before the fix. Strictness cases cover subject refs, closing refs, notes/record citations, non-NOT_FOUND errors, and numbers above the highest resolved reference.
  • $autoreview (Codex): scoped-clean, no P0-P2 findings.

The release-notes verifier aborted on #155121, a pull request GitHub no longer returns, which only appears as context in the body of #156166. The verifier now records exact GraphQL NOT_FOUND results and omits a reference only when it is confined to contextual commit-body text (not a subject PR ref, closing reference, provenance override, or notes/record citation) and lies below the highest resolved number. Omitted references are reported in the manifest as unavailableReferences and never credited; every other unresolved reference stays fatal.
@steipete steipete added the release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) label Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 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 P2 Normal backlog priority with limited blast radius. 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. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 5:00 AM ET / 09:00 UTC.

ClawSweeper review

What this changes

The branch lets the release-note verifier report and omit exact GitHub NOT_FOUND references found only in commit-body context, and adds manifest output and regression tests.

Merge readiness

✅ Ready for maintainer review

Current main still fails on an unresolved reference in release history. This PR addresses the reported case, and the review found no concrete defect in the proposed exception.

Priority: P2
Reviewed head: 3d12a3e1f4fd6c426c7bd337affd06a5140fbb29

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and covers the reported verifier failure, with a specific real-range result reported in the PR body.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored PR is exempt from the contributor proof gate. Its body reports an exact real-range before-and-after verifier run; the added manifest field is per-run output, with no stored-state upgrade.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the contributor proof gate. Its body reports an exact real-range before-and-after verifier run; the added manifest field is per-run output, with no stored-state upgrade.
Evidence reviewed 8 items Current-main behavior: The fetched main revision still fails when a source reference cannot be resolved.
Reported trigger: The merged commit for the related egress-proxy fix mentions the unavailable reference as context in its body. That fix addresses a different problem.
Bounded exception: The new classifier requires an exact NOT_FOUND result, a body occurrence, a number below the highest resolved reference, and absence from protected citations.
Findings None None.
Security None None.

How this fits together

Release maintainers give the verifier a Git commit range and draft notes. It resolves GitHub references, checks contributor credit, and produces a contribution record and manifest.

flowchart LR
  A[Git commit range] --> C[Collect references]
  B[Draft release notes] --> C
  C --> D[GitHub resolution]
  D --> E[Check citation role]
  E --> F[Verified release notes]
  E --> G[Unavailable reference list]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +186, Docs +1, Other +96. Total +283 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 186 0 +186
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 110 14 +96
Total 4 297 14 +283

Review metrics

Metric Value Why it matters
Production and test growth production +96 net lines; tests and test types +186 lines The added production logic is limited to release-reference classification, with coverage for the reported failure and strictness cases.
Reported test cost 21 new cases: 4.9 s; full file: 134.9 s The PR body measures the incremental cases separately from the existing release-tooling suite.

Technical review

Best possible solution:

Keep release attribution strict for credit-bearing citations while allowing an auditable exception for deleted contextual links.

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

Yes at source level: current main fails on unresolved source references, and the cited merged commit contains the contextual reference. This read-only review did not run the verifier.

Is this the best way to solve the issue?

Yes. The exception is confined to exact missing body context and retains fatal checks for references that affect release notes or credit.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The defect blocks release-note maintenance for the cited range but does not change user-facing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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: The member-authored PR is exempt from the contributor proof gate. Its body reports an exact real-range before-and-after verifier run; the added manifest field is per-run output, with no stored-state upgrade.

Label justifications:

  • P2: The defect blocks release-note maintenance for the cited range but does not change user-facing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR is exempt from the contributor proof gate. Its body reports an exact real-range before-and-after verifier run; the added manifest field is per-run output, with no stored-state upgrade.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Hannes Rudolph: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete
steipete merged commit b405fe5 into main Sep 28, 2026
138 checks passed
@steipete
steipete deleted the fix/release-notes-deleted-refs branch September 28, 2026 09:11
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…ed PR (openclaw#160305)

The release-notes verifier now records exact GraphQL NOT_FOUND results and omits a reference only when it appears solely as contextual commit-body text and lies below the highest resolved number, reporting it as manifest unavailableReferences without credit. Every other unresolved reference stays fatal. Unblocks 2026.9.7 notes regeneration (openclaw#155121 mentioned in openclaw#156166).
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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. release-fast-lane Release tooling PR: narrow ci-gate, ClawSweeper advisory (RELEASING.md) 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