Files
Dragan Spiridonov e44503e389 feat(routing): cross-model best-of-k in the free-tier executor (A12, opt-in)
A12 measured cross-model best-of-N at +6 composite over single-model (diverse
models cover each other's validity failures; the win is captured by first-pass
selection, no judge needed). Wire it as an opt-in capability:

- executor: candidateProviders?: FreeTierProviderConfig[] — when set, round-0
  best-of-k at the START free tier draws each candidate from a DIFFERENT provider
  (e.g. local qwen + an OpenRouter model) instead of one model's variants;
  selection stays the objective verifier (first-pass = validity rescue). Per-
  candidate attempt.model telemetry. Off (single-model) unless set.
- coordinator-support: FreeTierCoordinatorConfig.freeTierCandidateProviders
  passthrough so coordinators can opt in.
- tests: cross-model rescue (falls through to the valid model, no escalation) +
  single-model-unchanged. 87 green across the lane; strict-tsc clean.

No judge wired — A12 showed it does not beat first-valid on the cross-model pool.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 06:55:38 +00:00
..