Repository navigation
fix(update): preserve operator stops and failed repair outcomes - #193885
Conversation
Honor durable Gateway stop intent before interrupted recovery and native start. Keep completed repair successful when service ownership is unavailable, and use the verified installed terminal writer before schema-changing finalization. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 8df77e59-1294-41e0-bba9-e7d89c74f14e
|
🦞👀 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. What this changesThis PR preserves later operator stops, reports completed repairs with unowned services as warnings, and records failed finalization through the verified installed runtime. Example: An interrupted update records a later Gateway start, followed by an operator stop, before recovery inspects systemd.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR addresses concrete recovery defects still present on main, and review found no actionable code defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe detached update helper and repair CLI consume update history, installation identity, and service ownership to decide recovery, invoke the native service manager, and record the terminal update outcome. flowchart TD
A[Interrupted updater] --> B[Detached recovery helper]
C[Update history and stop intent] --> B
B --> D[Verified installed finalizer]
B --> E[Native service manager]
D --> F[Terminal update record]
E --> G[Gateway readiness verification]
Technical reviewBest possible solution: Keep the focused corrections in the existing recovery owners so stop intent, repair warnings, and terminal outcomes follow one authoritative path. Do we have a high-confidence way to reproduce the issue? Current-main source exposes all three failure paths, and the supplied regression cases target them directly; no target code was executed during this review. Is this the best way to solve the issue? The patch is a small complete correction for its stated defects: reuse the stop-history owner at recovery and startup, return the existing manual-warning result, and select the verified writer before finalization can migrate state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bf6972450e52. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +159, Docs +6, Other +2. Total +177 across 12 files. Added test files: 0. 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:
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 November 5, 2026, 9:07 PM ET / November 6, 2026, 02:07 UTC. |
…claw#193885) * fix(update): preserve interrupted recovery intent and outcomes Honor durable Gateway stop intent before interrupted recovery and native start. Keep completed repair successful when service ownership is unavailable, and use the verified installed terminal writer before schema-changing finalization. Co-authored-by: RomneyDa <[email protected]> * fix(update): preserve operator stops and failed repair outcomes Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 8df77e59-1294-41e0-bba9-e7d89c74f14e --------- Co-authored-by: RomneyDa <[email protected]>
Related: #188303.
What Problem This Solves
Fixes three recovery defects exposed while validating release backports: restarting a later operator-stopped Gateway, failing completed repair when service ownership is unavailable, and losing the terminal failure record after schema-changing repair fails.
User Impact
Interrupted recovery preserves later operator stops. An unowned service stays stopped with manual-start guidance, and failed post-core repair records failure using the verified installed runtime. Existing data-risk, custody, identity, and live-authority checks remain in place.
Why This Change Was Made
Check durable stop intent before recovery and immediately before native startup, including launchd retries. Use the existing manual-warning path for nonowned verdicts. Select the verified candidate terminal writer at finalize entry, retaining staged fallback before verification. Main’s plugin-cohort handling is unchanged; no production schema change is included.
Evidence
Base:
85c39026a90f58164595249f69c311ed71b44df8; reviewed head:29250b1840baa1ed26772df373273a2adad71135.Draft / remaining gates: real detached processes and ledger operations are exercised, but native managers and schema incompatibility are emulated. Native macOS and packaged actual-candidate/real-agent upgrade proof remain unavailable; CI and enforced reviews remain pending. This does not close #188303 or address the separate #191847 SQLite OOM report.
Worked on by