Repository navigation
fix(update): let finalization finish without an implicit deadline - #153085
fuller-stack-dev merged 6 commits into
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 19, 2026, 4:02 PM ET / 20:02 UTC (Revision 5). ClawSweeper reviewWhat this changesUpdate finalization preserves an omitted timeout across CLI and fresh-process execution while retaining explicit deadlines, inherited allowances, and separate operation bounds. Merge readiness⛔ Blocked before merge - 1 item remains The PR remains useful: current main and the latest release still impose aggregate finalization deadlines. The previous documentation finding is resolved, and this review found no actionable introduced defect. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s updater activates a candidate installation, then finishes Doctor, plugin reconciliation, and Gateway verification. Timeout intent crosses process boundaries so the installed updater and candidate runtime can coordinate that work. flowchart TD
A[CLI or Gateway update] --> B[Read operator timeout]
B --> C[Activate candidate]
C --> D[Carry timeout intent]
D --> E{Explicit or inherited limit?}
E -->|Yes| F[Bound aggregate finalization]
E -->|No| G[Finalize without aggregate deadline]
F --> H[Settle children and report outcome]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource +45, Tests +179, Docs +4. Total +228 across 13 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep timeout intent distinct from compatibility allowances, with the existing executor retaining ownership and cancellation safeguards throughout finalization. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main converts omitted timeout input into a finite aggregate activation or finalizer deadline. This review did not execute a long-running update. Is this the best way to solve the issue? Yes. The patch preserves omission at the existing producers and receivers, reuses the private handoff contract, and leaves explicit limits and live ownership checks intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 562088cdd5ea. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Addressed the documentation finding in 07d50ae. The Options section now says current CLI/RPC omission adds no aggregate activation deadline, distinguishes explicit and inherited limits from legacy or unrecognized handoffs, and preserves the separate operation, readiness, and cleanup bounds. It does not describe the remaining child-work budget changes as landed. Validation passed: documentation formatting across 1,302 files, MDX checks across 1,314 files, 14,152 internal links with zero broken links, The artifact-access note is a restriction of the automated review environment. The publisher fetched every linked proof artifact after publication and verified HTTP status, size, and SHA256. I independently matched the local published files to those receipts. The Evidence section retains the exact candidate identities, raw-test receipts, independent observations, and the 47-phase installed-updater result, including its synthetic-state and manual-restart limits. |
|
Replying to revision 5's merge-risk note. The maintainer has accepted this as an explicit proof limitation. The coordinator independently downloaded the published receipts and verified their byte counts and SHA-256 hashes. The bot's artifact-host allowlist blocked its own retrieval; we do not claim the bot inspected those bytes. The installed-driver receipt records all 47 phases passing for published OpenClaw 2026.9.3 updating to exact candidate The affected contract has separate timer, explicit-limit, malformed/legacy-input, authority-rejection, lease-admission and child-settlement controls. The authored production bytes are unchanged from the executed candidate. The final signed head The canonical managed-helper change was traced separately. It leaves the handoff identity validator, aggregate-budget owners, provenance contract, optional executor argument and lease protections unchanged. This PR does not claim broader managed-service proof. The maintainer accepts the existing evidence for this bounded change; native landing remains subject to the required current-head checks. The original review note is preserved. |
|
Merged via squash.
|
…enclaw#153085) * fix: preserve omitted update finalization deadlines * test: align RPC finalizer omission expectation * test(update): type the migrated stdin iterator return * docs(update): clarify aggregate deadline omission
…imeout Restoring an implicit finalizer deadline added a failure path that a healthy but slow update could hit (#153085 removed it for that reason), and its expiry is reported as update-recovery-pending, which the helper does not route into recovery. Drop it again: an explicit --timeout still bounds the worker, and its update-activation-timeout result enters the verified interrupted recovery. Refs #205547. Co-authored-by: RomneyDa <[email protected]>
… a verified Gateway (#205758) * fix(update): admit migrated finalizer requester once Co-authored-by: RomneyDa <[email protected]> * fix(update): bound migrated finalization and verify interrupted recovery Co-authored-by: RomneyDa <[email protected]> * fix(update): require authenticated RPC in interrupted recovery wait Co-authored-by: RomneyDa <[email protected]> * test(update): scope the migrated worker capability stub Co-authored-by: RomneyDa <[email protected]> * test(update): keep the worker timeout stub typed Co-authored-by: RomneyDa <[email protected]> * fix(update): keep migrated finalization unbounded without an operator deadline A default worker deadline terminated finalization into a pending recovery that leaves the managed Gateway stopped. Restore the explicit/inherited-only deadline until timeout recovery can verify a serving Gateway. Co-authored-by: RomneyDa <[email protected]> * fix(update): recover timed-out and orphaned finalizers to a verified Gateway A finalizer stopped at its deadline left a pending recovery that the managed helper treated as an explicit refusal, and a killed waiting updater left its candidate worker holding the run's child lease, so the helper lost its claim. Both left the Gateway stopped until a manual update repair. Route the finalizer deadline into the helper's existing interrupted recovery, join a settling candidate worker within the recovery budget before reclaiming the claim, and restore the default finalizer deadline (an explicit --timeout still takes precedence). Recovery still requires an authenticated health RPC with the expected version and build. Refs #205547, #205675. Co-authored-by: RomneyDa <[email protected]> * fix(update): keep migrated finalization bounded only by an operator timeout Restoring an implicit finalizer deadline added a failure path that a healthy but slow update could hit (#153085 removed it for that reason), and its expiry is reported as update-recovery-pending, which the helper does not route into recovery. Drop it again: an explicit --timeout still bounds the worker, and its update-activation-timeout result enters the verified interrupted recovery. Refs #205547. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]>
… a verified Gateway (#205758) * fix(update): admit migrated finalizer requester once * fix(update): bound migrated finalization and verify interrupted recovery * fix(update): require authenticated RPC in interrupted recovery wait * test(update): scope the migrated worker capability stub * test(update): keep the worker timeout stub typed * fix(update): keep migrated finalization unbounded without an operator deadline A default worker deadline terminated finalization into a pending recovery that leaves the managed Gateway stopped. Restore the explicit/inherited-only deadline until timeout recovery can verify a serving Gateway. * fix(update): recover timed-out and orphaned finalizers to a verified Gateway A finalizer stopped at its deadline left a pending recovery that the managed helper treated as an explicit refusal, and a killed waiting updater left its candidate worker holding the run's child lease, so the helper lost its claim. Both left the Gateway stopped until a manual update repair. Route the finalizer deadline into the helper's existing interrupted recovery, join a settling candidate worker within the recovery budget before reclaiming the claim, and restore the default finalizer deadline (an explicit --timeout still takes precedence). Recovery still requires an authenticated health RPC with the expected version and build. Refs #205547, #205675. * fix(update): keep migrated finalization bounded only by an operator timeout Restoring an implicit finalizer deadline added a failure path that a healthy but slow update could hit (#153085 removed it for that reason), and its expiry is reported as update-recovery-pending, which the helper does not route into recovery. Drop it again: an explicit --timeout still bounds the worker, and its update-activation-timeout result enters the verified interrupted recovery. Refs #205547. --------- (cherry picked from commit cc7f256) Release adaptation: Keep timeout classification with the existing interrupted-recovery admission in the result source; leave the handoff entry point at its baseline line count. Preserve authenticated readiness and the retained package-slot/installed-generation recovery. Later same-path commits from the pinned scan (separate behavior unless named as folded/selected below): f927fb1 #203406 reports explicit package recovery; 8bc37be #205850 and `020832b252e8` #205669 handle migrated channel owner admission; 31ea1c0 #206530 handles namespace-less Linux locks (separately deferred because explicitly superseded in pinned main).. Co-authored-by: RomneyDa <[email protected]>
Related: #152973
What Problem This Solves
Fixes healthy update finalization being canceled by an overall deadline when the operator did not request one.
User Impact
Current CLI updates and gateway Git finalization can finish without an implicit overall time limit. Explicit operator limits and inherited limits from older update handoffs retain their behavior.
Why This Change Was Made
Preserve omitted operator input at update admission and across the fresh-process handoff. The handoff reuses the existing private timeout record so older receivers still get their compatibility allowance. Probes, cancellation cleanup and mutation ownership retain their existing rules.
Evidence
Exact-lock Linux focused tests: 155 passed across CLI execution, post-core continuation, executor settlement, activation, migrated continuation, migrated worker and RPC finalization. The first run exposed one stale assertion requiring an implicit timeout; the corrected test and all 32 infra cases passed. Test summary, original result, corrected result, artifact manifest.
The test cell used base
f2dff0dcf9cca6e11aba8cbdf35a3005027894d3plus frozen candidate patchd85cb222e3fcb26b4b8017dcd0b28a1589dece68074b431c4a78af632fc3ca5b, followed by the one-test correction. Ten changed files retain their tested bytes. The worker was subsequently integrated with the separately landed SQLite reporting fix and its actual timeout-selection and ownership controls passed again. Its test fixture later gained an explicit undefined iterator return for Node type compatibility, with no runtime change. This is focused test evidence; installed-driver qualification is recorded separately.Base runtime observations show implicit three-hour ordinary CLI, four-and-a-half-hour campaign-default and two-hour RPC finalizer deadlines on omitted input. These observe real timer/process admission, without waiting those elapsed durations.
Independent runtime validation passed the original scoped timer, handoff and child-process clauses. Its supplemental run passed canonical lease admission, paired invalid-identity controls, cooperative cancellation ordering, and an independent 421 ms child variation. The original report remains preserved: its root-lease readbacks used a noncanonical path and are explicitly superseded by positive admission and settlement observations. Original report, passed supplement, raw observation manifest.
The scoped observations use controlled update preparation and finalization effects; they do not establish a full update. The final base includes the separately landed Git work-deadline and SQLite terminal-reporting fixes. The integrated worker passed six timeout-selection cases and four actual ownership cases. Independent worker revalidation passed on the published head. Final worker report, final worker artifact manifest. The published-head qualification run passed all 139 affected focused cases. Installed OpenClaw 2026.9.3 then updated synthetic operator state to exact candidate
253eeb0, with all 47 compatibility phases passing through final gateway readiness and status. This uses a manual gateway restart and no live provider credentials. Source remained clean before and after build/test, and package identity plus the evidence archive were verified. Compatibility receipt, focused test receipt, installed-driver artifact manifest.Current head:
f4cc6543956654e418d89f52a5293e0c6ca1839e, including canonical6f36619571aebcf883e44ed488b5c15b4cce1f6b. The 139-case run and final worker report use253eeb0; every product file in this PR remains byte-identical. The later upstream ACP task and doctor profile-workspace changes do not alter the tested deadline or ownership paths. CI found one test iterator typing error on253eeb0; the corrected head adds an explicitreturn undefined, which passed scoped independent review. The originally failing core-test type stripe3/5now passes on exact253eeb0plus that one-line correction, with Node 24.19.0 and@types/node26.5.1. Type-gate receipt, correction and artifact manifest. Full GitHub CI and both required merge-gate entries passed on678c881, including security reevaluation.The documentation follow-up clarified omitted versus explicit aggregate deadlines and legacy handoff behavior. Scoped independent review, documentation formatting, MDX checks, and all 14,152 internal links passed. The green parent CI above remains bound to
678c881.The current signed main merge includes the canonical test-partition repair from #153004. All 13 authored files are byte-identical to reviewed
07d50aec, and the complete candidate received a fresh clean review against the updated base. Canonical managed-helper activation changes preserve the existing live handoff validator; the installed-driver proof above uses manual restart and does not claim managed-service coverage. The updated base also adds isolated test-worker build entries. Current-head CI is validating those integrated inputs through the normal required gates.