Skip to content

fix(drift): classify gpt-image-2.5-flare/sunburst as excludeFamilies (image modality) - #422

Merged
jpr5 merged 1 commit into
mainfrom
drift/classify-gpt-image-2.5-exclude
Sep 10, 2026
Merged

jpr5 merged 1 commit into
mainfrom
drift/classify-gpt-image-2.5-exclude

Conversation

@jpr5

@jpr5 jpr5 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Resolves the needs-human decision routed by #421 (drift changeset 8d60e214b0305f9c).

Decision: EXCLUDE

OpenAI shipped gpt-image-2.5-flare and gpt-image-2.5-sunburst on 2026-09-10. The nightly run flagged both as real-drift, confirmed across 3 runs.

Both are image-generation models on the same lineage as the already-excluded gpt-image-2. Neither answers on /v1/chat/completions, so neither is text-generation drift. Every image family in the registry is already excluded — dall-e-2, dall-e-3, gpt-image-1, gpt-image-1-mini, gpt-image-1.5, gpt-image-2, chatgpt-image-latest — and these get the same treatment.

The decision is recorded on both drift-proposals/ notes in prose, not via drift-sync's Decision: include marker: that path calls addFamilyLiteralInSource(..., "includeFamilies", ...) exclusively, so using it would have put these in includeFamilies and mismarked them as families aimock mocks on the chat surface.

Changes

  • model-registry.ts — both families added to excludeFamilies.openai's image cluster
  • models.drift.ts — both ids added to the static OpenAI /models wave, so the offline coverage test grades them
  • logic-pin.test.ts — excludeFamilies.openai membership pin re-pinned
  • drift-proposals/openai-gpt-image-2.5-{flare,sunburst}-new-family.md — decision recorded, status RESOLVED

The pin was reviewed, not chased: the sorted-membership delta reported by the red freeze test is exactly these two additions and nothing else, and the new hash was recomputed from the module rather than pasted out of the failure message.

Red-green

Both guarding surfaces were observed red before the fix and green after.

1. Offline classification coverage (models.drift.ts) — ids added to the wave, not yet classified:

FAIL  models.drift.ts > OpenAI: every live family is classified (zero unclassified)
AssertionError: expected [ 'gpt-image-2.5-flare', …(1) ] to deeply equal []
+ [ "gpt-image-2.5-flare", "gpt-image-2.5-sunburst" ]

Green after the excludeFamilies entries: Tests 1 passed | 24 skipped.

2. Membership freeze (logic-pin.test.ts) — red on the registry edit:

FAIL  freezes excludeFamilies.openai membership
Frozen data set "excludeFamilies.openai" membership changed …
expected 'f54fe5d9552e4149cb7178fce6316c702fb5f…' to be 'e4484f780a6a64928a54004a52420969c28d9…'

Green after the re-pin: Tests 33 passed (33).

Full suite: 183 files, 5712 tests passing. format / lint / typecheck / build all clean.

Note on #421

#421 applies nothing on merge — includeFamilies is checksum-pinned and drift-sync's gate-1 allowlist covers only model-registry.ts and drift-proposals/, so it cannot re-pin. Per its own body, the working procedure is one hand-authored commit (this PR), then close #421 rather than merging it. Prior examples: 72f85f8, 936b59c.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AvkmhXVLqSSEW6FvPQHSu5

…(image modality)

OpenAI shipped two image families on 2026-09-10. The nightly drift run
reported them as real-drift, confirmed across 3 runs:

  Unclassified model family "gpt-image-2.5-flare" in openai /models
  Unclassified model family "gpt-image-2.5-sunburst" in openai /models

Neither answers on /v1/chat/completions — both are image generation on the
same lineage as the already-excluded `gpt-image-2`, so neither is
text-generation drift. Add both to excludeFamilies.openai's image cluster,
alongside dall-e-2/3, gpt-image-1, gpt-image-1-mini, gpt-image-1.5,
gpt-image-2 and chatgpt-image-latest, and to the static OpenAI /models wave
in models.drift.ts so the offline coverage test grades them.

Re-pin the excludeFamilies.openai DATA_FROZEN membership hash accordingly.
The pin was reviewed, not chased: the sorted-membership delta reported by
the red freeze test is exactly these two additions and nothing else, and the
new hash was recomputed from the module rather than pasted from the failure.

