Skip to content

Fix image helper routing and raise V2 Flash Continuum allocation - #963

Merged
AnthonyRonning merged 2 commits into
masterfrom
codex-imgroute-maple
Sep 17, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
codex-imgroute-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Image helpers required Continuum Flash even when request-scoped routing selected Tinfoil. That rejected Flash before any provider send and unnecessarily fell back to Gemma. The first commit makes helpers select only the public model and delegates provider selection to ordinary V1/V2 routing. It preserves the Flash → Gemma → Kimi order, reasoning settings, bounded response handling, and usage accounting; completion logs record the provider that actually answered.

The separate follow-up commit changes healthy V2 Flash allocation from 90% Tinfoil / 10% Continuum to 70% / 30% across Responses, Chat Completions, and helpers. Allocation remains sticky by account, and Flash retains its capacity-only failover policy. Routing policy version advances to routing-v2-weighted-v3. V1 provider preferences and the production Router V2 rollout percentage are unchanged.

Validation on macOS through the pinned backend Nix environment, with RUSTFLAGS='-D warnings':

  • cargo fmt --all -- --check
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --locked --all-features: 647 passed, 23 ignored, zero failures.
  • Regression coverage checks helper acceptance of both providers under V1/V2, same-model provider replanning before send, all 100 allocation buckets across inference surfaces, and preservation of V1 flag behavior.

Local encrypted SDK smoke at 0060b1c4 now passed against the local backend with live Tinfoil and Continuum:

  • Four image cases: V1 Tinfoil, V1 Continuum, V2 Tinfoil, and V2 Continuum. The V2 Continuum account was in bucket 27, exercising the newly expanded allocation; V2 provider flags were deliberately set to the opposite provider.
  • All four image helpers completed on Flash in one attempt. No provider-constraint rejection or Gemma fallback occurred.
  • Every image stream emitted exactly one completed terminal. Fresh authenticated SDK reads verified completed response status, stored assistant content, and one persisted read_image pair.
  • Ordinary V2 Chat Completions passed on both providers, and a text-only Continuum follow-up reused the stored image description without another image helper.
  • Backend logs correlated 15 completed model executions (11 Flash plus four title helpers), zero provider failures, and actual provider/canonical model usage attribution. The isolated PostgreSQL database contained 15 positive-token usage records.

Paid entitlement came from an authenticated loopback billing fixture. SQS was disabled, so downstream billing delivery/pricing was not exercised. The 23 opt-in database/live-provider test cases remain ignored; the live validation above used the encrypted SDK instead. The manager's generic smoke command reached an obsolete /health-check-extended endpoint and received 404; direct health and the functional SDK checks passed. Nothing has been deployed.

@AnthonyRonning
AnthonyRonning marked this pull request as ready for review September 17, 2026 07:32
@AnthonyRonning
AnthonyRonning merged commit 8b7ebcf into master Sep 17, 2026
20 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-imgroute-maple branch September 17, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant