mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
test(mods): judge none label renders as no specialist (ADR-530)
Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
1 parent
e189b89763
commit
8fff84a767
2 files changed
+11
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user