Skip to main content

Module breaker

Module breaker 

Source
Expand description

The circuit breaker: per-session Δ window + token gate + verdicts.

Structs§

BreakerConfig
Breaker tuning (config-file surface). Defaults implement the brief’s rule: Δ≈0 across 3 consecutive steps while consuming N+ tokens.
SessionLoopState
Per-session loop-detection state. Embedding/delta mutation happens on worker threads; the hot path reads SessionLoopState::state and SessionLoopState::action, and calls SessionLoopState::reset when an Inject verdict fires.

Enums§

BreakerAction
What the harness does when the breaker trips.
BreakerState
Current breaker state (exposed to metrics / events).
BreakerVerdict
Verdict for one observed step.