Repository navigation
feat(auto-routing): offline held-out sweep for routing table changes - #7510
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe incremental diff keeps unknown-cost routes in Files Reviewed (4 files)
Verified: the Previous Review Summaries (2 snapshots, latest commit 47712fd)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 47712fd)Status: 2 Issues Found | Recommendation: Merge with minor follow-ups Executive SummaryThe incremental fix correctly resolves all three prior findings (null grader scores, infra-error averaging, and re-ranked held-out picks); the only remaining items are two low-severity consistency/test-quality suggestions. Overview
Issue Details (click to expand)SUGGESTION
Previous findings re-verifiedAll three prior findings are fixed at
Verification notesProducer ( Files Reviewed (7 files)
Fix these issues in Kilo Cloud Previous review (commit 48255d2)Status: 3 Issues Found | Recommendation: Address before merge Executive SummaryA grader failure writes a Overview
Issue Details (click to expand)CRITICAL
SUGGESTION
Files Reviewed (8 files)
Reviewed by deepseek-v4.1-flash · Input: 67.5K · Output: 19K · Cached: 935.3K Review guidance: REVIEW.md from base branch |
…and evaluate the re-ranked picks
… real legacy errors in tests
bot: Add an offline held-out sweep that measures a routing-table change before it ships, and record the result for this series. This PR is stacked on #7504. Merge #7492, #7493, #7496 and #7504 first.
Change
pnpm sweep:offline --pairs pairs.json --catalog live|file --reps N --concurrency N --max-usd N --out sweep.json [--resume sweep.json]judgedgrader score the answers.trainandheldOut.--max-usd. The run checkpoints regularly and resumes from the checkpoint.scoreboard build --sweep sweep.json [--rebuild-from-sweep]fillsquality.heldOut:--rebuild-from-sweep: the held-out accuracy, estimated production cost and p50 latency of the given table's first picks.--rebuild-from-sweep: rebuilds the table fromtrainonly, with the current ranking policy (production cost estimate and Wilson bound), then evaluates its first picks onheldOut.Result: all 44 platform pairs, 2 repetitions
Live table picks against picks rebuilt by this series' policy from the new cases. The metrics are weighted by the production route mix and measured on held-out cases only.
Rollout
productionTokenProfileandswitchHorizonTurnsin the benchmark config (feat(auto-routing): rank by estimated production cost and switch only when it pays #7496).lowConfidenceThresholdstays off until production confidence data is reviewed.Verification
auto-routing,auto-routing-benchmarkandweb.auto-routing259,auto-routing-benchmark347. Lint is clean.