Repository navigation
feat(auto-routing): effort from complexity, TTFT-aware ranking and candidate screening - #7518
Conversation
… in the background
# Conflicts: # services/auto-routing-benchmark/src/scoreboard/build.test.ts # services/auto-routing-benchmark/src/scoreboard/build.ts
…anking and low-confidence fallback
…eculative # Conflicts: # services/auto-routing-benchmark/src/decider-judge.ts
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of Files Reviewed (6 files)
Verification notes
Previous Review Summaries (4 snapshots, latest commit 441b639)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 441b639)Status: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of Files Reviewed (4 files)
Verification notes
Previous review (commit 6c03fab)Status: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of Files Reviewed (2 files)
Verification notes
Previous review (commit c8c8f28)Status: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of Files Reviewed (11 files)
Verification notes
Previous review (commit b025cc9)Status: 4 Issues Found | Recommendation: Address before merge Executive SummaryThe new TTFT ranking term is inert on the publish path because Overview
Issue Details (click to expand)WARNING
SUGGESTION
Verification notes
Files Reviewed (35 files)
Reviewed by deepseek-v4.1-flash · Input: 64.2K · Output: 29.7K · Cached: 811.1K Review guidance: REVIEW.md from base branch |
…to igor/auto-efficient-policy-v3
…o-efficient-sweep-v2
…weep-v2 # Conflicts: # services/auto-routing-benchmark/README.md # services/auto-routing-benchmark/scripts/offline-sweep.ts # services/auto-routing-benchmark/src/datasets/decider-cases.test.ts # services/auto-routing-benchmark/src/datasets/decider-cases.ts # services/auto-routing-benchmark/src/scoreboard/build.test.ts # services/auto-routing-benchmark/src/scoreboard/build.ts # services/auto-routing-benchmark/src/scoreboard/compare.ts # services/auto-routing-benchmark/src/scoreboard/schema.ts # services/auto-routing-benchmark/src/scoreboard/sweep.test.ts # services/auto-routing-benchmark/src/scoreboard/sweep.ts
…olicy-v3 # Conflicts: # services/auto-routing-benchmark/README.md # services/auto-routing-benchmark/scripts/offline-sweep.ts # services/auto-routing-benchmark/src/scoreboard/sweep.ts
bot: Adds two ranking inputs and a candidate screen: effort from classifier complexity, a time-to-first-token (TTFT) term in the value formula, and a report of promising new catalog models. This PR is stacked on #7517.
Change
effortByComplexity: for each route and model, the variant to use perreasoningComplexitybucket.src/datasets/case-complexity.json. The production classifier generated that file. A bucket with fewer than 6 graded cases uses the route-level pick.p50TtftMs + LATENCY_TOTAL_WEIGHT × p50LatencyMs, with a weight of 0.15.p50TtftMs, and the policy isvalue-ttft-prodcost-wilson-v4.screen:candidatessamples cases per route for catalog models that are not yet benchmarked. It reports their value against the current first picks. It is a report only and never changes config.routing_tables.effort_by_complexity.Held-out result (fully streamed sweep, 44 platform pairs, 2 repetitions)
Rebuilt picks against the live table's picks, weighted by the production route mix:
Verification
auto-routing289,auto-routing-benchmark468 tests pass. Typecheck passes, and type-aware lint is clean.