Skip to content

fix: close out stable releases after split publication recovery - #142291

Merged
steipete merged 3 commits into
mainfrom
codex/stable-split-recovery
Sep 8, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/stable-split-recovery

Conversation

@steipete

@steipete steipete commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where stable main closeout rejects a completed release after core npm publication succeeds, the original Release Publish parent fails during registry readback, and a separate Docker-only publisher completes successfully. The old recovery mode required both aggregate publication jobs to succeed in the original failed parent.

Why This Change Was Made

The existing manual recovery mode can now verify the separately completed publications using the postpublish evidence's run selectors. It validates exact Actions attempts, successful jobs, immutable dispatch artifacts, protected publisher tooling, the original Full Release Validation, and qualified release bytes. npm tarballs undergo independent registry-signature, Sigstore, and digest verification; the published Docker image and attestation descriptors must match the original qualified OCI artifacts.

Historical publishers whose per-step logs are no longer retained have a narrowly pinned contract: the exact published workflow shell-body hashes, API step name/number/time window, and unique Actions-generated runner input headers. Ordinary command output, operator-authored success claims, missing evidence, and ambiguous identities cannot satisfy the gate. Normal and same-parent recovery remain strict. The immutable closeout records the failed original parent honestly and preserves both successful publication identities through replay.

Compatibility proof: existing version-2 manifests and legacy releasePublishRecovery: { npmDockerVerified: true } records retain their original bytes on replay. Only newly verified split closeouts receive the additional exact publication identities, and their replay requires independently reproduced, identical evidence. This is an immutable release artifact extension; no runtime configuration, SQLite schema, or mutable store is migrated.

User Impact

Release operators can finish a verified split publication without republishing immutable npm packages or Docker images. This changes closeout verification only; it does not publish artifacts, change version metadata, or alter runtime behavior.

Evidence

  • Reproduced the original workflow rejection at its failed aggregate npm job check.
  • 615 consolidated closeout, signature, CI-planner, and routing tests passed, including wrong attempts/repositories, altered or duplicate headers, earlier/later step forgeries, scoped npm PURLs, changed replay proof, FRV/postpublish checksum substitution, and invalid registry signatures.
  • Changed-file and both deadcode checks passed. The package-acceptance workflow suite also passed with all original npm/Docker assertions retained. The unchanged 10,001-file scan test timed out under concurrent filesystem scans, then passed alone without timeout or assertion changes.
  • Consolidation preserves every moved fixture/assertion byte and restores the existing 80-job GitHub plan (baseline 80, separate file 81, consolidated 80); no planner cap or ignore changed.
  • Actual read-only verification passed for the 2026.9.3 original parent 34220675844/3, successful npm child 34228428103/1, and successful Docker publisher 34231609422/1: four qualified npm packages and all six versioned Docker references verified against Full Release Validation 34200770785/2.
  • The inherited main catalog type errors were repaired independently in fix(ui): restore default-model picker discovery after the catalog store rewrite #142346. This branch was refreshed once onto f74837e; all three reviewed commits are patch-identical by range-diff. Recovery-specific CI failures were repaired without ignores or increased caps, and exact-head CI is required before landing.
  • Missing or expired historical artifacts/logs remain an explicit recovery limitation.

@clawsweeper

clawsweeper Bot commented Sep 8, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 8, 2026
@steipete
steipete marked this pull request as ready for review September 8, 2026 15:55
@steipete
steipete requested a review from a team as a code owner September 8, 2026 15:55
@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 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 8, 2026, 1:16 PM ET / 17:16 UTC (Revision 5).

ClawSweeper review

What this changes

The PR lets stable-release closeout verify separately completed npm and Docker publications and preserve their exact evidence during replay.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful release-recovery fix absent from the reviewed main branch. No blocking defect was found, and the documented compatibility contract plus byte-preserving replay coverage resolve the earlier upgrade concern.

