Skip to content

fix(drift-sync): mechanical model-family sync (2026-11-07) - #606

Merged
jpr5 merged 2 commits into
mainfrom
fix/drift-2026-11-07-42346582726-470a6a69be3dfa7e
Nov 10, 2026
Merged

jpr5 merged 2 commits into
mainfrom
fix/drift-2026-11-07-42346582726-470a6a69be3dfa7e

Conversation

@copilotkit-bot

@copilotkit-bot copilotkit-bot Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Auto-generated, DATA-ONLY model-family sync (zero-LLM).

Needs human review + merge. This PR was opened by the
deterministic drift-sync pipeline after drift-sync-check
passed (changed-file allowlist, checksum-pin re-assert, clean
re-collect). It is NOT auto-merged — review CI, the diff, and
merge.

drift-sync-check verdict

npm warn Unknown project config "minimum-release-age". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown project config "block-exotic-subdeps". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
drift-sync-check passed: changed files are data-only, classification pins intact (re-collect found no critical drift but could NOT CONFIRM the edit — the collector quarantined 4 failure(s) it could not parse into a trustworthy finding; this edit is carried by gate-1 + gate-2)
reason=ok

drift-sync outcome

npm warn Unknown project config "minimum-release-age". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown project config "block-exotic-subdeps". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
mechanical sync applied and drift-sync-check passed
  [deprecation-recorded] openai/gpt-3.5-turbo: "gpt-3.5-turbo" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
  [deprecation-recorded] openai/gpt-4: "gpt-4" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
  [deprecation-recorded] openai/gpt-4-turbo: "gpt-4-turbo" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
  [deprecation-recorded] openai/gpt-4.1-nano: "gpt-4.1-nano" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
  [deprecation-recorded] openai/gpt-5-chat-latest: "gpt-5-chat-latest" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5-codex: "gpt-5-codex" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.1-chat-latest: "gpt-5.1-chat-latest" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.1-codex: "gpt-5.1-codex" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.1-codex-max: "gpt-5.1-codex-max" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.1-codex-mini: "gpt-5.1-codex-mini" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.2-chat-latest: "gpt-5.2-chat-latest" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.2-codex: "gpt-5.2-codex" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/gpt-5.3-chat-latest: "gpt-5.3-chat-latest" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/o1: "o1" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
  [deprecation-recorded] openai/o1-pro: "o1-pro" is absent from the live /models listing — recorded in deprecatedFamilies.openai (no remaining aimock reference — droppable from includeFamilies in a reviewed re-pin)
  [deprecation-recorded] openai/o3-mini: "o3-mini" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
  [deprecation-recorded] openai/o4-mini: "o4-mini" is absent from the live /models listing — recorded in deprecatedFamilies.openai (still referenced in aimock source — mock retained)
npm warn Unknown env config "block-exotic-subdeps". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown env config "minimum-release-age". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown project config "minimum-release-age". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown project config "block-exotic-subdeps". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
�[33m[STARTED]�[39m Backing up original state...
�[32m[COMPLETED]�[39m Backed up original state in git stash (9a5298a)
�[33m[STARTED]�[39m Running tasks for staged files...
�[33m[STARTED]�[39m package.json�[0;90m — 1 file�[0m
�[33m[STARTED]�[39m *.{ts,mts,js,mjs,cjs,json,html,css,md}�[0;90m — 1 file�[0m
�[33m[STARTED]�[39m *.{ts,mts,js,mjs}�[0;90m — 1 file�[0m
�[33m[STARTED]�[39m prettier --write
�[33m[STARTED]�[39m eslint --fix
�[32m[COMPLETED]�[39m prettier --write
�[32m[COMPLETED]�[39m *.{ts,mts,js,mjs,cjs,json,html,css,md}�[0;90m — 1 file�[0m
�[32m[COMPLETED]�[39m eslint --fix
�[32m[COMPLETED]�[39m *.{ts,mts,js,mjs}�[0;90m — 1 file�[0m
�[32m[COMPLETED]�[39m package.json�[0;90m — 1 file�[0m
�[32m[COMPLETED]�[39m Running tasks for staged files...
�[33m[STARTED]�[39m Applying modifications from tasks...
�[32m[COMPLETED]�[39m Applying modifications from tasks...
�[33m[STARTED]�[39m Cleaning up temporary files...
�[32m[COMPLETED]�[39m Cleaning up temporary files...
[fix/drift-2026-11-07-42346582726 6abd462] fix(drift-sync): mechanical model-family sync (17 families: openai)
 1 file changed, 17 insertions(+)
unchecked-providers=
reason=ok-applied
changeset-key=470a6a69be3dfa7e

- 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
@pkg-pr-new

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

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 259b301

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.
@jpr5
jpr5 merged commit 8d8c576 into main Nov 10, 2026
36 of 38 checks passed
@jpr5
jpr5 deleted the fix/drift-2026-11-07-42346582726-470a6a69be3dfa7e branch November 10, 2026 20:45
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.
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