Repository navigation
fix(updater): bundle the interim Team deployment controller - #168319
Conversation
|
🦞👀 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. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR bundles the interim Team deployment controller, documents adoption, and adds private operator configuration and tooling classification. Example: Night Watch stages the reviewed controller from commit c9306fa.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep open: this PR provides a useful repository-owned Team controller while native update still lacks its complete migration and recovery replacement. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherNight Watch invokes the privileged controller with operator policy and existing installation state; it prepares sealed releases, coordinates Gateway suspension, and records deployment or recovery outcomes. flowchart TD
A[Night Watch and operator profile] --> B[Deployment controller]
B --> C[Sealed release preparation]
B --> D[Gateway suspension owner]
D --> E[Systemd lifecycle]
B --> F[Journal and Doctor recovery]
E --> G[Native acceptance receipt]
F --> G
Technical reviewBest possible solution: Maintain one adopted controller until the native updater proves the remaining migration, recovery, and retirement contracts. Do we have a high-confidence way to reproduce the issue? This is primarily a relocation; reported controller repairs have synthetic negative controls, but no live failure was reproduced during this read-only review. Is this the best way to solve the issue? A versioned closure with explicit adoption and retirement boundaries is a reasonable interim solution, provided it remains outside ordinary runtime packaging. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 587a19170f3c. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No concrete security bypass was established, but final-effect authority across the privileged deployment boundary remains unproven. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +9834, Docs +284, Other +23997. Total +34115 across 44 files. Added test files: 31. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 10, 2026, 3:55 AM ET / 07:55 UTC. |
What Problem This Solves
The Team updater skill needs an installable, verifiable controller from an OpenClaw commit while native
openclaw updatecompletes the migration and recovery handoff.User Impact
Operators can stage a complete four-file closure from this repository. Night Watch remains the executor, per-deployment approval remains required, and automatic deployment stays disabled. Adoption requires the incumbent's approved expectations in a private operator profile. This PR performs no deployment, restart, schema migration, or package publication; it claims no runtime speedup.
Why This Change Was Made
Imports the deploy controller, release library, pinned suspension bundle, startup profiler, and standalone Node tests from Manager
d02035d40a9a2a9d73afee700aec26a10d1c66a9. The README records original source hashes, install ownership/modes, complete-pair adoption, exclusions, and the native replacement boundary. The generated bundle's TypeBox license is retained.Deployment-specific channel, model-agent, policy, and handoff endpoint expectations now come from a required private operator profile. The suspension bundle and startup profiler are byte-identical to the specified source. The deploy script and library differ through documented privacy substitutions and nine review repairs: absent user-bus handling, PID generation checks during source export, same-phase optional-profile closure, pointer-publication failure propagation, pre-mutation workspace containment, captured transcript-generation checks, rollback handoff ordering, restored predecessor verification, and persistent timer catch-up settlement. Persisted record formats are unchanged. Tests use synthetic identities and endpoints and retain the production ownership and capacity guards.
The old mutable updater, installer/inventory test, one-off host transaction tools, service/timer templates, and historical provenance bundle are excluded. Existing service configuration stays operator-owned. Imported JavaScript retains source formatting because the bundle hash and boundary fixtures depend on exact bytes. Changed-path routing recognizes this specific skill owner as maintainer tooling; its Node tests stay outside default Vitest projects.
The requested non-TypeScript-test diff filter reports 41 files, +33,869/-5 lines (it includes the opt-in
.test.mjsfiles). The four runtime files add 22,908 lines, including the unchanged 9,205-line generated suspension bundle; the small routing change removes one net line. This growth is the requested relocation of an existing installed deployment/recovery contract. Its removal requires proven native replacement and settlement of legacy transactions.Evidence
Validation uses disposable Linux; no suites, builds, or typechecks ran on the saturated development host.
hetzner, leasecbx_5bb790109896: full imported Node suite with real root-owned Node/Bun, bubblewrap, synthetic services/state, and disk-backed temporary storage. Initial full run: 793 root tests, 786 passed and 7 failed, no skips (1,910.24 s); ordinary-user offline Doctor: 237/237 passed, no skips (513.91 s). The failures exposed fixture assumptions plus the missing-table regression. Both complete affected sibling files then passed 66/66 tests, no skips (572.99 s); the 15 affected release cases also passed, no skips (489.48 s). Every one of the seven initial failures has a passing replay./srv/rig/wt-lane727:node scripts/check-changed.mjs --stagedpassed, including all three root-tooling typechecks, dead-export scans, and lint. The final staged replay passed (exit 0); all three typecheck lanes, dead-export scans, and lint remained green.node scripts/run-vitest.mjs test/scripts/eager-import-closure.test.ts test/scripts/pr-wrapper-source-closure.test.ts test/scripts/ci-node-test-plan.test.ts test/scripts/ci-node-test-plan.commands.test.ts test/scripts/changed-path-facts.test.ts test/scripts/changed-lanes.test.tspassed: 213 tests across six files, 167.68 s wall time, plus the export-name collision guard.These opt-in Node integration tests add no default CI execution time. This proves the synthetic controller boundary, not a live systemd cutover or deployed behavior. The private profile and complete-pair adoption still require Night Watch's reviewed execution.