Repository navigation
fix(raft): report missing CLI in channel status - #123140
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: found issues before merge. Reviewed August 13, 2026, 7:17 AM ET / 11:17 UTC. ClawSweeper reviewWhat this changesThe PR changes Raft CLI detection from a diagnostic-only probe to a typed success-or-failure result and adds focused regression coverage. Merge readinessKeep this maintainer PR open: it correctly adds Priority: P2 Review scores
Verification
How this fits togetherThe Raft plugin probes for its local CLI before the shared Gateway status collector builds account snapshots. Those snapshots drive the flowchart LR
A[Raft CLI on Gateway PATH] --> B[Raft plugin probe]
B --> C{CLI found?}
C -->|yes| D[Successful probe]
C -->|no| E[Failure with error text]
D --> F[Gateway account snapshot]
E --> F
F --> G[Channel status output]
F --> H[Operator warnings]
Decision needed
Why: The proposed producer repair is correct, but current shared projection does not consume generic probe errors; choosing a shared contract versus a plugin-local status issue affects other channel plugins. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +7, Tests +50. Total +57 across 2 files. 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. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the typed Raft probe local, then project its missing-CLI failure into the canonical operator-visible status warning or an explicitly approved shared mapping, with a regression that renders the failed status path. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main returns only Is this the best way to solve the issue? No. The producer result is the right owner boundary, but the branch does not connect its error text to the account error or warning surface that operators need. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a8b322ebf52. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
ClawSweeper finding reviewed and skipped: its projection premise is incorrect on this exact head. The existing shared Gateway flow already consumes the shape this PR now returns:
So the Raft producer repair completes both existing shared consumers: |
|
Merged via squash.
|
Closes #123137
What Problem This Solves
Fixes an issue where Raft operators using the documented
openclaw channels status --probeverification path would not receive a standard success or failure outcome when OpenClaw checked for theraftCLI. A missing binary could leave the account looking configured without the expectedprobe failedstatus or actionable account error.Why This Change Was Made
The Raft plugin now records its existing binary-detection fact as a coherent canonical probe outcome while preserving the shipped
cliFounddetail. The change stays plugin-local: shared status/Gateway consumers already understand{ ok, error }, and the discriminated result prevents contradictory success, CLI-presence, and error states.User Impact
Raft status checks now report
workswhen the CLI is available andprobe failedwithRaft CLI not found on the Gateway PATHwhen it is missing. JSON and capability output continue to exposecliFoundand the existingRaft CLI: found/missingdetail.Evidence
{ ok: false, cliFound: false, error: "Raft CLI not found on the Gateway PATH" }, received{ cliFound: false }.git diff --checkpassed.tbx_01kzxc8p10w3mgwkpkc0e51ky6; Actions receipt: https://github.com/openclaw/openclaw/actions/runs/31693328937.Production delta: +13/-6, net +7. Tests: +51/-1, net +50.
AI-assisted: yes. The implementation and regression were reviewed against the complete plugin/status owner path.