diff --git a/plugins/ruflo-mods/tests/route-judge.test.ts b/plugins/ruflo-mods/tests/route-judge.test.ts index cc82f1c48e..fc5a0fed2c 100644 --- a/plugins/ruflo-mods/tests/route-judge.test.ts +++ b/plugins/ruflo-mods/tests/route-judge.test.ts @@ -77,6 +77,14 @@ describe('model-judge routing, wired (ADR-530)', () => { expect(box(seen)).toContain('Agent: tester') }) + test('on: `none` is shown as no specialist at the no-match prior', { options: { routeJudge: true } }, async ($, on) => { + const { seen } = boot(on, () => answered('none')) + await $.session.start(START) + await $.prompt.submit({ text: 'is the console updated?' } as never) + expect(box(seen)).toContain('Agent: none') + expect(box(seen)).toContain('Confidence: 30.0%') + }) + test('on: slash commands never reach the judge', { options: { routeJudge: true } }, async ($, on) => { const { asked } = boot(on, () => answered('coder')) await $.session.start(START) diff --git a/v3/docs/adr/ADR-530-model-judge-routing.md b/v3/docs/adr/ADR-530-model-judge-routing.md index 78427a0c96..81d4a9168f 100644 --- a/v3/docs/adr/ADR-530-model-judge-routing.md +++ b/v3/docs/adr/ADR-530-model-judge-routing.md @@ -63,6 +63,9 @@ measured here. 3. The route carries `reason: "model-judge"`; the `$.ruflo` route contract, vendored by ruflo-console and ruflo-ruos, is unchanged, and `confidence` keeps its priors (0.6 a route, 0.3 `none`). The context box names the judge. + A `none` label is shown as `Agent: none` (no specialist; the lead handles + it), not replaced by the keyword table's guess, so `$.ruflo.lastRoute()` + consumers can see `agent: "none"` with `matched: false`. 4. Turning it on by default needs the fresh human-labelled result and the maintainer's decision.