Repository navigation
fix(update): avoid imposing a Doctor deadline during normal updates - #152973
Conversation
…on-explicit-deadlines-20260919
…on-explicit-deadlines-20260919
|
🦞👀 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, 11:57 AM ET / 15:57 UTC (Revision 3). ClawSweeper reviewWhat this changesThe updater preserves an omitted Doctor deadline across fresh-process handoffs while retaining explicit operator deadlines and older-version behavior. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful fix with no blocking correctness findings. The newly supplied published-updater qualification addresses the previous review’s compatibility blocker. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s updater launches fresh processes to repair configuration and finish plugin updates after replacing core code. The handoff must distinguish an internal step allowance from the operator’s explicit Doctor deadline. flowchart TD
A[Update command] --> B[Operator timeout choice]
B --> C[Private process handoff]
C --> D{Supported matching metadata?}
D -->|Yes| E[Restore operator choice]
D -->|No| F[Preserve received deadline]
E --> G[Repair Doctor]
F --> G
G --> H[Plugin validation and completion]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +42, Tests +101, Docs +4. Total +147 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Doctor deadlines tied to explicit operator intent while preserving legacy handoffs, bounded surrounding phases, and existing process-cleanup ownership. Do we have a high-confidence way to reproduce the issue? Yes, from source: normal updates forward their internal allowance as Doctor’s timeout even when the operator omitted --timeout. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Extending the existing private handoff preserves old-target behavior while fixing deadline selection at the Doctor execution owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1d7fd50b912f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
…te-finalization-explicit-deadlines-20260919
|
Review checklist disposition for exact head
Native prepare and merge verification passed. I inspected the flagged mainline movement: desktop power tests, Windows test selection, command-palette translations and wrapper materialization metadata do not change the timeout owner or these proof assumptions. The separate incomplete config-import refactor is being repaired in #153007. The reviewed production modules remain unchanged. |
|
Merged via squash.
|
…penclaw#152973) * fix(update): preserve explicit finalization deadline policy * fix(update): retain legacy allowance with private deadline provenance * docs(update): wrap finalization timeout policy * test(update): assert deadline provenance in lease fixture
What Problem This Solves
Normal updates impose a per-Doctor deadline even when
--timeoutwas omitted, stopping healthy finalization work when an internal step allowance expires.User Impact
Post-core repair Doctor preserves an omitted operator deadline. Explicit CLI and standalone API deadlines, bounded capability checks, and child cleanup still apply. Older drivers and targets retain their existing deadline behavior. Build/install, plugin-operation and enclosing activation limits remain separate follow-up work.
Why This Change Was Made
The existing private handoff now carries operator intent separately from the numeric allowance required by older targets. The new reader restores absence only from supported metadata matching the received command. Missing, malformed or mismatched provenance preserves the deadline.
Evidence
cf399a2a; green recording at8866f439. These exercise actual handoff/reader/Doctor APIs with real synthetic children.The focused proof above covers subprocess boundaries. The additional installed-updater test below exercises a published binary against the exact candidate package. Local dependencies were borrowed read-only; required hosted CI supplies the full dependency/type gate. The follow-up head incorporates current canonical
f8f4f4a8. Intervening changes concern Telegram progress, sidebar UI, Docker release-coverage enumeration, and cron/WebChat delivery. They do not alter this owner, its fixtures, dependencies or focused runner. Production files remain identical to the validated head; the added lease fixture correction has separate 53-case coverage and clean review.[email protected]successfully updated retained synthetic operator, session, plugin and config state to exact candidate1869190c3520a61293f94012547fdd03592d2707. All 47 scenario phases passed, including final gateway readiness and status. The resulting build identity matches the candidate. This scenario uses a manual gateway restart and no live provider credentials. Compatibility receipt, phase observations, artifact manifest. The scenario exited 0; its initial outer evidence archive failed on container-owned file permissions. A separate read-only collection recovered the complete evidence without rerunning or changing the test. Published artifacts were downloaded and checksum-verified.