Skip to content

fix(update): keep old updaters able to restart the Gateway - #142195

Merged
steipete merged 7 commits into
mainfrom
steipete/upd-bridge-0908
Sep 8, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/upd-bridge-0908

Conversation

@steipete

@steipete steipete commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem and root cause

An already-running updater can install a new package, pass Doctor, and then fail to restart the Gateway because replacement removed a hashed module it imports lazily. Related: #92241; this PR does not close the broader running-Gateway rollback issue.

The 2026.9.1 service helper lazily resolves resolveNodeRunner through shared.js. Its npm artifact emits that import as shared-DFJEouXv.js. Released 2026.9.2 only supplied manually listed older bridges; #139660 later added this hash to main. Preloading the updater execution module did not preload the later service facade.

Solution and impact

Generate compatibility files from verified release artifacts across the supported upgrade window, tracing consumed exports to their current implementations. Missing or ambiguous mappings and conflicting cross-release origins fail closed. Existing public targets are validated without replacement. Empty import surfaces remain explicit release entries.

Release Hashed targets Stable targets Total
2026.9.1 14 3 17
2026.9.2 11 3 14
2026.9.3 14 3 17

The recorder accepts repeatable --release <unpacked-directory>=<verified-npm-integrity> arguments and writes version order. Regeneration replaces the window; releases outside the supported window are dropped instead of accumulating indefinitely. All three npm tarballs were verified against SHA-512 integrity before unpacking. No cross-release origin conflict or missing required implementation was found.

pnpm update:compat:check verifies current npm latest and beta coverage and prints the complete refresh command when a version is missing. Release preparation and prepared-release packing run it. Ordinary PR checks and ordinary source packing remain offline; explicit artifact regeneration checks are also offline.

The Linux first-hop lane defaults to every recorded release, verifying source integrity, installed build identity, changed service PID, transaction cleanup, and a second hop without generated bridges. Only 2026.9.1 has the deterministic missing-service-import negative control; 9.2 and 9.3 already preload that helper and record why this negative is not applicable. Native current hashed modules survive bridge removal. Explicit legacy source selection remains available.

Evidence

Mapper follow-up at db8fabba64d0f022d12a67086d53582c87db6125: Promise chains use full namespace enumeration; star ambiguity is resolved by concrete declaration binding with explicit-export precedence; source forwarding follows local aliases and unambiguous stars. All 147 focused mapper/postbuild/fixture/planner tests passed, including 14 new regression/control cases and native Node namespace verification. The three-release inventory regenerated byte-identically (SHA-256 035b0464c790b53db7ebc996ed2a7e59236d374f66f3a6517fb90b72b7c1d461); all 35 existing built bridges and 41 checked build files are unchanged. pnpm check:changed, both diff checks, and independent P0–P2 review passed. Only the mapper and its existing test suite changed (+314/−45).

The ten-minute exact-head watch of run 34252435313 finished; the last snapshot was in progress with 113 passed, seven failed, three running, and 11 skipped. Six failures are in the model-catalog UI/type surface already present in CI’s main parent 58fcf69cadd0be59ecee41b21b655f195ccda7b2: the refreshIfDue caller/type mismatch, removed invalidateModelCatalogCache, and catalog-discovery tests. The caller and loader blobs are identical between that parent and CI’s merge. build-artifacts failed while finalizing discord-component-attachments.zip with an intermediary HTTP 403. These are outside the mapper changes; CI is not green, and no unrelated fix or rerun was attempted.

Prior AWS-tested head: f986ab9d1db63df4773c0d019c149bff1d40f3e0. The fresh candidate passed clean build, package integrity, and complete installed-import-graph checks. Its SHA-256 is e37007f307319b3b37c38d25565551ce5fe2618ed72b0aba7ad68524f6644494 (61,163,520 bytes; build ID 2026.9.2-f986ab9d1db6-2026-09-08T15-50-20.686Z). The AWS Linux three-release matrix passed in 11m 10.844s with native/wrapper exit 0 and no runtime reruns. All three first hops installed this exact build and restarted to new service PIDs; all three second hops succeeded with generated bridges absent and no transaction residue. PID sequences were 1802 → 5113 → 7523 (9.1), 423 → 1789 → 5056 (9.2), and 430 → 2904 → 6257 (9.3). The 9.1 negative control reproduced missing shared-DFJEouXv.js; 9.2/9.3 recorded its inapplicability.

  • All 497 focused tests passed across runtime-postbuild, CI and Docker planners, first-hop fixtures, release preparation/prepack, and the three existing admission-fixture suites. The compact GitHub planner remains at its unchanged 80-job cap. Stale preparation and prepared packing failed the new regressions before repair. A test-only undefined-index typing error was corrected with named fixtures; its 23-test owner suite passes.
  • Actual three-artifact regeneration matches the recorded inventory. The live registry check passed with latest=2026.9.3 and beta=2026.9.1. npm 12's array-shaped JSON uses the existing repository normalizer. CLI tests use fake npm executables and perform no registry requests.
  • Independent Codex P0–P2 reviews are clean. pnpm check:changed and staged/working-tree git diff --check passed. The previous head’s ten-minute exact-head watch attached to run 34247343527 and ended with 116 passed, six running, 11 skipped, and one failed UI shard. The failure is chat-flow.image-handoff.e2e.test.ts:148, called at line 229: the original image DOM node detaches during custody-to-canonical history loading. The entire UI tree, runner/setup, shared packages, and lockfile are unchanged from the PR base; this mocked-Gateway test builds its own UI bundle and does not execute the package updater or compatibility chunks. It is a separate UI follow-up, not a proven flaky test. No assertion was weakened or rerun to hide it. That run’s terminal CI result was failure: 122 jobs passed, 11 skipped, this UI shard failed and the aggregate CI gate failed accordingly.
  • The accepted native Windows proof remains attributable to b2afba621cabd8d060c675537f6fc6e725906706: the unchanged 2026.9.1 npm-global updater exited 0, the Scheduled Task became Running, and HTTP/readiness/authenticated RPC and exact candidate build checks passed without manual start. Gateway/updater runtime source remains unchanged in this follow-up; the lead accepted retaining that proof.

Candidate metadata is not version-bumped for this PR. The 9.3 → candidate test therefore selects an explicit lower-version tarball; the exact build and PID assertions proved real replacement rather than a version-based no-op.

Remaining architectural boundary

These bridges preserve import/export compatibility, not old module-local state. A future package cannot retrofit the already-published rollback target reported in #92241. The design-only immutable-generation proposal documents npm bookkeeping and npm ls -g, prefix layouts, Windows junctions/open handles, pnpm global projects and cleanup, Bun launchers, sibling-package ownership, and retaining live generations. No generation-directory implementation, runtime configuration option, environment-variable name, dependency, version, SQLite schema, or persistent-store change is introduced.

All task-owned Docker containers were removed, and the AWS lease is verified released with no host remaining. The initial managed Actions setup failed before executing setup; the supported direct AWS path used a separate checkout with verified source and toolchain. No lock recovery, merge, or publication was performed.

@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 docker Docker and sandbox tooling size: XL maintainer Maintainer-authored PR labels Sep 8, 2026
@steipete
steipete marked this pull request as ready for review September 8, 2026 13:44
@steipete
steipete requested a review from a team as a code owner September 8, 2026 13:44
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. 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:10 PM ET / 17:10 UTC (Revision 10).

ClawSweeper review

What this changes

Generates release-specific compatibility modules so older updaters can restart the Gateway after package replacement, and adds release checks and upgrade coverage.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful beyond the existing one-off compatibility bridge on main. No actionable introduced defect was found, and the supplied upgrade evidence addresses the previous compatibility-proof concern; the new inventory is build metadata, not a persistent-store migration.

