Repository navigation
fix(update): preserve recorded recovery after managed preflight refusal - #180777
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThe managed update handoff preserves the updater child's recorded service recovery outcome when preparing diagnostic triage. Example: An update rejects Node 26.7.0 before parking the Gateway and records recovery.service as healthy.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a confirmed diagnostic contradiction still present on current main, with no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe managed handoff consumes the direct updater child's result, settles service recovery, and passes annotated failure context to diagnostic triage. flowchart LR
A[Managed Gateway] --> B[Handoff helper]
B --> C[Updater child]
C --> D[Recorded recovery result]
D --> B
B --> E[Diagnostic triage input]
E --> F[Operator guidance]
Technical reviewBest possible solution: Preserve the verified child's explicit recovery fact at result consumption while retaining unknown outcomes and existing recovery authority. Do we have a high-confidence way to reproduce the issue? The linked production report and current-main source establish the never-parked healthy-recovery path; the PR reports a matching red-on-base regression, which was inspected but not executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete fix: copy the existing producer's recovery fact before restoration branching and remove the narrower annotation, without adding policy, state, or restart behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9b49df67a7c5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +31. Total +31 across 2 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
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 22, 2026, 12:39 PM ET / 16:39 UTC. |
…al (openclaw#180777) A managed update that safely refused (e.g. preflight-node-runtime-incompatible) and verified the existing Gateway healthy still got the triage annotation 'Service recovery outcome was not recorded', because the handoff tied recorded recovery to having armed restoration itself. The handoff now preserves the updater's explicit recovery.service outcome; restart authority is unchanged. Fixes openclaw#180739, reported by @hannesrudolph.
What Problem This Solves
A Gateway-managed update can correctly reject an incompatible target Node runtime and verify the existing Gateway healthy, yet tell diagnostic triage that service recovery was not recorded.
Fixes #180739. Thanks @hannesrudolph for the report and source trace.
User Impact
Triage preserves the updater's recorded service recovery instead of giving misleading restart advice. An absent recovery outcome remains unknown. Runtime preflight, restart permission, and service recovery behavior are unchanged.
Why This Change Was Made
The handoff recorded recovery for triage only when its own restoration was armed. Copy the direct updater child's explicit service outcome when consuming its result, and remove that restoration-only annotation. Existing child identity checks still apply; diagnostics do not infer recovery from whether the service was parked or from restart eligibility.
Production: +1/-1 lines (net 0). Tests: +31/-0 lines. No new state, options, dependencies, or schema changes.
Evidence
bf28212f2c4fc3ced082728f9712932854c406f6: explicithealthyandfailedoutcomes both incorrectly produced “Service recovery outcome was not recorded”; the absent-outcome control passed (2 failed, 1 passed).git diff --check, and import-cycle check pass (0 cycles). Independent Codex review: no actionable findings.check:changedSQLite inventory was not run under the campaign's local gate budget; PR CI supplies broad proof.