Skip to content

docs(chaos): correct seeded-chaos docs and messages - #634

Merged
jpr5 merged 1 commit into
mainfrom
docs/chaos-seed-wording
Nov 24, 2026
Merged

jpr5 merged 1 commit into
mainfrom
docs/chaos-seed-wording

Conversation

@jpr5

@jpr5 jpr5 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Wording-only follow-up to #618 (unreleased). No behavior change, so no CHANGELOG entry.

docs/chaos-testing/index.html

  • Replay steps: aimock --config cannot set chaosKeysMax; say to use --chaos-keys-max or the chaosKeysMax server option.
  • The "plain decimal, never clamped" paragraph now applies to the rate and latency headers only; the seed header points to its own rules.
  • Journal Tracking: document chaosSeed, chaosKey, chaosOccurrence (seeded hits only).
  • Replaying a failed run: the seed headers are sent only when the response headers were not sent yet (a mid-stream disconnect skips them); the journal still records them.

src/chaos-random.ts (comments only)

  • recordRequestChaosBody: drop the wrong "upstream response" example; readBody records only a server request body.
  • ChaosOrigin.seed: also covers a seed from a caller's resolved config.
  • Module header: live-transcription jitter keys from the turn request at the fixed /v1/realtime path.
  • Eviction note: "keys" becomes "(testId, seed, key) counters".
  • Separator note: a raw-text body is text: plus a JSON string.

Messages

  • src/fixture-loader.ts: the chaos.seed warning uses MAX_CHAOS_SEED_LENGTH (rendered text unchanged).
  • src/cli.ts: the --chaos-seed error quotes the raw value and says inner spaces are not allowed after trimming. Two assertions in src/__tests__/chaos-seed.test.ts updated to the quoted form.

Gates: build, typecheck, eslint, prettier --check . pass; chaos*, fixture-chaos-validation and cli tests pass (16 files, 343 tests).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jay9vBCbXhVHCDgyRBABVx

Scope the never-clamped rule to the rate and latency headers, say how to set
chaosKeysMax for a replay, state that a disconnect sends no seed headers while
the journal still records them, and document chaosSeed, chaosKey and
chaosOccurrence. Correct five comments in chaos-random.ts. Use
MAX_CHAOS_SEED_LENGTH in the fixture seed warning, and quote the raw value in the
--chaos-seed error, which now says inner spaces are not allowed.
@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: e25b074

@jpr5
jpr5 merged commit 25ad3e7 into main Nov 24, 2026
31 checks passed
@jpr5
jpr5 deleted the docs/chaos-seed-wording branch November 24, 2026 22:57
jpr5 added a commit that referenced this pull request Nov 25, 2026
## What

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

| Family | Decision | Set |
|---|---|---|
| `gpt-6-astra-healthcare` | **INCLUDE** | `includeFamilies.openai` |
| `gpt-6.1-sol-healthcare` | **INCLUDE** | `includeFamilies.openai` |
| `gpt-6.2-astra-healthcare` | **INCLUDE** | `includeFamilies.openai` |
| `gpt-6.2-sol-healthcare` | **INCLUDE** | `includeFamilies.openai` |

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

