Repository navigation
feat(addie): pilot Gemini 3.7 Direct in web chat - #7408
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — gemini-3.7-direct-v1 Addie web pilot.
No blocking or medium findings. The reviewer confirmed no protocol surface was touched (no static/schemas/source/**, docs/reference/**, or dist/** changes), so changeset/spec-drift/oneOf/artifact rules do not apply. Migration 586 is additive and guarded (judged as production-facing per repo convention). Verified the layered mutation boundary, fail-closed alternate-provider guard, billing idempotency (no bypass or double-count), receipt/delivery buffering that suppresses partial Gemini output before control fallback, and Google streaming abort handling.
Decision table: high_risk is true, but all flagged files are (added) or (modified) with no medium-or-higher findings — no (deleted) entries (row 3 n/a), no medium findings on modified sensitive files (rows 4/5 n/a). gated_paths is false (row 2 n/a). No author team gate (row 7 n/a). Zero medium findings (row 8 n/a). No prior decision. Falls through to row 9 → approve.
Note: review_decision is REVIEW_REQUIRED, but since gated_paths is false and no prose hard gate applies (no protocol/breaking-class change), this does not force escalation.
Addie web chat currently routes authenticated turns through the Anthropic response path. This adds a staff pilot of Gemini 3.7 Direct versus the existing Haiku → Sonnet stack, with stable assignment and a subsequent 10% eligible-user A/B setting.
Gemini starts with documentation/schema tools and loads additional authorized read-only groups on demand. It uses native Google streaming and the shared production execution/accounting loop. Unsupported work hands off to the routed workflow; mutations remain on control. Attachments, certification, sponsored intelligence, interrupted retries, and explicit GitHub creation requests are excluded. Fallback time, settled costs, and requested/actual provider identity stay attributed to treatment.
The admin-only
/api/addie/chat/experimentendpoint reports latency including routing, cost, errors, fallbacks, ratings, and marked resolutions. Thread assignment is atomic; migration 586 stores outcomes linked to existing messages.fly.tomlselects staff mode on deployment.MODE=offoverrides saved assignments. The runbook documents rollout and review criteria.Validation:
Release dependency: this PR has not activated production. Main's existing protected matched-v4 provisioning run 34478760809 failed with empty database/principal/manifest inputs, so Deploy was skipped. This product experiment uses the ordinary application database and existing Gemini key. It does not bypass that deployment dependency or add evaluator infrastructure.