Commit 3c5d05d
fix(router): factual queries -> constraint_tracker + word-boundary keyword match
Directness root cause: factual fast-path routed to newton, but the
voice-reinforced newton adapter over-elaborates and buries the answer
("spiders have eight distinct features related to their leg structure...")
instead of stating it. Route simple factual queries to constraint_tracker
instead — its training is terse, answer-first, constraint-compliant.
Also fixed a substring false-positive: short alphabetic keywords now match on a
word boundary, so "api" (systems_architecture) no longer matches inside
"cApItal" — "What is the capital of France?" was misrouting to systems and
giving a non-answer (hurting hallucination_prevention).
Verified: all 6 benchmark factual queries now route to constraint_tracker;
all domain canaries (newton/davinci/empathy/quantum/systems) unchanged.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 319a385 commit 3c5d05d
1 file changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
294 | 302 | | |
295 | | - | |
| 303 | + | |
296 | 304 | | |
297 | 305 | | |
298 | 306 | | |
299 | 307 | | |
300 | | - | |
| 308 | + | |
301 | 309 | | |
302 | 310 | | |
303 | 311 | | |
| |||
333 | 341 | | |
334 | 342 | | |
335 | 343 | | |
336 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
337 | 351 | | |
338 | | - | |
| 352 | + | |
339 | 353 | | |
340 | | - | |
| 354 | + | |
341 | 355 | | |
342 | 356 | | |
343 | 357 | | |
| |||
0 commit comments