Repository navigation
feat(update): keep the Gateway running while package updates prepare - #203497
Conversation
- Route package CLI, Gateway and scheduled updates through release trials. - Extract packages outside node_modules and retain forwarding rollback entries. - Stage user service conversion through the existing definition backup owner. - Preserve the shipped updater finalizer and compatibility dependency closure.
- Keep release-target overrides and downgrade consent before admission. - Reuse the existing package no-op decision and normalize catch handling. - Remove normal-entry swap, rehearsal, handoff and lifecycle assertions superseded by release trials. - Preserve standalone repair, post-core bridge and helper-owner contracts.
- Keep Homebrew and unresolved legacy recovery refusals before release delegation. - Prepare locally when an implicit local Gateway has no credentials. - Reject unrecognized Gateway installations without recording an update. - Remove remaining retired in-place test continuations and keep their current owner contracts.
- Keep the retained Linux preview contract without impossible Windows comparisons.
- Exclude root development dependencies before npm resolves the production graph. - Exclude checkout-only lifecycle hooks while preserving install scripts and runtime dependency declarations. - Cover the real-install npm peer-resolution failure without bypassing peer checks.
- Verify non-supervisor listeners through the existing native launchd membership owner before changing the service. - Keep foreign and unreadable listeners fail-closed, with dual-stack and detached-child regression coverage.
- Keep dev conversion and explicit packaged override replay at their existing owners. - Publish pre-release-path targets with the same launcher and a recorded no-rollback result.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
- Reuse the existing database schema admission owner for pinned Git and package targets. - Preserve one refused run with no staging, slot, service or forwarding changes.
|
Codex review: blocked before merge. What this changesThis PR prepares package updates beside the serving installation and uses the resident launcher to activate candidates and recover failed starts. Example: Run
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 9 items remain Keep open: this PR delivers useful package-update isolation, but introduces schema-admission, service-profile, and runtime-selection regressions, plus a concrete CI blocker. Priority: P1 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe CLI, Gateway update RPC, and automatic updater submit targets to the release owner, which prepares packages, stages service definitions, and publishes activation records consumed by the resident launcher. flowchart TD
A[Update CLI] --> D[Release update owner]
B[Gateway update RPC] --> D
C[Automatic updater] --> D
D --> E[Prepared package release]
D --> F[Service definition and trial]
F --> G[Resident launcher]
G --> H[Gateway candidate or previous release]
Technical reviewBest possible solution: Keep the shared release owner while reusing existing target-schema admission, target-owned fresh initialization, managed-service environment and runtime selection, and compliant test mocks. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the failing paths, including schema 41 versus released schema 36 and mismatched shell/service contexts; no reproduction was executed during this read-only review. Is this the best way to solve the issue? Extending the existing release owner is appropriate, but the smallest complete cutover must carry forward the existing compatibility and managed-service selection owners rather than bypass them. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against adb2f7c4d4bc. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +404, Tests -8499, Docs +8. Total -8087 across 79 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 22, 2026, 8:41 AM ET / 13:41 UTC. |
…release - Remove direct no-trial publication and its premature success result. - Keep launcher restart ownership independent of inherited native service markers. - Preserve schema admission and actionable local-override recovery guidance. - Repair mock export declarations and prune deleted test baselines.
|
Additional real-install qualification on source 28f6a9e, macOS arm64 / Node 24.21.0, through an isolated native LaunchAgent:
The earlier c370902 candidate's direct no-trial downgrade falsely reported success and left no listener after a native-handoff failure. That route was removed, not counted as a passing downgrade. The final source refuses unsupported targets safely. The qualification's quoted-tilde guidance defect is separately fixed in e6225d3 with a HOME-path regression; no additional runtime behavior changed. |
- Admit Bun through the existing SQLite capability probe instead of Node engines. - Install staged production dependencies with Bun and retain its runtime for release commands.
- Discover the single staged tarball rather than parsing npm pack output. - Read local target identity from its manifest so truncated pack metadata cannot refuse an otherwise valid archive.
- The staged manifest already omits development dependencies. - Preserve Bun lifecycle trust without its incompatible production flag.
- Reuse the existing bundled npm command owner for Bun tool checks and packing. - Keep the Node sibling-npm invocation unchanged and carry installer commands as argv.
- Published releases do not contain every checkout workspace. - Keep Bun production installs independent of those absent development directories.
- Bun imports pnpm-workspace.yaml even without a workspaces manifest field. - Remove the staged checkout-only workspace file before installing runtime dependencies.
…es-pr2 # Conflicts: # src/update/prepare.test.ts # src/update/run.ts
|
Rejected review findings:
|
…arget (#203944) ## What Problem This Solves `src/update/cli.test.ts` fails on `main` (3 cases: "preserves a one-off package tag" ×2, "restarts the local Gateway after preparing an explicit package tag"). Its fixture, added in #203497, pins the selected release at `2026.11.6`. Since `main` moved to `2026.11.7` (#203880, release close-out), those cases see a downgrade, wait for downgrade consent (unanswered in the test) and prepare nothing. It turns `checks-node-changed-1` red on PRs that touch the update CLI (seen on #203925). ## Change The default selected release is the build's own `VERSION`, set before each test; the downgrade case uses `2000.1.1`, which stays older than any build. Explicit `--tag` inputs are unchanged. ## Evidence - `ocx test src/update/cli.test.ts`: 17/17 (main at 2e8c1ad: 3 failed, 14 passed). Co-authored-by: Ayaan Zaidi <[email protected]>
…tate database (#203578) * fix(update): refuse migrating updates while a node service keeps the state open Refs #203457 * docs(update): explain the node-service migration refusal Refs #203457 * fix(update): match the node service's own state directory by filesystem identity A default node service omits the state selector and must not inherit the updater's; path aliases name one directory. Refs #203457 * fix(update): refuse every activation while a node service keeps the state open Update Doctor takes native exclusion of openclaw.sqlite on every activation, including patch updates without a schema change (#203457 reported 2026.11.5 -> 2026.11.6, both schema 36). Refuse whenever a running, kind-marked node service resolves to the same state directory, not only for pending migrations. Refs #203457 Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 19fcba1) Release adaptation: retain stable captureUpdateActivationSchemas destructuring and check node ownership only before first mutation, so Git revalidation after mutation does not report a pre-mutation refusal. Keep stable preparatory staging and check before any Gateway stop or installed activation. Release adaptation: keep only the node-service docs and regression in the conflict regions; the separate Gateway migration admission (#203170) is not a prerequisite and remains outside the lane. Companion audit: no later PR or SHA mentions through 665c286. #203497 (future package preparation) is not needed; the existing stable package/Git activation hooks already share the pre-stop boundary. #203981 is selected elsewhere and already present at lane base (f6ad5b5). Later #204275, #204253, #204224, #204127, #204094, #204095, #204151, #204054, #203994, #203990, #203917, #203959, #203926, #203925, #203915, #203914, #202934 and #203735 are not applicable as companions: independent Git, rollback, Doctor/recovery, plugin, output, docs and host changes do not supply or consume node-service admission. Validation: two same-state activation cases red on f6ad5b5 (wrongly reached mutation), three controls passed; all 73 tests in update-command-execution.test.ts passed with the fix. Co-authored-by: RomneyDa <[email protected]>
## What Problem This Solves The update rewrite's receipts did not prove what they claimed (audit 2026-11-23): every acceptance Gateway carried `OPENCLAW_UPDATE_PACKAGE_SPEC`, so real channel selection never ran; `T+1` was a re-stamped `T`, so no migration or restore ran; openclaw#203497 merged with macOS-only package proof, and Linux container failures (openclaw#203735, openclaw#203769) surfaced after merge. ## Change Adds "Proof for update changes" to the update implementation contract in `docs/install/updating.md` (the section repo `AGENTS.md` points to for update work): required platforms, what counts as a Gateway-route receipt, product-installed services with saved effective state, a real next build, freshness, `T → T+1 → T+2` for installed-side code, and replacement before retiring a fault lane. Each rule names the incident it comes from. ## Evidence Docs only; `git diff --check` clean. Audit and spot check: maintainer handoff `update-rewrite/consult-2026-11-23/`. Co-authored-by: Ayaan Zaidi <[email protected]>
…arget (openclaw#203944) ## What Problem This Solves `src/update/cli.test.ts` fails on `main` (3 cases: "preserves a one-off package tag" ×2, "restarts the local Gateway after preparing an explicit package tag"). Its fixture, added in openclaw#203497, pins the selected release at `2026.11.6`. Since `main` moved to `2026.11.7` (openclaw#203880, release close-out), those cases see a downgrade, wait for downgrade consent (unanswered in the test) and prepare nothing. It turns `checks-node-changed-1` red on PRs that touch the update CLI (seen on openclaw#203925). ## Change The default selected release is the build's own `VERSION`, set before each test; the downgrade case uses `2000.1.1`, which stays older than any build. Explicit `--tag` inputs are unchanged. ## Evidence - `ocx test src/update/cli.test.ts`: 17/17 (main at 165da77: 3 failed, 14 passed). Co-authored-by: Ayaan Zaidi <[email protected]>
…ate acts on it (#201668) * fix(update): verify recorded data-at-risk marks before repair acts on them * fix(update): verify any unverified data-at-risk mark and honor receipts in handoff recovery * fix(update): recognize a Git release-mode service as its checkout's own * fix(update): check a recorded data-at-risk mark before the next update, including already-current runs * fix(update): lead data-at-risk refusals with triage and record them on the refused run * fix(update): keep data-at-risk refusals within the recorded warning limit * test(e2e): finish the seeded data-at-risk run with a terminal phase * fix(update): name the agent route in killed-update recovery refusals * fix(update): drop an unused import * test(update): expect the agent route in killed-update refusals * fix(update): verify the newest mark before restoration without comparing run ids * fix(update): address review: keep the Gateway down on any inconsistent mark, resolve all marks, harden release ownership * fix(update): break the admission-root import cycle and type the e2e schema read * fix(update): address rating findings: agent rollback leftovers, helper restart, blocking findings first, shared Git metadata * test(e2e): prove the next plain update resolves a mark with the Gateway running * fix(update): address rating round 2: refuse marks before Doctor, registry-based rollback check, handoff fallback, async history read * test(update): pick the repair run, not a settlement row, in the data-at-risk cell * fix(update): resolve live-writer marks after Doctor holds the state * fix(doctor): say a skipped stale-Gateway stop left the PID running * fix(update): address rating round 3: leftovers before deferrals, retained rollback files, refusal after Doctor fails finalization * docs(update): note retained rollback files and refusals after Doctor * fix(doctor): say a stale Gateway stop could not be confirmed when nothing shows it running * fix(update): address landing review: revert release-mode ownership, check leftovers first, handoff entry guard, durable rollback evidence * test(update): follow main's Git release link layout in the launcher refusal test * fix(update): treat uninspectable leftovers and unreadable databases as unchecked; true wording after Doctor Release adaptation: Retain the stable installed-recovery harness. Do not add main's installed Docker service cell, later retired by #203808, or Git release-launcher wording/test because stable uses the in-place Git updater. Keep the state-verification, next-update, repair and interrupted-handoff paths and their compatible regressions. Companion audit: #203486 is present-equivalent at 3081077 (preserved). #201978 is selected next in this lane. #203808 and #203966 involve the inapplicable installed service-cell layout; #203497 and #203194 change main's package/Git activation layout and are not applicable; #204017 depends on that release-install layout. #204077, #204043, #203555 and #203520 are independent authority, cleanup, helper-fixture and config-validation changes. #204151, #203917, #203849 and #203406 are separate guidance, cleanup or status changes, not required by the data-risk verifier. #203569 fixes a separate cron receipt fixture in the same Doctor suite; the touched stale-stop cases do not depend on it. (cherry picked from commit a28f211) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f8d4bc138ed2512c413cf96f66fe0eefb3b28d65)
…01978) * fix(update): copy original state only at the first state change * docs(update): say when the original-state capture is taken * fix(update): copy before a Gateway handoff, legacy config repair, or a fresh post-core process * test(update): expect the copy before a fresh post-core process * test(update): prove real Git and release updates copy at their mutation hook * fix(update): copy after the last pre-stop refusal and before writing a changed channel * test(update): a refused update copies nothing; sort run ids with a comparator * fix(update): copy before plugin records publish, outside the update deadline, and only once a handoff is certain * fix(update): copy before the combined plugin index write, every channel write and a fresh post-core launch, outside every update clock * fix(update): let the lazy capture follow this run's prepared package publication * test(update): drive the Git no-op capture case through the release runner * style(test): sort merged imports Release adaptation: Keep stable’s in-place Git runner and its existing service and rollback paths. Route the Git no-op fixture through updateGitCheckout and retain the before-mutation capture assertions. Omit the prepared Git release branch and its release-link-only tests. Merge the Doctor and fresh-handoff timing checks alongside the stable-only handoff coverage. Stable arms the executor clock before already-current package maintenance; keep both its timer and its synchronous fence/SQLite deadline checks paused during separately bounded capture. Exercise a live fence assertion after the original activation deadline elapses inside excluded work. Companion audit: #203578 is present-equivalent at e396e3f; its stable state-ownership guard is preserved. #203194, #203497 and #203926 apply to main’s newer release staging/activation flow and are not applicable here. #204127 changes when plugins are installed after activation, #203917 concerns retained-runtime cleanup, #202934 adds a separate macOS Git prereq, and #204151 is independent handoff repair guidance. None is required for lazy original-state capture. (cherry picked from commit a577911) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 1a2e6a7bec75074a150a684848990710c3fddc48)
## Problem The scheduled Install Smoke has been red since 2026-11-24 (run 45318966120, step "Verify candidate already-current no-op without a Gateway service"). The last green run was on 2026-11-23. #203497 moved package updates to the release path in `src/update/`. On that path, `prepareUpdate` treats an explicit artifact (`--tag <tgz>`) as already current only if it is a registry target (`isPackageTargetAlreadyCurrent`). An artifact with the same version and the same build identity as the installed package was staged, validated and started as a trial, and the update ended `running` (phase `activating`). The user asked for the build that is already installed, but got a new release and a trial. ## Fix - `src/update/run.ts`: after preparation, an explicit package artifact is current when its version and its known `buildId` are the same as the running install's. The run records `skipped` / `already-current`. It publishes no release and starts no trial. A missing build identity does not count as a match, so a rebuilt artifact at the same version still updates (the #144894 contract). - `scripts/docker/install-sh-smoke/run.sh`: the no-op validator now reads the release update record: `skipped`/`already-current`, artifact staged (`prepare:pack`), no `validating`/`activating`, installed `build-info.json` buildId unchanged. The legacy JSON branch stays for shipped updaters. ## Evidence - `src/update/prepare.test.ts`: new cases `build: installed` (current, no release, no trial) and `build: rebuilt` (still pending). On base 689d524-descended main, `build: installed` fails (`expected { status: 'pending' } to match { status: 'current' }`). On head, 33/33 pass. - Local Docker install smoke, update group (`OPENCLAW_INSTALL_SMOKE_GROUP=update`), from latest stable 2026.11.7 to this candidate: the update completes, and the already-current no-op prints `Verified already-current no-op: artifact staged, installed build unchanged, no activation`. The record is `phase: finished, status: skipped, reason: already-current`. - `pnpm check:changed`: clean. ## Risk This changes the update path only when an explicit artifact carries the installed build identity. Every other target goes through preparation and the trial as before. Co-authored-by: Ayaan Zaidi <[email protected]>
…w#204426) ## Problem The scheduled Install Smoke has been red since 2026-11-24 (run 45318966120, step "Verify candidate already-current no-op without a Gateway service"). The last green run was on 2026-11-23. openclaw#203497 moved package updates to the release path in `src/update/`. On that path, `prepareUpdate` treats an explicit artifact (`--tag <tgz>`) as already current only if it is a registry target (`isPackageTargetAlreadyCurrent`). An artifact with the same version and the same build identity as the installed package was staged, validated and started as a trial, and the update ended `running` (phase `activating`). The user asked for the build that is already installed, but got a new release and a trial. ## Fix - `src/update/run.ts`: after preparation, an explicit package artifact is current when its version and its known `buildId` are the same as the running install's. The run records `skipped` / `already-current`. It publishes no release and starts no trial. A missing build identity does not count as a match, so a rebuilt artifact at the same version still updates (the openclaw#144894 contract). - `scripts/docker/install-sh-smoke/run.sh`: the no-op validator now reads the release update record: `skipped`/`already-current`, artifact staged (`prepare:pack`), no `validating`/`activating`, installed `build-info.json` buildId unchanged. The legacy JSON branch stays for shipped updaters. ## Evidence - `src/update/prepare.test.ts`: new cases `build: installed` (current, no release, no trial) and `build: rebuilt` (still pending). On base 9d7a8f2-descended main, `build: installed` fails (`expected { status: 'pending' } to match { status: 'current' }`). On head, 33/33 pass. - Local Docker install smoke, update group (`OPENCLAW_INSTALL_SMOKE_GROUP=update`), from latest stable 2026.11.7 to this candidate: the update completes, and the already-current no-op prints `Verified already-current no-op: artifact staged, installed build unchanged, no activation`. The record is `phase: finished, status: skipped, reason: already-current`. - `pnpm check:changed`: clean. ## Risk This changes the update path only when an explicit artifact carries the installed build identity. Every other target goes through preparation and the trial as before. Co-authored-by: Ayaan Zaidi <[email protected]>
…#203236) * fix(update): back off identical automatic update failures Automatic campaigns retried a target that kept failing the same way before activation (for example managed-service-stop-failed) every hour forever. One install accumulated ~330 failed runs, each costing a validation pass and a candidate state snapshot. The campaign already used the newest terminal run rows as its durable backoff fact for repeated activation failures. Extend that streak to every identical failure class for the same target: keep the hourly first retry, then wait 2, 4, 8 and 16 hours and once a day after six. A new target, a success, or a manual update breaks the streak. No new state, store, or config. Refs #202954 * test(update): assert backoff expiry before the new-candidate reset Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit adc0876) Companion audit: #203194 and #203497 change update architecture and are not needed by the backoff; #203274 is chat reset cleanup, #203528 is node credential repair, and #203578 adds a separate database custody refusal. #203152 addresses stopping a Gateway after a Node runtime respawn, not pre-mutation outcome history; no dependency on that process-shutdown repair. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Global npm, pnpm, and Bun updates replace the package underneath the running Gateway. A broken candidate or a failed restart can leave it stopped, and the running updater must keep recovering code that has already been replaced.
User Impact
Owned global package installs now prepare the next release beside the serving one, as Git installs do since #203194. The resident launcher commits the trial when the new Gateway becomes ready, or starts the previous release again when the candidate cannot start.
--no-restartleaves the serving Gateway alone and activates the same rollback-protected trial at its next start. Plugin maintenance uses the new release's code; plugin problems are reported without failing the core update.Why This Change Was Made
The CLI, Gateway
update.run, and automatic updates share the release owner. Packages are packed and extracted outsidenode_modules, then production dependencies are installed there. Staged manifests omit development dependencies and checkout-only preparation hooks while retaining runtime dependencies, peer checks, and install hooks. Existing global entry points forward to the launcher; owned user-service definitions are staged through the existing definition-backup owner, without stopping the serving Gateway. System-owned definitions retain forwarding entries. Native restarts verify the listener's launchd job membership when the resident launcher, rather than its Gateway child, is the supervised PID.Unowned installs and unfinished legacy recovery retain their existing admission owners. Explicit package artifacts, package-spec overrides, downgrade consent, campaign targets, local-only delegation, and timeout budgets are preserved.
Package dev-channel selections still use the existing Git conversion owner. Schema compatibility is checked against pinned Git/package metadata before staging, so an older release cannot strand the Gateway on newer state.
Accepted compatibility boundaries:
update.runcannot yet carry package target specs,--accept-capabilities, or the invoking checkout identity. Explicit package specs stay local; the optional protocol fields and their caller migration follow separately. This PR does not change that protocol. Deletions follow in PR 3; the explicit local-override owner and shipped-updater bridge remain until their compatibility readers can be retired.Accepted edge cases:
--reapply-local-overridesis temporarily refused instead of silently losing edits or reintroducing another activation owner. Save edits, update without the flag, then reapply them manually. Staged replay restoration with real update/rollback proof is tracked in Restore trusted local dist override replay in prepared release updates #203498.update.runcannot yet carry--channelor--accept-capabilities. The CLI saves the channel first, but a Gateway withgateway.reload.mode=off(or inside the reload debounce) can prepare the previous channel, and plugin maintenance runs without the consent. Both arrive as optionalupdate.runfields in fix(update): preserve plugin consent and target the invoking installation #203504; the same channel gap exists for Git installs since feat(update): Git installs update through prepared releases and a resident launcher #203194. Today--no-restart(in-process preparation) carries both.openclaw update status), but the new run's CLI report does not repeat it, as the in-place executor's report did.--tag, prepares the release in the invoking installation instead of the served one; the served Gateway restarts on its current version. Carrying the admitted service target is part of fix(update): preserve plugin consent and target the invoking installation #203504.--full-integrity-checkis not yet carried to the release path's verification. Tracked in update: --full-integrity-check is silently ignored on the release update path #203629.The shipped updater requires more than a schema-only finalizer: executor delegation, retained-owner binding, and Gateway restart completion remain necessary. The bridge and its dependency closure are retained unweakened; their deletion follows in PR 3, after the supported upgrade floor passes the release containing this change. No schema, protocol-version, or runtime dependency version/range changes.
Using the same production update-surface selection as #203194: 114,944 → 115,339 lines (+395); 107,033 → 107,418 code lines (+385). Outside that selection, the native launchd listener-ownership fix and launcher-child restart routing preserve native restarts. The complete diff removes 8,474 net test/support lines that asserted retired normal-entry swap, rehearsal, handoff, and lifecycle execution; standalone repair, shipped post-core continuation, and helper-owner contracts remain. Overall: 2,212 additions / 10,255 deletions (−8,043 lines) across 82 files.
Evidence
2026.11.6updater → final sourcee72deb6d3625b81e915bd8f4b87461d5eb75859f, terminal succeeded; 19,774 installed files,/readyz200, and Gateway RPC verified after the recorded manual restart. Automatic first-hop restart is not claimed.--no-restartretained the serving PID with 102 ready samples until the next start committed C. Real plugin maintenance updated lossless-claw 1.1.1→1.2.0, and a refused downgrade wrote no update run.e72deb6d3625b81e915bd8f4b87461d5eb75859fpassed physical-home macOS LaunchAgent conversion through managedupdate.run, two subsequent ordinary native restarts, and B→C--no-restartfollowed by a committing native restart. The frozen service definition and resident parent→Gateway relationship were preserved. An actual updater SIGKILL immediately after definition-backup creation also preserved the old serving Gateway; retry staged successfully and one restart committed the candidate.pnpm -s tsgo:corepassed. The touched/direct-and-support-importer set runs together in oneocx testcall.c3d8f62d9b(Node 24.21.0): A→B through the release path, one succeeded run, the trial committed after one restart (123.0 s), B verified by RPC build id and/readyz200, the staged manifest without development metadata and with all 76 runtime dependencies andpostinstallkept.b40cfee13e(after the CI-round fixes to refusal order, launcher-marker cleanup and restart ownership), same method on macOS arm64, Node 24.21.0: A→B through the release path, CLI exit 0, one succeeded run, trial committed after one restart (update wall 111.8 s), B serving with/readyz200 and RPC build id2026.11.6-b40cfee13e04-…; all 76 runtime dependencies andpostinstallkept.node:sqlite, through the existingisBunRuntime/resolveBunRuntimeInfoowner) instead of comparing Bun's version withengines.node; packing uses the existingresolveNpmCommand(npm bundled with Bun, so a Bun-only host needs no system npm or Node) with--quiet, taking the tarball from the pack destination instead of parsing the multi-megabyte--jsonlisting; the staged install runsbun install --trust; the staged manifest also drops checkout-onlyworkspaces. Node installs keep the sibling npm. Real proof on macOS arm64 with Bun 1.4.5 (c06f48cf9f): A→B through the release path, a--no-restartpending trial committed on the next start,ready/coreReady, a succeeded row, Bun as both launcher and Gateway runtime.check:changedSQLite-worker ratchet exhausted its fixed 4-GiB heap, as on feat(update): Git installs update through prepared releases and a resident launcher #203194; that ratchet is left to hosted CI.Merge Danger
One-way install conversion: reverting source alone does not remove the release store, forwarding marker, or staged service definition. Previous releases and definition backups remain available. Writes during a failed trial can be lost; PostgreSQL migrations do not have data rollback. Blast radius: owned global package updates through the CLI, Gateway, and scheduler; shared read-only admission guards; and launchd restart ownership checks for resident-launcher Gateways.