%% CapBan — degrade toward safety, recover deterministically. It keeps protecting
%% the system while its own dependencies fail, and restores itself without heroics.
flowchart TB
EV["Events"] --> SW["Score windows"] --> DEC["Decisions"] --> ENF["Enforce bans"]
SW -. "store down" .-> BUF["Degraded mode:<br/>buffer events (memory ring)<br/>keep enforcing cached bans"]
BUF -. "store recovers" .-> RPL["Replay buffered events"]
ENF -. "enforcer fails 3×" .-> CB["Circuit breaker opens:<br/>alert · manual-ban via API"]
CB -. "enforcer recovers" .-> REAP["Re-apply missed bans"]
RST["On restart"] --> REC["Reconcile bans vs firewall<br/>(idempotent · remove orphans)"]
Capban Degraded Mode
Content source: Canonical Unit · canon/diagrams/capban-degraded-mode.mmd · Canonical source: canon/diagrams/capban-degraded-mode.mmd
Incoming References
Case Study 1
- CapBancase-capban
Law 1
- Systems Degrade Better Than Organizationslaw-07-systems-degrade-better
Projection 3
- Talk 0004 Systems In The Smalltalk-0004-systems-in-the-small
- Talk 0004 Systems In The Small Notestalk-0004-systems-in-the-small-notes
- Talk 0004 Systems In The Small Slidestalk-0004-systems-in-the-small-slides
