Repository navigation
Cover route_multi in the routing eval; relabel out-of-scope as decline - #2879
Conversation
…line (closes #2877) - Add `multi` and `decline` expectation kinds. Two compound scenarios expect route_multi; two single-intent-at-length scenarios must not. - Every non-multi scenario now fails if Stage 1 routes multi, so an over-splitting regression can't pass on downstream effects. - Log a route_multi call with fewer than two usable queries as `multi_rejected` instead of `none`. It is the over-selection the guard clauses target, and it was indistinguishable from "no routing tool". - out-of-scope-weather: `decline` asserts the turn outcome (no route_clarify, no mutation, a reply) and leaves Stage 1's tool choice unasserted, per ADR-038's existing fall-through clause. - clarification-then-fallthrough: add a comment justifying the label via the at-most-one-clarification contract. - The header states the Stage-1 constant-answer baseline (13/18 = 72.2%). It is pinned by a test and printed in every run's summary. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Pragmatic Code Review: PR #2879Review Type: Initial review (no prior reviews or comments on the PR) SummaryThis is a tightly scoped, net-positive change. It closes the eval's blind spot for Requirements Check
Code Review Findings🔴 CriticalNone. 🟡 Improvements
🟢 Nits
Standards Check
RecommendationAPPROVE. The two 🟡 items are small, local clean-ups that are worth folding in during address-review. Neither affects correctness of the scoring or of the Rust tag. 🤖 Generated with Claude Code |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
- askedToClarify reads routingDecision only. route_clarify never appears in toolsCalled (Stage-1 chunks aren't forwarded), so the second check could never fire. - The baseline test now also pins the header's 13/3/2 per-decision split (mutation-checked: altering the header fails it). - The undecided_routing_tag doc and None-arm comment now say that a route_multi call with unparseable arguments counts as multi_rejected. - Re-wrap the comment lines the widened outcome lists pushed long. Skipped: the NaN% guard for an empty scenario list. The shipped fixture can't be empty, and the baseline test would fail first. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Address-review summaryFixed in a409abc:
Skipped:
Re-Review DecisionDecision: NO RE-REVIEW NEEDED |
Closes #2877
Summary
multianddeclineexpectation kinds. Two compound scenarios expectroute_multi. Two single-intent-at-length scenarios (singleIntentAtLength) must not route multi; these are the negative case the guard clauses defend against.multi_rejectedlog tag. Aroute_multicall with fewer than 2 usable queries used to lognone, which looked the same as "no routing tool called". It now logsmulti_rejected(routing::undecided_routing_tag, unit-tested), so the rejection path the issue flagged is now measured.out-of-scope-weather→decline. Follows the decision in the issue comment: assert the turn outcome (noroute_clarify, no mutating tool, the turn ends in a reply) and leave Stage 1's tool choice unasserted. This corrects a label against ADR-038's existing fall-through clause, so no ADR amendment is needed.clarification-then-fallthrough. Keeps the label and adds a comment: the scored turn follows a clarification and the user's answer, so the at-most-one-clarification contract applies (clarify_suppressed). The label tests that contract, not whether the prompt is clear on its own.Test plan
scripts/eval/fixtures/routing.test.ts(9 tests). Mutation-checked: removing the global multi guard fails 2 of them.guidance_is_not_contaminated_by_eval_promptspasses with the 4 new promptsa_rejected_route_multi_is_tagged_apart_from_no_decisionbun run quality:fixclean; pre-push gate (test:all + build + e2e) passed🤖 Generated with Claude Code