Repository navigation
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: blocked before merge. Reviewed September 24, 2026, 5:50 PM ET / 21:50 UTC (Revision 11). ClawSweeper reviewWhat this changesThe branch lets package packing, installation, deferred lifecycle scripts, and candidate Doctor finish without a deadline when Merge readiness⛔ Blocked before merge - 2 items remain Current main and the latest release still impose a finite timeout on package update work, so this PR remains useful. No discrete patch defect was established. The published-updater compatibility check for the current production candidate is still pending. Priority: P2 Review scores
Verification
How this fits togetherThe update CLI takes operator options and an installed OpenClaw package, stages and checks a candidate, then activates it or reports recovery. The deadline policy controls package and Doctor subprocesses during that flow. flowchart LR
A[Operator update request] --> B[Deadline policy]
B --> C[Private package staging]
C --> D[Candidate admission]
D --> E[Lifecycle scripts and Doctor]
E --> F[Activation or recovery]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +27, Tests +147, Docs +1. Total +175 across 23 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single work-deadline policy across update stages and land it after a published updater completes an upgrade to this production candidate with preserved operator state and Gateway readiness. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source supplies the finite timeout to package work, and the PR records a physical red control; this read-only review did not execute the updater. Is this the best way to solve the issue? Yes. Propagating the existing nullable policy through the update owners addresses the cutoff while retaining separate admission and recovery bounds; installed-upgrade qualification remains necessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f8e5e7ba68e1. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
…te-package-work-budgets-20260919
…te-package-work-budgets-20260919
Carry omitted and explicit work budgets through package staging, lifecycle scripts, and candidate Doctor execution. Keep finite admission, probe, recovery, and cancellation settlement budgets with their existing owners. Preserve the integrated service authority and handoff behavior. Stabilize the CLI fixture's mocked parent start so slow post-core work cannot make its own fresh configuration snapshot look older than the parent process. Co-authored-by: Jason (Json) <[email protected]>
Integrate current main while retaining contributor ancestry and the current candidate admission, lifecycle Node runner, and managed service owners. Carry the operator work deadline into candidate-first private staging without changing bounded admission, ownership, recovery, or cancellation checks. Co-authored-by: Jason (Json) <[email protected]>
Match the Git and package-to-Git activation Doctor cases to the intended omitted-deadline policy. Keep explicit deadline, command, and activation assertions unchanged. The prior production owner fails both omitted cases; the candidate passes all four cases. Co-authored-by: Jason (Json) <[email protected]>
|
Merged via squash.
|
Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to #153236. Co-authored-by: Jason (Json) <[email protected]>
* fix(update): restore npm-pack helper typechecking (#157659) Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to #153236. Co-authored-by: Jason (Json) <[email protected]> * fix(windows): preserve Task Scheduler failure diagnostics * fix(windows): retain Scheduler codes in final reports --------- Co-authored-by: Jason (Json) <[email protected]>
* fix(update): restore npm-pack helper typechecking (#157659) Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to #153236. Co-authored-by: Jason (Json) <[email protected]> * test(maintainer): isolate nested PR fixture environments --------- Co-authored-by: Jason (Json) <[email protected]>
…penclaw#153236) * fix(update): let package work finish without an explicit deadline * docs(update): clarify post-core plugin work deadlines * refactor(update): extract npm packing and runtime admission tests * test(update): expect omitted package work timeout * test(update): cover omitted Git Doctor work deadlines Match the Git and package-to-Git activation Doctor cases to the intended omitted-deadline policy. Keep explicit deadline, command, and activation assertions unchanged. The prior production owner fails both omitted cases; the candidate passes all four cases. Co-authored-by: Jason (Json) <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Jason (Json) <[email protected]>
Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to openclaw#153236. Co-authored-by: Jason (Json) <[email protected]>
…law#157719) * fix(update): restore npm-pack helper typechecking (openclaw#157659) Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to openclaw#153236. Co-authored-by: Jason (Json) <[email protected]> * fix(windows): preserve Task Scheduler failure diagnostics * fix(windows): retain Scheduler codes in final reports --------- Co-authored-by: Jason (Json) <[email protected]>
…w#157755) * fix(update): restore npm-pack helper typechecking (openclaw#157659) Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to openclaw#153236. Co-authored-by: Jason (Json) <[email protected]> * test(maintainer): isolate nested PR fixture environments --------- Co-authored-by: Jason (Json) <[email protected]>
What Problem This Solves
Fixes healthy package updates being terminated by a default work timeout when the operator did not request a deadline.
User Impact
Package packing, installation, deferred lifecycle scripts, and candidate Doctor work can finish without an implicit work deadline. Explicit deadlines still apply; probes, admission, recovery, and cancellation settlement retain their existing bounds.
Without an explicit deadline, stalled work can wait for cancellation. A stalled Doctor can prolong an interruption while the service is stopped. This is the intentional availability tradeoff for allowing healthy forward work to finish.
Why This Change Was Made
Carry the existing nullable work-budget policy through the current update initialization, package, lifecycle, and Doctor owners, including candidate-first private staging. Legacy callers that do not supply the policy keep their finite allowance. Current managed-service authority, candidate admission, and post-admission Node selection remain intact.
Thanks to @fuller-stack-dev (Jason) for the original implementation and compatibility work. His original ancestry and commit credit are retained.
Evidence
Current maintainer candidate:
0a9ade2327cb, integrating fixed main1b66d30351dawhile preserving original46bd1ad1and reviewedf64d3e0ancestry.Exact-head CI and the combined security/CI gate passed for
0a9ade2327cb.Package Acceptance passed the genuine published
[email protected]updater against thea2723b63ee10candidate package (2026.9.6, SHA-25631ff97745669eb77afe48b929958d3ce7b72522671a211903a085efece0deee0). All 47 base-scenario phases passed in one 724-second attempt, including installation, retained-state survival, plugin dependency cleanup, Doctor, and Gateway health/readiness after manual restart. Package integrity and npm 12 installation acceptance also passed; lane cleanup joined.This runtime compatibility evidence is reused for
0a9ade2327cb, whose only difference froma2723b63ee10is the existing Git Doctor test expectation described above. Runtime, package, lock, docs, and workflow inputs are unchanged. Artifact and build-info attribution remainsa2723b63ee10; this is not presented as a literal0a9ade2327cbpackage build.The cell used manual restart, so it does not prove automatic restart. Its first-hop post-core exit snapshot is unavailable, and the retained update output is truncated; no missing post-core outcome is reconstructed. The published-driver cell proves interoperability. Current entry/owner proof establishes the new default deadline behavior; it does not claim the old installed driver gains that new policy.
Earlier maintainer controls and retained local setup outcomes
On the preceding
040eintegration, exact baseline deadline-owning production files produced nine intended deadline failures with five passing legacy/Git controls. A separate Doctor-only control produced two intended timeout failures with one legacy pass. Restoring the candidate passed all 14 selected cases.The original broad test selection exposed a fixture whose mocked parent process start moved forward during asynchronous work. A delayed control failed with that moving start and passed with a stable start; production freshness checks and assertions were unchanged. The correction now lives in current main's shared CLI fixture owner. External-volume temporary-directory admission failures were retained, then the same tests passed using the normal private macOS temporary directory without weakening filesystem guards.
The earlier whole-core lint phase reached its maintained 900-second limit; targeted type-aware lint passed. The current-main proof initially had two new test-observation errors because an assertion inspected the real transport wrapper instead of its maintained recorder. Correcting only that observation produced the passing admission suite reported above. These prior failures are not relabeled as passing runs.
Retained contributor evidence and earlier outcomes
Physical red reproduces the defect on exact upstream
a37efbafbec59a00bb1c2e78ad1b2f5927bb01c1with the frozen dependency lock. Healthy 1.8-second package installation, lifecycle scripts, and Doctor work fail against a 1-second internal allowance despite an omitted work deadline. The focused lifecycle regression has exactly two expected assertion failures and one passing legacy control. A stalled ownership probe starts no installation, and all observed script PIDs settle.The following raw recording executes the red/base source above. The historical PR head
43563489ef0323f17a69f3ee955076f48c2ad9e9labels the earlier review context.https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/publish/core-435-red-public/20260919-232123-365196000/screen.mp4?X-Amz-Expires=604800&X-Amz-Date=20260919T232123Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260919%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=d48e40a84712a4926b43c908c080f20577ae834cc5bc64178e4c95a0930a106a
Red raw responses and artifact manifest. This is a synthetic updater API/process fixture; installed updater qualification is separate.
Physical green on the earlier
43563489head passed the runtime controls and all 254 focused tests, then stopped at the line-cap check. Later compiler/docs checks, build, installed qualification and green recording did not run.Qualified head
707ee125158b8c899af6187fe2fc8c63b211028cextracts npm packing and moves the six managed-runtime cases with their fixture data. The packing body, cases and assertions are preserved. Native line-cap, max-lines, assertion and environment-count checks, formatting and scoped type-aware lint pass locally. Fresh source-blind validation passes all six affected package/probe clauses; unchanged lifecycle clauses retain their earlier proof. Scoped correction autoreview found no actionable P0-P2 issues, and the committed bytes match that review and validation.Exact head
707ee125158b8c899af6187fe2fc8c63b211028cpasses isolated Linux package/lifecycle/probe controls, all 254 tests across nine focused suites, and the actual changed-file checks, including types, lint, line caps, guards and dead-export scans. MDX validation andgit diff --checkpass. Source stayed clean before and after qualification. The same runtime fixture also passed in a separate native 60-second recording; all four observed lifecycle PIDs settled.https://91b59577e757131d68d55a471fe32aca.r2.cloudflarestorage.com/openclaw-crabbox-artifacts/crabbox-artifacts/v2/org/b3BlbmNsYXc/owner/Z2l0aHViOjI2MzA2MDIwMg/publish/core-707-green-public/20260920-000054-944767000/screen.mp4?X-Amz-Expires=604800&X-Amz-Date=20260920T000054Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=a677a1e59413a4e54bcc2da5fec6164a%2F20260920%2Fauto%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=ecfa4e001206204ac0ef25f9c62379a0da397cc8d6f4dd1483fc031d8854e810
Green raw responses, test/check logs and artifact manifest. All 21 published objects were independently downloaded and hash/size verified. This is synthetic API/process proof, not a full installed Gateway journey.
The full build, tarball integrity check, and all 47 published-driver compatibility phases passed on exact
707ee125158b8c899af6187fe2fc8c63b211028c. Installed OpenClaw 2026.9.3 updated synthetic operator/session/plugin/configuration state, returnedokwith the candidate build identity, and passed final Gateway readiness and status. This fixture uses a manual Gateway restart. All production and lock bytes are identical at the one-assertion correction46bd1ad12d11984f44de74f594d59d6154bb5f46. Installed compatibility summary and artifact manifest. All six published objects were independently downloaded and hash/size verified.Hosted CI found a stale numeric-timeout expectation in the owning-npm CLI test. Current head
46bd1ad12d11984f44de74f594d59d6154bb5f46changes only that assertion to require an omitted work timeout. All other 46,208 tracked entries, including production and lock files, match qualified707ee125. Autoreview and local focused checks pass. Isolated Linux supplemental proof on exact46bd1adpasses all 583 tests across four suites, the actual selected changed-file checks, andgit diff --check, with clean source before and after. All 10 published supplemental objects were independently downloaded and hash/size verified. Supplemental results and artifact manifest.An earlier Codex checkpoint test produced an extra tool result in CI. One unchanged
707ee125serial diagnostic passed all 10 tests across the checkpoint and deadline suites with the original 5-second budget and assertions intact. The passing case's total duration was 6.297 seconds; total test duration does not establish attempt duration or timeout cause. The original failure remains recorded. No checkpoint code, assertion, or timeout changed. Both checkpoint cases passed in final-head hosted run35478191134, taking 4.984 and 1.567 seconds. This passing run does not establish the cause of the earlier failure.Final-head CI's
checks-node-compact-large-12failed inopenclaw-agent-execution-cleanup.test.tswith “Shared-state admission requires the host broker.” The job executed merge9ccce634f554c5296e01380268fb4dd159a748f6, combining canonical3d936dbfa9933d23baf8fb5db2764dcf51691315with this PR head. The fixture was added by canonical #153150 and is absent from authored46bd1ad. Source tracing points to a retained singleton capturing real transport across nonisolated test files despite the fixture's mock. Existing maintainer PR #153286 addresses that isolation boundary. The failure independently reproduces on unmodified canonical3d936dbwith the exact 229-file CI group: 2,728 tests pass, one fails, and 17 skip. The identical group with only--isolate --pool=threadspasses all 2,729 tests with 17 skips. All assertions and source bytes remain unchanged, and all three diagnostic process trees settle. A fresh-file control also passes, though its generic unit configuration differs from the explicitunit-srcgroup. This establishes a separate canonical isolation defect; the exact original predecessor is not identified. It does not waive the required CI gate. Canonical red and isolation control and artifact manifest. All 12 published objects were independently downloaded and hash/size verified.Hosted run
35478191134is complete. Every selected test job passed except the canonical cleanup shard; its failure also fails the requiredopenclaw/ci-gate. Prerequisite #153286 merged as044f78eeae1a17af03ef07415641a98ead48830d. One fresh close/reopen created run35480989944, but its preflight log records both workflow and actual checkout as old merge9ccce634. The PR merge projection subsequently becamed6774eebd3a7664885207d8b65a796c21c1d247c, with parents044f78eeand unchanged46bd1ad, and contains the corrected registry. The new run therefore does not qualify that corrected tree. No source, branch history, tests, or checks were weakened. Merge remains blocked on corrected integration CI and native gates. The installed phases do not inject a stalled post-activation Doctor or manual cancellation. That limitation remains separate from the successful upgrade proof and the intentional omitted-deadline availability tradeoff described above. Local Vitest previously stopped before assertions because the compiled-worker guard rejected an immutable dependency donor outside the checkout; that environment failure is retained, and the guard has not been bypassed.