Repository navigation
fix(drift): classify gemini-4-hydrogen - #617
Merged
Merged
Conversation
…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>
commit: |
…Content probe" This reverts commit 0b8ac15.
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
marked this pull request as ready for review
November 13, 2026 17:46
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Classifies the new Gemini family
gemini-4-hydrogenas INCLUDE (includeFamilies.gemini), so the live/modelsfamily 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, listsgenerateContent, and a text generateContent call returns 200 with text. This matches thegemini-4-argonprecedent. Otherwise exclude, as withgemini-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
0b8ac15badded a temporary diagnostic tomodels.drift.ts. It wrote a key-free summary todrift-evidence/in the drift-live-pr head artifact (run 43472488931, Fri Nov 13, 9:27 AM PST). Commit5acf0bb8then 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 }/modelslist containsmodels/gemini-4-argon,models/gemini-4-carbonandmodels/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"andcandidatesTokensDetails: [{modality: "TEXT"}].gemini-4-argon(already included) returned the same shape in the same run: 200, STOP, TEXT.bidiGenerateContent,embedContentorpredict, so it is not a voice/audio family and needs noknownVoiceModelFamiliesedit.Changes (copied from the #610 include and #614 exclude shapes)
src/__tests__/drift/model-registry.ts: thegemini-4-hydrogenentry inincludeFamilies.gemini, with an evidence comment.src/__tests__/drift/logic-pin.test.ts: theincludeFamilies.geminichecksum re-pin (2ce8c838…→7d064a63…, cross-checked by recomputing sha256 of the sorted members).src/__tests__/drift/models.drift.ts: the static Gemini/modelswave entry.src/__tests__/drift/text-drift.test.ts: the 2026-11-13 behavioural block, with negative controls (gemini-4-heliumandgemini-4-hydrogen-ttsare still reported).drift-proposals/gemini-gemini-4-hydrogen-new-family.md: resolved withDecision: INCLUDEand the rationale.RED / GREEN (real surface: live Gemini
/modelscanary)RED (before the fix, on main code):
Unclassified model family "gemini-4-hydrogen" in gemini /models, pathmodels/gemini-4-hydrogen.models/gemini-4-hydrogencritical.GREEN (after the fix):
2017bfdb: the head report (9:39 AM PST) has zerohydrogenmentions and no Gemini/modelsfamily-canary entry. The base report from the same run (fresh live main, 9:36 AM PST) still has themodels/gemini-4-hydrogencritical, so the canary fired live in the same run and the fix cleared it. drift-live-pr: pass.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.prettier --checkon the changed files: clean.🤖 Generated with Claude Code