Priority: P2
Reviewed head: 206127249b766215bffaa3f1525f8d95788ec068

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent recovery repair with operational evidence, preserved replay compatibility, and no actionable correctness findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The captured body reports successful after-fix execution of the recovery verifier against the actual v2026.9.3 publication, validating four npm packages and six Docker references; independent Actions reads corroborate the named attempts and successful publication steps.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The captured body reports successful after-fix execution of the recovery verifier against the actual v2026.9.3 publication, validating four npm packages and six Docker references; independent Actions reads corroborate the named attempts and successful publication steps.
Evidence reviewed 8 items Current main still rejects the reported split: The main workflow requires successful aggregate npm and Docker jobs in the original failed parent; a separately successful Docker publisher cannot satisfy that branch.
Reported failure matches Actions records: The original publication attempt has a failed aggregate npm job and skipped Docker publication. Separate API reads confirmed successful npm attempt 34228428103/1, Docker attempt 34231609422/1, and Full Release Validation attempt 34200770785/2.
Recovery verification boundary: Run selectors are checked against exact successful attempts, repository identities, dispatch artifacts, protected tooling, qualified package hashes, verified npm provenance, and Docker descriptors. The workflow writes recovery evidence only after verification returns successfully.
Findings None None.
Security None None.

How this fits together

Stable-release closeout checks published packages, release artifacts, and validation records before attaching a permanent completion manifest. This change adds evidence verification for publication recovered across separate workflow runs.

flowchart TD
  A[Manual recovery request] --> B[Release evidence and run selectors]
  B --> C[Verify workflow attempts and trusted tooling]
  C --> D[Verify npm packages and Docker images]
  D --> E[Check release state and replay identity]
  E --> F[Attach immutable closeout manifest]
  C --> G[Reject invalid evidence]
  D --> G
  E --> G
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +714, Docs 0, Config +33, Other +778. Total +1525 across 16 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 747 33 +714
Docs 1 1 1 0
Config 1 70 37 +33
Generated 0 0 0 0
Other 5 826 48 +778
Total 16 1644 119 +1525

Review metrics

Metric Value Why it matters
Production versus test growth Production/tooling +811 net lines; tests/fixtures +714 net lines The substantial production growth implements independent publication verification and bounded historical evidence parsing rather than weakening the existing recovery gate.

Stored data model

Persistent data-model change detected: serialized state: scripts/lib/stable-publish-recovery.mjs, serialized state: scripts/verify-stable-main-closeout.mjs, unknown-data-model-change: scripts/lib/stable-publish-recovery.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Retain the existing manual recovery entrypoint, independently verify split publications, and preserve historical closeout bytes without republishing release artifacts.

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

Yes. Current main requires both publication jobs to succeed in the original parent, and the verified Actions records show the reported failed-parent/separate-successful-publisher scenario; repository code was not executed.

Is this the best way to solve the issue?

Yes. Extending the existing recovery verifier preserves publication checks and immutable replay while avoiding republishing already qualified artifacts.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs a bounded release-operator recovery failure without changing installed OpenClaw 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. Sufficient (linked_artifact): The captured body reports successful after-fix execution of the recovery verifier against the actual v2026.9.3 publication, validating four npm packages and six Docker references; independent Actions reads corroborate the named attempts and successful publication steps.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body reports successful after-fix execution of the recovery verifier against the actual v2026.9.3 publication, validating four npm packages and six Docker references; independent Actions reads corroborate the named attempts and successful publication steps.

Evidence

What I checked:

  • Current main still rejects the reported split: The main workflow requires successful aggregate npm and Docker jobs in the original failed parent; a separately successful Docker publisher cannot satisfy that branch. (.github/workflows/openclaw-stable-main-closeout.yml:464, f74837eec914)
  • Reported failure matches Actions records: The original publication attempt has a failed aggregate npm job and skipped Docker publication. Separate API reads confirmed successful npm attempt 34228428103/1, Docker attempt 34231609422/1, and Full Release Validation attempt 34200770785/2. (014031692483)
  • Recovery verification boundary: Run selectors are checked against exact successful attempts, repository identities, dispatch artifacts, protected tooling, qualified package hashes, verified npm provenance, and Docker descriptors. The workflow writes recovery evidence only after verification returns successfully. (scripts/lib/stable-publish-recovery.mjs:542, 206127249b76)
  • Compatibility concern resolved: Existing manifests retain their original recovery fields; only fresh split closeouts receive the expanded record. Historical version-2 fixtures require identical serialized replay, the CLI test preserves legacy recovery bytes, and the new split test rejects absent or changed replay proof. These tests were inspected, not executed during this review. (scripts/lib/stable-release-closeout.mjs:371, 206127249b76)
  • After-fix operational evidence: The captured PR body reports that the actual read-only recovery verifier accepted four qualified npm packages and six versioned Docker references for v2026.9.3. Its linked publication identities were independently checked through Actions APIs; those API checks corroborate the runs, while the after-fix verifier result is contributor-reported. Captured sourceRevision: ab65d966ee8c4a7880834ad818b68af982c357facea751350007946a8e233657. (206127249b76)
  • Main and release necessity check: Neither the fetched main tree nor the supplied latest-release tree contains the split-publication verifier. The related merged UI repair addresses catalog discovery, not release closeout. (scripts/lib/stable-publish-recovery.mjs, f74837eec914)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-08T16:11:48.345Z sha af4e34d :: blocked before merge. :: none
  • reviewed 2026-09-08T16:38:11.107Z sha d83a1a8 :: blocked before merge. :: none
  • reviewed 2026-09-08T16:51:17.370Z sha d83a1a8 :: blocked before merge. :: none
  • reviewed 2026-09-08T17:03:18.590Z sha d83a1a8 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 8, 2026