Fixes the `OpenAI Chat | live /models family canary` criticals in
scheduled Drift Tests run
[45558538056](https://github.com/CopilotKit/aimock/actions/runs/45558538056)
(Tue Nov 24, 10:09 PM PST, main `25ad3e7b`). That run's only new failing
test was `models.drift.ts > live /models contains no unclassified
family`. Every other failure in it is the known, approved set
(Anthropic/Gemini native auth, Bedrock K5/K9, Vertex k5) that the last
pass (run 45338285817, main `4c5d9e23`) also had. Nothing touches chaos,
the request journal or the code changed by #618/#634.

## Decisions and probe evidence (redacted)

There are no provider keys on the local machine, so the probe ran in CI.
Commit `cd4c49a3` 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
[45572123355](https://github.com/CopilotKit/aimock/actions/runs/45572123355),
Wed Nov 25, 12:00 AM PST). Commit `dab91929` then reverted it, with no
force-push. The artifact was scanned for key material, and none was
found.

All 4 → **INCLUDE** (`gpt-6.2-astra`/`gpt-6.2-sol` precedent, #627):

- Listing and `GET /v1/models/<id>` → **200**, `{id, object: "model",
created, owned_by: "system", shutdown_date: null}`. No capability field,
and no preview, EAP or alpha marker. Same shape as `gpt-6.2-sol`.
`created`: astra 2026-10-16, 6.1-sol 2026-10-26, 6.2-astra 2026-10-31,
6.2-sol 2026-11-02.
- `POST /v1/chat/completions` ("Reply with the single word: pong") →
**200** for each, `object: "chat.completion"`, `finish_reason: "stop"`,
assistant content `"pong"`. The response `model` field echoes the base
line (for example `gpt-6-astra`).
- `POST /v1/responses` → **200** for each, `status: "completed"`, one
`message` output with an `output_text` part `"pong"`.
- Control: `gpt-6.2-sol` (already included) returned the same shape in
the same run.
- Text modality, with no voice/audio token, so no
`knownVoiceModelFamilies` edit.
- Public sources: OpenAI documents healthcare offerings ([OpenAI for
Healthcare](https://openai.com/index/openai-for-healthcare/)) and GPT-6
Astra ([GPT-6 Astra](https://openai.com/hr-HR/index/gpt-6-astra/)), but
no public page names these `-healthcare` API ids. The access decision
therefore rests on the live probe: an ordinary API key gets 200 text
from all four.

## Changes (same shape as #627)

- `src/__tests__/drift/model-registry.ts`: the 4 entries, with an
evidence comment.
- `src/__tests__/drift/logic-pin.test.ts`: re-pin for
`includeFamilies.openai`. It was cross-checked by recomputing sha256 of
the sorted members.
- `src/__tests__/drift/models.drift.ts`: the static OpenAI `/models`
wave entries.
- `src/__tests__/drift/text-drift.test.ts`: a 2026-11-24 behavioural
block for the 4 includes, with negative controls
(`gpt-6-sol-healthcare`, `gpt-6.3-sol-healthcare`, `gpt-6.2-sol-legal`
stay unclassified).
- `drift-proposals/*-healthcare-new-family.md` (4 notes from #635): each
is resolved with its `Decision:` and the probe rationale.

## RED / GREEN (real surface: live `/models` family canary)

**RED** (before the fix, on main code):
- Scheduled run 45558538056: `OpenAI Chat | live /models family canary`
→ `models/gpt-6-astra-healthcare`, `models/gpt-6.1-sol-healthcare`,
`models/gpt-6.2-astra-healthcare`, `models/gpt-6.2-sol-healthcare` (on
all 3 retry attempts).
- drift-live-pr run 45572123355 on this PR (diagnostic head, main
classification code): the BASE report (fresh live, 12:00 AM PST) and the
head report both contain the same 4 criticals.

**GREEN** (after the fix):
- drift-live-pr run
[45573355619](https://github.com/CopilotKit/aimock/actions/runs/45573355619)
on head `92f16ebe`: the head report (12:11 AM PST) has **zero** mentions
of the 4 `-healthcare` families and no `/models` family-canary critical.
The base report from the same run (fresh live main, 12:09 AM PST) still
has all 4 criticals, 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 the approved
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 runs 45558538056 and 45338285817. This
PR does not touch them.

Local, non-live:
- `vitest run src/__tests__/drift/`: 20 files, 261 passed, 6 skipped.
- `vitest run` of `drift-sync-core` and `drift-remediation-strings`: 2
files, 271 passed.
- `pnpm typecheck`: clean.
- eslint and `prettier --check` on the changed files: clean.

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

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