Error Recovery and Retry Policy for the Agent Loop
Agent Architecture
60-90 minutes0/4 steps0%
Step 1 of 4
Build the error taxonomy
Recovery starts with classification - each class gets a different answer.
First time here? Paste the Context Pack first so the AI understands your project - open it from the header above.
Prompt Capsule
Create an error taxonomy for my agent's tools. Classify every known failure into: TRANSIENT (timeouts, rate limits, flaky network - safe to auto-retry), CORRECTIVE (invalid arguments, file not found, lint failure - the model must adjust and retry), FATAL (permission denied at the harness level, missing credentials, unrecoverable environment issues - escalate to the user). For each tool, list its known failure modes and their classes, and mark which operations are non-idempotent (writes, sends, payments) and therefore need idempotency keys or read-back verification before any retry. Deliver the taxonomy table.
Paste into EmergentFull Build: complete implementation prompt with explicit requirements
Quick is short. Full Build is recommended for most steps. Strict forces real logic when the AI keeps faking output.
Actual change check
Expected after this step
A per-tool error taxonomy with idempotency flags.
Should NOT happen
- An existing feature broke
- A button only logs to console
- Data disappears after refresh
- Errors fail silently with no visible state
This is what should exist before you continue. If reality does not match, do not move on.
Track what changed, failed, or needs follow-up. Notes export with the flow.
Pass the Verify Gate to complete this step