@steipete
steipete force-pushed the codex/stable-split-recovery branch from d83a1a8 to 2061272 Compare September 8, 2026 17:09
@steipete
steipete merged commit 0165532 into main Sep 8, 2026
135 of 137 checks passed
@steipete
steipete deleted the codex/stable-split-recovery branch September 8, 2026 17:23
@steipete

steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 8, 2026
Five commits changed docs/reference/RELEASING.md while this branch was
turning it into an index (#142195, #142291, #142260, #141786, #140672),
adding 98 lines. Resolved to the index, then re-extracted every child
section from main's current file: 15 sections refreshed across 9
children. Verified line by line that all 792 content lines present on
main survive the split.

Re-extraction reverted three of the split's own repairs, which is the
known cost of that approach:

- four cross-page links fell back to same-page fragments
  (#regular-release-publish-automation, #stable-main-closeout); all
  repointed at the children that own those headings
- versioning.md's "see the dedicated workflow below" lost its target
  again and is a link to /reference/releasing/extended-stable once more

The link reverts are caught by docs-link-audit and markdownlint MD051.
The prose revert is caught by nothing and was found by hand.

Glossary: union keyed on source, 701 entries, 0 duplicate sources.

Full CI docs gate after staging: markdownlint 0 issues,
docs-link-audit --anchors 0 broken links, check-docs-mdx passed,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
…claw#142291)

* fix: close out stable releases after split publication recovery

* fix: bind closeout checksums to their exact evidence files

* fix: keep closeout proof on its executable test owners
vincentkoc added a commit that referenced this pull request Sep 26, 2026
* docs(release): restore the npm publication bookmark

Preserve the published publish-the-npm-packages fragment after the extended-stable heading rename. Keep the current release policy and canonical maintainer procedures unchanged.

* docs(reference): split the release runbook by reader job

docs/reference/RELEASING.md was 99,140 characters and mixed reference,
how-to, and explanation content for five release jobs on one page. It is
now a 4.6k index over nine pages under docs/reference/releasing/, one per
reader job, so an operator can complete one procedure on one page.

Children, in release order:

- releasing/versioning - version formats, git tags, npm dist-tags, cadence
- releasing/preflight - checks and generators to run before tagging
- releasing/regular-release - the twelve-step operator checklist
- releasing/test-boxes - Full Release Validation and the Vitest, Docker,
  QA Lab, and Package boxes
- releasing/publish-automation - OpenClaw Release Publish order, tooling
  tags, and Windows, Android, and ClawHub recovery
- releasing/beta-latest-sequence - the orchestrated stable sequence
- releasing/main-closeout - bringing main to the shipped state
- releasing/extended-stable - the monthly .33+ Gateway lane
- releasing/npm-workflow-inputs - operator-controlled workflow inputs

Anchor strategy. Per-anchor routes are impossible here: redirectSource()
in scripts/lib/docs-redirects.mjs rejects any source containing [?#]. So
every original anchor stays alive on the parent index, matching the
configuration-reference, Control UI, CI, protocol, and Slack splits: 18
authored <a id="..." /> stubs in a "Where each section moved" list, each
linking to /reference/releasing/<child>#<anchor>. The remaining two ids,
public-references and related, keep their sections on the index itself
and are deliberately not stubbed, so no duplicate authored/canonical ID
is raised.

Every id was computed with parseDocsDocument from
scripts/lib/docs-markdown.mjs, never a slug approximation. That matters
for "Regular beta/latest stable release sequence", which mints both the
percent-encoded canonical regular-beta%2Flatest-stable-release-sequence
and the compatibility alias regular-beta/latest-stable-release-sequence;
both are stubbed.

Anchor proof, run as a script rather than inferred from a passing audit
(a split rewrites the repo's own links, so docs-link-audit reads clean
even when every external deep link is broken): 20 pre-split ids
enumerated, 20 resolve against the parsed post-split index through
resolveDocsFragment, 18 stubs all point at an id that exists on the named
child, 0 collisions on the index or any child.

Losslessness, asserted mechanically by concatenating child bodies back
to the original section bodies: 0 divergences. Words 12,605 -> 13,045
(+440 from the index funnel, per-child frontmatter, and Related blocks).
Code fences 23 -> 23, unchanged. Links 23 -> 79 (+18 stubs, +9 index
bullets, +27 Related entries, +2 orphan repairs). Characters 98,834 ->
104,528.

Prose was not rewritten. The one declared exception is the cross-
reference repair the split requires: "see the dedicated workflow below"
in Version naming and "documented at the top of this page" in the
beta/latest sequence both pointed at content that now lives on another
page, so each became a real link to the extended-stable page.

Supporting changes:

- docs/docs.json gains a "Release runbook" nav group under "Release
  process", mirroring the "CI" group under "Testing and CI".
- .github/CODEOWNERS extends @openclaw/openclaw-release-managers to
  /docs/reference/releasing/, so the split does not silently drop
  release-manager ownership of the runbook.
- test/scripts/package-acceptance-workflow.test.ts and
  test/scripts/openclaw-npm-extended-stable-workflow.test.ts read
  RELEASING.md plus docs/reference/releasing/*.md as one set, following
  the pattern already used there for docs/ci.md plus docs/ci/*.md, so the
  assertions follow the content instead of a single file path.
- test/scripts/docs-sync-publish.test.ts pins the nine new routes.
- docs/.i18n/glossary.zh-CN.json gains one entry per new page title.
  The zh-CN targets are machine-written and unreviewed.

Closes audit findings: r3-0683, r3-0685

* Merge origin/main into docs-audit/split-releasing

Five commits changed docs/reference/RELEASING.md while this branch was
turning it into an index (#142195, #142291, #142260, #141786, #140672),
adding 98 lines. Resolved to the index, then re-extracted every child
section from main's current file: 15 sections refreshed across 9
children. Verified line by line that all 792 content lines present on
main survive the split.

Re-extraction reverted three of the split's own repairs, which is the
known cost of that approach:

- four cross-page links fell back to same-page fragments
  (#regular-release-publish-automation, #stable-main-closeout); all
  repointed at the children that own those headings
- versioning.md's "see the dedicated workflow below" lost its target
  again and is a link to /reference/releasing/extended-stable once more

The link reverts are caught by docs-link-audit and markdownlint MD051.
The prose revert is caught by nothing and was found by hand.

Glossary: union keyed on source, 701 entries, 0 duplicate sources.

Full CI docs gate after staging: markdownlint 0 issues,
docs-link-audit --anchors 0 broken links, check-docs-mdx passed,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* docs(reference): stub the anchors main added, and relink extended-stable

Both found by ClawSweeper on the rebased head.

Main added three headings to RELEASING.md while this branch was open:
Previous updater compatibility, Design proposal: immutable runtime
generations, and Required checks. Re-extracting moved their content to
preflight.md but added no compatibility stubs, so links such as
/reference/RELEASING#previous-updater-compatibility lost their target.
Added four stubs — the punctuated heading emits both an encoded and a
cleaned id, and both are now covered.

Anchor preservation applies to content main adds mid-flight, not only to
what existed when the split was planned. Verified against main's current
file: 24 pre-split ids, 24 resolving on the index, 0 lost.

Also restored the second extended-stable cross-page link. The earlier
rebase reverted two of them; I fixed versioning.md but missed
beta-latest-sequence.md, which still said the path was "documented at
the top of this page" after that path moved to its own child. An
orphaned directional phrase passes every validator, which is why this
one survived a full gate run.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
check-docs-mdx passed, format-docs clean.

* Merge origin/main into docs-audit/split-releasing

Glossary conflict only; union keyed on source, 709 entries, 0 duplicate
sources. No page conflicted.

Ran the new .audit/check-orphan-refs.py over this tree: 0 directional
references remaining. That check exists because this branch shipped two
orphaned 'below' references past a full gate run, and they were found by
a reviewer both times.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

This PR has been waiting on release-manager review, and main moved under
it. Refreshed so it is mergeable the moment the owners approve.

#142538 added 41 lines on extended-stable validation dispatch to
docs/reference/RELEASING.md. Resolved to the index, then re-extracted
five child sections from main's current file so that content survives.
Verified line by line: 817 content lines on main, all present after the
split. The one apparent gap is the Tideclaw alpha line, which is present
with its link repointed at the npm-workflow-inputs child.

Re-extraction reverted the split's own repairs again, both kinds:
- four cross-page links fell back to same-page fragments and were
  repointed at the children owning those headings
- two orphaned directional references came back and were relinked,
  in versioning.md and beta-latest-sequence.md

The link reverts are caught by docs-link-audit; the prose reverts are
caught by nothing and were found with .audit/check-orphan-refs.py.

Anchor check against main's current file: 24 ids, 24 resolving, 0 lost.
markdownlint 0 issues, format-docs clean, check-docs-mdx passed.
docs-link-audit --anchors reports only the 3 pre-existing maturity
failures that also fail on a clean origin/main.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

Three conflicts, resolved as follows.

docs/reference/RELEASING.md: kept the index (ours). main's only change to
this page since the merge base is ca3bc36, which rewrote one paragraph
of the `update-first-hop-compat` lane inside "Release preflight". That
section now lives in docs/reference/releasing/preflight.md, so main's hunk
was applied there verbatim rather than dropped.

test/scripts/package-acceptance-workflow.test.ts: took main's version of
both hunks -- the recursive docs/ci walk and the new set-read over
docs/reference/full-release-validation/ -- and kept readReleasingDocs() as
the reader for the release policy page. readReleasingDocs() now walks
docs/reference/releasing recursively with toSorted(), matching the pattern
and the rationale main established for docs/ci.

docs/.i18n/glossary.zh-CN.json: order-preserving union. 1119 sources from
main + 10 from this branch = 1129, 0 duplicates, both sides' orders
preserved as subsequences. The 10 new entries were moved out of the
end-of-array collision zone to sit beside the parent "Release policy"
entry.

Losslessness re-proved against current origin/main:docs/reference/RELEASING.md
(body sha256 9159abcad8cc2afe9a823570ca852fe912f66ed27c6c85a40d6576c595c51230):
all 12 top-level sections are byte-identical once the 6 declared link
rewrites are reversed; concatenated sections hash
66734f4ef0c88c6f2a7153de8708a5a58c058ed1561843babcdd0dec77410104 on both
sides. Code fences 25 -> 25 with an identical (info string, body sha256)
multiset; 0 tables; words 14,179 -> 15,020.

* Merge remote-tracking branch 'origin/main' into docs-audit/split-releasing

* origin/main:
  fix(channels): preserve labels for unloaded plugins (#143416)
  refactor(tests): share image resource acquisition setup (#143443)
  refactor(hooks): consolidate source precedence policy (#143439)

* docs(release): retain the original split history

The canonical release-policy split landed in #156946. Preserve the original branch ancestry while retaining only its missing legacy publication anchor on current source.

* commit 'f478156122dcc285acb7413024c4ecfc3101e0c8':
  docs(reference): stub the anchors main added, and relink extended-stable
  docs(reference): split the release runbook by reader job

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* docs(release): restore the npm publication bookmark

Preserve the published publish-the-npm-packages fragment after the extended-stable heading rename. Keep the current release policy and canonical maintainer procedures unchanged.

* docs(reference): split the release runbook by reader job

docs/reference/RELEASING.md was 99,140 characters and mixed reference,
how-to, and explanation content for five release jobs on one page. It is
now a 4.6k index over nine pages under docs/reference/releasing/, one per
reader job, so an operator can complete one procedure on one page.

Children, in release order:

- releasing/versioning - version formats, git tags, npm dist-tags, cadence
- releasing/preflight - checks and generators to run before tagging
- releasing/regular-release - the twelve-step operator checklist
- releasing/test-boxes - Full Release Validation and the Vitest, Docker,
  QA Lab, and Package boxes
- releasing/publish-automation - OpenClaw Release Publish order, tooling
  tags, and Windows, Android, and ClawHub recovery
- releasing/beta-latest-sequence - the orchestrated stable sequence
- releasing/main-closeout - bringing main to the shipped state
- releasing/extended-stable - the monthly .33+ Gateway lane
- releasing/npm-workflow-inputs - operator-controlled workflow inputs

Anchor strategy. Per-anchor routes are impossible here: redirectSource()
in scripts/lib/docs-redirects.mjs rejects any source containing [?#]. So
every original anchor stays alive on the parent index, matching the
configuration-reference, Control UI, CI, protocol, and Slack splits: 18
authored <a id="..." /> stubs in a "Where each section moved" list, each
linking to /reference/releasing/<child>#<anchor>. The remaining two ids,
public-references and related, keep their sections on the index itself
and are deliberately not stubbed, so no duplicate authored/canonical ID
is raised.

Every id was computed with parseDocsDocument from
scripts/lib/docs-markdown.mjs, never a slug approximation. That matters
for "Regular beta/latest stable release sequence", which mints both the
percent-encoded canonical regular-beta%2Flatest-stable-release-sequence
and the compatibility alias regular-beta/latest-stable-release-sequence;
both are stubbed.

Anchor proof, run as a script rather than inferred from a passing audit
(a split rewrites the repo's own links, so docs-link-audit reads clean
even when every external deep link is broken): 20 pre-split ids
enumerated, 20 resolve against the parsed post-split index through
resolveDocsFragment, 18 stubs all point at an id that exists on the named
child, 0 collisions on the index or any child.

Losslessness, asserted mechanically by concatenating child bodies back
to the original section bodies: 0 divergences. Words 12,605 -> 13,045
(+440 from the index funnel, per-child frontmatter, and Related blocks).
Code fences 23 -> 23, unchanged. Links 23 -> 79 (+18 stubs, +9 index
bullets, +27 Related entries, +2 orphan repairs). Characters 98,834 ->
104,528.

Prose was not rewritten. The one declared exception is the cross-
reference repair the split requires: "see the dedicated workflow below"
in Version naming and "documented at the top of this page" in the
beta/latest sequence both pointed at content that now lives on another
page, so each became a real link to the extended-stable page.

Supporting changes:

- docs/docs.json gains a "Release runbook" nav group under "Release
  process", mirroring the "CI" group under "Testing and CI".
- .github/CODEOWNERS extends @openclaw/openclaw-release-managers to
  /docs/reference/releasing/, so the split does not silently drop
  release-manager ownership of the runbook.
- test/scripts/package-acceptance-workflow.test.ts and
  test/scripts/openclaw-npm-extended-stable-workflow.test.ts read
  RELEASING.md plus docs/reference/releasing/*.md as one set, following
  the pattern already used there for docs/ci.md plus docs/ci/*.md, so the
  assertions follow the content instead of a single file path.
- test/scripts/docs-sync-publish.test.ts pins the nine new routes.
- docs/.i18n/glossary.zh-CN.json gains one entry per new page title.
  The zh-CN targets are machine-written and unreviewed.

Closes audit findings: r3-0683, r3-0685

* Merge origin/main into docs-audit/split-releasing

Five commits changed docs/reference/RELEASING.md while this branch was
turning it into an index (openclaw#142195, openclaw#142291, openclaw#142260, openclaw#141786, openclaw#140672),
adding 98 lines. Resolved to the index, then re-extracted every child
section from main's current file: 15 sections refreshed across 9
children. Verified line by line that all 792 content lines present on
main survive the split.

Re-extraction reverted three of the split's own repairs, which is the
known cost of that approach:

- four cross-page links fell back to same-page fragments
  (#regular-release-publish-automation, #stable-main-closeout); all
  repointed at the children that own those headings
- versioning.md's "see the dedicated workflow below" lost its target
  again and is a link to /reference/releasing/extended-stable once more

The link reverts are caught by docs-link-audit and markdownlint MD051.
The prose revert is caught by nothing and was found by hand.

Glossary: union keyed on source, 701 entries, 0 duplicate sources.

Full CI docs gate after staging: markdownlint 0 issues,
docs-link-audit --anchors 0 broken links, check-docs-mdx passed,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* docs(reference): stub the anchors main added, and relink extended-stable

Both found by ClawSweeper on the rebased head.

Main added three headings to RELEASING.md while this branch was open:
Previous updater compatibility, Design proposal: immutable runtime
generations, and Required checks. Re-extracting moved their content to
preflight.md but added no compatibility stubs, so links such as
/reference/RELEASING#previous-updater-compatibility lost their target.
Added four stubs — the punctuated heading emits both an encoded and a
cleaned id, and both are now covered.

Anchor preservation applies to content main adds mid-flight, not only to
what existed when the split was planned. Verified against main's current
file: 24 pre-split ids, 24 resolving on the index, 0 lost.

Also restored the second extended-stable cross-page link. The earlier
rebase reverted two of them; I fixed versioning.md but missed
beta-latest-sequence.md, which still said the path was "documented at
the top of this page" after that path moved to its own child. An
orphaned directional phrase passes every validator, which is why this
one survived a full gate run.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
check-docs-mdx passed, format-docs clean.

* Merge origin/main into docs-audit/split-releasing

Glossary conflict only; union keyed on source, 709 entries, 0 duplicate
sources. No page conflicted.

Ran the new .audit/check-orphan-refs.py over this tree: 0 directional
references remaining. That check exists because this branch shipped two
orphaned 'below' references past a full gate run, and they were found by
a reviewer both times.

markdownlint 0 issues, docs-link-audit --anchors 0 broken links,
format-docs clean.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

This PR has been waiting on release-manager review, and main moved under
it. Refreshed so it is mergeable the moment the owners approve.

openclaw#142538 added 41 lines on extended-stable validation dispatch to
docs/reference/RELEASING.md. Resolved to the index, then re-extracted
five child sections from main's current file so that content survives.
Verified line by line: 817 content lines on main, all present after the
split. The one apparent gap is the Tideclaw alpha line, which is present
with its link repointed at the npm-workflow-inputs child.

Re-extraction reverted the split's own repairs again, both kinds:
- four cross-page links fell back to same-page fragments and were
  repointed at the children owning those headings
- two orphaned directional references came back and were relinked,
  in versioning.md and beta-latest-sequence.md

The link reverts are caught by docs-link-audit; the prose reverts are
caught by nothing and were found with .audit/check-orphan-refs.py.

Anchor check against main's current file: 24 ids, 24 resolving, 0 lost.
markdownlint 0 issues, format-docs clean, check-docs-mdx passed.
docs-link-audit --anchors reports only the 3 pre-existing maturity
failures that also fail on a clean origin/main.

Still requires @openclaw/openclaw-release-managers approval.

* Merge origin/main into docs-audit/split-releasing

Three conflicts, resolved as follows.

docs/reference/RELEASING.md: kept the index (ours). main's only change to
this page since the merge base is a0a7528, which rewrote one paragraph
of the `update-first-hop-compat` lane inside "Release preflight". That
section now lives in docs/reference/releasing/preflight.md, so main's hunk
was applied there verbatim rather than dropped.

test/scripts/package-acceptance-workflow.test.ts: took main's version of
both hunks -- the recursive docs/ci walk and the new set-read over
docs/reference/full-release-validation/ -- and kept readReleasingDocs() as
the reader for the release policy page. readReleasingDocs() now walks
docs/reference/releasing recursively with toSorted(), matching the pattern
and the rationale main established for docs/ci.

docs/.i18n/glossary.zh-CN.json: order-preserving union. 1119 sources from
main + 10 from this branch = 1129, 0 duplicates, both sides' orders
preserved as subsequences. The 10 new entries were moved out of the
end-of-array collision zone to sit beside the parent "Release policy"
entry.

Losslessness re-proved against current origin/main:docs/reference/RELEASING.md
(body sha256 9159abcad8cc2afe9a823570ca852fe912f66ed27c6c85a40d6576c595c51230):
all 12 top-level sections are byte-identical once the 6 declared link
rewrites are reversed; concatenated sections hash
66734f4ef0c88c6f2a7153de8708a5a58c058ed1561843babcdd0dec77410104 on both
sides. Code fences 25 -> 25 with an identical (info string, body sha256)
multiset; 0 tables; words 14,179 -> 15,020.

* Merge remote-tracking branch 'origin/main' into docs-audit/split-releasing

* origin/main:
  fix(channels): preserve labels for unloaded plugins (openclaw#143416)
  refactor(tests): share image resource acquisition setup (openclaw#143443)
  refactor(hooks): consolidate source precedence policy (openclaw#143439)

* docs(release): retain the original split history

The canonical release-policy split landed in openclaw#156946. Preserve the original branch ancestry while retaining only its missing legacy publication anchor on current source.

* commit 'f478156122dcc285acb7413024c4ecfc3101e0c8':
  docs(reference): stub the anchors main added, and relink extended-stable
  docs(reference): split the release runbook by reader job

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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