degradation-circuit-breaking
Registry Trigger
Use when
- design fallback degradation timeout bulkhead circuit breaker and recovery behavior
Do not use when
- no task-local degradation circuit breaking decision is required
Skill Role
Consume immutable gateway-owned end-to-end, hop-deadline, and retry ceilings. Beneath them, own dependency connection, read, and phase timeouts plus the actual safe/idempotent retry policy, fallback, bulkhead, circuit, and recovery. On paths without a gateway chain, derive equivalent local caller/dependency ceilings before selecting those controls.
High-Value Rules
- When gateway-owned end-to-end, hop-deadline, and retry ceilings apply, consume them without extending or redefining them. Without a gateway chain, derive local ceilings from the caller budget, cancellation, overhead, fan-out, and amplification risk.
- Select dependency connection, read, and other phase timeouts beneath the applicable hop ceiling from remaining budget, connection/response distributions, queueing, cleanup, fan-out, and cancellation behavior.
- Define the actual retryable and non-retryable classes, maximum attempts, deadline-aware backoff and jitter, unknown-outcome handling, and amplification bound for safe or idempotent effects beneath both retry and deadline ceilings.
- Fallback and fail-open/fail-closed behavior require the product, security, or data owner whose invariant changes; record freshness and irreversible-effect limits.
- Isolate dependency resources with a bulkhead; derive breaker volume, window, open duration, probes, and close criteria from traffic and recovery.
Anti-Patterns
- Nested timeouts can exceed the caller deadline unless budgets flow downstream.
- Allow layered retries because they multiply dependency load.
- Skip jitter when concurrent callers can synchronize retries.
- Continue ordinary attempts while the circuit breaker is open.
- A stale or empty fallback is user-visible behavior, not a neutral implementation detail.
Execution Checklist
- Map dependency criticality, caller deadline, immutable gateway ceilings or out-of-chain local ceilings, resource pool, and fallback authority.
- Record dependency connection/read/phase timeouts and the actual retry policy beneath those ceilings, plus fallback, bulkhead, breaker states, probes, and recovery criteria.
- Verify timeout exhaustion, amplification, fallback, isolation, and half-open recovery.
Stop Conditions
Escalate fail-open changes to authorization, fraud, compliance, payment, or irreversible effects; regulated stale data; shared-tenant blast radius; or production fault injection. Stop when an applicable gateway-owned end-to-end, hop-deadline, or retry ceiling is missing or mutable and route that decision to network-protocol-gateway-usage.
Output Contract
- resilience plan with timeouts fallbacks circuit thresholds and recovery checks, evidence, and proof limits
Targeted References
| Path |
Type |
Load when |
Do not load when |
Required by |
Required output |
| benchmarks and patterns |
benchmark-pattern |
Timeout, retry, circuit, fallback, or shedding parameters remain open |
No dependency failure policy or latency budget changes |
analysis-agent, task-agent, review-agent |
option-comparison, selected-approach |
| checklist |
decision-checklist |
Failure handling spans overload, cancellation, stale fallback, or recovery |
The affected path has no fallible dependency |
analysis-agent, task-agent, review-agent |
checklist-result, residual-risk |
| evidence patterns |
evidence-pattern |
Resilience claims need fresh fault tests or telemetry artifacts |
No fallback or recovery claim needs proof |
analysis-agent, task-agent, review-agent |
evidence-record, proof-limit, residual-risk |
1---
2name: degradation-circuit-breaking
3description: "`analysis-agent`/`task-agent`/`review-agent`: primary-Skill-selected for timeout, fallback, bulkhead, or circuit recovery; never task owner; skip without dependency-failure impact."
4metadata:
5 source: https://skillmd.com/skills/machenjie/degradation-circuit-breaking
6---
7
8# degradation-circuit-breaking
9
10## Registry Trigger
11
12**Use when**
13
14- design fallback degradation timeout bulkhead circuit breaker and recovery behavior
15
16**Do not use when**
17
18- no task-local degradation circuit breaking decision is required
19
20## Skill Role
21
22Consume immutable gateway-owned end-to-end, hop-deadline, and retry ceilings. Beneath them, own dependency connection, read, and phase timeouts plus the actual safe/idempotent retry policy, fallback, bulkhead, circuit, and recovery. On paths without a gateway chain, derive equivalent local caller/dependency ceilings before selecting those controls.
23
24## High-Value Rules
25
26- When gateway-owned end-to-end, hop-deadline, and retry ceilings apply, consume them without extending or redefining them. Without a gateway chain, derive local ceilings from the caller budget, cancellation, overhead, fan-out, and amplification risk.
27- Select dependency connection, read, and other phase timeouts beneath the applicable hop ceiling from remaining budget, connection/response distributions, queueing, cleanup, fan-out, and cancellation behavior.
28- Define the actual retryable and non-retryable classes, maximum attempts, deadline-aware backoff and jitter, unknown-outcome handling, and amplification bound for safe or idempotent effects beneath both retry and deadline ceilings.
29- Fallback and fail-open/fail-closed behavior require the product, security, or data owner whose invariant changes; record freshness and irreversible-effect limits.
30- Isolate dependency resources with a bulkhead; derive breaker volume, window, open duration, probes, and close criteria from traffic and recovery.
31
32## Anti-Patterns
33
34- Nested timeouts can exceed the caller deadline unless budgets flow downstream.
35- Allow layered retries because they multiply dependency load.
36- Skip jitter when concurrent callers can synchronize retries.
37- Continue ordinary attempts while the circuit breaker is open.
38- A stale or empty fallback is user-visible behavior, not a neutral implementation detail.
39
40## Execution Checklist
41
421. Map dependency criticality, caller deadline, immutable gateway ceilings or out-of-chain local ceilings, resource pool, and fallback authority.
432. Record dependency connection/read/phase timeouts and the actual retry policy beneath those ceilings, plus fallback, bulkhead, breaker states, probes, and recovery criteria.
443. Verify timeout exhaustion, amplification, fallback, isolation, and half-open recovery.
45
46## Stop Conditions
47
48Escalate fail-open changes to authorization, fraud, compliance, payment, or irreversible effects; regulated stale data; shared-tenant blast radius; or production fault injection. Stop when an applicable gateway-owned end-to-end, hop-deadline, or retry ceiling is missing or mutable and route that decision to `network-protocol-gateway-usage`.
49
50## Output Contract
51
52- resilience plan with timeouts fallbacks circuit thresholds and recovery checks, evidence, and proof limits
53
54## Targeted References
55
56| Path | Type | Load when | Do not load when | Required by | Required output |
57|---|---|---|---|---|---|
58| [benchmarks and patterns](references/benchmarks-and-patterns.md) | benchmark-pattern | Timeout, retry, circuit, fallback, or shedding parameters remain open | No dependency failure policy or latency budget changes | analysis-agent, task-agent, review-agent | option-comparison, selected-approach |
59| [checklist](references/checklist.md) | decision-checklist | Failure handling spans overload, cancellation, stale fallback, or recovery | The affected path has no fallible dependency | analysis-agent, task-agent, review-agent | checklist-result, residual-risk |
60| [evidence patterns](references/evidence-patterns.md) | evidence-pattern | Resilience claims need fresh fault tests or telemetry artifacts | No fallback or recovery claim needs proof | analysis-agent, task-agent, review-agent | evidence-record, proof-limit, residual-risk |