Observe classifies and accounts for loss without retrying. Enforce performs bounded retry and fallback under a cost ceiling.
Agent hint
Use when choosing resilience.mode, explaining fail-open, or proof_window_pct sampling.
In scope
Out of scope
Fail-open
Resilience wraps provider calls fail-open: unexpected auditor errors propagate the original provider exception rather than masking failures. Observe mode never doubles calls on network errors.
proof_window_pct
When mode is observe and proof_window_pct > 0, a random sample of calls run enforce logic for validation while the majority stay observe-only. Use briefly to validate fallback wiring before full enforce.