You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model router: a classification miss is completely silent — log a per-miss INFO (with the reason where available) #287
When the router classifier misses, the delegation fail-softs to the inherited default model with zero observability. The only miss signal today is the breaker-open INFO after modelRouterBreaker counts 3 consecutive misses — isolated misses (and any miss pattern interleaved with hits, which reset the breaker) are invisible. The success path logs (msg="subagent routed" in the dispatch.go routeTask closure); the miss path logs nothing.
There are six distinct silent miss causes:
degenerate input (nil engine / empty category list / blank task prompt) — RunModelRouter early return;
classifier run ended StopError;
classifier run ended StopCancelled (incl. the 30s timeout);
verdict output not a single JSON object (parseRouterVerdict prefix/suffix check);
bad JSON / empty or hallucinated category (membership check);
composition-side: the category's model selector empty or unresolvable through lookupModelAlias (buildModelRouterTask).
Impact (observed)
Session 2e4ccc75db19: the plain "Standards conformance review" delegation should have routed (its siblings "Spec adherence" and "QA test-adequacy" routed medium → deepseek-v4-pro seconds apart) but ran on the inherited kimi-k3 with no log line. From the log/TUI there is no way to distinguish gated (agent/model/fork/resume set) from missed (classifier failed) — both look identical: no routed line, inherited model.
Ask
Per-miss INFO at the dispatch chokepoint — r.diag is already in scope exactly where the "subagent routed" success INFO logs; add the symmetric miss line (e.g. subagent model router: classification missed; child inherits the default model). Metadata-only, gauntlet ACP: accept client-provided streaming-HTTP MCP servers #7: never the task prompt or classifier output.
Reason where available. The composition-side misses (cause 6) can name the category/selector with no API change inside buildModelRouterTask. Carrying the classifier-side reason (parse-miss vs error-stop vs timeout) out of RunModelRouter is an engine API change (return a reason value) — api-compat gate + engine/CHANGELOG.md per ADR 0037, classified Changed/breaking, or add a sibling function.
Optional follow-up: a wire-visible cue so the TUI can distinguish gated vs missed (e.g. session.SubagentPayload.RoutedMiss bool on EvSubagentStart — Added/minor), so a card can render router: missed → inherited instead of a bare model: line.
These lines are dispatch-time diagnostics like the existing routed INFO — the "loop emits exactly THREE lines" invariant is untouched.
Related: ADR 0031 (fail-soft posture — this keeps fail-soft, it just makes it visible); #285, #286.
Activity
docs(engine): drop orphaned conflict marker in CHANGELOG (#296)