Graceful Recovery and Resilience (Principle)
- Entity ID:
ent-20260423-c003d100000d - Type:
decision - Scope:
private - Status:
active
Description
Design principle #13. Answers 'Fail hard on errors, or silently recover and reserve human attention for unrecoverable situations?' Claude Code implements max-output-tokens escalation (up to 3 retries/turn), reactive compaction for near-capacity, prompt_too_long overflow recovery, streaming fallback callback, and fallback model switching. Serves Reliability and Capability.
Key claims
- The loop terminates on five distinct conditions
- Recovery mechanisms include max-output-tokens escalation up to 3 attempts per turn
Relations
- Reliable Execution (Value) --[motivates]--> Graceful Recovery and Resilience (Principle)