Priority: P1
Reviewed head: 43152737fc40b69c3afdfbd5def05aac312d2724

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful compatibility repair with strong upgrade evidence and no actionable correctness findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied Linux package-update traces exercise real old updaters and Gateway processes through a service shim, with exact installed-build checks, changed PIDs, a missing-import negative control, and successful bridge-free second hops. Retained native Windows proof covers Scheduled Task restart without manual start; tree comparisons preserve the relevant proof continuity.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The supplied Linux package-update traces exercise real old updaters and Gateway processes through a service shim, with exact installed-build checks, changed PIDs, a missing-import negative control, and successful bridge-free second hops. Retained native Windows proof covers Scheduled Task restart without manual start; tree comparisons preserve the relevant proof continuity.
Evidence reviewed 8 items Introduced implementation and safeguards: The mapper preserves existing targets, checks required exports, rejects ambiguous or missing mappings, and completes mapping before writing generated modules. Its inventory output is packaged build metadata.
Current-main solution is narrower: Pinned main manually emits shared-DFJEouXv.js alongside older Node-runner bridges. The generated release inventory and freshness gate remain unique to this branch.
Merged related repair: GitHub verifies #139660 merged as 53b3ac0. It supplies the specific 2026.9.1 bridge, not this branch's broader generated compatibility mechanism.
Findings None None.
Security None None.

How this fits together

The package build produces compatibility modules for imports that older, already-running updaters may request after replacing their installation. Those modules connect the old updater to current implementations so update completion and Gateway restart can proceed.

flowchart LR
  A[Verified release artifacts] --> B[Record updater imports]
  B --> C[Compatibility inventory]
  D[Current compiled modules] --> E[Validate export mappings]
  C --> E
  E --> F[Packaged compatibility modules]
  F --> G[Old updater completes restart]
Loading

Before merge

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

Security

None.

PR surface

Tests +932, Docs +85, Config +2, Other +2308. Total +3327 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 954 22 +932
Docs 2 86 1 +85
Config 1 2 0 +2
Generated 0 0 0 0
Other 11 2373 65 +2308
Total 22 3415 88 +3327

Review metrics

Metric Value Why it matters
Compatibility coverage 3 recorded releases; 2 registry tags checked The build covers the declared upgrade window and release preparation detects newly published baselines.
Production versus test growth Production/build tooling +898 net lines; tests/E2E support +1095; generated inventory +1249 Growth supports export tracing and upgrade verification rather than additional runtime configuration.

Stored data model

Persistent data-model change detected: database schema: scripts/lib/update-compat-chunks.mts, database schema: scripts/lib/update-compat-inventory.json, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh, serialized state: scripts/e2e/lib/update-first-hop-package-fixtures.mjs, serialized state: scripts/e2e/update-first-hop-compat-docker.sh, unknown-data-model-change: scripts/e2e/lib/update-first-hop-package-fixtures.mjs, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Maintain a bounded, artifact-derived upgrade contract while keeping running-Gateway rollback recovery separately tracked.

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

Yes—the supplied 2026.9.1 negative control exercises package replacement followed by a missing lazy restart import. This review verified the source path without executing a current-main reproduction.

Is this the best way to solve the issue?

Yes—the build-owned compatibility mapping extends the established released-updater contract, with explicit failure checks and relevant upgrade evidence.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: Compatibility failures after package replacement can leave an otherwise upgraded Gateway stopped.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The supplied Linux package-update traces exercise real old updaters and Gateway processes through a service shim, with exact installed-build checks, changed PIDs, a missing-import negative control, and successful bridge-free second hops. Retained native Windows proof covers Scheduled Task restart without manual start; tree comparisons preserve the relevant proof continuity.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied Linux package-update traces exercise real old updaters and Gateway processes through a service shim, with exact installed-build checks, changed PIDs, a missing-import negative control, and successful bridge-free second hops. Retained native Windows proof covers Scheduled Task restart without manual start; tree comparisons preserve the relevant proof continuity.

