Repository navigation
fix(drift-sync): mechanical model-family sync (2026-11-07) - #606
Merged
Merged
Conversation
- deprecation-recorded openai/gpt-3.5-turbo - deprecation-recorded openai/gpt-4 - deprecation-recorded openai/gpt-4-turbo - deprecation-recorded openai/gpt-4.1-nano - deprecation-recorded openai/gpt-5-chat-latest - deprecation-recorded openai/gpt-5-codex - deprecation-recorded openai/gpt-5.1-chat-latest - deprecation-recorded openai/gpt-5.1-codex - deprecation-recorded openai/gpt-5.1-codex-max - deprecation-recorded openai/gpt-5.1-codex-mini - deprecation-recorded openai/gpt-5.2-chat-latest - deprecation-recorded openai/gpt-5.2-codex - deprecation-recorded openai/gpt-5.3-chat-latest - deprecation-recorded openai/o1 - deprecation-recorded openai/o1-pro - deprecation-recorded openai/o3-mini - deprecation-recorded openai/o4-mini
commit: |
jpr5
added a commit
that referenced
this pull request
Nov 9, 2026
…ns (#608) Drift-sync's routine PR #606 (17 openai deprecations recorded in `deprecatedFamilies.openai`) failed CI run 42346883216 (`test (20)`). The tests assumed that ledger is empty. drift-sync itself works correctly; this PR changes tests only. ## Root cause - `drift-sync-core.test.ts`: "a whole morning's worth of deprecations…" took its stand-ins from `[...includeFamilies.openai].slice(0, 10)`. "recording a deprecation leaves the includeFamilies checksum pin GREEN" hard-coded `gpt-4` and `gpt-4-turbo`. `detectDeprecatedFamiliesForSync` correctly drops families the real ledger already records (`scripts/drift-sync.ts:450-454`), so after #606 those stand-ins are no longer reported. Fix: derive them with `unrecordedFamilies(provider, n)`, which is the existing anthropic-only helper made to work for any provider. - `drift-sync-check.test.ts` (same class of failure; it only showed up once #605 landed on main): the fixtures add run 42286556743's 17 deprecations on top of the real registry. Once #606 commits those same 17, the writer refuses to add a duplicate and the file throws at load. Fix: start from the real registry with `deprecatedFamilies.openai` emptied back to its comment-only shape. ## RED / GREEN - RED (main + #606 diff): `drift-sync-core` had 2 failures: `expected … to have a length of 10 but got 6` and `expected [ 'gpt-4o' ] to deeply equal [ 'gpt-4', 'gpt-4-turbo', 'gpt-4o' ]`. `drift-sync-check` failed at load with `fixture: could not add gpt-3.5-turbo to deprecatedFamilies.openai`. - GREEN: all 34 drift test files pass both with and without the #606 diff applied (1096 passed). - The tests still catch regressions (checked with #606 applied, in a scratch copy). Processing only the first candidate makes both core tests fail. Removing a zero-reference family from includeFamilies makes 3 tests fail. Making `deprecationOnlyOutcomes` bail on families that are already recorded makes 5 check tests fail. - Full suite passes: 487 files. Typecheck, lint, prettier, and build are clean.
This was referenced Nov 10, 2026
jpr5
added a commit
that referenced
this pull request
Nov 10, 2026
…R delta gate (#609) ## Problem `drift-live-pr` > "Delta gate" throws `Unexpected retained-policy Gemini gateway response` on PRs. It failed on #605 and on both attempts of #606 (run 42697621424). The same `classifyNative` check also runs in the scheduled job. The gate allowed only one exact real Gemini unauthenticated body. Google's gateway now returns two bodies, and they alternate: **Old** (seen Nov 7 10:07 PM PST scheduled, and again Nov 9 10:30 PM PST in run 42768299471): ```json {"status":403,"body":{"error":{"code":403,"status":"PERMISSION_DENIED","message":"Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API."}}} ``` **New** (seen in run 42697621424 attempts 1 and 2 on Nov 9 at 1:01 PM and 1:13 PM PST, and in the scheduled run 42766538763 on Nov 9 at 10:13 PM PST): ```json {"status":403,"body":{"error":{"code":403,"status":"PERMISSION_DENIED","message":"Permission denied on the service.","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"ACCESS_DENIED","domain":"googleapis.com","metadata":{"service":"generativelanguage.googleapis.com"}},{"@type":"type.googleapis.com/google.rpc.LocalizedMessage","locale":"en-US","message":"Permission denied on the service."}]}}} ``` The status, `error.code`, and `error.status` did not change. The new body has a different message and adds `error.details`. ## Fix The gate now accepts exactly these two documented bodies (deep-equal) and nothing else. aimock's local 401 `UNAUTHENTICATED` contract stays the same, and so does the retained `Gemini native authentication` / `inbound policy divergence` entry. ## Red/green (real gate script extracted from the workflow, run on the captured run artifacts in delta mode) | Artifacts | main | this PR | |---|---|---| | #606 attempt 1 (new body) | `Error: Unexpected retained-policy Gemini gateway response`, exit 1 | `Drift gate PASSED`, exit 0 | | #606 attempt 2 (new body) | same throw, exit 1 | `Drift gate PASSED`, exit 0 | | run 42768299471 (old body) | PASSED, exit 0 | PASSED, exit 0 | | any of the above, mutated to status 500 or given an extra `error` key | — | throws, exit 1 | `src/__tests__/native-cursor-workflow.test.ts` gets new cases that run the real workflow gate. The current body is accepted in scheduled and delta modes; this fails on main and passes here. A server error, an extra error key, or a changed message is still rejected.
jpr5
added a commit
that referenced
this pull request
Nov 10, 2026
…#610) Fix Drift run [42768106181](https://github.com/CopilotKit/aimock/actions/runs/42768106181) (Nov 9, 10:22 PM PST) routed `anthropic/claude-fable-5-2` to needs-human PR #602. **Decision: include.** aimock mocks this family on the chat surface. It is the next point release of the included `claude-fable-5`, as `claude-fable-5-1` is. This PR does what #603 did for the earlier #602 notes, so #602 itself is not merged (it also re-adds the 17 `deprecatedFamilies.openai` entries already on main from #606). - `includeFamilies.anthropic` gets `claude-fable-5-2`. The `includeFamilies.anthropic` pin is re-pinned. The old pin hashes the new membership minus this id, so the delta is exactly one addition. - The Anthropic /models wave in `models.drift.ts` and a new behavioral block in `text-drift.test.ts`. The old `claude-fable-5-2` negative control moves to `claude-fable-5-3`. - `drift-proposals/anthropic-claude-fable-5-2-new-family.md`, resolved with `Decision: include`. - No `src/` change. `src/model-utils.ts` lists no Fable family, and an unlisted id defaults to reasoning-capable. ### Red / green The check is `unclassifiedFamilies` over the Anthropic id drift-sync routed in the run's `drift-sync.log`. RED (registry as on main, tests added): ``` × recorded /models family waves are classified > Anthropic: every live family is classified (zero unclassified) → expected [ 'claude-fable-5-2' ] to deeply equal [] × the 2026-11-10 model-family wave is classified > claude-fable-5-2 is INCLUDED in a /models-shaped payload ``` GREEN (after): ``` models.drift.ts Anthropic wave 1 passed text-drift.test.ts + logic-pin.test.ts 68 passed (68) pnpm test:drift 564 passed | 131 skipped pnpm test 20061 passed, 0 failed ``` Typecheck, lint, prettier and build are clean.
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.
Summary
Auto-generated, DATA-ONLY model-family sync (zero-LLM).
drift-sync-check verdict
drift-sync outcome