Skip to content

fix(drift): classify gemini-4-hydrogen - #617

Merged
jpr5 merged 3 commits into
mainfrom
fix/drift-classify-gemini-4-hydrogen
Nov 13, 2026
Merged

jpr5 merged 3 commits into
mainfrom
fix/drift-classify-gemini-4-hydrogen

Conversation

@jpr5

@jpr5 jpr5 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What

Classifies the new Gemini family gemini-4-hydrogen as INCLUDE (includeFamilies.gemini), so the live /models family canary stops reporting it as unclassified.

Supersedes #616 (the Fix Drift needs-human PR, which only added the proposal note with Decision: pending).

Fixes the critical in scheduled Drift Tests run 43376684576 (Thu Nov 12, 10:09 PM PST, main 78342949):
Google Gemini model-family availability — live /models contains no unclassified family → models/gemini-4-hydrogen.

Why INCLUDE

The approved rule: include when the live entry has no preview/EAP/[Confidential] marker, lists generateContent, and a text generateContent call returns 200 with text. This matches the gemini-4-argon precedent. Otherwise exclude, as with gemini-4-carbon (#614). Hydrogen meets every include condition. Google's Cloud guide also calls it a "short-term generally available (GA) release", with no allowlist.

Probe evidence (redacted)

There was no Gemini key on the local machine, so the probe ran in CI. Commit 0b8ac15b added a temporary diagnostic to models.drift.ts. It wrote a key-free summary to drift-evidence/ in the drift-live-pr head artifact (run 43472488931, Fri Nov 13, 9:27 AM PST). Commit 5acf0bb8 then reverted it, with no force-push. The artifact was checked for key material, and none was found.

GET /v1beta/models/gemini-4-hydrogen → 200

{
  "name": "models/gemini-4-hydrogen",
  "version": "3.0",
  "displayName": "Gemini 4 Hydrogen",
  "description": "Gemini 4 Hydrogen",
  "inputTokenLimit": 1048576,
  "outputTokenLimit": 65536,
  "supportedGenerationMethods": ["generateContent", "countTokens", "batchGenerateContent"],
  "thinking": true
}
  • The paged /models list contains models/gemini-4-argon, models/gemini-4-carbon and models/gemini-4-hydrogen.
  • POST /v1beta/models/gemini-4-hydrogen:generateContent ("Reply with the single word: pong") → 200. The response has the text part "pong", finishReason: "STOP", modelVersion: "gemini-4-hydrogen" and candidatesTokensDetails: [{modality: "TEXT"}].
  • Control: gemini-4-argon (already included) returned the same shape in the same run: 200, STOP, TEXT.
  • The entry has no bidiGenerateContent, embedContent or predict, so it is not a voice/audio family and needs no knownVoiceModelFamilies edit.

Changes (copied from the #610 include and #614 exclude shapes)

  • src/__tests__/drift/model-registry.ts: the gemini-4-hydrogen entry in includeFamilies.gemini, with an evidence comment.
  • src/__tests__/drift/logic-pin.test.ts: the includeFamilies.gemini checksum re-pin (2ce8c838… → 7d064a63…, cross-checked by recomputing sha256 of the sorted members).
  • src/__tests__/drift/models.drift.ts: the static Gemini /models wave entry.
  • src/__tests__/drift/text-drift.test.ts: the 2026-11-13 behavioural block, with negative controls (gemini-4-helium and gemini-4-hydrogen-tts are still reported).
  • drift-proposals/gemini-gemini-4-hydrogen-new-family.md: resolved with Decision: INCLUDE and the rationale.

RED / GREEN (real surface: live Gemini /models canary)

RED (before the fix, on main code):

  • Scheduled run 43376684576 report: a critical Unclassified model family "gemini-4-hydrogen" in gemini /models, path models/gemini-4-hydrogen.
  • drift-live-pr run 43472488931 (diagnostic head, main classification code): the base report (fresh live, 9:27 AM PST) and the head report both contain the same models/gemini-4-hydrogen critical.

GREEN (after the fix):

  • drift-live-pr run 43473964234 on head 2017bfdb: the head report (9:39 AM PST) has zero hydrogen mentions and no Gemini /models family-canary entry. The base report from the same run (fresh live main, 9:36 AM PST) still has the models/gemini-4-hydrogen critical, so the canary fired live in the same run and the fix cleared it. drift-live-pr: pass.
  • The head report has 6 remaining criticals, all native-authentication value divergences (Anthropic native authentication and version: status/type/error.type; Gemini native authentication: status/error.code/error.status). They are identical in the base report and in scheduled run 43376684576, they predate this PR, and this PR does not touch them.

Local, non-live:

  • vitest run src/__tests__/drift/: 20 files, 256 passed, 6 skipped.
  • pnpm typecheck: clean.
  • eslint and prettier --check on the changed files: clean.

🤖 Generated with Claude Code

…probe

Diagnostic only, reverted in a follow-up commit. Records the live
/models entry and one text generateContent result for gemini-4-hydrogen
into a key-free drift-evidence file so the family can be classified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@617

commit: 2017bfd

jpr5 and others added 2 commits November 13, 2026 09:31
The scheduled Drift Tests run 43376684576 flagged gemini/gemini-4-hydrogen
as an unclassified family in the live /models canary (needs-human PR
#616).

Classified INCLUDE on the live listing and a live probe, following the
gemini-4-argon precedent: GA displayName "Gemini 4 Hydrogen" with no
preview, EAP or confidential marker; supportedGenerationMethods
[generateContent, countTokens, batchGenerateContent]; a text
generateContent call returned 200 with a TEXT-modality text part and
finishReason STOP, the same shape as gemini-4-argon in the same run.

- includeFamilies.gemini entry with evidence, and its checksum re-pin
- Gemini static /models wave and behavioural coverage with negative
  controls
- drift-proposals note resolved: Decision INCLUDE

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jpr5
jpr5 marked this pull request as ready for review November 13, 2026 17:46
@jpr5
jpr5 merged commit 6af8b51 into main Nov 13, 2026
34 checks passed
@jpr5
jpr5 deleted the fix/drift-classify-gemini-4-hydrogen branch November 13, 2026 17:47
jpr5 added a commit that referenced this pull request Nov 20, 2026
…t-live-1.1 (#627)

## What

Classifies the 4 new model families raised by needs-human PR #625:

| Family | Decision | Set(s) |
|---|---|---|
| `gpt-6.2-astra` | **INCLUDE** | `includeFamilies.openai` |
| `gpt-6.2-sol` | **INCLUDE** | `includeFamilies.openai` |
| `gemini-4-neon` | **INCLUDE** | `includeFamilies.gemini` |
| `gpt-live-1.1` | **EXCLUDE** | `excludeFamilies.openai` +
`knownVoiceModelFamilies` |

Supersedes #625 (which only added the 4 proposal notes with `Decision:
pending`).

Fixes these criticals in the scheduled Drift Tests runs:
-
[44249205468](https://github.com/CopilotKit/aimock/actions/runs/44249205468)
(Tue Nov 17, 10:09 PM PST): `gpt-6.2-astra`, `gpt-6.2-sol`
-
[44470085876](https://github.com/CopilotKit/aimock/actions/runs/44470085876)
(Wed Nov 18, 10:09 PM PST): adds `gemini-4-neon`
-
[44685766665](https://github.com/CopilotKit/aimock/actions/runs/44685766665)
(Thu Nov 19, 10:09 PM PST, main `d0dfc594`): adds `gpt-live-1.1`, as a
`/models` critical and as an `OpenAI Realtime | known-models canary`
critical (`knownVoiceModelFamilies`).

## Decisions and probe evidence (redacted)

There are no provider keys on the local machine, so the probe ran in CI.
Commit `9ff5a97e` added a temporary diagnostic to `models.drift.ts`. It
wrote a key-free summary to `drift-evidence/` in the drift-live-pr head
artifact (run
[44799305557](https://github.com/CopilotKit/aimock/actions/runs/44799305557),
Fri Nov 20, 11:11 AM PST). Commit `bc98e16d` then reverted it, with no
force-push. The artifact was checked for key material, and none was
found.

### `gpt-6.2-astra`, `gpt-6.2-sol` → INCLUDE (`gpt-6-astra` /
`gpt-6.1-sol` precedent)

- `GET /v1/models/<id>` → **200**, `{id, object: "model", created,
owned_by: "system", shutdown_date: null}`. No capability field, the same
shape as `gpt-6.1-sol`.
- `POST /v1/chat/completions` ("Reply with the single word: pong") →
**200** for each, `object: "chat.completion"`, `finish_reason: "stop"`,
assistant content `"pong"`.
- `POST /v1/responses` → **200** for each, `status: "completed"`, one
`message` output with an `output_text` part `"pong"`.
- Control: `gpt-6.1-sol` (already included) returned the same shape in
the same run.
- No voice/audio token, so no `knownVoiceModelFamilies` edit.

### `gemini-4-neon` → INCLUDE (hydrogen precedent, #617)

`GET /v1beta/models/gemini-4-neon` → **200**
```json
{
  "name": "models/gemini-4-neon",
  "version": "3.0",
  "displayName": "Gemini 4 Neon",
  "description": "Gemini 4 Neon",
  "inputTokenLimit": 1048576,
  "outputTokenLimit": 65536,
  "supportedGenerationMethods": ["generateContent", "countTokens", "batchGenerateContent"],
  "thinking": true
}
```
- No preview, EAP or `[Confidential]` marker. It lists
`generateContent`. There is no `bidiGenerateContent`, `embedContent` or
`predict`.
- The paged `/models` list contains `gemini-4-argon`, `gemini-4-carbon`,
`gemini-4-hydrogen` and `gemini-4-neon`.
- `POST /v1beta/models/gemini-4-neon:generateContent` → **200**, text
part `"pong"`, `finishReason: "STOP"`, `modelVersion: "gemini-4-neon"`,
`candidatesTokensDetails: [{modality: "TEXT"}]`.
- Control: `gemini-4-hydrogen` returned the same shape in the same run.

### `gpt-live-1.1` → EXCLUDE (`gpt-live-1` precedent)

- `GET /v1/models/gpt-live-1.1` → **200**, `owned_by: "system"`,
`created` 2026-11-17. It is a point release of the full-duplex voice
line. The normalizer keeps `.1`, so it does not collapse onto
`gpt-live-1`.
- It is added to `excludeFamilies.openai` (the `/models` family canary)
AND to `knownVoiceModelFamilies` (the realtime known-models canary) in
the same commit, because the two sets are disjoint surfaces.
`src/ws-live.ts` is unchanged.

## Changes (copied from the #617 include and #614 exclude shapes)

- `src/__tests__/drift/model-registry.ts`: the 4 entries, each with an
evidence comment.
- `src/__tests__/drift/voice-models.ts`: `gpt-live-1.1` in
`knownVoiceModelFamilies`.
- `src/__tests__/drift/logic-pin.test.ts`: re-pins for
`includeFamilies.openai`, `includeFamilies.gemini`,
`excludeFamilies.openai` and `knownVoiceModelFamilies`. Each was
cross-checked by recomputing sha256 of the sorted members.
- `src/__tests__/drift/models.drift.ts`: the static OpenAI and Gemini
`/models` wave entries.
- `src/__tests__/drift/text-drift.test.ts`: a 2026-11-17..19 behavioural
block for the 3 includes, with negative controls. Two older negative
controls named families that are now classified (`gemini-4-neon` in the
argon block and `gpt-6.2-sol` in the 09-24..30 block). They now name
`gemini-4-xenon` and `gpt-6.3-sol`, which are still unclassified.
- `drift-proposals/*-new-family.md` (4 notes from #625): each is
resolved with its `Decision:` and the probe rationale.

## RED / GREEN (real surface: live `/models` family canaries and
realtime known-models canary)

**RED** (before the fix, on main code):
- Scheduled run 44685766665 report has these criticals: `OpenAI Chat |
live /models family canary` → `models/gpt-6.2-astra`,
`models/gpt-6.2-sol`, `models/gpt-live-1.1`; `Google Gemini | live
/models family canary` → `models/gemini-4-neon`; `OpenAI Realtime |
known-models canary` → `knownVoiceModelFamilies: gpt-live-1.1`.
- drift-live-pr run 44799305557 on this PR (diagnostic head, main
classification code): the BASE report (fresh live, 11:11 AM PST) and the
head report both contain the same 5 criticals.

**GREEN** (after the fix):
- drift-live-pr run
[44800890167](https://github.com/CopilotKit/aimock/actions/runs/44800890167)
on head `8168aa9b`: the head report (11:24 AM PST) has **zero** mentions
of `gpt-6.2-astra`, `gpt-6.2-sol`, `gemini-4-neon` or `gpt-live-1.1`, no
`/models` family-canary critical and no realtime canary critical. The
base report from the same run (fresh live main, 11:22 AM PST) still has
all 5 criticals, so the canaries fired live in the same run and the fix
cleared them. drift-live-pr: pass.
- The head report has 6 remaining criticals, all native-authentication
value divergences (`Anthropic native authentication and version`:
status/type/error.type; `Gemini native authentication`:
status/error.code/error.status). They are identical in the base report
and in scheduled run 44685766665. They predate this PR, and this PR does
not touch them.

Local, non-live:
- `vitest run src/__tests__/drift/`: 20 files, 259 passed, 6 skipped.
- `vitest run` of `ws-realtime-canary`, `drift-sync-core` and
`drift-remediation-strings`: 3 files, 263 passed.
- `pnpm typecheck`: clean.
- eslint and `prettier --check` on the changed files: clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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