Skip to content

fix(release): validate GitHub notes before publish - #103222

Merged
steipete merged 1 commit into
mainfrom
codex/release-2026-7-1-gates
Jul 10, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/release-2026-7-1-gates

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The current publish workflow can discover an oversized GitHub release body only after registry-side mutations have started. The complete 2026.7.1 contribution record currently exceeds GitHub's release-body limit.

Related to #103144. The managed Codex freshness blocker was resolved separately by #103156; performance-harness recovery remains independently owned by #103126.

Why This Change Was Made

  • Render the changelog's complete contribution record as compact, lossless PR/reference/credit rows while retaining full metadata in the generated manifest.
  • Require the stable-base heading for beta/stable releases while preserving exact-heading and Unreleased fallback support for Tideclaw alpha releases.
  • Prepare and size-check GitHub release notes before any publish-side mutation, reserving 5,000 characters and UTF-8 bytes for mandatory release verification proof.
  • Reuse the prepared notes at release creation and fail instead of publishing a proofless body when the combined result exceeds the 125,000-character or UTF-8-byte safety limit.

User Impact

Release candidates now fail before publish-side mutations when their GitHub notes are missing or too large. The complete release contribution record remains auditable without exceeding GitHub's body limit.

Evidence

  • Release-note helper, compact-ledger, workflow, and test-routing tests: 252 passed on Blacksmith Testbox.
  • Candidate simulation: complete contribution record shrank from about 193.6k to 106.1k characters, below the 120,000-character source budget while preserving the 5,000-character proof reserve.
  • Fresh automated pre-commit and rebased-branch reviews completed with no accepted actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L maintainer Maintainer-authored PR labels Jul 10, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 9af4749cbf32af2bc2ee73dd0acf0ed012e04a25:

  • Blacksmith Testbox tbx_01kx4q477paph3adfs1eykkwxb: corepack pnpm test test/scripts/prepare-github-release-notes.test.ts test/scripts/release-notes-ledger.test.ts test/scripts/package-acceptance-workflow.test.ts test/scripts/test-projects.test.ts — 252/252 passed.
  • Exact-head canonical CI 29062244829 completed successfully, including build artifacts, lint, production/test types, dependency and security guards, workflow checks, and all selected Node shards.
  • git diff --check passed. Fresh local and rebased-branch autoreviews reported no accepted/actionable findings at 0.91 confidence.
  • Candidate simulation preserves the complete PR/reference/credit ledger while reducing the release section from about 193.6k to 106.1k characters, under both the 120k source budget and mandatory 5k verification-proof reserve.

Known proof gaps: none.

@steipete
steipete merged commit 31f76b9 into main Jul 10, 2026
106 of 111 checks passed
@steipete
steipete deleted the codex/release-2026-7-1-gates branch July 10, 2026 01:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 10, 2026
steipete added a commit that referenced this pull request Jul 10, 2026
Two competing release-notes pipelines existed: the release branch's
hardened render/verify/provenance pipeline (a486f3a + dcee1da,
battle-tested by 2026.7.1) and main's lighter prepare-github-release-notes
size gate (#103222). Repo policy is one canonical path; the release-branch
pipeline wins and main's unique value is grafted in:

- scripts/render-github-release-notes.mjs becomes the canonical release
  body renderer (full/compact 125k char+byte modes, tag-pinned record
  link, verification tail, canonical shipped-baseline format), now also
  preferring a correction tag's dedicated changelog section (from
  prepare's heading matrix).
- verify-release-notes.mjs is a three-way merge: release's --shipped-ref
  cumulative baselines, provenance checks, highlights gate, and the
  excluded-record rewrite fix, plus main's compact contribution rows,
  externalReferences threading, and both-heading parser compat.
- release-candidate-checklist.mjs gains validateCandidateCheckout and
  changelog-provenance gates that run before any dispatch.
- openclaw-release-publish.yml keeps main's fail-before-mutation early
  notes gate (retargeted to the renderer) and adopts release's
  render/verify_release_tag_target/canonical_release_body_matches flow.
- scripts/prepare-github-release-notes.mjs and its test are deleted;
  release-notes-ledger.test.ts stays and pins the merged verify exports.
- .gitignore tracks every repo skill for Git-aware syncs; SKILL.md
  runbooks and RELEASING.md document the converged contract.
steipete added a commit that referenced this pull request Jul 10, 2026
Shipped alpha tags carry a dedicated ## X-alpha.N heading with no base
section (see v2026.6.20-alpha.1's tagged CHANGELOG.md); the renderer and
candidate provenance now prefer that dedicated heading for alpha and
correction tags while beta/stable remain pinned to the stable base
section per #103222.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 11, 2026
Two competing release-notes pipelines existed: the release branch's
hardened render/verify/provenance pipeline (a486f3a + dcee1da,
battle-tested by 2026.7.1) and main's lighter prepare-github-release-notes
size gate (openclaw#103222). Repo policy is one canonical path; the release-branch
pipeline wins and main's unique value is grafted in:

- scripts/render-github-release-notes.mjs becomes the canonical release
  body renderer (full/compact 125k char+byte modes, tag-pinned record
  link, verification tail, canonical shipped-baseline format), now also
  preferring a correction tag's dedicated changelog section (from
  prepare's heading matrix).
- verify-release-notes.mjs is a three-way merge: release's --shipped-ref
  cumulative baselines, provenance checks, highlights gate, and the
  excluded-record rewrite fix, plus main's compact contribution rows,
  externalReferences threading, and both-heading parser compat.
- release-candidate-checklist.mjs gains validateCandidateCheckout and
  changelog-provenance gates that run before any dispatch.
- openclaw-release-publish.yml keeps main's fail-before-mutation early
  notes gate (retargeted to the renderer) and adopts release's
  render/verify_release_tag_target/canonical_release_body_matches flow.
- scripts/prepare-github-release-notes.mjs and its test are deleted;
  release-notes-ledger.test.ts stays and pins the merged verify exports.
- .gitignore tracks every repo skill for Git-aware syncs; SKILL.md
  runbooks and RELEASING.md document the converged contract.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 11, 2026
Shipped alpha tags carry a dedicated ## X-alpha.N heading with no base
section (see v2026.6.20-alpha.1's tagged CHANGELOG.md); the renderer and
candidate provenance now prefer that dedicated heading for alpha and
correction tags while beta/stable remain pinned to the stable base
section per openclaw#103222.
vincentkoc pushed a commit that referenced this pull request Jul 11, 2026
Shipped alpha tags carry a dedicated ## X-alpha.N heading with no base
section (see v2026.6.20-alpha.1's tagged CHANGELOG.md); the renderer and
candidate provenance now prefer that dedicated heading for alpha and
correction tags while beta/stable remain pinned to the stable base
section per #103222.

(cherry picked from commit eefe2e8)
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
Shipped alpha tags carry a dedicated ## X-alpha.N heading with no base
section (see v2026.6.20-alpha.1's tagged CHANGELOG.md); the renderer and
candidate provenance now prefer that dedicated heading for alpha and
correction tags while beta/stable remain pinned to the stable base
section per openclaw#103222.

(cherry picked from commit eefe2e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant