Repository navigation
fix(code-mode): continue after proven no-effect tool failures - #132437
roboclaw-bot wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 31, 2026, 4:55 PM ET / 20:55 UTC. ClawSweeper reviewWhat this changesThis PR adds input-aware effect classification and Gateway error provenance so OpenClaw Code Mode can continue after tool failures proven to have caused no effect. Merge readinessKeep open: the branch loses Gateway-proven Priority: P2 Review scores
Verification
How this fits togetherCode Mode runs agent-requested tools through a nested lifecycle and uses effect receipts to decide whether a failed call can safely continue or must enter reconciliation. Gateway tool calls feed this lifecycle with server-side pre-effect outcome facts. flowchart LR
A[Agent tool request] --> B[Code Mode bridge]
B --> C[Nested tool lifecycle]
C --> D[Gateway tool call]
D --> E[Gateway request-effect result]
E --> C
C --> F[Effect receipt]
F --> G[Continue or reconcile]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +641, Tests +736, Other +10. Total +1387 across 80 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Carry an existing owner-proven effect receipt through the nested lifecycle unchanged, then prove a mutation-shaped Gateway validation rejection continues without reconciliation on the current head. Do we have a high-confidence way to reproduce the issue? No runtime reproduction was executed in this read-only review, but source inspection gives a high-confidence path: make a mutation-shaped Gateway call fail with Is this the best way to solve the issue? No: the proposed provenance contract is directionally sound, but the nested lifecycle must preserve the Gateway owner receipt before Code Mode can use it correctly. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bcf8e986c19d. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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 (12 earlier review cycles; latest 8 shown)
|
7be7d2b to
f1069c2
Compare
f1069c2 to
ac2a7a3
Compare
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
ac2a7a3 to
06c3b69
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
06c3b69 to
9d06d1a
Compare
0f4a76d to
faa1743
Compare
ed817c2 to
3fa6fc4
Compare
|
Exact-head proof update for
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
3fa6fc4 to
949a371
Compare
949a371 to
220235c
Compare
51448ed to
3b23e28
Compare
Carry input-aware effect classification through core, plugin, Tool Search, Code Mode, Copilot, and Gateway validation boundaries. Keep unknown or post-dispatch outcomes fail-closed. Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]>
3b23e28 to
1156d68
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing this continuation implementation as superseded by #138044, The current runtime returns failed Code Mode cells to the ordinary agent This does not claim that every validation or diagnostic change in this Preserved candidate: Useful remaining changes should be evaluated narrowly against current No merge is being performed. |
Related: #131340
What Problem This Solves
Code Mode could kill a turn or enter read-only reconciliation after the concrete tool owner had already proven that a rejected operation produced no effect. The observed Automations update failure was one instance of a broader gap across mixed-action core/plugin tools, local namespaces, Tool Search, Copilot, Browser, and Gateway validation.
Why This Change Was Made
This completes Phase 1 of #131340: concrete owners classify final inputs and carry trusted
not_started,failed_no_effect, and read-only outcomes through Gateway errors, Tool Search, Code Mode, local namespaces, client tools, and Copilot.Unknown, post-dispatch, timed-out, cancelled, partial, MCP/client-external, and restart-ambiguous outcomes remain fail-closed. Durable journals, conflict scopes, temperature/hysteresis, compensation, and scoped mutation resumption remain Phase 2; #131340 stays open.
The previously requested owner decision to proceed with the additive plugin classifier and Gateway error contracts was approved for this work.
User Impact
Code Mode can correct and continue after owner-proven read-only or no-effect failures instead of ending the turn or issuing a useless read-only recovery loop. Operations whose effects cannot be proven remain conservatively blocked from ordinary continuation.
Evidence
1156d68eb3d1865dbc0c3168b1a39027a78e2d9a, one commit onfec69b40d651b44e6ecc8dfb442e8e3e369c9042.automations.updaterejection with Gatewayfailed_no_effect→ corrected retry → exactly one mutation → no read-only reconciliation. Command:node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/gateway-rpc-automation.e2e.test.ts -t "persists cron CRUD, wakes the heartbeat, and controls an agent-created task"(1 test passed; 9.75s test duration after runtime preparation).uncertaininstead offailed_no_effect) and passes on the final head; the full lifecycle file passes 26 tests.importprofile.declarationKeyon updates in both nested and legacy flat input before dispatch.Worked on by: