Skip to content

fix(release): explain shallow release-note history - #190048

Open
RomneyDa wants to merge 1 commit into
mainfrom
tideclaw/rri-597-shallow-release-notes
Open

RomneyDa wants to merge 1 commit into
mainfrom
tideclaw/rri-597-shallow-release-notes

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 1, 2026

Copy link
Copy Markdown
Member

Problem

RRI-597: beta release-note verification can run in a shallow checkout that contains both the frozen baseline tag and candidate target but not their connecting history. In that state, ancestry cannot be proven and the follow-up git merge-base exits with only an opaque Command failed exception.

Solution

  • Resolve the beta range merge base through a dedicated fail-closed helper.
  • When Git confirms the repository is shallow, report that missing history is the cause and give the exact git fetch --unshallow origin recovery command.
  • Preserve stderr, signal, or status diagnostics for non-shallow failures.
  • Add an end-to-end depth-1 clone regression with separately fetched baseline and target commits.

Evidence

  • Reproduced the original raw Command failed: git merge-base v2026.7.1 HEAD failure in a real shallow clone.
  • test/scripts/verify-release-notes.test.ts: 129/129 passed.
  • Changed-file formatting passed.
  • Type-aware lint passed for both changed files.
  • git diff --check passed.
  • Independent P0-P2 review found no issues; static review limitation only, with the full test suite run separately above.

@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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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 maintainer review before merge.

What this changes

The release-note verifier explains shallow-history merge-base failures and provides a Git recovery command.

Example: Verify 2026.7.2-beta.1 against v2026.7.1 in a depth-1 clone with the baseline tag fetched separately.

  • Before: Verification stops with an opaque Command failed: git merge-base v2026.7.1 HEAD error.
  • After: Verification stops with a shallow-checkout explanation and suggests git fetch --unshallow origin before retrying.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct diagnostic repair with meaningful CLI/Git regression coverage; independent after-fix runtime evidence was not supplied or generated.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body reports the original shallow-clone failure and passing regression suite, while inspected coverage invokes the real verifier against real Git history.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A release operator cannot tell how to recover when a shallow checkout prevents beta release-note range resolution.
Reason: The maintainer-authored change supplies an actionable recovery message for a concrete Git failure without introducing settings or changing release policy.

Merge readiness

✅ Ready for maintainer review

This PR provides a focused, useful diagnostic fix that current main still lacks; no actionable correctness or security defects were found.

Priority: P3
Reviewed head: f3bbc7e217662bf184d6ed131f6fdce2533b8e02

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Standalone after-fix CLI output and an executed base-red comparison are not supplied; the retained regression exercises the actual CLI with real shallow Git history.
Agent review details

How this fits together

The release-note CLI consumes a frozen baseline, candidate ref, and version, resolves their history range, then discovers contributions and verifies release notes.

flowchart TD
  A[Baseline and candidate refs] --> B[Release-note verifier]
  B --> C[Git ancestry check]
  C --> D[Merge-base resolution]
  D --> E[Contribution verification]
  D --> F[Recovery diagnostic]
Loading

Technical review

Best possible solution:

Keep the focused diagnostic helper and real-Git regression while preserving the existing release-range and provenance checks.

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

Current main exposes the generic merge-base exception on the reported shallow-history path, and the added real-Git fixture reaches that exact boundary; no target code was executed during this review.

Is this the best way to solve the issue?

The helper is a small, appropriately placed repair: it preserves successful merge-base resolution and fail-closed behavior while explaining recovery before release-note writes begin.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit a94074f adds .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:2641 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a94074f6a498; files: .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs)

PR surface

Tests +27, Other +28. Total +55 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 27 0 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 29 1 +28
Total 2 56 1 +55

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves a release-operator error message without changing successful verification or end-user runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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:52 PM ET / November 1, 2026, 03:52 UTC.

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

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

2 participants