Evidence

What I checked:

  • Introduced implementation and safeguards: The mapper preserves existing targets, checks required exports, rejects ambiguous or missing mappings, and completes mapping before writing generated modules. Its inventory output is packaged build metadata. (scripts/lib/update-compat-chunks.mts:641, 43152737fc40)
  • Current-main solution is narrower: Pinned main manually emits shared-DFJEouXv.js alongside older Node-runner bridges. The generated release inventory and freshness gate remain unique to this branch. (scripts/runtime-postbuild.mts:198, f74837eec914)
  • Merged related repair: GitHub verifies fix(update): finish npm upgrades from 2026.9.1 #139660 merged as 53b3ac0. It supplies the specific 2026.9.1 bridge, not this branch's broader generated compatibility mechanism. (53b3ac083135)
  • Real upgrade evidence: The captured PR body, sourceRevision e102557df9e4fd5c66e2df77b83a9f754f691bc06492cda30d5662f678ee9c03, reports three successful Linux first hops into the identified candidate, changed Gateway PIDs, successful bridge-free second hops, and no transaction residue. The 2026.9.1 negative control fails on shared-DFJEouXv.js. The inspected Linux harness uses a systemctl shim that launches real Gateway processes; it is not native-systemd proof. Separate retained Windows evidence identifies b2afba6 and records Scheduled Task restart plus readiness/RPC checks without manual start. (scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh:185, f986ab9d1db6)
  • Proof continuity: GitHub's complete tree for the Linux-tested head and local HEAD have identical blobs for the recorded inventory and both first-hop harness scripts. The body separately reports unchanged generated bridge bytes after the mapper follow-up. (scripts/lib/update-compat-inventory.json:1, f986ab9d1db6)
  • Previous review reconciled: The previous review retained no findings or published rank-up moves. GitHub tree inspection confirms the mapper, inventory, and postbuild test blobs are identical between its reviewed revision and this checkout. Its generic migration-proof next step does not establish a remaining blocker: no user-store format changes, and concrete upgrade evidence is supplied. (scripts/lib/update-compat-chunks.mts:703, db8fabba64d0)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: 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.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-08T14:01:52.981Z sha b2afba6 :: blocked before merge. :: none
  • reviewed 2026-09-08T14:38:47.037Z sha 18c800a :: blocked before merge. :: none
  • reviewed 2026-09-08T15:22:20.083Z sha 6ddec44 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T15:33:35.762Z sha 6ddec44 :: blocked before merge. :: none
  • reviewed 2026-09-08T16:12:00.992Z sha f986ab9 :: blocked before merge. :: none
  • reviewed 2026-09-08T16:29:32.757Z sha f986ab9 :: blocked before merge. :: none
  • reviewed 2026-09-08T16:47:37.736Z sha db8fabb :: blocked before merge. :: none
  • reviewed 2026-09-08T16:59:53.635Z sha db8fabb :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 8, 2026
@steipete
steipete force-pushed the steipete/upd-bridge-0908 branch from db8fabb to 4315273 Compare September 8, 2026 17:04
@steipete
steipete merged commit 05bf4e0 into main Sep 8, 2026
319 of 321 checks passed
@steipete
steipete deleted the steipete/upd-bridge-0908 branch September 8, 2026 17:43
@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
…142195)

* fix(update): preserve old updater imports across package swaps

* chore(build): keep compatibility inventory types private

* test(build): preserve generated compatibility artifacts in fixtures

* test(build): include recorded bridges in source runner fixtures

* test(build): consolidate compatibility coverage under postbuild

* fix(update): cover the supported updater compatibility window

* fix(update): resolve compatibility exports with ESM semantics
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

docker Docker and sandbox tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. 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