Repository navigation
Routing eval harness: repeatable fixtures for skill-discovery accuracy (indirect phrasing, clarification, mis-route) - #1358
Conversation
Implements repeatable fixture set covering all ADR-036 routing accuracy cases: indirect phrasing, ambiguous clarification, mutating-skill gate, and adversarial checks. Runnable locally and in CI against the upgraded engine via `bun run eval:routing <label> [out.json]` with optional baseline regression comparison via `ROUTING_BASELINE=path/to/baseline.json`. Co-Authored-By: Claude <[email protected]>
Code Review — PR #1358: Routing Eval HarnessReview Type: Initial Review Overall AssessmentThis PR delivers a well-scoped eval harness that fulfills its purpose: converting ad-hoc ADR-036 routing observations into repeatable CI fixtures. The fixture set is thoughtfully designed — the Two targeted issues need addressing before merge: an incomplete mutating-tool allowlist that creates gaps in the adversarial gate assertions, and a dead Requirements Check
Findings🟡 [Improvement]
|
malibio
left a comment
There was a problem hiding this comment.
Two targeted fixes needed before merge: (1) expand the calledMutatingTool allowlist to include update_node, create_relationship, create_nodes_from_markdown — closes a real gap in the adversarial gate assertions that exist in the actual tool surface; (2) fix the dead adversarial: true flag on out-of-scope-weather (either remove it or add the !calledSearchSkills check that matches the stated intent). Both are small localized changes. Full details in the review comment.
… out-of-scope comment
- calledMutatingTool: extend allowlist from 4 to 8 tools to match Tool::ALL in
tools.rs (update_node, update_task_status, create_relationship,
create_nodes_from_markdown were missing — a false-pass risk for adversarial fixtures)
- isClarification: replace bare 'which' with 'which one'/'which would'/'which do'
to reduce false positives from compound sentences ("results which contain...")
- out-of-scope-weather: add comment explaining why adversarial:true is meaningful
now that the mutating allowlist is complete; the flag enforces no-mutation for
off-topic queries even if the routing pipeline is entered to confirm no match
- topScore: add TODO(#1357) reference so the unimplemented ADR-036 gate signal
is tracked rather than silently skipped
Skipped: extracting shared aichat helpers to aichat-client.ts — two scripts is
below the extraction threshold; deferred until a third harness appears.
Co-Authored-By: Claude <[email protected]>
Review Feedback AddressedAll 🟡 Important and 🟢 Suggestion findings from the initial review have been addressed in commit ✅ Addressed (4/5 recommendations)🟡 🟡 🟢 🟢 ⏭️ Skipped (1/5 recommendations)🟢 Extract shared aichat helpers to |
…y (indirect phrasing, clarification, mis-route) (#1358) * Add routing eval harness for skill-discovery accuracy (closes #1357) Implements repeatable fixture set covering all ADR-036 routing accuracy cases: indirect phrasing, ambiguous clarification, mutating-skill gate, and adversarial checks. Runnable locally and in CI against the upgraded engine via `bun run eval:routing <label> [out.json]` with optional baseline regression comparison via `ROUTING_BASELINE=path/to/baseline.json`. Co-Authored-By: Claude <[email protected]> * Address review: fix mutating-tool allowlist, clarification heuristic, out-of-scope comment - calledMutatingTool: extend allowlist from 4 to 8 tools to match Tool::ALL in tools.rs (update_node, update_task_status, create_relationship, create_nodes_from_markdown were missing — a false-pass risk for adversarial fixtures) - isClarification: replace bare 'which' with 'which one'/'which would'/'which do' to reduce false positives from compound sentences ("results which contain...") - out-of-scope-weather: add comment explaining why adversarial:true is meaningful now that the mutating allowlist is complete; the flag enforces no-mutation for off-topic queries even if the routing pipeline is entered to confirm no match - topScore: add TODO(#1357) reference so the unimplemented ADR-036 gate signal is tracked rather than silently skipped Skipped: extracting shared aichat helpers to aichat-client.ts — two scripts is below the extraction threshold; deferred until a third harness appears. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
Closes #1357