Repository navigation
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: needs maintainer review before merge. What this changesThe branch adds fallback occurrence and a canonical failure category to agent completion receipts and their existing private model-route notices. Review scores
Merge readiness✅ Ready for maintainer review The PR remains useful: current main and the latest release lack the requested receipt metadata. The prior review blockers are resolved, the recorded runtime proof still covers the unchanged production patch, and no actionable correctness defect remains. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe agent runner tries the selected model and configured fallbacks, then publishes a completion receipt. Gateway lifecycle consumers and parent agents use that receipt to understand which model completed the run. flowchart TD
A[Requested model] --> B[Agent runner]
C[Configured fallbacks] --> B
B --> D[Attempt outcomes]
D --> E[Completion receipt]
E --> F[Gateway lifecycle consumers]
E --> G[Private parent context]
Technical reviewBest possible solution: Keep fallback explanations attached to the existing run-owned receipt, using canonical categories and the established private-context delivery path. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request. The contributor's recorded CLI run demonstrates the relevant primary-failure-to-fallback-completion scenario through the real transport boundary. Is this the best way to solve the issue? Yes. Projecting existing attempt facts into the current receipt is a narrow extension of the established owner and avoids another routing record or provider-specific policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1f576e4a4a21. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +72, Tests +46, Other 0. Total +118 across 7 files. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 HistoryReview history (4 earlier review cycles)
Reviewed October 7, 2026, 5:03 AM ET / 09:03 UTC (Revision 5). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
When an agent run falls back from the requested model to a configured fallback, the existing terminal receipt exposes the effective route but not whether fallback occurred or why. This leaves Gateway lifecycle consumers and parent agents without a bounded, redacted explanation of the completed run.
Summary
Evidence
4f9052879fwas executed through the realopenclaw agent --local --jsonentry point.proof/primary-modeland a successful completion forproof/fallback-model; no external model API was called.FALLBACK_PROOF_OKwith exit code 0.proof/primary-model, effectiveproof/fallback-model,rerouted: true,fallback.occurred: true, andfallback.reason: server_error.candidate_failedwith status 503, fallbacksuccess, andfallbackUsed: true.This is real entry-point and transport evidence with a deterministic local provider. It is not a claim about any particular external provider outage.
Scope
No provider-, installation-, or operator-specific routing policy is included. No stored schema or retained-data format is changed.
CI follow-up (2026-10-04)
The follow-up commit
4f9052879fadds the missingsrc/agents/failover/signal.tsentry to the trusted PR-wrapper inventory, adds the required SAFETY invariants for the new runtime type assertions, and prunes the now-zero assertion baseline entry. The focused wrapper-closure checks pass 2/2, the assertion-safety ratchet passes, and the owning terminal-receipt/run-entry tests pass 46/46.