Repository navigation
fix(triage): require working Gateway RPC before claiming recovery - #167080
Conversation
Use the existing --require-rpc acceptance check in repair guidance while preserving diagnostic status defaults and plugin/channel readiness semantics. Co-authored-by: RomneyDa <[email protected]>
Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 8834c186-08ac-43c1-8ccc-c09e9caeed4a
|
🦞👀 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: needs maintainer review before merge. What this changesThe PR updates repair guidance and documentation to require the existing Gateway read-scope RPC check before claiming recovery. Example: A Gateway status diagnostic completes with exit 0 while its RPC check fails.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes a useful, narrow correction that current main still lacks, and its collaborator author also prevents automatic closure. No actionable code findings remain; the previous migration-proof request does not apply. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe triage prompt renderer combines failure context and sanitized diagnostics into instructions consumed by local repair agents; Gateway status owns the existing RPC acceptance check. flowchart TD
Failure[Update or startup failure] --> Triage[Triage coordinator]
Triage --> Prompt[Bounded repair prompt]
Prompt --> Agent[Local repair agent]
Agent --> Health[Health diagnostics]
Agent --> Status[Gateway status with required RPC]
Health --> Report[Recovery evidence report]
Status --> Report
Technical reviewBest possible solution: Use the existing required-RPC acceptance check in repair guidance while retaining symptom verification and intentional-stop handling. Do we have a high-confidence way to reproduce the issue? Source confirms that current main recommends status diagnostics whose successful completion does not require working RPC; no repair-agent failure was reproduced during this read-only review. Is this the best way to solve the issue? This is a focused correction at the prompt owner that reuses an existing flag and preserves the broader recovery evidence requirements. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b19bfee65b2a. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests 0, Docs +1. Total +1 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReviewed October 10, 2026, 2:58 AM ET / 06:58 UTC (Revision 3). |
|
The PR body now records the completed exact-head CI run and the review disposition. The data-model compatibility checkbox is not applicable: the complete production diff changes two prompt strings, with no schema, migration/backfill, persisted-data format, database writer, lifecycle, or status implementation changes. The review itself identifies no actionable findings and confirms the existing acceptance owner is reused. No migration proof can demonstrate a migration this patch does not introduce. The missing fresh end-to-end triage-agent run remains an explicit proof limitation; the supplied focused tests and source-bound checks are not being relabeled as end-to-end proof. No source change or additional test case was needed, and the passing CI at |
…enclaw#167080) * fix(triage): require working RPC for repair verification Use the existing --require-rpc acceptance check in repair guidance while preserving diagnostic status defaults and plugin/channel readiness semantics. Co-authored-by: RomneyDa <[email protected]> * fix(triage): require working Gateway RPC before claiming recovery Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 8834c186-08ac-43c1-8ccc-c09e9caeed4a --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes: repair agents can treat a completed diagnostic status command as proof of recovery even when Gateway connectivity or RPC failed.
User Impact
Repair guidance now requires
openclaw health --jsonandopenclaw gateway status --deep --require-rpc, followed by checking relevant failures, the expected running version, and the original symptom. Existing status defaults, JSON behavior, and intentionally stopped Gateways are unchanged.Why This Change Was Made
The existing
--require-rpcflag already supplies the necessary read-scope RPC acceptance check. This updates the remaining triage recommendation and its documentation rather than adding a flag or changing status semantics. Default exit 0 means diagnostics completed; even a successful required RPC check does not certify plugin or channel readiness.Evidence
pnpm check:changed --base 39f956c4778cca437c3cccc301efbce56e768500passed in 560.0 seconds, including core production types, all 27 core-test type graphs, all three dead-export scans, selected guards, formatting, and lint.--no-probe, JSON failures, and diagnostic errors.git diff --checkpassed.Hosted review and compatibility
04b941b06421a4ff4c2f9b49b42b5f722fe6e105(attempt 1).Worked on by
Work sessions
View the OpenClaw team session