A production runtime must define what happens after timeouts, invalid output, denied tools, partial side effects, duplicate execution, budget exhaustion, and evidence failures.
[aruntime_diagram id=”failure-recovery-state-machine”]
Recovery rules
- Detect and classify the failure.
- Determine whether retry is safe and whether an idempotency key is required.
- Preserve or restore known-good state.
- Compensate completed side effects where rollback is impossible.
- Escalate to a human or incident path when authority or evidence is insufficient.
- Persist minimized evidence of decisions, attempts, effects, and recovery.
Use the reference architecture failure matrix for failure-specific behavior.
