67 Classified Failure Recovery **

Recover from each failure according to what actually went wrong and whether an effect may already have happened, rather than retrying everything the same way.

An instance. A write to the index times out. The failure is classified as transient, with an uncertain effect: the write may or may not have landed. Instead of retrying, the system looks for the write’s idempotency key in the index, finds it, and records success. A second failure, a candidate that fails validation, is not retried at all; it goes to repair.

This technique applies the sixth governing principle inside every operation, especially INDEX SYNCHRONIZATION (33), GOVERNED PROMOTION (30), and AGENT COMMUNICATION BOUNDARY (41).

❖ ❖ ❖

Uniform retry turns invalid input into wasted calls and uncertain writes into duplicates.

Failures differ in kind. A dropped connection, a malformed candidate, a remote record that changed, an ambiguous meaning, an exhausted budget, and a conflict of authority each have a right response, and retry is right for only the first, and only if the action is safe to repeat. Systems that retry everything waste money on the rest and, worse, repeat effects they cannot see.

The forces in play:

  • Retry fixes transient faults, while it repeats effects that already happened.
  • A local failure should stay local, while the rule it broke must still hold at every later join.
  • Classification needs causes, while many components report only that something failed.

Therefore:

Classify every failure by its scope, its cause, and whether its effect is absent, present, or unknown, and give each class its own destination: retry only the transient and repeatable, repair or quarantine the invalid, reobserve the changed, reconcile the uncertain, escalate the conflicting, and stop the exhausted. No recovery may weaken the rule that detected the failure.

flowchart LR
  F["Failure"] --> C{"Classify:<br/>scope · cause · effect state"}
  C --> R["Retry"]
  C --> Q["Repair or quarantine"]
  C --> O["Reobserve"]
  C --> RC["Reconcile"]
  C --> H["Escalate"]
  C --> S["Stop"]

What it costs

Classification requires components to report causes and effect state, which many do not do by default. The work pays for itself in avoided duplicates and wasted calls.

How it fails

  • Retrying an uncertain write without reconciling first; check receipts or the target.
  • Letting a branch bypass a failed rule at a later join; the join must recheck.
  • Collapsing all failures into “error” in logs; record the class and destination.

❖ ❖ ❖

Recovery pairs with RESUMABLE CHECKPOINT (66) and FAIL-CLOSED RELEASE GATE (70). The pattern is complete in itself; it is finished by the failure taxonomy each operation reports.

Record: identifier, facets, relationships, implementation notes, and evidence.