Record the decision on the two drift-proposals/ notes PR #421 carries. The
decision is EXCLUDE, written in prose rather than via drift-sync's automated
`Decision: include` marker: that path calls
addFamilyLiteralInSource(..., "includeFamilies", ...) exclusively, so using it
would have put these in includeFamilies and mismarked them as families aimock
mocks on the chat surface.

Red-green, both surfaces:
  - models.drift.ts coverage: adding the ids to the wave without classifying
    them failed with ["gpt-image-2.5-flare","gpt-image-2.5-sunburst"] != [];
    green after the excludeFamilies entries.
  - logic-pin.test.ts freeze: the excludeFamilies.openai pin went red on the
    registry edit; green after the re-pin.

Full suite: 183 files, 5712 tests passing.
@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 68e9253

@jpr5
jpr5 merged commit c4582e5 into main Sep 10, 2026
34 checks passed
@jpr5
jpr5 deleted the drift/classify-gpt-image-2.5-exclude branch September 10, 2026 17:43
jpr5 added a commit that referenced this pull request Sep 10, 2026
…d add the exclude path (#423)

Follow-up to #422. While applying that decision by hand I hit the two
reasons it *had* to be by hand.

## The two defects

**1. An approved `include` was never applied end-to-end.**
`includeFamilies` is membership-checksum-pinned in `logic-pin.test.ts`,
but that file was not on drift-sync-check's gate-1 allowlist — so the
sync could edit the registry and then had no way to move the pin. The
edit landed, gate-2 went red on the stale pin, and the run reported
`gate-failed` instead of `ok-applied`. The affordance the note
advertises ("set `Decision: include` and the next run applies it") never
worked.

**2. There was no exclude path at all.** `parseProposalDecision`
recognised only `include`, and the only new-family writer targets
`includeFamilies`. `Decision: exclude` parsed as `pending`, so a
rejected family got re-routed to a human every run, forever. Worse, the
note template offered `Decision: include` as *the* marker — following it
for a rejection would file the family as one aimock mocks on the chat
surface.

## What this does not change

The sync still never invents a classification. The verdict is the
human's hand-written `Decision:` line. Once that exists, applying it —
and moving the pin to match — is bookkeeping, not judgement. The review
the pin exists to force still happens; it just happens earlier, in the
note.

## Keeping the pin file narrow

Admitting `logic-pin.test.ts` to the allowlist would otherwise hand the
sync the frozen *logic* too. Two independent guards prevent that:

- `updateDataFrozenPin` rewrites exactly **one** named key's pin, and
refuses (`locatorMiss`) on an absent, duplicated, or unrecognisable
entry.
- `onlyPinsChanged` re-reads the result and refuses the write unless
every byte outside a `pin:` literal is identical.

Anything unexpected is a **refusal, not a best effort**: the registry is
not written at all, so the half-applied state that motivated this change
is unreachable. On gate failure both files revert together — reverting
only the registry would leave the pin describing a membership that no
longer exists, which is a lying canary rather than a rollback.

`excluded` joins the outcome union, counts as applied work in the commit
message, and is gate-3-observable (classifying a family is precisely
what stops the canary reporting it), so the live re-collect runs for it
as it does for `added`.

## Red-green

Every test was observed failing first.

- `Decision: exclude` → `pending`, and the allowlist rejected the pin
file (the two headline reds).
- An exclude lands in `excludeFamilies` and **not** `includeFamilies` —
asserted by section, because a bare `toContain('"gpt-live"')` passes
either way and would not have caught a misfiled entry.
- An approved classification re-pins in the same run, and
`onlyPinsChanged` confirms the rewrite stayed inside pin literals.
- A run that *cannot* re-pin refuses and writes no registry edit
(`writeRegistrySource` never called).
- Both files revert together on gate failure.
- `onlyPinsChanged` **mutation-proofed**: move one byte outside a pin
literal and the guard fails.
- `computeMembershipPin` reproduces the **real** `logic-pin.test.ts`
pins against the real registry, so the writer and the verifier cannot
silently diverge. **Mutation-proofed** by dropping the sort, which reds
it — otherwise every auto-re-pin would write a value that instantly reds
gate-2, and the failure would read as a spurious membership change
rather than an algorithm mismatch.

Three pre-existing tests changed behaviour and were updated deliberately
rather than relaxed: two harnesses had to model the pin file (a harness
that omits it now gets the correct refusal), and the revert assertions
were **strengthened** to require both files.

Full suite: **183 files, 5721 tests passing**. format / lint / typecheck
/ build clean.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01AvkmhXVLqSSEW6FvPQHSu5
jpr5 added a commit that referenced this pull request Sep 10, 2026
…check (#425)

## The defect

`.github/workflows/unreleased-check.yml` warns when there are commits on
`main`
since the last release tag that changed "source", counted as
`git log v<ver>..HEAD -- 'src/'`.

`src/__tests__/` lives under `src/`, so test-only and drift-harness-only
work
counted as unreleased source changes. On `main` @ `8b0485b` it warned
about 2
"source commits" (from #422 and #423) that touch only
`src/__tests__/drift/*`,
`drift-proposals/*` and `scripts/drift-sync*.ts` — none of which is in
the
published tarball (`files` is
`["dist","fixtures",".claude-plugin","skills","CHANGELOG.md"]`,
and `tsconfig.json` excludes `src/__tests__`).

It is `::warning::` with no `exit 1`, so it blocked nothing — but a
check that
fires for work that cannot be released is a check people learn to
ignore.

## The approach

The pathspec is now **derived from `package.json` "files"** rather than
hard-coded, so it cannot drift again when the published set changes:

- `dist` is a build artifact and is not in git, so it is substituted
with its
git preimage — `tsconfig.json`'s `include` roots minus its `exclude`
entries.
That is what drops `src/__tests__/`, and it follows the tsconfig rather
than
  restating it.
- every other `files` entry is a real tracked path and is used as-is.

Deriving from `files` alone was not possible (`dist` is not in git);
deriving
`src/` alone would have re-encoded the same thing that drifted. The pair
—
`files` for the literal paths, tsconfig for `dist`'s preimage — is the
only
formulation where both halves are read from the declarations that
actually
govern the tarball.

This also **widens** the check: `fixtures/`, `skills/`,
`.claude-plugin/` and
`CHANGELOG.md` all ship and were invisible to the old `src/`-only
pathspec.

An empty derived pathspec is now a hard `::error::` + `exit 1`, because
`git log -- ` with no paths silently matches *every* path.

## Red / green

**RED** — old command, current tree:

```
::warning::2 source commits on main since v1.40.0 — version has not been bumped.

Unreleased commits:
c23c4f9 feat(drift-sync): close the classification loop — re-pin on apply, and add the exclude path
68e9253 fix(drift): classify gpt-image-2.5-flare/sunburst as excludeFamilies (image modality)
```

**GREEN** — new step body, same tree:

```
Published-file pathspec:
  src/
  :(exclude)node_modules/
  :(exclude)dist/
  :(exclude)src/__tests__/
  fixtures
  .claude-plugin
  skills
  CHANGELOG.md

No unreleased published-file changes since v1.40.0.
```

**POSITIVE CONTROL** — three throwaway commits on top of the fix (a real
`src/logger.ts` change, a `skills/write-fixtures/SKILL.md` change, and
one
touching only `scripts/drift-sync.ts` +
`src/__tests__/drift/model-registry.ts`):

```
::warning::2 published-file commits on main since v1.40.0 — version has not been bumped.

Unreleased commits:
1902279 test(control): skills change
f6f310a test(control): real src change
```

It still barks at the two real ones and ignores the tests+scripts one.
Run
again with *only* the tests+scripts commit present, it reports clean.

## What would still trip it

Any commit since the tag touching `src/**` other than `src/__tests__/`,
`fixtures/`, `skills/`, `.claude-plugin/`, or `CHANGELOG.md`.

**Deliberately still does not trip it:** `package.json` itself. A
runtime
dependency bump does change the published package, but git cannot
distinguish
it from a devDependency bump, and including `package.json` would fire on
every
Renovate PR. This is unchanged from the old behaviour, not a new blind
spot.

## Tests

`src/__tests__/unreleased-check-workflow.test.ts` executes the step's
own
`run:` body under bash against synthetic git repos — 11 guards,
including the
positive controls above and the empty-pathspec refusal. Mutation-tested:
reverting the workflow to `-- 'src/'` turns 7 of the 11 red.

## Gates

`actionlint` (this file) 0 · `prettier --check .` 0 · `eslint .` 0 ·
`pnpm typecheck` 0 · `vitest run` 0 (183 files, 5686 tests) ·
`commitlint --from origin/main --to HEAD` 0.

Repo-wide `actionlint` exits 1 on 8 pre-existing info-level SC2086
findings in
other workflows — byte-identical at `8b0485b`, none in this file.
jpr5 added a commit that referenced this pull request Sep 10, 2026
#426)

## Decision: EXCLUDE

OpenAI shipped **GPT-Live-1**, a full-duplex voice model on the NEW
`v1/live/sessions` endpoint. Its model page marks Realtime as "Not
supported", so it is a **sibling** of the Realtime API, not a successor.

It never answers on `/v1/chat/completions`, and aimock implements no
`/v1/live` surface, so it can never be text-generation drift. Every
other voice/audio/realtime family in the registry is already excluded —
`gpt-realtime*`, `gpt-audio*`, `gpt-transcribe`, `gpt-live-transcribe`,
`tts-1`, `whisper-1` — and this gets the same treatment.

Classifying it now is the point: without it the nightly drift pipeline
flags `gpt-live-1` as an unclassified new family and opens a needs-human
PR, exactly as it did for the two OpenAI image families in #422.

**Mocking `/v1/live` is explicitly NOT proposed** — no demand (no open
issue; the only realtime ask closed in May), and a real mock needs a new
route, a sideband socket and full-duplex framing.

## Changes

- `model-registry.ts` — `gpt-live-1` added to `excludeFamilies.openai`'s
voice cluster, with a dated rationale comment naming the paired entry
- `voice-models.ts` — `gpt-live-1` added to `knownVoiceModelFamilies`
(the second, disjoint surface)
- `logic-pin.test.ts` — **both** membership pins re-pinned:
`excludeFamilies.openai` (46 -> 47) and `knownVoiceModelFamilies` (22 ->
23)
- `models.drift.ts` — id added to the static OpenAI `/models` wave so
the offline coverage test grades it
- `models.drift.ts` / `text-drift.test.ts` — the two assertions that
used `gpt-live-1` as the "single-digit tail stays unknown" exemplar now
use the still-unclassified `gpt-live-9`, plus `gpt-live-1-mini` to prove
the new exclude key does not swallow families that merely EXTEND it
- `ws-realtime-canary.test.ts` / `logic-pin.test.ts` / `model-family.ts`
— canary negative controls and docblocks re-pointed at `gpt-live-1-mini`
- `drift-proposals/openai-gpt-live-1-new-family.md` — decision recorded
in prose (no `Decision:` marker), status RESOLVED

The pin was reviewed, not chased: each sorted-membership delta printed
by the red freeze test is exactly this one addition, and each new hash
was recomputed from the module rather than pasted out of the failure
message.

## The automated `Decision: exclude` path (#423) is INCOMPLETE for voice
families — not used

#423 mechanized the `exclude` verdict (before it, `exclude` fail-closed
to `pending`). It is **not** usable here, and the reason is a real
defect worth recording:

- Its apply half writes `excludeFamilies[provider]` and re-pins that
set. It **never writes `knownVoiceModelFamilies`**.
- `isVoiceModelId("gpt-live-1")` is `true`, and `ws-realtime.drift.ts`
sits in drift-sync's **gate-3 re-collect**. A voice family present in
one set but not the other still reports `UNKNOWN_REALTIME_MODELS=` and
emits a **critical**.
- Gate-3 red reverts both edited files → `gate-failed`. The automated
path would **apply and revert, every run, forever** — while looking like
it worked.

Verified directly, against the real registry, with the entry in
`excludeFamilies` only:

```
excludeFamilies.openai has gpt-live-1  : true
knownVoiceModelFamilies has gpt-live-1 : false
UNKNOWN_REALTIME_MODELS=gpt-live-1
gate3 (ws-realtime.drift.ts re-collect): RED (critical)
```

So the decision is recorded **in prose** and applied **by hand to both
sets**, the way `936b59c` did. The note carries **no `Decision:` marker
at all** — `parseProposalDecision` on the committed note returns
`pending`, confirmed. A literal `Decision: exclude` line would be a live
hazard, not inert bookkeeping: if the exclude entry were ever removed,
the next run would re-add it to `excludeFamilies` only and wedge the job
on gate-3.

**Follow-up (not attempted here):** #423's apply half should also write
and re-pin `knownVoiceModelFamilies` when `isVoiceModelId(family)` is
true. Any future voice family marked `Decision: exclude` hits this same
wall.

## `knownVoiceModelFamilies`: ADDED — mandatory, not optional

`936b59c` — the direct precedent, and a **voice** family — settled this:

> Add both families to excludeFamilies.openai's transcribe cluster [...]
**and to knownVoiceModelFamilies' transcription group. The two sets are
deliberately disjoint surfaces, so both need the entry.**

`c4582e5` did not touch `knownVoiceModelFamilies` only because image
families are not voice. `gpt-live-1` is. The two sets silence two
different canaries — `excludeFamilies` → the `/models` check in
`models.drift.ts`; `knownVoiceModelFamilies` → the realtime canary in
`ws-realtime.drift.ts` — so a voice family needs both.

**Gate-3 proof after the fix**, plus a repo-wide half-classification
audit:

```
excludeFamilies.openai has gpt-live-1  : true
knownVoiceModelFamilies has gpt-live-1 : true
UNKNOWN_REALTIME_MODELS=
gate3 (ws-realtime.drift.ts re-collect): GREEN — no critical for gpt-live-1
voice families in excludeFamilies.openai: 21
HALF-CLASSIFIED (exclude but not known-voice): []
```

## `gpt-live-1-mini` stays deliberately unclassified

Only `gpt-live-1` was decided. `gpt-live-1-mini` has not been observed
in a live listing; it exists in this repo solely as the realtime
canary's **new-family negative control**. Leaving it unclassified keeps
that control live — it is what still proves the matcher reaches a voice
id carrying no `realtime` substring, and that the new `gpt-live-1` key
does not swallow families that merely EXTEND it. The controls in
`ws-realtime-canary.test.ts` and `logic-pin.test.ts` were **re-pointed
at it, not deleted**.

## Red-green

**1. Offline classification coverage** (`models.drift.ts`) — id added to
the wave, not yet classified:

```
FAIL  src/__tests__/drift/models.drift.ts > full live /models wave is fully classified (2026-07-16 drift) > OpenAI: every live family is classified (zero unclassified)
AssertionError: expected [ 'gpt-live-1' ] to deeply equal []
- []
+ [
+   "gpt-live-1",
+ ]
 Test Files  1 failed (1)
      Tests  1 failed | 24 skipped (25)
```

Green after the `excludeFamilies` entry: `Test Files 1 passed (1) /
Tests 22 passed | 3 skipped (25)`.

**2. Membership freeze** (`logic-pin.test.ts`) — red on the registry
edit:

```
FAIL  freezes excludeFamilies.openai membership
Frozen data set "excludeFamilies.openai" membership changed (now: [... "gpt-image-2.5-sunburst","gpt-live-1","gpt-live-transcribe" ...])
Expected: "f54fe5d9552e4149cb7178fce6316c702fb5f0b00293c2299dfc9f7c64e02baa"
Received: "ccf086b3e7f07b6698f0c875088bd59f1250833d4248e0d624e87c6f592e4021"
```

Green after the re-pin: `Tests 33 passed (33)`.

## Mutation

**A — delete the `excludeFamilies.openai` entry**, everything else left
in place:

```
AssertionError: expected [ 'gpt-live-1' ] to deeply equal []
      Tests  1 failed | 24 skipped (25)
```

**B — delete the `knownVoiceModelFamilies` entry** instead:

```
→ expected [ 'gpt-live-1', 'gpt-live-1-mini' ] to not include 'gpt-live-1'
→ expected false to be true
→ expected [ 'gpt-live-1', 'gpt-live-1-mini' ] to deeply equal [ 'gpt-live-1-mini' ]
⎯⎯⎯ Failed Tests 3 ⎯⎯⎯
```

Both halves go red and name `gpt-live-1` — neither guard is vacuous, and
neither set alone is sufficient. Restored: full suite green.

## Gates (raw exit codes)

| gate | exit |
| --- | --- |
| `prettier --check .` | 0 |
| `npx eslint .` | 0 |
| `pnpm typecheck` | 0 |
| `npx vitest run` | 0 — 183 files passed, **5689 tests passed** / 46
skipped |
| `npx vitest run --config vitest.config.drift.ts` | 0 — 19 files
passed, 135 tests passed / 57 skipped |

---

**Correction note:** the first commit on this branch (`6962f07`) shipped
the `excludeFamilies`-only half-classification described above, and its
CI was green — because `ws-realtime.drift.ts` is a live-gated canary
that does not run as a required PR check. `388c0b6` pairs the entry into
`knownVoiceModelFamilies` and removes the `Decision:` marker. The end
state is what this description documents.
@jpr5 jpr5 mentioned this pull request Sep 11, 2026
jpr5 added a commit that referenced this pull request Sep 11, 2026
Cuts the accumulated `[Unreleased]` work. **MINOR** — a new provider
surface (BytePlus Ark video) and new endpoints, no breaking changes.

**Prepared, not merged.** `publish-release.yml` fires on push-to-main,
so merging this publishes to npm, tags `v1.41.0`, cuts the GitHub
Release, dispatches the Docker build, and posts to Slack. Merge when you
want it live.

## What ships

Only **#424** (plus its follow-up **#429**, which fixes the same
never-released BytePlus code) touches the published package. Verified
against `package.json` `files` + `tsconfig` include/exclude:

```
git log v1.40.0..origin/main --oneline -- src/ ':(exclude)src/__tests__/' fixtures/ .claude-plugin/ skills/ CHANGELOG.md
```

…returns byteplus commits only. #422, #423, #425, #426, #427, #428 touch
scripts/, .github/ and docs/ exclusively and are deliberately **not** in
the CHANGELOG.

### Added
- BytePlus Ark (Seedance) video record/replay — submit, poll and
retrieve, stored as the raw Ark task envelope
- `--provider-byteplus` flag

### Changed
- `/api/v3` chat and image requests are attributed to the `byteplus`
provider
- `aimock-pytest` pin moves to 1.41.0

### Fixed
- Startup error when a BytePlus provider base already ends in `/api/v3`

## Version surfaces — seven, all bumped

Found by grepping the tree for `1.40.0`, not from a checklist. **Zero
occurrences of the old string remain** (excluding `CHANGELOG.md`
history, `fixtures/` and `pnpm-lock.yaml`):

| File | Field | 1.40.0 → 1.41.0 |
| --- | --- | --- |
| `package.json` | `version` | ✔ |
| `charts/aimock/Chart.yaml` | `appVersion` (chart `version` stays
`0.1.0`) | ✔ |
| `.claude-plugin/plugin.json` | `version` | ✔ |
| `.claude-plugin/marketplace.json` | `plugins[0].source.version`
(`^1.41.0`) | ✔ |
| `docs/index.html` | demo banner `aimock v…` | ✔ |
| `packages/aimock-pytest/src/aimock_pytest/_version.py` |
`AIMOCK_VERSION` npm pin | ✔ |
| `packages/aimock-pytest/README.md` | `--aimock-version` default | ✔ |

`AIMOCK_VERSION` **must** move this release:
`/api/v3/contents/generations/tasks` is a new server route, so a
default-download pytest user on the 1.40.0 pin would run a server
without it. `packages/aimock-pytest/pyproject.toml` is deliberately
untouched — that package versions on its own PyPI cadence.

There is **no version constant in `src/cli.ts`** and **no
`metadata.version` in `marketplace.json`** in this tree; both surfaces
exist only in the release checklist, not in the repo.

## Drive-by: the npm description has been `<div align="center">` since
the README got a centered header

`npm view @copilotkit/[email protected] description` returns the literal
string `<div align="center">`.

Both README-subtitle extractors — the inline `node -e` in
`publish-release.yml` and `syncDescriptionFromReadme()` in
`scripts/drift-sync.ts` — skip `#`, `[`, `![` and `http` lines but not
raw HTML, so they latch onto the README's opening `<div>` wrapper
instead of the bold subtitle two lines below. Both now also skip `<`,
and `package.json.description` is synced to what the fixed extractor
yields:

> Mock infrastructure for AI application testing — point your SDK at one
local port and every provider, protocol, and service answers
deterministically.

Without this the v1.41.0 npm page ships the same broken description.

## Gates (raw exit codes, local)

| Gate | Exit |
| --- | --- |
| `prettier --check .` | 0 |
| `npx eslint .` | 0 |
| `pnpm typecheck` | 0 |
| `npx vitest run` (5794 passed, 46 skipped, 189 files) | 0 |
| `pnpm build` | 0 |
| `npx commitlint --from origin/main --to HEAD` | 0 |

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01AvkmhXVLqSSEW6FvPQHSu5
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