Skip to content

feat(addie): pilot Gemini 3.7 Direct in web chat - #7408

Merged
bokelley merged 3 commits into
mainfrom
chengdu-v15
Sep 10, 2026
Merged

bokelley merged 3 commits into
mainfrom
chengdu-v15

Conversation

@bokelley

@bokelley bokelley commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

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/experiment endpoint reports latency including routing, cost, errors, fallbacks, ratings, and marked resolutions. Thread assignment is atomic; migration 586 stores outcomes linked to existing messages. fly.toml selects staff mode on deployment. MODE=off overrides saved assignments. The runbook documents rollout and review criteria.

Validation:

  • Complete CI test suite passes in shards; TypeScript, generated tool inventory, and security checks pass.
  • 425 focused deterministic tests pass across delivery, authorization, tool execution, routing, provider fallback, accounting, and evidence boundaries.
  • PostgreSQL 16 checks cover migration replay, outcome queries, and 20 concurrent assignments.
  • Three live Gemini 3.7 checks with production prompts and synthetic handlers pass documentation lookup, domain discovery, and handoff. The final low-thinking run cost approximately $0.086. These are smoke checks, not a production quality comparison.

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.

@bokelley
bokelley marked this pull request as ready for review September 10, 2026 14:39
@bokelley
bokelley enabled auto-merge (squash) September 10, 2026 14:39

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bokelley
bokelley merged commit 72e5ef3 into main Sep 10, 2026
41 of 42 checks passed
@bokelley
bokelley deleted the chengdu-v15 branch September 10, 2026 14:48
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