Skip to content

fix(release): initialize changelog sections - #180237

Merged
RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-175-release-note-skeleton
Oct 22, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
tideclaw/rri-175-release-note-skeleton

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • initialize a missing split changelog entry during --write-ledger
  • create the standard Highlights, Changes, and Fixes skeleton through the shared changelog writer
  • retain strict missing-section behavior for read-only verification

Why

Starting release-note generation required manually creating the target section before the verifier could build its contribution record. The initial writer flow now creates that target skeleton itself, while preserving existing entries and the split-layout requirement.

Closes RRI-175.

Testing

  • pnpm exec vitest run test/scripts/verify-release-notes.test.ts --silent (127 passed)
  • tooling test typecheck
  • oxlint and oxfmt checks
  • git diff --check

The integration test begins with only a prior split release, then verifies the target entry and contribution record are created together.

@clawsweeper

clawsweeper Bot commented Oct 22, 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR creates a missing release changelog skeleton when running the verifier with --write-ledger.

Example: Generate notes for 2026.7.1-beta.1 when only the prior split release exists.

  • Before: The verifier throws because the target changelog section is missing.
  • After: The verifier creates the target skeleton and its contribution record through the shared writer.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused beta CLI regression supports the approach, but the stable path remains incomplete and the failed typecheck cannot yet be attributed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its supplied automated regression invokes the real verifier CLI against a synthetic split beta release.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Release maintainers must manually seed a target changelog before generating its contribution inventory.
Reason: The maintainer-authored direction removes a real preparation obstacle through the existing owner, but stable initialization remains incomplete.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR addresses a real release-tooling gap, but its new initialization path cannot complete contribution-record generation for stable releases.

Priority: P2
Reviewed head: e9276523dfef1c283bc371e9cb1da309e27e72c1

Before merge

  • Complete stable initialization before enforcing finished-prose checks (P2) - For a missing stable target such as 2026.7.1, this skeleton contains zero Highlights bullets. The subsequent ledgerChecks call requires five for every non-beta version, and main saves the generated contribution record only when errors.length is zero. Consequently --write-ledger creates the skeleton and index entry, exits with a Highlights error, and never creates CHANGELOG/records/2026.7.1.md. The added beta test passes because beta permits zero highlights. Make the initial inventory path work before stable prose is written, retain strict final verification, and cover the stable case.

Findings

  • [P2] Complete stable initialization before enforcing finished-prose checks — .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:2640-2644

Tests

  • Missing end-to-end proof: The supplied CLI regression covers beta initialization only; stable initialization and a recorded red-on-base comparison are absent.
Agent review details

How this fits together

The release-note verifier combines a selected Git history range with release Markdown, validates contribution coverage, and writes split changelog artifacts through the shared changelog owner.

flowchart TD
  A[Release maintainer] --> B[Verifier CLI]
  B --> C[Find or initialize release]
  C --> D[Shared changelog writer]
  B --> E[History and contribution inventory]
  E --> F[Editorial and record validation]
  F --> D
  D --> G[Split entry record and index]
Loading

Technical review

Best possible solution:

Let initial inventory generation save stable contribution records before editorial prose is complete, using the shared writer while preserving strict final verification.

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

Current main unconditionally loads the requested release section and throws when it is absent; source inspection establishes the failure without executing target code.

Is this the best way to solve the issue?

Reusing the existing writer is a focused solution, but the beta-only regression misses the stable editorial check that prevents the promised record from being saved.

Full review comments:

  • [P2] Complete stable initialization before enforcing finished-prose checks — .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:2640-2644
    For a missing stable target such as 2026.7.1, this skeleton contains zero Highlights bullets. The subsequent ledgerChecks call requires five for every non-beta version, and main saves the generated contribution record only when errors.length is zero. Consequently --write-ledger creates the skeleton and index entry, exits with a Highlights error, and never creates CHANGELOG/records/2026.7.1.md. The added beta test passes because beta permits zero highlights. Make the initial inventory path work before stable prose is written, retain strict final verification, and cover the stable case.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/verify-release-notes.test.ts
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental
  • Verify the real CLI creates both a missing stable entry and its contribution record in an isolated split-layout fixture.
  • Verify final stable validation still rejects incomplete editorial prose.
  • git diff --check

What I checked:

  • Pinned change: The introduced diff adds a missing-section initializer and one beta CLI regression; fetched main still loads the section strictly. (.agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:2635, e9276523dfef)
  • Stable initialization failure: The new skeleton has zero Highlights bullets; highlightCountError requires five for stable versions, and main writes the generated contribution record only when validation has no errors. (.agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:2643, e9276523dfef)
  • Existing release contract: The changelog workflow generates the contribution inventory before grouped prose, while final verification deliberately retains stable and beta editorial budgets. (.agents/skills/openclaw-changelog-update/SKILL.md, e9276523dfef)
  • Shared writer safeguards: The existing writer enforces split layout, refuses docs-mirror replacement, and preserves contribution records; the patch reuses that owner without changing its persisted format. (scripts/lib/release-changelog.mjs:399, e9276523dfef)
  • Discussion and owner direction: The full PR body describes initial skeleton and record generation; the author is a MEMBER, and the discussion contains only automated acknowledgments.
  • CI attribution remains unavailable: The exact-head core test-types job failed and caused the aggregate gate failure. Annotations contain only exit codes; fetching the diagnostic log was blocked by the sandbox allowlist for its Azure host, so no patch attribution is established. (e9276523dfef)

Likely related people:

  • Dallin Romney: Raw commit a94074f adds .agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs:2368 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)
  • Hannes Rudolph: Raw commit 2227743 adds scripts/lib/release-changelog.mjs:426 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2227743f7474; files: scripts/lib/release-changelog.mjs)

PR surface

Tests +25, Other +17. Total +42 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 25 0 +25
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 18 1 +17
Total 2 43 1 +42

Labels

Label changes:

  • add P2: The incomplete stable bootstrap affects maintainer release-note preparation with a manual workaround and limited runtime impact.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The incomplete stable bootstrap affects maintainer release-note preparation with a manual workaround and limited runtime impact.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • 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 21, 2026, 11:26 PM ET / October 22, 2026, 03:26 UTC.

@RomneyDa
RomneyDa merged commit 333b38d into main Oct 22, 2026
93 of 96 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/rri-175-release-note-skeleton branch October 22, 2026 04:28
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XS 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