Failure Recovery

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

  1. Detect and classify the failure.
  2. Determine whether retry is safe and whether an idempotency key is required.
  3. Preserve or restore known-good state.
  4. Compensate completed side effects where rollback is impossible.
  5. Escalate to a human or incident path when authority or evidence is insufficient.
  6. Persist minimized evidence of decisions, attempts, effects, and recovery.

Use the reference architecture failure matrix for failure-specific behavior.


Keep the source visible

Help others find this page

If this page was useful, link to it from a website, blog, public newsletter archive, resource page, documentation page, or social post. A public link helps the work remain discoverable after the feed moves on.

Get sharing text
Learn why links matter