Engine Thresholds
Warden’s engines use configurable thresholds to control intervention timing and sensitivity. All thresholds have sensible defaults — configuration is optional.
Loopbreaker
Controls retry and thrash detection.
| Setting | Default | Description |
|---|---|---|
loop_threshold | 3 | Consecutive similar commands before intervention |
dedup_window | 5 | Turns to look back for duplicate detection |
read_spiral_threshold | 5 | Consecutive reads without action before warning |
Compass
Controls drift detection and checkpoint timing.
| Setting | Default | Description |
|---|---|---|
drift_turns | 3 | Sustained drift turns before intervention |
stale_milestone_turns | 15 | Turns without milestone before checkpoint |
Focus
Controls working-set and scope governance.
| Setting | Default | Description |
|---|---|---|
max_working_set | 15 | Files in active scope before warning |
max_directories | 8 | Directories touched before sprawl warning |
Dream
Controls background learning sensitivity.
| Setting | Default | Description |
|---|---|---|
min_sessions_for_learning | 3 | Sessions before cross-session patterns activate |
Oversight
Controls human supervision quality monitoring.
| Setting | Default | Description |
|---|---|---|
enabled | true | Enable oversight quality tracking |
fast_high_risk_approval_ms | 2500 | Milliseconds below which a high-risk approval is “fast” |
fatigue_window_turns | 12 | Turns to look back for fatigue signals |
All thresholds can be set in rules.toml under the appropriate section (e.g., [loopbreaker], [compass], [focus], [dream], [oversight]).