Skip to main content

Module auto_mode_resolver

Module auto_mode_resolver 

Source

Structs§

AutoModeContext
ResolvedMode

Functions§

flush_sources
Persist the in-process counters by adding them into the cumulative on-disk file, then reset the process counters. The counters live in the MCP/CLI process — the dashboard is a separate process and can only see them through this file (#505).
persisted_source_counts
Cumulative auto-mode decision sources from disk (all processes, all time), sorted by count descending. Used by the dashboard’s Live Signals panel.
pressure_downgrade
Unified pressure downgrade table. Used by both context_gate and intent_router pressure paths.
resolve
Single entry point for auto-mode resolution. Merges Pipeline A (select_mode_with_task) and Pipeline B (resolve_auto_mode).
source_counts
Snapshot of auto-mode decision sources, sorted by count descending.