diff --git a/.github/workflows/evals-periodic.yml b/.github/workflows/evals-periodic.yml index 37b0ad1df..72c03f8c9 100644 --- a/.github/workflows/evals-periodic.yml +++ b/.github/workflows/evals-periodic.yml @@ -17,7 +17,7 @@ name: Periodic Evals # EVALS_ALL fails) makes both lanes census-health checks, not just test runs. # The gate census is a matrix of arms (crew/scripts/census-arms.ts): each arm is a # host and model with its own plan. Monday runs claude-opus (the capture -# model) and codex-sol (gpt-6.1-sol on the Codex host, adapter cases only); +# model) and codex-sol (the newest Sol on the Codex host, adapter cases only); # the monthly cron runs only the census, with claude-fable and codex-astra. # eval-bg (scripts/eval-bg.ts) finds its dispatch by the nonce in the run name. run-name: ${{ inputs.nonce && format('Periodic Evals [eval-bg {0}]', inputs.nonce) || 'Periodic Evals' }} diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 287122fcf..6d9e9476f 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -420,7 +420,7 @@ See [eval defaults and overrides](CONTRIBUTING.md#testing--evals). |------|------|------|-------| | 1 — Static validation | Parse every `$B` command in SKILL.md and validate it against the registry; pin the Aside contract sentences and the render wrapper's option mapping | Free | <2s | | 2 — E2E via `claude -p` | Spawn real Claude session, run each skill, check for errors | ~$3.85 | ~20min | -| 3 — LLM-as-judge | `claude-fable-5-1` by default scores docs on clarity/completeness/actionability | ~$0.15 | ~30s | +| 3 — LLM-as-judge | `claude-fable-5-2` by default scores docs on clarity/completeness/actionability | ~$0.15 | ~30s | Tier 1 runs on every `bun run test`. Tiers 2+3 are gated behind `EVALS=1`. The idea is: catch 95% of issues for free, use LLMs only for judgment calls. @@ -528,7 +528,7 @@ See [eval defaults and overrides](CONTRIBUTING.md#testing--evals). |------|------|------|-------| | 1 — Static validation | Parse `$B` commands against the registry, Aside contract pins, render-wrapper pins, observability unit tests | Free | <5s | | 2 — E2E via `claude -p` | Spawn real Claude session, run each skill, scan for errors | ~$3.85 | ~20min | -| 3 — LLM-as-judge | `claude-fable-5-1` by default scores docs on clarity/completeness/actionability | ~$0.15 | ~30s | +| 3 — LLM-as-judge | `claude-fable-5-2` by default scores docs on clarity/completeness/actionability | ~$0.15 | ~30s | Tier 1 runs on every `bun run test`. Tiers 2+3 are gated behind `EVALS=1`. The idea: catch 95% of issues for free, use LLMs only for judgment calls and integration testing. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 148135de0..0f3ca40f9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -166,11 +166,11 @@ never touches a symlinked or non-gstack directory. ## Testing & evals -Codex evals and the GPT benchmark adapter default to `gpt-6-astra`: +Codex evals and the GPT benchmark adapter default to `gpt-6.2-astra`: explicit model > `GSTACK_CODEX_MODEL` > default. The Claude model under test -(capture) defaults to `claude-opus-5-5` and the judge to `claude-fable-5-1`, -resolved through `lib/eval-model.ts`. The judge stays put when the model under -test moves, because its calibration fixtures are keyed to it: +(capture) defaults to `claude-opus-5-5` and the judge to `claude-fable-5-2`, +resolved through `lib/eval-model.ts`. Both are the newest model of their family +(`lib/model-families.ts`), and the judge stays apart from the model under test: - Claude session, PTY, and Agent SDK eval runners and the Claude benchmark adapter: explicit model > `EVALS_MODEL` > `GSTACK_EVAL_MODEL_CAPTURE` > `GSTACK_EVAL_MODEL` > default. - Shared judge calls (including benchmark quality scoring): explicit model > `GSTACK_EVAL_MODEL_JUDGE` > `GSTACK_EVAL_MODEL` > default. `EVALS_MODEL` applies to capture runners, not judges. @@ -556,7 +556,7 @@ agent produced, inside their own paid cases (for example E2E files). Facts that several skills must state the same way are checked for free instead, for example `test/review-bot-history-facts.test.ts`. -The judge model defaults to `claude-fable-5-1`; override it per run with +The judge model defaults to `claude-fable-5-2`; override it per run with `GSTACK_EVAL_MODEL_JUDGE` (resolved through `lib/eval-model.ts`, using the override order above). Each scored dimension is a panel of 3 samples of the same prompt, drawn concurrently; each dimension's panel median (at least 2 of 3 samples) must meet that diff --git a/bin/gstack-capy-install b/bin/gstack-capy-install index 4f9145641..e503bbc11 100755 --- a/bin/gstack-capy-install +++ b/bin/gstack-capy-install @@ -15,7 +15,7 @@ # release archive, SHA-256 verified, is published in the runtime store # /runtimes/bun//bun, GSTACK_BUN_INSTALL_VERSION # overriding the default); ./setup -# --host claude --no-prefix; ./setup --host codex --model gpt-6-astra (both +# --host claude --no-prefix; ./setup --host codex --model gpt-6.2-astra (both # skipped when this HEAD was already set up and the check passes); # gstack-doctor --check with the launch PATH; the install verdict # (bin/gstack-install-verdict.sh), keyed by checkout and project and holding @@ -420,7 +420,7 @@ export GSTACK_SKIP_COREUTILS="${GSTACK_SKIP_COREUTILS:-1}" GSTACK_SKIP_ASIDE="${ BROWSER_FLAG="--no-browser"; [ "$WITH_BROWSER" -eq 1 ] && BROWSER_FLAG="" HEAD_SHA=$(git -C "$ROOT" rev-parse HEAD 2>/dev/null || true) SETUP_STATE="$(git -C "$ROOT" rev-parse --absolute-git-dir 2>/dev/null || echo "$ROOT/.git")/gstack-capy-install.state" -SETUP_RECORD="head=$HEAD_SHA hosts=claude,codex model=gpt-6-astra browser=$WITH_BROWSER" +SETUP_RECORD="head=$HEAD_SHA hosts=claude,codex model=gpt-6.2-astra browser=$WITH_BROWSER" if [ -n "$FOR" ]; then set -- --for "$FOR"; else set -- --require "$REQUIRE"; fi [ "$WITH_BROWSER" -eq 1 ] && [ -z "$FOR" ] && set -- --require "$REQUIRE,browse-bundle,browser" certify() { OUT=$(cd "$ORIG_PWD" && GSTACK_EPHEMERAL="${GSTACK_EPHEMERAL:-1}" "$ROOT/bin/gstack-doctor" --check "$@" ${PROJECT:+--project "$PROJECT"} ${MIN_REVISION:+--min-revision "$MIN_REVISION"} 2>&1); RC=$?; } @@ -477,7 +477,7 @@ fi if [ "$CHECK_ONLY" -eq 0 ] && [ "$SKIPPED" -eq 0 ] && [ "$PROFILE" -eq 0 ]; then T1=$(now) ./setup --host claude --no-prefix $BROWSER_FLAG "$SETUP_STATE" 2>/dev/null diff --git a/bin/gstack-doctor-check.sh b/bin/gstack-doctor-check.sh index cac0ecca6..869d8869c 100644 --- a/bin/gstack-doctor-check.sh +++ b/bin/gstack-doctor-check.sh @@ -119,7 +119,7 @@ ROWS _dc_check_host() { local id="$1" fix="cd $SRC && ./setup --host $1" [ "$1" = claude ] && fix="$fix --no-prefix" - [ "$1" = codex ] && fix="$fix --model " + [ "$1" = codex ] && fix="$fix --model " _dc_host_status "$id" case "$_dc_hs_result" in current) _dc_row PASS "$id" "$_dc_hs_scope current ($_dc_hs_ver) at $_dc_hs_dest" ;; @@ -129,7 +129,7 @@ _dc_check_host() { } _dc_check_patch() { - local file="" model fix="cd $SRC && ./setup --host codex --model " + local file="" model fix="cd $SRC && ./setup --host codex --model " _dc_host_status codex if [ "$_dc_hs_result" = none ]; then _dc_fail_or_skip patch "Codex skills are not installed, so the Codex render carries no behavioral patch" "$fix" COMPONENT_MISSING "not needed; Codex skills not installed" diff --git a/changelog.d/always-use-newest-opus-fable-sol-astra.md b/changelog.d/always-use-newest-opus-fable-sol-astra.md new file mode 100644 index 000000000..f8e4ed6f8 --- /dev/null +++ b/changelog.d/always-use-newest-opus-fable-sol-astra.md @@ -0,0 +1 @@ +**gstack now picks the newest Opus, Fable, Sol and Astra everywhere it chooses a model.** The second-model voice in Codex now defaults to `gpt-6.2-astra`, the plan-review tiers move to `claude-fable-5-2` and `gpt-6.2-sol`, eval judges default to `claude-fable-5-2` (the arm benchmark keeps the `claude-fable-5-1` judge its frozen plan names), and setup, doctor and the docs name the same models. One table, `lib/model-families.ts`, now holds each family's newest model, so the next release of any of them is a one-line change, and a test fails if gstack's code or skill text names an older one. Which family speaks as the second voice is unchanged (Astra). Users who pinned a model in their config keep it. diff --git a/codex/SKILL.md b/codex/SKILL.md index 5eb5994a3..87864cd93 100644 --- a/codex/SKILL.md +++ b/codex/SKILL.md @@ -221,7 +221,7 @@ and every outside review run as a command, one subcommand per check. Model order: a model the user names for this request, `GSTACK_CODEX_MODEL`, Codex `config.toml` `model` (`review_model` first for `codex review`; honors `$CODEX_HOME`), -then `gpt-6-astra`. Each call prints `CODEX_MODEL: (; source: ...)` first. +then `gpt-6.2-astra`. Each call prints `CODEX_MODEL: (; source: ...)` first. For a named model, add `--model ''` to every `select-model`, `probe-model` and `role-ready` call, including the probe below. An invalid or unavailable choice stops with a repair message, never the default; a named model also wins over a role. @@ -548,7 +548,7 @@ fast, no extra cost. Unlike the legacy `--enable`-based spelling (deprecated by codex >=0.144), the `-c` form explicitly overrides any top-level `web_search` setting in `~/.codex/config.toml`. -If the user specifies a model (e.g., `/codex review -m gpt-6.1-sol` or +If the user specifies a model (e.g., `/codex review -m gpt-6.2-sol` or `/codex challenge --model gpt-daybreak-blue-latest`), translate it to the same config form and replace the default model flag with `-c "model=\"\""`. @@ -597,7 +597,7 @@ If token count is not available, display: `Tokens: unknown` 2. Fix that source and relay its HINT/Repair lines. With `--role plan-review`, tier pins outrank native settings; native `model`/`review_model` applies only in `host` mode. Without a role, request, `GSTACK_CODEX_MODEL`, then - native settings choose the model, falling back to `gpt-6-astra`. + native settings choose the model, falling back to `gpt-6.2-astra`. 3. If Codex printed `[notice.model_migrations]`, use that replacement for no-role calls. For a role, offer an explicit override; do not silently substitute. Never present this as a model stall or a PASS — it is a fail-closed gate result. diff --git a/codex/SKILL.md.tmpl b/codex/SKILL.md.tmpl index 140a5cf90..480fa5782 100644 --- a/codex/SKILL.md.tmpl +++ b/codex/SKILL.md.tmpl @@ -69,7 +69,7 @@ and every outside review run as a command, one subcommand per check. Model order: a model the user names for this request, `GSTACK_CODEX_MODEL`, Codex `config.toml` `model` (`review_model` first for `codex review`; honors `$CODEX_HOME`), -then `gpt-6-astra`. Each call prints `CODEX_MODEL: (; source: ...)` first. +then `{{NEWEST_MODEL:astra}}`. Each call prints `CODEX_MODEL: (; source: ...)` first. For a named model, add `--model ''` to every `select-model`, `probe-model` and `role-ready` call, including the probe below. An invalid or unavailable choice stops with a repair message, never the default; a named model also wins over a role. @@ -262,7 +262,7 @@ fast, no extra cost. Unlike the legacy `--enable`-based spelling (deprecated by codex >=0.144), the `-c` form explicitly overrides any top-level `web_search` setting in `~/.codex/config.toml`. -If the user specifies a model (e.g., `/codex review -m gpt-6.1-sol` or +If the user specifies a model (e.g., `/codex review -m {{NEWEST_MODEL:sol}}` or `/codex challenge --model gpt-daybreak-blue-latest`), translate it to the same config form and replace the default model flag with `-c "model=\"\""`. @@ -311,7 +311,7 @@ If token count is not available, display: `Tokens: unknown` 2. Fix that source and relay its HINT/Repair lines. With `--role plan-review`, tier pins outrank native settings; native `model`/`review_model` applies only in `host` mode. Without a role, request, `GSTACK_CODEX_MODEL`, then - native settings choose the model, falling back to `gpt-6-astra`. + native settings choose the model, falling back to `{{NEWEST_MODEL:astra}}`. 3. If Codex printed `[notice.model_migrations]`, use that replacement for no-role calls. For a role, offer an explicit override; do not silently substitute. Never present this as a model stall or a PASS — it is a fail-closed gate result. diff --git a/crew/scripts/census-arms.ts b/crew/scripts/census-arms.ts index d4fa58edd..ecb613be1 100644 --- a/crew/scripts/census-arms.ts +++ b/crew/scripts/census-arms.ts @@ -3,7 +3,8 @@ * Gate census arms for evals-periodic.yml (GSTA-49 TM2). Each arm is one host * and model running the weekly gate census plan: * - Monday cron (0 6 * * 1): claude-opus (the capture model, lib/eval-model.ts) - * and codex-sol (gpt-6.1-sol on the Codex host, adapter cases only); + * and codex-sol (the newest Sol, lib/model-families.ts, on the Codex host, + * adapter cases only); * - monthly cron (0 6 1 * *): claude-fable and codex-astra, census jobs only; * - dispatch: `census_arms` runs only the census with the named arms; without * it a dispatch keeps the periodic lane plus the Monday arms when the census @@ -18,15 +19,16 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import type { EvalHost } from '../../test/helpers/e2e-hosts'; +import { newestModel } from '../../lib/model-families'; export interface CensusArm { host: EvalHost; model?: string } export const CENSUS_ARMS: Readonly> = Object.freeze({ // No model: the Claude runners' capture default (claude-opus-5-5 since TM1). 'claude-opus': { host: 'claude' }, - 'codex-sol': { host: 'codex', model: 'gpt-6.1-sol' }, - 'claude-fable': { host: 'claude', model: 'claude-fable-5-1' }, - 'codex-astra': { host: 'codex', model: 'gpt-6-astra' }, + 'codex-sol': { host: 'codex', model: newestModel('sol') }, + 'claude-fable': { host: 'claude', model: newestModel('fable') }, + 'codex-astra': { host: 'codex', model: newestModel('astra') }, }); export const WEEKLY_CENSUS_SCHEDULE = '0 6 * * 1'; diff --git a/docs/TESTING_INTERNALS.md b/docs/TESTING_INTERNALS.md index 0d05c5048..3565bf98f 100644 --- a/docs/TESTING_INTERNALS.md +++ b/docs/TESTING_INTERNALS.md @@ -2214,9 +2214,11 @@ form), or any model `lib/pricing.ts` marks `superseded_by`, as an arm, a judge, a reader or a simulator. A row is marked when a newer major generation of its family has its own row (`claude-opus-4-7` → `claude-opus-5-5`, `gpt-5.4` → `gpt-6.2-sol`, `gemini-2.5-flash` → `gemini-3.8-flash`); a point release in -the same generation is not, so `gpt-6-astra` stays a valid judge beside -`gpt-6.2-astra` and `claude-fable-5-1` stays current until Fable 5.2 has a -price row. Readers and simulators go in an optional `## Models` section as +the same generation is not, so this check still admits `gpt-6-astra` and +`claude-fable-5-1` where a frozen plan names them. gstack's own defaults and +new plans use the newest model of each family (`lib/model-families.ts`; +Garry, 2026-11-24: "gstack should always be using latest astra, sol, fable or +opus"). Readers and simulators go in an optional `## Models` section as `reader: ` and `simulator: ` lines. The one exception: a competitor system tested as its vendor ships it keeps its diff --git a/docs/capy-install.md b/docs/capy-install.md index 234c27fd9..fe8ec5245 100644 --- a/docs/capy-install.md +++ b/docs/capy-install.md @@ -355,7 +355,7 @@ uses it to refuse a base merge under an open run whatever node the launch PATH gives, and a Node mismatch names the node it read and the installer command that fixes it. 3. `./setup --host claude --no-prefix`, then `./setup --host codex --model - gpt-6-astra`, both with `--no-browser`. Skipped when this exact HEAD was set + gpt-6.2-astra`, both with `--no-browser`. Skipped when this exact HEAD was set up with the same hosts, model and browser flag (recorded in the git dir after a successful setup) and `gstack-doctor --check` passes; a warm rerun takes about a second. Each setup ends with its own `gstack ready ()`; diff --git a/docs/eval-calls.md b/docs/eval-calls.md index d3b5029c0..487ef7fc9 100644 --- a/docs/eval-calls.md +++ b/docs/eval-calls.md @@ -40,7 +40,7 @@ GSTACK_EVAL_HEAD v1: 0123456789abcdef0123456789abcdef01234567 GSTACK_EVAL_INPUT v1: sha256=<64 hex> path=evals/synopsis/questions.jsonl GSTACK_EVAL_PRECONDITION: ANTHROPIC_API_KEY and OPENAI_API_KEY set at run time GSTACK_EVAL_CALLS v1: purpose=answer model=anthropic/claude-opus-5-5 calls=100 in_tokens=400000 out_tokens=200000 max_out_tokens=8192 scope=full -GSTACK_EVAL_CALLS v1: purpose=judge model=gpt-6.1-sol calls=100 in_tokens=300000 out_tokens=50000 max_out_tokens=2048 scope=full +GSTACK_EVAL_CALLS v1: purpose=judge model=gpt-6.2-sol calls=100 in_tokens=300000 out_tokens=50000 max_out_tokens=2048 scope=full GSTACK_EVAL_CALLS v1 end: lines=2 ``` @@ -97,7 +97,7 @@ all, or a plan with zero call lines, is unpriced. GATE_PLAN: file=evals/gate.calls source=price_file sha256= head= inputs=1 verified GATE_PRECONDITION: ANTHROPIC_API_KEY and OPENAI_API_KEY set at run time GATE_CALLS: purpose=answer model=anthropic/claude-opus-5-5 calls=100 usd=5.6 reservation_usd=0.17984 scope=full -GATE_CALLS: purpose=judge model=gpt-6.1-sol calls=100 usd=1.1 reservation_usd=0.02648 scope=full +GATE_CALLS: purpose=judge model=gpt-6.2-sol calls=100 usd=1.1 reservation_usd=0.02648 scope=full CHECK: reservation-fits-cap ok (largest one-call reservation $0.1798) GATE_PRICE: total=6.7 calls=200 purposes=answer,judge receipt=.gstack/tmp/price-gate/price-gate--.json ``` diff --git a/docs/eval-models.md b/docs/eval-models.md index a31d7765b..b7129a31f 100644 --- a/docs/eval-models.md +++ b/docs/eval-models.md @@ -18,8 +18,8 @@ call row of `price-gate`. gstack never reads these rules from prose in "scopes": { "full": { "deny": ["claude-fable-*"] } }, "families": { "claude-opus": ["claude-opus-5-5", "claude-opus-5", "claude-opus-4-8"], - "claude-fable": ["claude-fable-5-1", "claude-fable-5"], - "gpt-sol": ["gpt-6.1-sol", "gpt-6-sol"] + "claude-fable": ["claude-fable-5-2", "claude-fable-5-1"], + "gpt-sol": ["gpt-6.2-sol", "gpt-6.1-sol"] } } ``` @@ -80,7 +80,7 @@ than skipping the rules. ## Output ``` -EVAL_MODEL: claude-fable-5-1 scope=full denied (scopes.full.deny claude-fable-*) where=dry-run --arms +EVAL_MODEL: claude-fable-5-2 scope=full denied (scopes.full.deny claude-fable-*) where=dry-run --arms EVAL_MODEL: claude-opus-5-5 scope=full ok (allow claude-*; newest in families.claude-opus) where=dry-run --arms EVAL_MODELS: fail refused=1/2 source=origin/main@0123456789ab:.gstack/eval-models.json ``` diff --git a/docs/hosts.md b/docs/hosts.md index 395e8dd3d..4505bb37d 100644 --- a/docs/hosts.md +++ b/docs/hosts.md @@ -183,13 +183,13 @@ digest's first line shows its gstack version; re-copy it after upgrading. For Codex, setup reads the top-level `model` from `${CODEX_HOME:-~/.codex}/config.toml` and generates the matching behavioral -profile, falling back to `gpt-6-astra` when no usable model is configured. -The current OpenAI tiers are `gpt-6-astra` (frontier), `gpt-6.1-sol` (smart, the -default eval tier) and `gpt-6-luna` (lowest cost); `gpt-6.1-sol` -and `gpt-6-luna` get the generic GPT profile. Only `gpt-5.6-sol` receives the +profile, falling back to `gpt-6.2-astra` when no usable model is configured. +The current OpenAI tiers are `gpt-6.2-astra` (frontier), `gpt-6.2-sol` (smart, the +default eval tier) and `gpt-6-luna` (lowest cost). Every GPT-6 Astra release gets +the Astra profile; `gpt-6.2-sol` and `gpt-6-luna` get the generic GPT profile. Only `gpt-5.6-sol` receives the bounded-scope instructions that finish the requested lake without expanding into adjacent cleanup or speculative hardening, because that patch was measured on 5.6 -Sol; extending it to `gpt-6.1-sol` waits for its own scope eval. The Sol profile is +Sol; extending it to `gpt-6.2-sol` waits for its own scope eval. The Sol profile is exact-match only: dated snapshots and other 5.6 variants get the generic GPT profile, and setup warns on near-misses like `gpt-5.6-sol-2026-08-01`. Override detection with `./setup --host codex --model ` — the override applies to that run only; set `model` in your Codex `config.toml` to @@ -205,8 +205,8 @@ its startup prompt or in `/hooks`: see [Codex hooks](skill-routing-and-contracts.md#codex). **Plan-review and implementation tiers.** Plan workflows use an independent -`frontier` reviewer: Fable 5.1 from Codex, or GPT-6 Astra from Claude Code. -Implementation handoffs recommend the `smart` tier: Opus 5.5 or GPT-6.1 Sol. +`frontier` reviewer: Fable 5.2 from Codex, or GPT-6.2 Astra from Claude Code. +Implementation handoffs recommend the `smart` tier: Opus 5.5 or GPT-6.2 Sol. Choose a different tier, pin either provider's model, or use `host` mode to preserve native model settings. The read-only `gstack-models` command explains the effective choices; changing these settings does not require regenerating @@ -219,7 +219,7 @@ models. See [model policy: setup, overrides and freshness](model-policy.md). order: a model you name for that request, then `GSTACK_CODEX_MODEL`, then `model` in your Codex `config.toml` (for native `codex review`, `review_model` first; a custom `CODEX_HOME` is honored), and only then gstack's default, -`gpt-6-astra`. Before spending anything, it prints the choice and where it came +`gpt-6.2-astra`. Before spending anything, it prints the choice and where it came from, for example `CODEX_MODEL: gpt-5.6-terra (exec; source: ~/.codex/config.toml model)`. If your choice is invalid or your account cannot use it, gstack stops with a repair message and reports the outside review as unavailable. It never silently diff --git a/docs/loadouts.md b/docs/loadouts.md index 8b483e4b9..fd5bd714f 100644 --- a/docs/loadouts.md +++ b/docs/loadouts.md @@ -27,7 +27,7 @@ bin/gstack-modules resolve --model claude-opus-5-5 # the loadout an install wo bin/gstack-modules install --full-root "$HOME/.claude/skills" --model claude-opus-5-5 # publish it and print SKILL_ROOT ``` -`render` writes the whole host tree into a staging directory beside `--out-dir`. It checks that no rendered file still points at an excluded module, writes `loadout.lock.json` last (loadout name or `adhoc`, the normalized spec and its sha256, host, model, every excluded id, and the sha256 and byte count of every file), then swaps the result into place. A failure leaves an earlier render at `--out-dir` untouched. Claude section links name `--out-dir`, so point the eval harness at that directory. Pass the same `--model`, `--install-root` and `--plan-mode` the install under test uses, so the arms differ only by the modules. Codex renders default to the host's generic `gpt` overlay, while `./setup` uses `gpt-6-astra`. `--bind-model --full-root ` (both or neither, on a loadout that excludes something) bakes the start lines an install for that model serves ([below](#the-start-line-carries-the-model)). +`render` writes the whole host tree into a staging directory beside `--out-dir`. It checks that no rendered file still points at an excluded module, writes `loadout.lock.json` last (loadout name or `adhoc`, the normalized spec and its sha256, host, model, every excluded id, and the sha256 and byte count of every file), then swaps the result into place. A failure leaves an earlier render at `--out-dir` untouched. Claude section links name `--out-dir`, so point the eval harness at that directory. Pass the same `--model`, `--install-root` and `--plan-mode` the install under test uses, so the arms differ only by the modules. Codex renders default to the host's generic `gpt` overlay, while `./setup` uses the Astra overlay (`gpt-6-astra`, which every GPT-6 Astra release maps to). `--bind-model --full-root ` (both or neither, on a loadout that excludes something) bakes the start lines an install for that model serves ([below](#the-start-line-carries-the-model)). `bun run gen:skill-docs --loadout --out-dir ` and `--modules --out-dir ` apply the same filter to a generation run without the staging, dangling-reference check or lock file; a selection with exclusions and no `--out-dir` is refused with `MODULE_SPEC_INVALID`, because the committed tree is always the `full` render. A non-`full` render adds `` to each SKILL.md header. diff --git a/docs/model-policy.md b/docs/model-policy.md index 7373c042a..23d691f99 100644 --- a/docs/model-policy.md +++ b/docs/model-policy.md @@ -7,8 +7,11 @@ session or edits the host's native configuration. | Tier | Default job | Anthropic | OpenAI | | --- | --- | --- | --- | -| `frontier` | Independent plan review | `claude-fable-5-1` | `gpt-6-astra` | -| `smart` | Implementation recommendation | `claude-opus-5-5` | `gpt-6.1-sol` | +| `frontier` | Independent plan review | `claude-fable-5-2` | `gpt-6.2-astra` | +| `smart` | Implementation recommendation | `claude-opus-5-5` | `gpt-6.2-sol` | + +Each entry is the newest model of its family, read from `lib/model-families.ts`, +so a new generation moves every default at once. ## Inspect and change your policy @@ -46,8 +49,8 @@ Choose the less expensive review tier, then inspect the effective result: Pin a provider's model within a tier, or reset a pin to the shipped default: ```bash -"$GSTACK_ROOT/bin/gstack-config" set model_frontier_openai gpt-6-astra -"$GSTACK_ROOT/bin/gstack-config" set model_frontier_claude claude-fable-5-1 +"$GSTACK_ROOT/bin/gstack-config" set model_frontier_openai gpt-6.2-astra +"$GSTACK_ROOT/bin/gstack-config" set model_frontier_claude claude-fable-5-2 "$GSTACK_ROOT/bin/gstack-config" unset model_frontier_openai "$GSTACK_ROOT/bin/gstack-config" unset plan_review_tier ``` diff --git a/docs/skills.md b/docs/skills.md index c1bca4bdc..5631c8e0d 100644 --- a/docs/skills.md +++ b/docs/skills.md @@ -1425,7 +1425,7 @@ This is my **second opinion mode**. `/codex` brings OpenAI Codex CLI to review the same diff independently. It is available on every harness except Codex itself. External harnesses install it as `/gstack-codex`. Compare its findings with the native review to distinguish corroborated findings from issues only one reviewer caught. Without a role, gstack-owned Codex calls select a request-specific model, then -`GSTACK_CODEX_MODEL`, then Codex native settings, falling back to `gpt-6-astra`. +`GSTACK_CODEX_MODEL`, then Codex native settings, falling back to `gpt-6.2-astra`. This also applies to resumed consultations. Generated commands pass the selection through `-c model=...`, overriding the CLI's configured model for that call. Native review also sets `-c review_model=...` to that selection, overriding any diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 3559f6d8f..301ec15d6 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -4548,7 +4548,7 @@ says which was which. **Fix.** Run the outside voice on a model from another family and pass its id with `--model`. Families recognized: anthropic, openai, google, xai, deepseek, qwen, zai, moonshot, meta, mistral, minimax. An id the table cannot classify -is refused; name the model fully (`openai/gpt-6-astra`, not `astra`). +is refused; name the model fully (`openai/gpt-6.2-astra`, not `astra`). ### `SPEND_CAP_EXCEEDED` diff --git a/eval-plan/SKILL.md b/eval-plan/SKILL.md index 34c645026..5a878978b 100644 --- a/eval-plan/SKILL.md +++ b/eval-plan/SKILL.md @@ -243,8 +243,8 @@ gets its own pilot attempts; naming one identity twice is `EVAL_ARM_DUPLICATE`. Models under test are frontier models (`claude-opus-5-5`, `gpt-6.2-sol`, at most one named low-cost primary); a Haiku or Sonnet arm only with a stated tier question -(docs/TESTING_INTERNALS.md#frontier-models-under-test). Judges: `gpt-6-astra` or -`gpt-6.2-astra` for Claude arms, `claude-opus-5-5` for GPT arms. No arm, judge, reader or +(docs/TESTING_INTERNALS.md#frontier-models-under-test). Judges: `gpt-6.2-astra` +for Claude arms, `claude-opus-5-5` for GPT arms. No arm, judge, reader or simulator may be gpt-4o, a model `lib/pricing.ts` marks `superseded_by`, or an unpriced older generation of a priced family such as `claude-opus-4-5` (R116): `prereg --check` prints `MODEL_GENERATION: refused role= replacement=` and diff --git a/eval-plan/SKILL.md.tmpl b/eval-plan/SKILL.md.tmpl index ffb5a0a4f..d4a9663b7 100644 --- a/eval-plan/SKILL.md.tmpl +++ b/eval-plan/SKILL.md.tmpl @@ -156,10 +156,10 @@ page or drop the arm. Copy the priced arms into the Arms section. An arm identit `#` (for example `claude-opus-5-5#no-gstack`) is priced by its model and gets its own pilot attempts; naming one identity twice is `EVAL_ARM_DUPLICATE`. -Models under test are frontier models (`claude-opus-5-5`, `gpt-6.2-sol`, at most one named +Models under test are frontier models (`{{NEWEST_MODEL:opus}}`, `{{NEWEST_MODEL:sol}}`, at most one named low-cost primary); a Haiku or Sonnet arm only with a stated tier question -(docs/TESTING_INTERNALS.md#frontier-models-under-test). Judges: `gpt-6-astra` or -`gpt-6.2-astra` for Claude arms, `claude-opus-5-5` for GPT arms. No arm, judge, reader or +(docs/TESTING_INTERNALS.md#frontier-models-under-test). Judges: `{{NEWEST_MODEL:astra}}` +for Claude arms, `{{NEWEST_MODEL:opus}}` for GPT arms. No arm, judge, reader or simulator may be gpt-4o, a model `lib/pricing.ts` marks `superseded_by`, or an unpriced older generation of a priced family such as `claude-opus-4-5` (R116): `prereg --check` prints `MODEL_GENERATION: refused role= replacement=` and diff --git a/lib/agent-model.ts b/lib/agent-model.ts index d32c2fddc..dad46607e 100644 --- a/lib/agent-model.ts +++ b/lib/agent-model.ts @@ -1,6 +1,7 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import { readConfigKeyWithRoot, type StateRootEnv } from './state-root'; +import { MODEL_FAMILIES, newestModel } from './model-families'; /** * The agent role: the model a user wants gstack's working agents (lanes, @@ -18,17 +19,8 @@ export const PREFERENCES_FILE_MAX_BYTES = 4096; const OTHER_PREFERENCE_KEYS = new Set(['telemetry_capy', 'telemetry_capy_source']); const DOCS = 'https://github.com/garrytan/gstack/blob/main/docs/model-policy.md#your-model-preference'; -/** Family names a preference may use. When gstack's tier catalog lists a family, its entry here is the same model (test/agent-model.test.ts). */ -export const MODEL_FAMILIES = Object.freeze([ - { family: 'opus', provider: 'anthropic', model: 'claude-opus-5-5' }, - { family: 'fable', provider: 'anthropic', model: 'claude-fable-5-1' }, - { family: 'sonnet', provider: 'anthropic', model: 'claude-sonnet-5-5' }, - { family: 'haiku', provider: 'anthropic', model: 'claude-haiku-5-5' }, - { family: 'astra', provider: 'openai', model: 'gpt-6-astra' }, - { family: 'sol', provider: 'openai', model: 'gpt-6.1-sol' }, - { family: 'luna', provider: 'openai', model: 'gpt-6-luna' }, - { family: 'terra', provider: 'openai', model: 'gpt-6.1-terra' }, -].map(f => Object.freeze(f))); +/** Family names a preference may use: lib/model-families.ts, the table gstack's tier catalog also reads. */ +export { MODEL_FAMILIES }; export const AGENT_MODEL_EXEMPTIONS = Object.freeze([ 'a cross-family outside voice (gstack-models resolve --role plan-review)', @@ -91,7 +83,7 @@ export function parseAgentModel(raw: string): Parsed | null { function invalid(value: string, where: string, repair: string[]): AgentModelError { return new AgentModelError( `agent_model '${sanitize(value)}' in ${where} is not a model gstack can use`, - `use host, a family (${MODEL_FAMILIES.map(f => f.family).join(', ')}) or a provider-qualified id such as anthropic/claude-opus-5-5`, + `use host, a family (${MODEL_FAMILIES.map(f => f.family).join(', ')}) or a provider-qualified id such as anthropic/${newestModel('opus')}`, repair, ); } diff --git a/lib/capy-review-pass.js b/lib/capy-review-pass.js index ca5b56aa5..af2d6a040 100644 --- a/lib/capy-review-pass.js +++ b/lib/capy-review-pass.js @@ -7,7 +7,7 @@ // reader, a brief mismatch or a failing bin returns `STOP:` for the parent; nothing is dropped. The outside // voice is the exception (GST-1104): one that hangs past stuckMs is stopped, and one that hangs, ends empty, or // stops or fails without findings is collected as unavailable coverage (one that left findings is collected); Step 11 returns OUTSIDE_RECORD: for its review-log rows. -// A cyber_policy refusal (R95) also plans the next attempt (`gstack-review-dispatch retry`): GPT-6 Astra on the read-only brief, +// A cyber_policy refusal (R95) also plans the next attempt (`gstack-review-dispatch retry`): the newest GPT Astra on the read-only brief, // then Gemini 4 Carbon on the original; the record names the last attempt and, once all were refused, the missing second-family read. // Once Phase 2 has started /parts (the parent of input.out), each poll or finished pass also // returns the next phase's section parts that fit its 32 KB (`gstack-ship-parts next`, GSTA-167 C5); diff --git a/lib/claude-code-migration.ts b/lib/claude-code-migration.ts index 1c04fd4de..f02112308 100644 --- a/lib/claude-code-migration.ts +++ b/lib/claude-code-migration.ts @@ -13,6 +13,7 @@ export const CLAUDE_CODE_RUNTIME_FILES = [ 'lib/claude-code.ts', 'lib/claude-code-windows-job.ts', 'lib/claude-bin.ts', 'lib/outside-review-result.ts', 'lib/autoplan-reconcile.ts', 'lib/gate-outcomes.ts', 'lib/outside-consent.ts', 'lib/state-root.ts', 'lib/model-catalog.ts', 'lib/model-policy.ts', 'lib/model-policy-cli.ts', 'lib/model-policy-notice.ts', 'lib/agent-model.ts', + 'lib/model-families.ts', ]; export interface RenameOptions { diff --git a/lib/docs-only.ts b/lib/docs-only.ts index 6b8a9a8af..3503b172e 100644 --- a/lib/docs-only.ts +++ b/lib/docs-only.ts @@ -45,7 +45,7 @@ const builtIn = (p: string) => ALLOW.some(r => r.test(p)); export const DOCS_READER_TESTS: readonly { tree: RegExp; tests: readonly string[] }[] = [ { tree: /^docs\//, tests: ['test/docs-config-keys.test.ts'] }, { tree: /^(?:docs\/|README\.md$)/, tests: ['test/no-stale-gstack-brain-refs.test.ts'] }, - { tree: /./, tests: ['test/bun-entry-isolation.test.ts', 'test/gitattributes-eol.test.ts', 'test/ci-paid-coordination.test.ts', 'test/review-packets-removed.test.ts', 'test/state-root-ratchet.test.ts', 'test/codex-web-search-flag.test.ts', 'test/mkdir-lock-guard.test.ts'] }, + { tree: /./, tests: ['test/bun-entry-isolation.test.ts', 'test/model-generation-guard.test.ts', 'test/gitattributes-eol.test.ts', 'test/ci-paid-coordination.test.ts', 'test/review-packets-removed.test.ts', 'test/state-root-ratchet.test.ts', 'test/codex-web-search-flag.test.ts', 'test/mkdir-lock-guard.test.ts'] }, ]; /** Repo-wide listers that never read an allowlisted doc, with the reason. */ export const DOCS_READER_EXEMPT: Readonly> = { diff --git a/lib/eval-model.ts b/lib/eval-model.ts index b9e0cd768..3b87f4d78 100644 --- a/lib/eval-model.ts +++ b/lib/eval-model.ts @@ -19,14 +19,17 @@ * judge — LLM-judge rubric calls: CLAUDE_JUDGE_EVAL_MODEL */ +import { newestModel } from "./model-families"; + /** The model under test: Anthropic's best code model (Garry, 2026-10-18). */ -export const CLAUDE_CAPTURE_EVAL_MODEL = "claude-opus-5-5"; +export const CLAUDE_CAPTURE_EVAL_MODEL = newestModel("opus"); /** - * The judge is the ruler, not the model under test: its calibration fixtures - * (test/fixtures/judge-calibration) are keyed to it, so it moves only with a - * recalibration, never with the model under test. + * The judge is the ruler, not the model under test, and it is the newest Fable + * (Garry, 2026-11-24: "gstack should always be using latest astra, sol, fable or + * opus"). The calibration fixtures in test/fixtures/judge-calibration record + * the earlier Fable they were measured on. */ -export const CLAUDE_JUDGE_EVAL_MODEL = "claude-fable-5-1"; +export const CLAUDE_JUDGE_EVAL_MODEL = newestModel("fable"); export const DEFAULT_JUDGE_MAX_TOKENS = 8192; // `as const satisfies` keeps EvalModelKind the literal union diff --git a/lib/eval-plan.ts b/lib/eval-plan.ts index 5f2658a0a..cd8082847 100644 --- a/lib/eval-plan.ts +++ b/lib/eval-plan.ts @@ -13,6 +13,7 @@ import { spawnSync } from './spawn-sync'; import { createHash } from 'node:crypto'; import * as fs from 'node:fs'; import * as path from 'node:path'; +import { FRONTIER_MODELS } from './model-families'; import { modelsMain } from './model-policy-cli'; import { isConfigUnavailable, loadConfigFromBase } from './pregate/config'; import { EXCLUDED_BILLING_CATEGORIES, estimateCostUsd, hasPricing, PRICING, pricingRow } from './pricing'; @@ -357,8 +358,6 @@ export interface DryRunResult { } export interface DryRunOptions { input: string; arms: string[]; fields?: string[]; outputBudget?: number; retryPrompt?: string; maxRows?: number; cap?: number; modelRules?: ModelRulesCheck; tierQuestion?: string; prereg?: PlanModels } -/** Today's frontier models under test (R54, docs/TESTING_INTERNALS.md#frontier-models-under-test); a small-tier plan is re-costed on these. */ -export const FRONTIER_MODELS = ['claude-opus-5-5', 'gpt-6.2-sol'] as const; export const isSmallTierModel = (model: string) => /(^|[-/])(haiku|sonnet)(-|$)/i.test(model); /** Four bytes per token, the estimator every gstack admission uses. */ diff --git a/lib/inventory.ts b/lib/inventory.ts index c49845609..6a9a2c372 100644 --- a/lib/inventory.ts +++ b/lib/inventory.ts @@ -14,6 +14,7 @@ import * as path from 'node:path'; import { discoverTemplates } from '../scripts/discover-skills'; import { buildBill, contentClass, TOKEN_DIVISOR, TOKEN_DIVISORS } from './context-bill'; import { CAPY_INSTALL_ROOT } from './doctor-components'; +import { newestModel } from './model-families'; export const LEDGER_PATH = 'docs/inventory/evidence.json'; export const DOC_PATH = 'docs/inventory.md'; @@ -54,7 +55,7 @@ export const STATUSES = ['helps', 'no-effect', 'hurts', 'untested', 'safety'] as export type Status = (typeof STATUSES)[number]; export const R48_VERDICTS = ['KEEP', 'FIX-METHOD', 'CUT-CANDIDATE'] as const; /** R54: the frontier models under test (GPT-6.2 Sol for new plans; rows measured on 6.1 Sol keep it); a row may add at most one named low-cost primary, never Haiku or Sonnet. */ -export const FRONTIER_MODELS = ['claude-opus-5-5', 'gpt-6.2-sol', 'gpt-6.1-sol']; +export const FRONTIER_MODELS = [newestModel('opus'), newestModel('sol'), 'gpt-6.1-sol']; /** Why an earlier result does not count as fair evidence yet. */ export const PRIOR_WHY: Record = { stub: 'ran on the Agent SDK stub prompt, not the claude_code preset', diff --git a/lib/model-catalog.ts b/lib/model-catalog.ts index 1eba9ff3b..cb1dc4a56 100644 --- a/lib/model-catalog.ts +++ b/lib/model-catalog.ts @@ -1,4 +1,5 @@ import { createHash } from 'node:crypto'; +import { newestModel } from './model-families'; export type ModelProvider = 'anthropic' | 'openai'; export type ModelTier = 'frontier' | 'smart'; @@ -22,10 +23,10 @@ const ANTHROPIC_SOURCE = 'https://platform.claude.com/docs/en/models/overview'; const OPENAI_SOURCE = 'https://developers.openai.com/api/docs/models'; export const MODEL_CATALOG: readonly ModelCatalogEntry[] = Object.freeze([ - { provider: 'anthropic', tier: 'frontier', model: 'claude-fable-5-1', sourceUrl: ANTHROPIC_SOURCE, verifiedAt: '2026-10-07' }, - { provider: 'openai', tier: 'frontier', model: 'gpt-6-astra', sourceUrl: OPENAI_SOURCE, verifiedAt: '2026-10-07' }, - { provider: 'anthropic', tier: 'smart', model: 'claude-opus-5-5', sourceUrl: ANTHROPIC_SOURCE, verifiedAt: '2026-10-07' }, - { provider: 'openai', tier: 'smart', model: 'gpt-6.1-sol', sourceUrl: OPENAI_SOURCE, verifiedAt: '2026-10-07' }, + { provider: 'anthropic', tier: 'frontier', model: newestModel('fable'), sourceUrl: ANTHROPIC_SOURCE, verifiedAt: '2026-11-24' }, + { provider: 'openai', tier: 'frontier', model: newestModel('astra'), sourceUrl: OPENAI_SOURCE, verifiedAt: '2026-11-24' }, + { provider: 'anthropic', tier: 'smart', model: newestModel('opus'), sourceUrl: ANTHROPIC_SOURCE, verifiedAt: '2026-11-24' }, + { provider: 'openai', tier: 'smart', model: newestModel('sol'), sourceUrl: OPENAI_SOURCE, verifiedAt: '2026-11-24' }, ].map(entry => Object.freeze(entry as ModelCatalogEntry))); export function catalogEntry(provider: ModelProvider, tier: ModelTier): ModelCatalogEntry { diff --git a/lib/model-families.ts b/lib/model-families.ts new file mode 100644 index 000000000..c43bca0e1 --- /dev/null +++ b/lib/model-families.ts @@ -0,0 +1,27 @@ +/** + * The one table of model families gstack picks from: each family's newest model. + * Every default that names a family's model (the agent preference, the tier + * catalog, eval capture and judge models, the Codex frontier voice, the R95 + * fallback reader, Codex setup) reads it here, so a new generation is a one-line + * change. test/model-generation-guard.test.ts fails when runtime code or + * agent-loaded prose names an older generation of opus, fable, sol or astra. + */ +export type ModelFamily = 'opus' | 'fable' | 'sonnet' | 'haiku' | 'astra' | 'sol' | 'luna' | 'terra'; + +export const MODEL_FAMILIES: ReadonlyArray> = Object.freeze([ + { family: 'opus', provider: 'anthropic', model: 'claude-opus-5-5' }, + { family: 'fable', provider: 'anthropic', model: 'claude-fable-5-2' }, + { family: 'sonnet', provider: 'anthropic', model: 'claude-sonnet-5-5' }, + { family: 'haiku', provider: 'anthropic', model: 'claude-haiku-5-5' }, + { family: 'astra', provider: 'openai', model: 'gpt-6.2-astra' }, + { family: 'sol', provider: 'openai', model: 'gpt-6.2-sol' }, + { family: 'luna', provider: 'openai', model: 'gpt-6-luna' }, + { family: 'terra', provider: 'openai', model: 'gpt-6.1-terra' }, +].map(f => Object.freeze(f as { family: ModelFamily; provider: string; model: string }))); + +export function newestModel(family: ModelFamily): string { + return MODEL_FAMILIES.find(f => f.family === family)!.model; +} + +/** Today's frontier models under test (R54, docs/TESTING_INTERNALS.md#frontier-models-under-test); a small-tier plan is re-costed on these. */ +export const FRONTIER_MODELS = [newestModel('opus'), newestModel('sol')] as const; diff --git a/lib/model-policy-freshness-github.ts b/lib/model-policy-freshness-github.ts index 0fc12e664..a701237d4 100644 --- a/lib/model-policy-freshness-github.ts +++ b/lib/model-policy-freshness-github.ts @@ -1,4 +1,5 @@ -import { readBoundedResponse, sha256, type Fetcher } from './model-policy-freshness-sources'; +import { readBoundedResponse, type Fetcher } from './model-policy-freshness-sources'; +import { CATALOG_SOURCE_FILES, catalogSourceSha256 } from './model-policy-freshness'; import { FRESHNESS_ISSUE_AUTHOR, type FreshnessGitHub, type TrackingIssue } from './model-policy-freshness-publication'; const object = (value: unknown): value is Record => !!value && typeof value === 'object' && !Array.isArray(value); @@ -26,11 +27,17 @@ export function freshnessGitHub(repository: string, token: string, fetcher: Fetc async defaultCatalog(signal) { const repo = await request('', signal); if (!object(repo) || typeof repo.default_branch !== 'string' || !repo.default_branch) throw new Error('github-default-branch-unavailable'); - const file = await request(`/contents/lib/model-catalog.ts?ref=${encodeURIComponent(repo.default_branch)}`, signal); - if (!object(file) || file.encoding !== 'base64' || typeof file.content !== 'string' || typeof file.size !== 'number' || file.size <= 0 || file.size > 2 * 1024 * 1024 || !/^[A-Za-z0-9+/=\n\r]+$/.test(file.content)) throw new Error('github-default-catalog-unavailable'); - const bytes = Buffer.from(file.content, 'base64'); - if (bytes.length !== file.size) throw new Error('github-default-catalog-size-mismatch'); - return { defaultBranch: repo.default_branch, sourceSha256: sha256(bytes) }; + const commit = await request(`/commits/${encodeURIComponent(repo.default_branch)}`, signal); + if (!object(commit) || typeof commit.sha !== 'string' || !/^[0-9a-f]{40}$/.test(commit.sha)) throw new Error('github-default-commit-unavailable'); + const sources: Uint8Array[] = []; + for (const source of CATALOG_SOURCE_FILES) { + const file = await request(`/contents/${source}?ref=${commit.sha}`, signal); + if (!object(file) || file.encoding !== 'base64' || typeof file.content !== 'string' || typeof file.size !== 'number' || file.size <= 0 || file.size > 2 * 1024 * 1024 || !/^[A-Za-z0-9+/=\n\r]+$/.test(file.content)) throw new Error('github-default-catalog-unavailable'); + const bytes = Buffer.from(file.content, 'base64'); + if (bytes.length !== file.size) throw new Error('github-default-catalog-size-mismatch'); + sources.push(bytes); + } + return { defaultBranch: repo.default_branch, sourceSha256: catalogSourceSha256(sources) }; }, async listIssues(signal) { const issues: TrackingIssue[] = []; diff --git a/lib/model-policy-freshness.ts b/lib/model-policy-freshness.ts index 8a277647c..3abcf6542 100644 --- a/lib/model-policy-freshness.ts +++ b/lib/model-policy-freshness.ts @@ -30,8 +30,11 @@ const object = (value: unknown): value is Record => !!value && const string = (value: unknown): value is string => typeof value === 'string'; export const isFreshnessDate = (value: unknown): value is string => string(value) && iso(value); -export function freshnessCatalogIdentity(sourceText: string): CatalogIdentity { - return { sha256: modelCatalogSha256(), sourceSha256: sha256(sourceText), version: MODEL_CATALOG_VERSION, models: MODEL_CATALOG.map(entry => ({ provider: entry.provider, tier: entry.tier, modelId: entry.model })) }; +export const CATALOG_SOURCE_FILES = ['lib/model-catalog.ts', 'lib/model-families.ts'] as const; +export const catalogSourceSha256 = (sources: readonly (string | Uint8Array)[]): string => sha256(sources.map(source => sha256(source)).join('\n')); + +export function freshnessCatalogIdentity(sources: readonly (string | Uint8Array)[]): CatalogIdentity { + return { sha256: modelCatalogSha256(), sourceSha256: catalogSourceSha256(sources), version: MODEL_CATALOG_VERSION, models: MODEL_CATALOG.map(entry => ({ provider: entry.provider, tier: entry.tier, modelId: entry.model })) }; } export function validCatalog(value: unknown): value is CatalogIdentity { diff --git a/lib/outside-voice-runner.ts b/lib/outside-voice-runner.ts index 278f4c950..09087989a 100644 --- a/lib/outside-voice-runner.ts +++ b/lib/outside-voice-runner.ts @@ -75,7 +75,7 @@ const FAMILY_RULES: Array<[ModelFamily, RegExp]> = [ ['mistral', /^(mistral(ai)?\/|mistral|mixtral|codestral)/], ['minimax', /^(minimax\/|minimax)/], ]; -/** Family from a model id (`openai/gpt-6-astra`, `claude-opus-4-7`, `gpt-5.4`); `unknown` when no rule matches. */ +/** Family from a model id (`openai/gpt-6.2-astra`, `claude-opus-5-5`, `gpt-5.4`); `unknown` when no rule matches. */ export function modelFamily(model: string | undefined | null): ModelFamily { const id = (model ?? '').trim().toLowerCase(); if (!id) return 'unknown'; diff --git a/lib/pricing.ts b/lib/pricing.ts index 3eb178fb2..017352b18 100644 --- a/lib/pricing.ts +++ b/lib/pricing.ts @@ -49,6 +49,8 @@ export const EXCLUDED_BILLING_CATEGORIES: readonly string[] = Object.freeze([ export const PRICING: Record = { // Claude (Anthropic) + // https://platform.claude.com/docs/en/models/fable-5-2/overview#pricing (fetched 2026-11-24) + 'claude-fable-5-2': { input_per_mtok: 8.00, output_per_mtok: 40.00, cached_input_per_mtok: 0.20, as_of: '2026-11' }, // https://platform.claude.com/docs/en/models/fable-5-1/overview#pricing 'claude-fable-5-1': { input_per_mtok: 10.00, output_per_mtok: 50.00, cached_input_per_mtok: 0.25, as_of: '2026-09' }, // https://platform.claude.com/docs/en/models/opus-5-5/overview#pricing (list prices effective 2026-10-07) diff --git a/lib/review-pass.ts b/lib/review-pass.ts index 298a1d881..5fa047eea 100644 --- a/lib/review-pass.ts +++ b/lib/review-pass.ts @@ -15,6 +15,7 @@ import { createHash } from 'node:crypto'; import * as fs from 'node:fs'; import * as path from 'node:path'; import { AgentModelError, resolveAgentModel } from './agent-model'; +import { newestModel } from './model-families'; import { BriefError, briefFile, checkoutRoot, checkoutTree, promptHash, renderBrief, sliceDiff, sliceNote, withWorkspace, type BriefRole, type SectionTexts, type Slots } from './review-brief'; import { REVIEW_DIFF_MAX_BYTES, disclosureDigest } from './review-exclude'; import { appendEvent, readerKey } from './review-ledger'; @@ -275,11 +276,11 @@ export function renderStage(m: Manifest, stage: Stage, t: SectionTexts, diffFor: } /** - * R95 (2026-11-13): after OpenAI refuses the outside voice under cyber_policy, the brief goes once to GPT-6 Astra reworded as a + * R95 (2026-11-13): after OpenAI refuses the outside voice under cyber_policy, the brief goes once to the newest GPT Astra reworded as a * read-only correctness review, then once to Gemini 4 Carbon unchanged; never the same brief to another OpenAI model. */ export const CYBER_RETRIES: ReadonlyArray<{ name: string; model: PassModel; read_only?: true }> = [ - { name: 'astra-read-only', model: { model_id: 'openai/gpt-6-astra', reasoning_mode: 'high' }, read_only: true }, + { name: 'astra-read-only', model: { model_id: `openai/${newestModel('astra')}`, reasoning_mode: 'high' }, read_only: true }, { name: 'gemini-4-carbon', model: { model_id: 'google/gemini-4-carbon', reasoning_mode: 'high' } }, ]; diff --git a/modules/loadouts.json b/modules/loadouts.json index 746556264..6201d598c 100644 --- a/modules/loadouts.json +++ b/modules/loadouts.json @@ -10,11 +10,13 @@ "rungs": { "frontier": [ "claude-fable-5*", + "gpt-6.2-astra*", "gpt-6-astra*" ], "strong": [ "claude-opus-5*", "claude-sonnet-5*", + "gpt-6.2-sol*", "gpt-6.1-sol*", "gpt-6-sol*", "gpt-5.6-sol*", diff --git a/scripts/gen-skill-docs.ts b/scripts/gen-skill-docs.ts index e0659cbff..234d20c81 100644 --- a/scripts/gen-skill-docs.ts +++ b/scripts/gen-skill-docs.ts @@ -132,7 +132,7 @@ function parseGenerationArgs(args: string[]): GenerationOptions { const modelValue = value('--model'); const model = modelValue === undefined ? null : resolveModel(modelValue); if (modelValue !== undefined && !model) { - throw new Error(`Unknown model: ${modelValue}. Use ${ALL_MODEL_NAMES.join(', ')}, or a family variant (e.g., claude-opus-4-7, gpt-5.4-mini, o3).`); + throw new Error(`Unknown model: ${modelValue}. Use ${ALL_MODEL_NAMES.join(', ')}, or a family variant (e.g., claude-opus-5-5, gpt-6.2-astra, o3).`); } const catalogMode = value('--catalog-mode') ?? 'trim'; if (catalogMode !== 'trim' && catalogMode !== 'full') { diff --git a/scripts/harness-pins/test/helpers/llm-judge.ts.json b/scripts/harness-pins/test/helpers/llm-judge.ts.json index 72bce16f1..0ad696170 100644 --- a/scripts/harness-pins/test/helpers/llm-judge.ts.json +++ b/scripts/harness-pins/test/helpers/llm-judge.ts.json @@ -1 +1 @@ -{"blob":"81904a2a0fdff124713b743253d209f6e394dac8","since":7} +{"blob":"6640892961bd6b84d45f25705b452187c1374c9c","since":7,"nonBehavioral":"ARM_JUDGE_MODEL keeps main's value, claude-fable-5-1, now as a literal so the default judge's move to Fable 5.2 can't change it; the unused import is dropped"} diff --git a/scripts/model-policy-freshness.ts b/scripts/model-policy-freshness.ts index b60234533..d424b9520 100644 --- a/scripts/model-policy-freshness.ts +++ b/scripts/model-policy-freshness.ts @@ -1,6 +1,6 @@ import { readFileSync, writeFileSync, appendFileSync } from 'node:fs'; import { collectFreshnessSources, type Fetcher } from '../lib/model-policy-freshness-sources'; -import { assessFreshness, freshnessCatalogIdentity, renderFreshnessReport, type FreshnessObservation } from '../lib/model-policy-freshness'; +import { assessFreshness, CATALOG_SOURCE_FILES, freshnessCatalogIdentity, renderFreshnessReport, type FreshnessObservation } from '../lib/model-policy-freshness'; import { freshnessGitHub } from '../lib/model-policy-freshness-github'; import { publishFreshness, type FreshnessGitHub } from '../lib/model-policy-freshness-publication'; @@ -10,7 +10,7 @@ export async function runModelPolicyFreshness(options: { const env = options.env ?? process.env; const now = options.now ?? (() => new Date().toISOString()); const startedAt = now(); - const catalog = freshnessCatalogIdentity(readFileSync(new URL('../lib/model-catalog.ts', import.meta.url), 'utf8')); + const catalog = freshnessCatalogIdentity(CATALOG_SOURCE_FILES.map(file => readFileSync(new URL(`../${file}`, import.meta.url), 'utf8'))); const sources = await collectFreshnessSources(options.fetcher); const observation: FreshnessObservation = { catalog, diff --git a/scripts/models.ts b/scripts/models.ts index fb80a0a1b..0782dc825 100644 --- a/scripts/models.ts +++ b/scripts/models.ts @@ -43,6 +43,9 @@ export type Model = (typeof ALL_MODEL_NAMES)[number]; * It is also how to force a model-pinned profile: `--model opus-4-7`, * `--model sonnet-5`, and so on. * 2. Family heuristics for common variants: + * - `gpt-6.2-astra` and every other GPT-6 Astra point release or snapshot + * → `gpt-6-astra`, the overlay for gstack's default Codex model + * (lib/model-families.ts) * - `gpt-5.4-mini`, `gpt-5.4-turbo`, `gpt-5.4-*` → `gpt-5.4` * - `gpt-*` (anything else GPT, including other 5.6 variants) → `gpt` * - `o3`, `o4`, `o4-mini`, `o1`, `o1-mini`, `o1-pro` → `o-series` @@ -79,7 +82,7 @@ export function resolveModel(input: string): Model | null { // not add a Sol family pattern: Terra, Luna, future 5.6 variants, and // suffixed model IDs must NOT inherit Sol's behavioral profile; they fall // through to the generic `gpt` family below. - if (/^gpt-6-astra(-|$)/.test(s)) return 'gpt-6-astra'; + if (/^gpt-6(\.\d+)?-astra(-|$)/.test(s)) return 'gpt-6-astra'; if (/^gpt-5\.4(-|$)/.test(s)) return 'gpt-5.4'; if (/^gpt(-|$)/.test(s)) return 'gpt'; if (/^o[0-9]+(-|$)/.test(s)) return 'o-series'; diff --git a/scripts/modules-cli.ts b/scripts/modules-cli.ts index 03f6240d0..2254efc38 100644 --- a/scripts/modules-cli.ts +++ b/scripts/modules-cli.ts @@ -87,7 +87,7 @@ export async function modulesMain(args: string[]): Promise { if (loadout === undefined && modules === undefined) throw new ModuleError('MODULE_SPEC_INVALID', 'render needs --loadout or --modules', 'add --loadout full for the control arm'); const modelValue = flag(rest, '--model'); const model = modelValue === undefined ? null : resolveModel(modelValue); - if (modelValue !== undefined && !model) throw new ModuleError('MODULE_SPEC_INVALID', `--model ${JSON.stringify(modelValue.slice(0, 80))} is not a model gstack knows`, 'pass the same --model setup uses, for example gpt-6-astra'); + if (modelValue !== undefined && !model) throw new ModuleError('MODULE_SPEC_INVALID', `--model ${JSON.stringify(modelValue.slice(0, 80))} is not a model gstack knows`, 'pass the same --model setup uses, for example gpt-6.2-astra'); const planMode = flag(rest, '--plan-mode'); if (planMode !== undefined && planMode !== 'on' && planMode !== 'off') throw new ModuleError('MODULE_SPEC_INVALID', '--plan-mode takes on or off', 'drop it, or pass --plan-mode off'); const installRoot = flag(rest, '--install-root'); diff --git a/scripts/resolve-codex-generation-model.ts b/scripts/resolve-codex-generation-model.ts index 0a193e4f3..95f9c164b 100644 --- a/scripts/resolve-codex-generation-model.ts +++ b/scripts/resolve-codex-generation-model.ts @@ -6,6 +6,7 @@ import * as path from 'path'; import { ALL_MODEL_NAMES, resolveModel, type Model } from './models'; import { CODEX_MODEL_REPAIR, codexConfigModel, codexNativeModel, ModelPolicyError, resolvePlanReviewModel, selectionRepair, type ModelSelection } from '../lib/model-policy'; import { emitModelPolicyNotice } from '../lib/model-policy-notice'; +import { newestModel } from '../lib/model-families'; export interface CodexGenerationModelResolution { model: Model; @@ -13,8 +14,9 @@ export interface CodexGenerationModelResolution { warnings: string[]; } -const CODEX_DEFAULT_MODEL: Model = 'gpt-6-astra'; -const DEFAULT_SOURCE = `default (${CODEX_DEFAULT_MODEL})`; +const CODEX_DEFAULT_ID = newestModel('astra'); +const CODEX_DEFAULT_MODEL: Model = resolveModel(CODEX_DEFAULT_ID)!; +const DEFAULT_SOURCE = `default (${CODEX_DEFAULT_ID})`; /** * Strip control characters from strings that originate in the user's @@ -62,7 +64,7 @@ export function resolveCodexGenerationModel(opts: { }; if (!path.isAbsolute(codexHome)) { - return fallback(`Codex home '${sanitize(codexHome)}' is not an absolute path; using Codex default ${CODEX_DEFAULT_MODEL}.`); + return fallback(`Codex home '${sanitize(codexHome)}' is not an absolute path; using Codex default ${CODEX_DEFAULT_ID}.`); } let raw: string; @@ -71,7 +73,7 @@ export function resolveCodexGenerationModel(opts: { } catch (error) { const code = (error as NodeJS.ErrnoException).code; if (code !== 'ENOENT') { - return fallback(`Could not read ${sanitize(configPath)}; using Codex default ${CODEX_DEFAULT_MODEL}.`); + return fallback(`Could not read ${sanitize(configPath)}; using Codex default ${CODEX_DEFAULT_ID}.`); } return fallback(); } @@ -80,19 +82,19 @@ export function resolveCodexGenerationModel(opts: { try { parsed = Bun.TOML.parse(raw) as Record; } catch { - return fallback(`Could not parse ${sanitize(configPath)}; using Codex default ${CODEX_DEFAULT_MODEL}.`); + return fallback(`Could not parse ${sanitize(configPath)}; using Codex default ${CODEX_DEFAULT_ID}.`); } if (!Object.prototype.hasOwnProperty.call(parsed, 'model')) { return fallback(); } if (typeof parsed.model !== 'string') { - return fallback(`Top-level model in ${sanitize(configPath)} is not a string; using Codex default ${CODEX_DEFAULT_MODEL}.`); + return fallback(`Top-level model in ${sanitize(configPath)} is not a string; using Codex default ${CODEX_DEFAULT_ID}.`); } const model = resolveModel(parsed.model); if (!model) { - return fallback(`Unsupported top-level model '${sanitize(parsed.model)}' in ${sanitize(configPath)}; using Codex default ${CODEX_DEFAULT_MODEL}.`); + return fallback(`Unsupported top-level model '${sanitize(parsed.model)}' in ${sanitize(configPath)}; using Codex default ${CODEX_DEFAULT_ID}.`); } // Sol is exact-only by design (Terra/Luna/dated snapshots must not inherit @@ -146,7 +148,7 @@ export function resolveCodexRuntimeModel(opts: { if (opts.explicit) return chosen('explicit request', opts.explicit); if (env.GSTACK_CODEX_MODEL) return chosen('GSTACK_CODEX_MODEL', env.GSTACK_CODEX_MODEL); const named = codexConfigModel({ ...opts, env }); - if (named.value === null) return { kind: opts.kind, model: CODEX_DEFAULT_MODEL, source: `gstack default (${named.source})` }; + if (named.value === null) return { kind: opts.kind, model: CODEX_DEFAULT_ID, source: `gstack default (${named.source})` }; return chosen(named.source, named.value); } diff --git a/scripts/resolvers/constants.ts b/scripts/resolvers/constants.ts index fe6eba36b..770a0dd3b 100644 --- a/scripts/resolvers/constants.ts +++ b/scripts/resolvers/constants.ts @@ -1,6 +1,7 @@ // ─── Shared Design Constants ──────────────────────────────── import { DESIGN_SLOP_CATALOG } from '../../lib/design-catalog'; +import { newestModel } from '../../lib/model-families'; /** * gstack's AI slop anti-patterns — shared between DESIGN_METHODOLOGY and DESIGN_HARD_RULES. @@ -69,7 +70,7 @@ export const CODEX_WEB_SEARCH_FLAG = `-c 'web_search="cached"'`; * default (#2914). The selection is printed before the first paid call and the * probe checks the same record the flags below pass. */ -export const CODEX_FRONTIER_MODEL = 'gpt-6-astra'; +export const CODEX_FRONTIER_MODEL = newestModel('astra'); /** * Nested gstack Codex calls are one-shot reviews: keep installed skills (gstack's * own included) out of the model's context so the reviewer cannot re-run a whole diff --git a/scripts/resolvers/index.ts b/scripts/resolvers/index.ts index 5bee5bac8..3c390e012 100644 --- a/scripts/resolvers/index.ts +++ b/scripts/resolvers/index.ts @@ -16,6 +16,7 @@ import type { TemplateContext, ResolverFn } from './types'; import { getHostConfig } from '../../hosts/index'; +import { MODEL_FAMILIES } from '../../lib/model-families'; import { outsideVoiceFor, outsideVoiceGuard, outsideVoiceInvocation, outsideVoicePreflight, outsideVoiceProvenance, generateOutsideVoiceRouting } from './outside-voice'; // Domain modules @@ -70,6 +71,11 @@ export const RESOLVERS: Record = { NATIVE_LABEL: (ctx) => outsideVoiceFor(ctx).nativeLabel, OUTSIDE_PROVIDER: (ctx) => outsideVoiceFor(ctx).id, HOST_ID: (ctx) => ctx.host, + NEWEST_MODEL: (_ctx, args) => { + const entry = MODEL_FAMILIES.find(f => f.family === args?.[0]); + if (!entry) throw new Error(`{{NEWEST_MODEL:}} needs one of ${MODEL_FAMILIES.map(f => f.family).join(', ')}`); + return entry.model; + }, OUTSIDE_PREFLIGHT: (ctx, args) => outsideVoicePreflight(ctx, { disabledBehavior: args?.[0] === 'opt-in' ? 'opt-in' : 'codex-only', ...(args?.[0] === 'autoplan' || args?.[1] === 'plan-review' ? { role: 'plan-review' as const } : {}) }), OUTSIDE_INVOCATION: (ctx, args) => outsideVoiceInvocation(ctx, { timeoutMs: args?.[0] === 'spec' ? 120000 : 540000, gate: args?.[0] === 'spec' ? 'spec' : 'review', reasoningEffort: args?.[0] === 'spec' ? 'medium' : 'high', ...(args?.[0] === 'autoplan' || args?.[0] === 'spec' ? { role: 'plan-review' as const } : {}) }), OUTSIDE_PROVENANCE: (ctx, args) => outsideVoiceProvenance(ctx, args?.[0] ?? ctx.skillName), diff --git a/setup b/setup index b39f046fa..028a52721 100755 --- a/setup +++ b/setup @@ -2076,7 +2076,7 @@ probe_cso_build_prerequisites() { # the hardcoded fallback. The resolver is a read-only TOML lookup that falls # back to the current frontier Codex profile when no Codex config exists. CODEX_GENERATION_MODEL="gpt-6-astra" -CODEX_GENERATION_MODEL_SOURCE="default (gpt-6-astra)" +CODEX_GENERATION_MODEL_SOURCE="default (gpt-6.2-astra)" _CODEX_MODEL_ARGS=(run scripts/resolve-codex-generation-model.ts) if [ "$MODEL_OVERRIDE_SET" -eq 1 ]; then _CODEX_MODEL_ARGS+=(--explicit "$MODEL_OVERRIDE") diff --git a/test/agent-model.test.ts b/test/agent-model.test.ts index 4b4417bc3..3f430a081 100644 --- a/test/agent-model.test.ts +++ b/test/agent-model.test.ts @@ -69,7 +69,7 @@ describe('precedence and sources', () => { expect(resolveAgentModel({ env: e })).toMatchObject({ status: 'selected', id: 'anthropic/claude-opus-5-5', family: 'opus', source: { kind: 'preferences', path: prefs } }); setConfig(e, 'agent_model: openai/gpt-6.1-sol\n'); expect(resolveAgentModel({ env: e })).toMatchObject({ id: 'openai/gpt-6.1-sol', source: { kind: 'config' }, sources: { config: 'openai/gpt-6.1-sol', preferences: 'opus' } }); - expect(resolveAgentModel({ env: e, request: 'fable' })).toMatchObject({ id: 'anthropic/claude-fable-5-1', source: { kind: 'request', path: null } }); + expect(resolveAgentModel({ env: e, request: 'fable' })).toMatchObject({ id: 'anthropic/claude-fable-5-2', source: { kind: 'request', path: null } }); expect(resolveAgentModel({ env: e, request: 'host' })).toMatchObject({ status: 'host', source: { kind: 'request' } }); }); @@ -80,7 +80,7 @@ describe('precedence and sources', () => { const e = env(base, { GSTACK_PREFERENCES_FILE: prefs }); const r = modelsMain(['resolve', '--role', 'agent', '--request', 'sol'], e); expect(r.code, r.stderr).toBe(0); - expect(r.stdout).toMatch(/^agent: openai\/gpt-6\.1-sol \(sol\) - requested for this job, not saved$/m); + expect(r.stdout).toMatch(/^agent: openai\/gpt-6\.2-sol \(sol\) - requested for this job, not saved$/m); expect(fs.existsSync(path.join(e.GSTACK_STATE_ROOT, 'config.yaml'))).toBe(false); expect(fs.readFileSync(prefs, 'utf8')).toBe('agent_model: opus\n'); expect(config(e, ['set', 'agent_model', 'host']).status).toBe(0); diff --git a/test/benchmark-runner.test.ts b/test/benchmark-runner.test.ts index 071f761bc..c0922579d 100644 --- a/test/benchmark-runner.test.ts +++ b/test/benchmark-runner.test.ts @@ -30,7 +30,7 @@ test('estimateCostUsd computes correctly for known Claude model', () => { }); // Opus 5.5 costs $4/MTok input and $20/MTok output; Fable 5.1 (the judge) and Astra $10 and $50. -for (const [model, usd] of [[CLAUDE_CAPTURE_EVAL_MODEL, 0.008], [CLAUDE_JUDGE_EVAL_MODEL, 0.02], [CODEX_FRONTIER_MODEL, 0.02]] as const) { +for (const [model, usd] of [[CLAUDE_CAPTURE_EVAL_MODEL, 0.008], [CLAUDE_JUDGE_EVAL_MODEL, 0.016], [CODEX_FRONTIER_MODEL, 0.016]] as const) { test(`estimateCostUsd prices the current ${model} default at its standard rate`, () => { expect(estimateCostUsd({ input: 1000, output: 200 }, model)).toBe(usd); }); diff --git a/test/claude-code-skill.test.ts b/test/claude-code-skill.test.ts index 4984f011a..3d7fa2f8d 100644 --- a/test/claude-code-skill.test.ts +++ b/test/claude-code-skill.test.ts @@ -218,7 +218,7 @@ describe('complete generated Claude Code wrapper modes', () => { expect(result.stdout).toContain('The plan needs an overflow check.'); const observed = JSON.parse(fs.readFileSync(CAPTURE, 'utf8')); expect(observed.prompt).toBe(PROMPT_TEXT); - expect(observed.args).toContain('--model=claude-fable-5-1'); + expect(observed.args).toContain('--model=claude-fable-5-2'); expect(result.stdout).not.toContain('Nothing to review'); expectTempsCleaned(); }); diff --git a/test/codex-custom-provider-agreement.test.ts b/test/codex-custom-provider-agreement.test.ts index 6f5abad13..fc0dd401b 100644 --- a/test/codex-custom-provider-agreement.test.ts +++ b/test/codex-custom-provider-agreement.test.ts @@ -79,20 +79,20 @@ function both(configToml: string) { describe('role-ready and the codex-cli runner agree on a custom provider (GST-3089)', () => { test('config.toml names the frontier catalog model: both accept it and run it', () => { - const r = both(CUSTOM('gpt-6-astra')); - expect({ status: r.ready.status, model: r.ready.model }).toEqual({ status: 0, model: 'gpt-6-astra' }); - expect(r.ready.calls.filter(c => c.probe).map(c => c.model)).toEqual(['model="gpt-6-astra"']); - expect(r.voice.meta).toMatchObject({ runner: 'codex-cli', model: 'gpt-6-astra' }); + const r = both(CUSTOM('gpt-6.2-astra')); + expect({ status: r.ready.status, model: r.ready.model }).toEqual({ status: 0, model: 'gpt-6.2-astra' }); + expect(r.ready.calls.filter(c => c.probe).map(c => c.model)).toEqual(['model="gpt-6.2-astra"']); + expect(r.voice.meta).toMatchObject({ runner: 'codex-cli', model: 'gpt-6.2-astra' }); expect(r.voice.meta.reason).not.toBe('model_unselected'); - expect(r.voice.calls.filter(c => !c.probe).map(c => c.model)).toEqual(['model="gpt-6-astra"']); + expect(r.voice.calls.filter(c => !c.probe).map(c => c.model)).toEqual(['model="gpt-6.2-astra"']); }); test('config.toml names a non-frontier model: both refuse with the same reason code and send nothing', () => { - const r = both(CUSTOM('gpt-6.1-sol')); + const r = both(CUSTOM('gpt-6.2-sol')); expect(r.ready.status).toBe(1); expect(r.ready.model).toBeNull(); expect(r.ready.policy).toBe('custom_provider_model_not_tier'); - expect(r.ready.stderr).toContain("'gpt-6.1-sol'"); + expect(r.ready.stderr).toContain("'gpt-6.2-sol'"); expect(r.ready.calls).toEqual([]); expect(r.voice.meta).toMatchObject({ status: 'unavailable', reason: 'model_unselected' }); expect(r.voice.policy).toBe(r.ready.policy); @@ -110,11 +110,11 @@ describe('role-ready and the codex-cli runner agree on a custom provider (GST-30 }); test('the tier decides which catalog ID counts: plan_review_tier smart accepts the smart ID from config.toml', () => { - const f = fixture(CUSTOM('gpt-6.1-sol')); + const f = fixture(CUSTOM('gpt-6.2-sol')); fs.writeFileSync(path.join(f.dir, 'state', 'config.yaml'), 'plan_review_tier: smart\n'); const r = spawnSync(PROBE, ['select-model', 'exec', '--role', 'plan-review'], { env: f.env, encoding: 'utf8', timeout: 30_000 }); expect(r.status).toBe(0); - expect(r.stdout.split('\n')[0]).toBe('CODEX_SEL: gpt-6.1-sol'); + expect(r.stdout.split('\n')[0]).toBe('CODEX_SEL: gpt-6.2-sol'); expect(r.stderr).toContain('tier: smart; source: '); for (const bad of [['select-model', 'exec', '--role'], ['select-model', 'exec', '--role', 'implementation'], ['select-model', 'exec', '--cwd', f.repo]]) { const u = spawnSync(PROBE, bad, { env: f.env, encoding: 'utf8', timeout: 30_000 }); @@ -123,9 +123,9 @@ describe('role-ready and the codex-cli runner agree on a custom provider (GST-30 }); test('negative control: the stock OpenAI provider keeps the catalog frontier model in both, whatever config.toml names', () => { - const r = both('model = "gpt-6.1-sol"\n'); - expect({ status: r.ready.status, model: r.ready.model }).toEqual({ status: 0, model: 'gpt-6-astra' }); - expect(r.voice.meta).toMatchObject({ model: 'gpt-6-astra' }); - expect(r.voice.calls.filter(c => !c.probe).map(c => c.model)).toEqual(['model="gpt-6-astra"']); + const r = both('model = "gpt-6.2-sol"\n'); + expect({ status: r.ready.status, model: r.ready.model }).toEqual({ status: 0, model: 'gpt-6.2-astra' }); + expect(r.voice.meta).toMatchObject({ model: 'gpt-6.2-astra' }); + expect(r.voice.calls.filter(c => !c.probe).map(c => c.model)).toEqual(['model="gpt-6.2-astra"']); }); }); diff --git a/test/codex-generation-model.test.ts b/test/codex-generation-model.test.ts index 873df5927..e680feace 100644 --- a/test/codex-generation-model.test.ts +++ b/test/codex-generation-model.test.ts @@ -45,7 +45,7 @@ model = "gpt-5.6-terra" codexHome: codexHome('[profiles.sol]\nmodel = "gpt-5.6-sol"\n'), }); expect(result.model).toBe('gpt-6-astra'); - expect(result.source).toBe('default (gpt-6-astra)'); + expect(result.source).toBe('default (gpt-6.2-astra)'); }); test('missing, malformed, non-string, and unsupported configs fall back safely', () => { @@ -69,7 +69,7 @@ model = "gpt-5.6-terra" fs.mkdirSync(path.join(home, 'config.toml')); const result = resolveCodexGenerationModel({ codexHome: home }); expect(result.model).toBe('gpt-6-astra'); - expect(result.source).toBe('default (gpt-6-astra)'); + expect(result.source).toBe('default (gpt-6.2-astra)'); expect(result.warnings[0]).toContain('Could not read'); }); @@ -86,7 +86,7 @@ model = "gpt-5.6-terra" test('non-absolute codex home falls back with a warning (relative-path steering guard)', () => { const result = resolveCodexGenerationModel({ codexHome: '.codex' }); expect(result.model).toBe('gpt-6-astra'); - expect(result.source).toBe('default (gpt-6-astra)'); + expect(result.source).toBe('default (gpt-6.2-astra)'); expect(result.warnings[0]).toContain('not an absolute path'); }); @@ -156,17 +156,17 @@ describe('Codex runtime model resolution (#2914)', () => { }); test('a legacy active profile model wins over the top-level model', () => { - const home = codexHome('profile = "cheap"\nmodel = "gpt-6-astra"\n[profiles.cheap]\nmodel = "gpt-6-luna"\n[profiles.other]\nmodel = "gpt-6-sol"\n'); + const home = codexHome('profile = "cheap"\nmodel = "gpt-6.2-astra"\n[profiles.cheap]\nmodel = "gpt-6-luna"\n[profiles.other]\nmodel = "gpt-6-sol"\n'); expect(resolveCodexRuntimeModel({ kind: 'exec', codexHome: home, env: env() })).toEqual({ kind: 'exec', model: 'gpt-6-luna', source: `${path.join(home, 'config.toml')} [profiles.cheap].model`, }); }); - test('honors CODEX_HOME from the environment and falls back to gpt-6-astra only when nothing chooses', () => { + test('honors CODEX_HOME from the environment and falls back to gpt-6.2-astra only when nothing chooses', () => { const home = codexHome('model = "gpt-5.4"\n'); expect(resolveCodexRuntimeModel({ kind: 'exec', env: env({ CODEX_HOME: home }) }).model).toBe('gpt-5.4'); const empty = codexHome('approval_policy = "never"\n'); - expect(resolveCodexRuntimeModel({ kind: 'review', codexHome: empty, env: env() }).model).toBe('gpt-6-astra'); + expect(resolveCodexRuntimeModel({ kind: 'review', codexHome: empty, env: env() }).model).toBe('gpt-6.2-astra'); expect(resolveCodexRuntimeModel({ kind: 'exec', codexHome: codexHome(), env: env() }).source).toContain('gstack default'); }); diff --git a/test/codex-host.test.ts b/test/codex-host.test.ts index b1ab0b89d..a4322761b 100644 --- a/test/codex-host.test.ts +++ b/test/codex-host.test.ts @@ -234,7 +234,7 @@ describe('Codex runner parity', () => { expect(() => codexHostExecArgs('m', 'go', { GSTACK_CODEX_EFFORT: 'high" -c x="y' })).toThrow('GSTACK_CODEX_EFFORT'); expect(codexHostModel('claude-opus-4-7', { GSTACK_CODEX_MODEL: 'gpt-6.1-sol' })).toBe('gpt-6.1-sol'); expect(codexHostModel('gpt-6-astra', { GSTACK_CODEX_MODEL: 'gpt-6.1-sol' })).toBe('gpt-6-astra'); - expect(codexHostModel(undefined, {})).toBe('gpt-6-astra'); + expect(codexHostModel(undefined, {})).toBe('gpt-6.2-astra'); }); test('every shard on the Codex host gets the CI Codex install', () => { diff --git a/test/codex-model-probe.test.ts b/test/codex-model-probe.test.ts index 08ce9a888..4a8de0ff0 100644 --- a/test/codex-model-probe.test.ts +++ b/test/codex-model-probe.test.ts @@ -24,7 +24,7 @@ * MODEL_UNUSABLE (editing the pin IS the fix) * - the probed model is the runtime selection (#2914): explicit request, * GSTACK_CODEX_MODEL, config.toml (review_model first for native review), - * then gpt-6-astra; an invalid choice never falls back to the default + * then gpt-6.2-astra; an invalid choice never falls back to the default * - the cache key also covers the resolved codex binary, its mtime and the * auth mode (#2787), and never stores a credential */ @@ -55,8 +55,8 @@ printf '%s\\n' "$*" >> "$STUB_ARGS_LOG" case "\${STUB_MODE:-ok}" in ok) echo "OK"; exit 0 ;; model400) - echo 'warning: Model metadata for \`gpt-6-astra\` not found.' >&2 - echo 'ERROR: {"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The '"'"'gpt-6-astra'"'"' model is not supported when using Codex with a ChatGPT account."}}' >&2 + echo 'warning: Model metadata for \`gpt-6.2-astra\` not found.' >&2 + echo 'ERROR: {"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The '"'"'gpt-6.2-astra'"'"' model is not supported when using Codex with a ChatGPT account."}}' >&2 exit 1 ;; transient) echo "stream error: network unreachable" >&2; exit 7 ;; quota) @@ -80,7 +80,7 @@ case "\${STUB_MODE:-ok}" in exit 1 ;; baseurl404) echo 'ERROR: unexpected status 404 Not Found: Not Found, url: http://localhost:9999/v1/responses' >&2; exit 1 ;; outdated400) - echo 'ERROR: {"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The '"'"'gpt-6-astra'"'"' model requires a newer version of Codex. Please upgrade to the latest app or CLI and try again."}}' >&2 + echo 'ERROR: {"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The '"'"'gpt-6.2-astra'"'"' model requires a newer version of Codex. Please upgrade to the latest app or CLI and try again."}}' >&2 exit 1 ;; esac `; @@ -280,7 +280,7 @@ describe('codex model probe (#2477)', () => { } }); - test('#2914: precedence is explicit request, GSTACK_CODEX_MODEL, config.toml, then gpt-6-astra', () => { + test('#2914: precedence is explicit request, GSTACK_CODEX_MODEL, config.toml, then gpt-6.2-astra', () => { const f = makeFixture(); try { fs.writeFileSync(path.join(f.codexHome, 'config.toml'), 'model = "gpt-5.6-terra"\nreview_model = "gpt-5.6-luna"\n'); @@ -295,7 +295,7 @@ describe('codex model probe (#2477)', () => { fs.writeFileSync(config, 'model = "acme/custom-model:2026-09"\n'); expect(sel({}, '_gstack_codex_select_model review')).toBe(`acme/custom-model:2026-09|${config} model`); fs.rmSync(config); - expect(sel({}, '_gstack_codex_select_model exec')).toBe(`gpt-6-astra|gstack default (no ${config})`); + expect(sel({}, '_gstack_codex_select_model exec')).toBe(`gpt-6.2-astra|gstack default (no ${config})`); expect(invocations(f)).toBe(0); // selection alone never spends a call } finally { fs.rmSync(f.home, { recursive: true, force: true }); @@ -329,7 +329,7 @@ describe('codex model probe (#2477)', () => { expect(r.stdout).toContain('MODEL_UNUSABLE'); expect(r.stderr).toContain('GSTACK_CODEX_MODEL='); expect(r.stderr).toContain('No Codex call was made'); - expect(r.stderr).not.toContain('CODEX_MODEL: gpt-6-astra'); + expect(r.stderr).not.toContain('CODEX_MODEL: gpt-6.2-astra'); expect(invocations(f)).toBe(0); expect(fs.existsSync(path.join(f.home, 'PWNED'))).toBe(false); } finally { diff --git a/test/codex-web-search-flag.test.ts b/test/codex-web-search-flag.test.ts index 17c48faf1..317299315 100644 --- a/test/codex-web-search-flag.test.ts +++ b/test/codex-web-search-flag.test.ts @@ -105,10 +105,10 @@ describe('codex frontier model flag is present', () => { } }; - test('the model flag passes the selected model: GSTACK_CODEX_MODEL, then config.toml, then gpt-6-astra', () => { + test('the model flag passes the selected model: GSTACK_CODEX_MODEL, then config.toml, then gpt-6.2-astra', () => { const select = 'exec' as const; const isolation = ['-c', 'skills.include_instructions=false']; - expect(flagArgv(CODEX_MODEL_CONFIG_FLAG, select, {})).toEqual(['-c', 'model="gpt-6-astra"', ...isolation]); + expect(flagArgv(CODEX_MODEL_CONFIG_FLAG, select, {})).toEqual(['-c', 'model="gpt-6.2-astra"', ...isolation]); expect(flagArgv(CODEX_MODEL_CONFIG_FLAG, select, {}, 'model = "gpt-5.6-terra"\n')).toEqual(['-c', 'model="gpt-5.6-terra"', ...isolation]); expect(flagArgv(CODEX_MODEL_CONFIG_FLAG, select, { GSTACK_CODEX_MODEL: 'custom-codex' }, 'model = "gpt-5.6-terra"\n')).toEqual(['-c', 'model="custom-codex"', ...isolation]); // Without a selection in the same shell the command stops instead of guessing. @@ -117,7 +117,7 @@ describe('codex frontier model flag is present', () => { test('the review model flag overrides both model settings with the same selection, and review sites run codex exec with the plain model flag', () => { for (const [env, config, expected] of [ - [{}, undefined, 'gpt-6-astra'], + [{}, undefined, 'gpt-6.2-astra'], [{ GSTACK_CODEX_MODEL: 'custom-codex' }, 'review_model = "gpt-5.6-luna"\n', 'custom-codex'], [{}, 'model = "gpt-5.6-terra"\nreview_model = "gpt-5.6-luna"\n', 'gpt-5.6-luna'], ] as const) { diff --git a/test/evals-workflow-wiring.test.ts b/test/evals-workflow-wiring.test.ts index f0ac486b2..53838e878 100644 --- a/test/evals-workflow-wiring.test.ts +++ b/test/evals-workflow-wiring.test.ts @@ -519,14 +519,14 @@ describe('evals-periodic.yml census arms: Monday two-arm census, monthly Fable/A const census = wf.jobs['gate-census']!; const report = wf.jobs.report!; - test('each arm is one host and model: the capture default and gpt-6.1-sol weekly, claude-fable-5-1 and gpt-6-astra monthly', () => { + test('each arm is one host and model: the capture default and gpt-6.2-sol weekly, claude-fable-5-2 and gpt-6.2-astra monthly', () => { expect(WEEKLY_CENSUS_ARMS).toEqual(['claude-opus', 'codex-sol']); expect(MONTHLY_CENSUS_ARMS).toEqual(['claude-fable', 'codex-astra']); // claude-opus pins no model: the Claude runners' capture default (lib/eval-model.ts) applies. expect(censusArmEnv('claude-opus')).toEqual({ EVALS_HOST: 'claude' }); - expect(censusArmEnv('codex-sol')).toEqual({ EVALS_HOST: 'codex', GSTACK_CODEX_MODEL: 'gpt-6.1-sol' }); - expect(censusArmEnv('claude-fable')).toEqual({ EVALS_HOST: 'claude', EVALS_MODEL: 'claude-fable-5-1' }); - expect(censusArmEnv('codex-astra')).toEqual({ EVALS_HOST: 'codex', GSTACK_CODEX_MODEL: 'gpt-6-astra' }); + expect(censusArmEnv('codex-sol')).toEqual({ EVALS_HOST: 'codex', GSTACK_CODEX_MODEL: 'gpt-6.2-sol' }); + expect(censusArmEnv('claude-fable')).toEqual({ EVALS_HOST: 'claude', EVALS_MODEL: 'claude-fable-5-2' }); + expect(censusArmEnv('codex-astra')).toEqual({ EVALS_HOST: 'codex', GSTACK_CODEX_MODEL: 'gpt-6.2-astra' }); expect(() => censusArmEnv('codex-luna')).toThrow('unknown census arm'); // The report files slice artifacts by arm suffix: no arm id may end another one. const ids = Object.keys(CENSUS_ARMS); @@ -568,7 +568,7 @@ describe('evals-periodic.yml census arms: Monday two-arm census, monthly Fable/A }; expect(cli(['--select'], { SCHEDULE: MONTHLY_CENSUS_SCHEDULE })).toBe('arms=["claude-fable","codex-astra"]\nperiodic_lane=false\n'); expect(cli(['--select'], { CENSUS_ARMS: 'codex-sol', INCLUDE_GATE_CENSUS: 'true' })).toBe('arms=["codex-sol"]\nperiodic_lane=false\n'); - expect(cli(['--env', 'codex-sol'], {})).toBe('EVALS_HOST=codex\nGSTACK_CODEX_MODEL=gpt-6.1-sol\n'); + expect(cli(['--env', 'codex-sol'], {})).toBe('EVALS_HOST=codex\nGSTACK_CODEX_MODEL=gpt-6.2-sol\n'); }); test('census artifacts and reconciliation are per arm', () => { diff --git a/test/gstack-capy-install.test.ts b/test/gstack-capy-install.test.ts index 53ed2efc8..9f8e9c602 100644 --- a/test/gstack-capy-install.test.ts +++ b/test/gstack-capy-install.test.ts @@ -102,7 +102,7 @@ describe('gstack-capy-install', () => { expect(r.status, r.stdout + r.stderr).toBe(0); expect(f.calls().filter(l => l.startsWith('setup '))).toEqual([ 'setup --host claude --no-prefix --no-browser', - 'setup --host codex --model gpt-6-astra --no-browser', + 'setup --host codex --model gpt-6.2-astra --no-browser', ]); expect(f.calls().filter(l => l.startsWith('env '))).toEqual(Array(2).fill('env GSTACK_SKIP_PLAYWRIGHT= GSTACK_SKIP_FONTS= bun=1.4.2')); expect(f.calls().some(l => l.startsWith('browser-ensure'))).toBe(false); @@ -132,7 +132,7 @@ describe('gstack-capy-install', () => { const f = fixture(); const r = run(f, ['--for', 'qa', '--with-browser']); expect(r.status, r.stdout + r.stderr).toBe(0); - expect(f.calls().filter(l => l.startsWith('setup '))).toEqual(['setup --host claude --no-prefix', 'setup --host codex --model gpt-6-astra']); + expect(f.calls().filter(l => l.startsWith('setup '))).toEqual(['setup --host claude --no-prefix', 'setup --host codex --model gpt-6.2-astra']); expect(f.calls().filter(l => l.startsWith('browser-ensure'))).toEqual(['browser-ensure ']); expect(f.calls().filter(l => l.startsWith('doctor '))).toEqual(['doctor --check --for qa GSTACK_EPHEMERAL=1']); expect(r.stdout).toMatch(/browser bootstrap: \d+s/); diff --git a/test/helpers/llm-judge.ts b/test/helpers/llm-judge.ts index 81904a2a0..664089296 100644 --- a/test/helpers/llm-judge.ts +++ b/test/helpers/llm-judge.ts @@ -13,7 +13,7 @@ import Anthropic from '@anthropic-ai/sdk'; import type { JSONOutputFormat } from '@anthropic-ai/sdk/resources/messages'; import { setTimeout as delay } from 'node:timers/promises'; -import { CLAUDE_JUDGE_EVAL_MODEL, DEFAULT_JUDGE_MAX_TOKENS, resolveEvalModel } from '../../lib/eval-model'; +import { DEFAULT_JUDGE_MAX_TOKENS, resolveEvalModel } from '../../lib/eval-model'; export { DEFAULT_JUDGE_MAX_TOKENS } from '../../lib/eval-model'; export interface JudgeScore { @@ -619,9 +619,10 @@ export interface ArmJudgeScore { * Fixed judge model for the arm benchmark — deliberately NOT env-overridable * (GSTACK_EVAL_MODEL_JUDGE is ignored). Cross-run comparability is the whole * point of a research instrument; a per-run judge swap silently moves the - * ruler. + * ruler. It stays on the Fable the arm benchmark's frozen preregistration + * names and its calibration measured, not the newest default judge. */ -export const ARM_JUDGE_MODEL = CLAUDE_JUDGE_EVAL_MODEL; +export const ARM_JUDGE_MODEL = 'claude-fable-5-1'; /** * Build the over-engineering rubric prompt. Exported (pure) so the free diff --git a/test/helpers/touchfiles-data.ts b/test/helpers/touchfiles-data.ts index 43dc01fa6..5326da4f7 100644 --- a/test/helpers/touchfiles-data.ts +++ b/test/helpers/touchfiles-data.ts @@ -32,7 +32,7 @@ export const E2E_TOUCHFILES: Record = { 'ship/sections/review-army.md*', 'ship/sections/adversarial.md*', 'ship/sections/manifest.json', 'review/checklist.md', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', 'bin/gstack-config', 'bin/gstack-brain-enqueue', - 'lib/review-evidence.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', + 'lib/review-evidence.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/helpers/ship-skip-actor.ts', 'test/helpers/scratch-repo.ts', 'test/skill-e2e-ship-skip.test.ts', 'test/helpers/shared-libs-eval-fixture.ts', @@ -47,24 +47,24 @@ export const E2E_TOUCHFILES: Record = { 'ship/sections/review-army.md*', 'ship/sections/manifest.json', 'review/checklist.md', 'bin/gstack-review-scope', 'lib/review-scope.ts', 'lib/ship-policy.ts', 'lib/default-base.ts', 'lib/result-codes-release.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', - 'lib/review-evidence.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', + 'lib/review-evidence.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/helpers/ship-frozen-scope-actor.ts', 'test/helpers/scratch-repo.ts', 'test/skill-e2e-ship-frozen-scope.test.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/hermetic-env.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eval-budgets.ts' ], - 'shared-libs-review-path-eligibility': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'review/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-paths.test.ts', 'test/helpers/shared-libs-path-fixture.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/fixtures/shared-libs-resolved-reads-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], - 'shared-libs-review-index-flags': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'review/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-paths.test.ts', 'test/helpers/shared-libs-path-fixture.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/fixtures/shared-libs-paths-max-turns-public.json', 'test/fixtures/shared-libs-resolved-reads-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], - 'shared-libs-review-prior-coverage': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'review/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-paths.test.ts', 'test/helpers/shared-libs-path-fixture.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/fixtures/shared-libs-resolved-reads-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], + 'shared-libs-review-path-eligibility': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'review/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-paths.test.ts', 'test/helpers/shared-libs-path-fixture.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/fixtures/shared-libs-resolved-reads-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], + 'shared-libs-review-index-flags': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'review/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-paths.test.ts', 'test/helpers/shared-libs-path-fixture.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/fixtures/shared-libs-paths-max-turns-public.json', 'test/fixtures/shared-libs-resolved-reads-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], + 'shared-libs-review-prior-coverage': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'review/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-paths.test.ts', 'test/helpers/shared-libs-path-fixture.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/fixtures/shared-libs-resolved-reads-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], 'shared-libs-codex-read-only': [ 'lib/outside-review-result.ts', 'lib/gate-outcomes.ts','deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/helpers/codex-session-runner.ts', 'test/helpers/skill-fixture.ts', 'test/helpers/hermetic-env.ts', 'test/helpers/eval-budgets.ts', 'test/codex-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'hosts/codex.ts', 'hosts/define-host.ts', 'scripts/resolvers/constants.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'bin/gstack-codex-probe', 'scripts/resolve-codex-generation-model.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/outside-voice-steps.ts'], // Shared-code audit and scoped review lifecycle - 'shared-libs-read-only': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-review-start-evidence.ts', 'test/helpers/shared-libs-path-fixture.ts'], - 'shared-libs-unsupported-git': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-review-start-evidence.ts', 'test/helpers/shared-libs-path-fixture.ts'], - 'shared-libs-review-lifecycle': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'deslop-shared-libs/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'review/**', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/helpers/shared-libs-path-fixture.ts', 'test/fixtures/shared-libs-lifecycle-r59-stage-scope-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], - 'shared-libs-review-revalidation': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'deslop-shared-libs/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'review/**', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/helpers/shared-libs-review-start-evidence.ts', 'test/fixtures/shared-libs-review-start-public.json', 'test/fixtures/shared-libs-revalidation-max-turns-public.json', 'test/fixtures/shared-libs-index-flags-*.json', 'test/helpers/shared-libs-path-fixture.ts' ], - 'shared-libs-opportunity-judgment': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-periodic.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/llm-judge.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-plan-actor.ts', 'test/helpers/shared-libs-plan-excerpt.ts', 'test/helpers/skill-startup.ts'], - 'shared-libs-pr-coverage': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-periodic.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/llm-judge.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-plan-actor.ts', 'test/helpers/shared-libs-plan-excerpt.ts', 'test/helpers/skill-startup.ts'], - 'shared-libs-plan-callers': ['test/helpers/shared-libs-plan-actor.ts', 'scripts/resolvers/confidence.ts', 'test/helpers/shared-libs-plan-excerpt.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'deslop-shared-libs/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'plan-eng-review/**', 'test/skill-e2e-shared-libs-periodic.test.ts', 'test/fixtures/plan-scope-recovery-av.json', 'scripts/resolvers/preamble/generate-preamble-bash.ts', 'scripts/resolvers/preamble/generate-completion-status.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/llm-judge.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'test/helpers/skill-startup.ts'], + 'shared-libs-read-only': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-review-start-evidence.ts', 'test/helpers/shared-libs-path-fixture.ts'], + 'shared-libs-unsupported-git': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-review-start-evidence.ts', 'test/helpers/shared-libs-path-fixture.ts'], + 'shared-libs-review-lifecycle': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'deslop-shared-libs/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'review/**', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-index-flags-*.json', 'test/helpers/shared-libs-path-fixture.ts', 'test/fixtures/shared-libs-lifecycle-r59-stage-scope-public.json', 'test/helpers/shared-libs-review-start-evidence.ts'], + 'shared-libs-review-revalidation': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'deslop-shared-libs/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'review/**', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/review-army.ts', 'lib/review-evidence.ts', 'bin/gstack-review-log', 'bin/gstack-review-read', 'bin/gstack-wtree', 'test/skill-e2e-shared-libs.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/helpers/shared-libs-review-start-evidence.ts', 'test/fixtures/shared-libs-review-start-public.json', 'test/fixtures/shared-libs-revalidation-max-turns-public.json', 'test/fixtures/shared-libs-index-flags-*.json', 'test/helpers/shared-libs-path-fixture.ts' ], + 'shared-libs-opportunity-judgment': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-periodic.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/llm-judge.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-plan-actor.ts', 'test/helpers/shared-libs-plan-excerpt.ts', 'test/helpers/skill-startup.ts'], + 'shared-libs-pr-coverage': ['deslop-shared-libs/**', 'bin/gstack-safe-git', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'test/skill-e2e-shared-libs-periodic.test.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/llm-judge.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/shared-libs-readonly-substitution-ci16358.json', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/shared-libs-plan-actor.ts', 'test/helpers/shared-libs-plan-excerpt.ts', 'test/helpers/skill-startup.ts'], + 'shared-libs-plan-callers': ['test/helpers/shared-libs-plan-actor.ts', 'scripts/resolvers/confidence.ts', 'test/helpers/shared-libs-plan-excerpt.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'deslop-shared-libs/**', 'scripts/resolvers/shared-libs.ts', 'scripts/resolvers/index.ts', 'test/helpers/shared-libs-eval-fixture.ts', 'plan-eng-review/**', 'test/skill-e2e-shared-libs-periodic.test.ts', 'test/fixtures/plan-scope-recovery-av.json', 'scripts/resolvers/preamble/generate-preamble-bash.ts', 'scripts/resolvers/preamble/generate-completion-status.ts', 'test/helpers/e2e-gate.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/llm-judge.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/helpers/skill-startup.ts'], 'ship-docsync-missing-marker': ['bin/gstack-docs-candidate', 'bin/gstack-state-root.sh', 'lib/state-root.ts', 'ship/**', 'document-release/**', 'scripts/resolvers/sections.ts', 'scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble-hoist.ts', 'scripts/resolvers/testing.ts', 'scripts/gen-skill-docs.ts', 'bin/gstack-skill-start', 'bin/gstack-session-kind', 'test/helpers/docsync-*.ts', 'test/helpers/read-only-commands.ts', 'test/helpers/qa-functional-*.ts', 'test/helpers/session-runner.ts', 'test/helpers/hermetic-env.ts', 'test/skill-e2e-ship-docsync.test.ts', 'test/helpers/qa-checkpoint-evidence.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/qa-evidence-producer.ts', 'bin/gstack-context-recovery'], 'ship-docsync-missing-asset': ['bin/gstack-docs-candidate', 'bin/gstack-state-root.sh', 'lib/state-root.ts', 'ship/**', 'document-release/**', 'scripts/resolvers/sections.ts', 'scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble-hoist.ts', 'scripts/resolvers/testing.ts', 'scripts/gen-skill-docs.ts', 'bin/gstack-skill-start', 'bin/gstack-session-kind', 'test/helpers/docsync-*.ts', 'test/helpers/read-only-commands.ts', 'test/helpers/qa-functional-*.ts', 'test/helpers/session-runner.ts', 'test/helpers/hermetic-env.ts', 'test/skill-e2e-ship-docsync.test.ts', 'test/helpers/qa-checkpoint-evidence.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/qa-evidence-producer.ts', 'bin/gstack-context-recovery'], 'ship-docsync-launch-failure': ['bin/gstack-docs-candidate', 'bin/gstack-state-root.sh', 'lib/state-root.ts', 'ship/**', 'document-release/**', 'scripts/resolvers/sections.ts', 'scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble-hoist.ts', 'scripts/resolvers/testing.ts', 'scripts/gen-skill-docs.ts', 'bin/gstack-skill-start', 'bin/gstack-session-kind', 'test/helpers/docsync-*.ts', 'test/helpers/read-only-commands.ts', 'test/helpers/qa-functional-*.ts', 'test/helpers/session-runner.ts', 'test/helpers/hermetic-env.ts', 'test/skill-e2e-ship-docsync.test.ts', 'test/helpers/qa-checkpoint-evidence.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/qa-evidence-producer.ts', 'bin/gstack-context-recovery'], @@ -231,7 +231,7 @@ export const E2E_TOUCHFILES: Record = { 'test/fixtures/autoplan-public-narration-ad.json', 'test/helpers/plan-count-transcript.ts', 'test/fixtures/plan-count-cross-cwd-ancestry-0bcd.json', - 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts', + 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts', 'lib/model-families.ts', "test/fixtures/plan-scope-target-aw.json", @@ -251,7 +251,7 @@ export const E2E_TOUCHFILES: Record = { // SDK plan-edit case in test/skill-e2e-design.test.ts (claude -p edits plan.md). 'plan-design-review-plan-mode': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'plan-design-review/**', 'scripts/gen-skill-docs.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble-hoist.ts', 'scripts/resolvers/preamble/generate-preamble-bash.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble/generate-completion-status.ts', - 'lib/eval-model.ts', 'test/skill-e2e-design.test.ts', + 'lib/eval-model.ts', 'lib/model-families.ts', 'test/skill-e2e-design.test.ts', 'test/fixtures/fake-impeccable.ts', 'test/fixtures/review-eval-design-slop.html', 'test/fixtures/review-eval-design-slop.css', 'test/helpers/aside-available.ts', 'test/helpers/fake-impeccable.ts', 'test/helpers/llm-judge.ts', 'test/helpers/office-hours-attempt.ts', 'test/helpers/pty/**'], 'plan-devex-review-plan-mode': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'test/fixtures/auto-decide-recommendation-361c.json', @@ -336,7 +336,7 @@ export const E2E_TOUCHFILES: Record = { 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/hermetic-env.ts', - 'test/helpers/eval-store.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', + 'test/helpers/eval-store.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'scripts/resolvers/tasks-section.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/claude-pty-runner.ts', 'test/helpers/pty/**', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/hermetic-skill-runtime.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-fixture.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-count-transcript.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/plan-skill-questions.ts', 'test/helpers/pty-screen.ts', 'test/helpers/pty-trust-dialog.ts', 'test/helpers/skill-census.ts'], 'plan-ceo-mode-routing': [ 'ETHOS.md','bin/gstack-ceo-mode-handoff', @@ -344,7 +344,7 @@ export const E2E_TOUCHFILES: Record = { - 'test/fixtures/ceo-expansion-pacing-fb10.json', 'test/helpers/ceo-hold-posture-review.ts', 'test/fixtures/ceo-hold-proof-fb10.json', 'test/helpers/plan-review-decisions.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', + 'test/fixtures/ceo-expansion-pacing-fb10.json', 'test/helpers/ceo-hold-posture-review.ts', 'test/fixtures/ceo-hold-proof-fb10.json', 'test/helpers/plan-review-decisions.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/fixtures/ceo-hold-preservation-f359.json', 'test/fixtures/ceo-expansion-complete-inventory-6f.json', 'test/fixtures/ceo-expansion-posture-kind-dacc.json', @@ -371,19 +371,19 @@ export const E2E_TOUCHFILES: Record = { "scripts/resolvers/preamble/generate-preamble-bash.ts", "scripts/resolvers/preamble/generate-completion-status.ts", 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/plan-review-board-feedback.ts', 'test/fixtures/design-board-questions.json', 'test/fixtures/design-outside-voices-question.json', 'design/src/daemon-state.ts', 'design/src/daemon.ts', 'design/test/daemon-tests-fixtures.ts', 'design/src/daemon-client.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'bin/gstack-paths', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', 'scripts/resolvers/design.ts', 'scripts/resolvers/design-craft.ts', 'scripts/resolvers/outside-voice.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts'], 'tpa-present': [ 'scripts/resolvers/third-party-actions.ts', 'ship/SKILL.md.tmpl', 'ship/sections/apple-release.md.tmpl', 'scripts/gen-skill-docs.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-third-party-actions.test.ts', 'test/helpers/third-party-actions.ts', - 'lib/eval-model.ts' + 'lib/eval-model.ts', 'lib/model-families.ts' ], 'tpa-absent-linux': [ 'scripts/resolvers/third-party-actions.ts', 'ship/SKILL.md.tmpl', 'ship/sections/apple-release.md.tmpl', 'scripts/gen-skill-docs.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-third-party-actions.test.ts', 'test/helpers/third-party-actions.ts', - 'lib/eval-model.ts' + 'lib/eval-model.ts', 'lib/model-families.ts' ], 'tpa-broken': [ 'scripts/resolvers/third-party-actions.ts', 'ship/SKILL.md.tmpl', 'ship/sections/apple-release.md.tmpl', 'scripts/gen-skill-docs.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-third-party-actions.test.ts', 'test/helpers/third-party-actions.ts', - 'lib/eval-model.ts' + 'lib/eval-model.ts', 'lib/model-families.ts' ], 'tpa-absent-darwin': [ 'scripts/resolvers/third-party-actions.ts', 'ship/SKILL.md.tmpl', 'ship/sections/apple-release.md.tmpl', 'scripts/gen-skill-docs.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-third-party-actions.test.ts', 'test/helpers/third-party-actions.ts', - 'lib/eval-model.ts' + 'lib/eval-model.ts', 'lib/model-families.ts' ], 'tpa-apple-ban': [ 'scripts/resolvers/third-party-actions.ts', 'ship/SKILL.md.tmpl', 'ship/sections/apple-release.md.tmpl', 'scripts/gen-skill-docs.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-third-party-actions.test.ts', 'test/helpers/third-party-actions.ts', - 'lib/eval-model.ts' + 'lib/eval-model.ts', 'lib/model-families.ts' ], 'ship-measure-seeded-flake': ['ship/**', 'scripts/ship-measure.ts', 'scripts/lib/measure-bar.ts', 'scripts/test-free-shards.ts', 'scripts/lib/shard-engine.ts', 'scripts/lib/paid-select.ts', 'scripts/lib/free-home-guard.ts', 'scripts/lib/shard-jobs.ts', 'bin/gstack-config', 'bin/gstack-state-root.sh', 'lib/state-root.ts', 'scripts/resolvers/sections.ts', 'scripts/resolvers/testing.ts', 'scripts/gen-skill-docs.ts', 'test/skill-e2e-ship-measure-loop.test.ts', 'test/helpers/ship-measure-seeded-fixture.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/skill-fixture.ts'], 'ship-section-loading': [ 'ship/**', 'scripts/resolvers/sections.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/auq-sdk-capture.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-ship-section-loading.test.ts', @@ -507,7 +507,7 @@ export const E2E_TOUCHFILES: Record = { "test/fixtures/eng-declarative-as.json", "test/helpers/eng-cache-writer-decision.ts", "test/fixtures/eng-cache-writes-as.json", "scripts/resolvers/preamble/generate-preamble-bash.ts", - 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/owned-claude-transcript.ts', 'test/fixtures/webfetch-permission.json', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'test/skill-e2e-plan-decision-classification.test.ts', 'test/fixtures/plan-decision-classification.ts', 'scripts/resolvers/testing.ts', 'test/fixtures/eng-file-permission-repaint.json', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'bin/gstack-context-recovery'], + 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/owned-claude-transcript.ts', 'test/fixtures/webfetch-permission.json', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/skill-e2e-plan-decision-classification.test.ts', 'test/fixtures/plan-decision-classification.ts', 'scripts/resolvers/testing.ts', 'test/fixtures/eng-file-permission-repaint.json', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'bin/gstack-context-recovery'], 'plan-ceo-split-overflow': [ 'ETHOS.md','bin/gstack-state-root.sh', 'lib/state-root.ts', 'lib/claude-public-transcript.ts', 'lib/claude-journal-records.ts', 'lib/claude-owned-journal.ts', 'test/fixtures/plan-create-prepublication-491.json', 'test/fixtures/plan-create-combined-permission-70b.json', 'test/fixtures/plan-create-permission-361c.json', @@ -526,13 +526,13 @@ export const E2E_TOUCHFILES: Record = { 'test/fixtures/plan-count-crop-ak.json', 'test/fixtures/plan-count-quoted-frame-ak.json', - 'docs/askuserquestion-split.md', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/owned-claude-transcript.ts', 'test/fixtures/webfetch-permission.json', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'test/skill-e2e-plan-decision-classification.test.ts', 'test/fixtures/plan-decision-classification.ts', 'test/helpers/ceo-split-question-policy.ts', 'test/fixtures/ceo-split-actor-6aef.json', 'test/helpers/ceo-mode-option.ts', 'test/fixtures/ceo-split-collection-0bcd.json', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/tasks-section.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts'], + 'docs/askuserquestion-split.md', 'bin/gstack-slug', 'bin/gstack-remote-identity.sh', 'test/fixtures/pty-companion-cli.ts', 'lib/fs-atomic.ts', 'test/helpers/ceo-finding-fixture.ts', 'test/helpers/owned-claude-transcript.ts', 'test/fixtures/webfetch-permission.json', 'test/helpers/plan-skill-questions.ts', 'test/fixtures/eng-auq-validation-error.json', 'test/fixtures/bash-directory-permission.json', 'test/fixtures/design-tasks-bash-permission.json', 'test/fixtures/read-permission.json', 'test/fixtures/ceo-split-e5-numbered-description-491.json', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/skill-census.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/skill-e2e-plan-decision-classification.test.ts', 'test/fixtures/plan-decision-classification.ts', 'test/helpers/ceo-split-question-policy.ts', 'test/fixtures/ceo-split-actor-6aef.json', 'test/helpers/ceo-mode-option.ts', 'test/fixtures/ceo-split-collection-0bcd.json', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/tasks-section.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts'], // /setup-gbrain Path 4 (Remote MCP) — happy + bad-token end-to-end via // Agent SDK. Gate-tier (deterministic stub server, fixed inputs); fires // when the skill template, the verify helper, the artifacts-init helper, // or the detect script changes. - 'setup-gbrain-remote': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'test/helpers/setup-gbrain-sandbox.ts', 'test/helpers/office-hours-attempt.ts', 'test/helpers/eval-store.ts', 'test/helpers/e2e-helpers.ts', 'lib/redact-engine.ts', 'lib/redact-patterns.ts', 'lib/eval-model.ts','setup-gbrain/sections/brain-init.md.tmpl', 'setup-gbrain/sections/claude-md-persist.md.tmpl', 'setup-gbrain/sections/manifest.json', 'test/helpers/setup-gbrain-fixture.ts', 'setup-gbrain/SKILL.md.tmpl', 'bin/gstack-gbrain-mcp-verify', 'bin/gstack-artifacts-init', 'bin/gstack-gbrain-detect', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/skill-e2e-setup-gbrain-remote.test.ts', + 'setup-gbrain-remote': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'test/helpers/setup-gbrain-sandbox.ts', 'test/helpers/office-hours-attempt.ts', 'test/helpers/eval-store.ts', 'test/helpers/e2e-helpers.ts', 'lib/redact-engine.ts', 'lib/redact-patterns.ts', 'lib/eval-model.ts', 'lib/model-families.ts','setup-gbrain/sections/brain-init.md.tmpl', 'setup-gbrain/sections/claude-md-persist.md.tmpl', 'setup-gbrain/sections/manifest.json', 'test/helpers/setup-gbrain-fixture.ts', 'setup-gbrain/SKILL.md.tmpl', 'bin/gstack-gbrain-mcp-verify', 'bin/gstack-artifacts-init', 'bin/gstack-gbrain-detect', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/skill-e2e-setup-gbrain-remote.test.ts', 'test/helpers/e2e-gate.ts'], 'setup-gbrain-bad-token': ['bin/gstack-state-root.sh', 'lib/state-root.ts', 'setup-gbrain/sections/brain-init.md.tmpl', 'setup-gbrain/sections/manifest.json', 'test/helpers/setup-gbrain-fixture.ts', 'setup-gbrain/SKILL.md.tmpl', 'bin/gstack-gbrain-mcp-verify', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/skill-e2e-setup-gbrain-bad-token.test.ts', 'test/helpers/setup-gbrain-sandbox.ts', 'lib/redact-engine.ts', 'lib/redact-patterns.ts', 'test/helpers/setup-gbrain-fixture-command.ts', 'bin/gstack-gbrain-detect', 'lib/gbrain-local-status.ts', 'lib/gbrain-exec.ts', 'bin/gstack-gbrain-lib.sh', 'bin/gstack-egress-lib.sh', 'bin/gstack-egress-receipt', 'test/helpers/office-hours-attempt.ts', 'test/helpers/e2e-gate.ts'], @@ -677,11 +677,11 @@ export const E2E_TOUCHFILES: Record = { ], // Formerly keyless periodic files (W1b): registered so an edit selects its own case instead of restoring the full PR gate. 'auq-consistency': [ 'ETHOS.md', 'test/skill-e2e-auq-consistency.test.ts', 'plan-ceo-review/**', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble/generate-completeness-section.ts', 'scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble-hoist.ts', - 'test/helpers/auq-sdk-capture.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/llm-judge.ts', 'test/helpers/e2e-gate.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', + 'test/helpers/auq-sdk-capture.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/llm-judge.ts', 'test/helpers/e2e-gate.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'scripts/resolvers/tasks-section.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/claude-pty-runner.ts', 'test/helpers/pty/**', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/hermetic-skill-runtime.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-fixture.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-count-transcript.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/plan-skill-questions.ts', 'test/helpers/pty-screen.ts', 'test/helpers/pty-trust-dialog.ts', 'test/helpers/skill-census.ts', ], 'auq-verbose-vs-carved-ab': [ 'ETHOS.md', 'test/skill-e2e-auq-verbose-vs-carved-ab.test.ts', 'test/fixtures/auq-pre-cut-plan-ceo-review-SKILL.md', 'plan-ceo-review/**', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'scripts/resolvers/preamble/generate-completeness-section.ts', 'scripts/resolvers/preamble.ts', 'scripts/resolvers/preamble-hoist.ts', - 'test/helpers/auq-sdk-capture.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/llm-judge.ts', 'test/helpers/e2e-gate.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', + 'test/helpers/auq-sdk-capture.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/llm-judge.ts', 'test/helpers/e2e-gate.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'scripts/resolvers/tasks-section.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/claude-pty-runner.ts', 'test/helpers/pty/**', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/hermetic-skill-runtime.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-fixture.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-count-transcript.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/plan-skill-questions.ts', 'test/helpers/pty-screen.ts', 'test/helpers/pty-trust-dialog.ts', 'test/helpers/skill-census.ts', ], 'codex-recommendation-substance': [ 'test/codex-e2e-recommendation-substance.test.ts', 'codex/**', 'test/helpers/codex-session-runner.ts', 'test/helpers/llm-judge.ts', 'test/helpers/e2e-gate.ts', @@ -749,9 +749,9 @@ export const E2E_TOUCHFILES: Record = { 'test/helpers/coverage-audit.ts', 'test/helpers/office-hours-attempt.ts' ], // Test value bar behavior (weak paths, low-value findings, report-only sweep) - 'ship-coverage-value': ['ship/**', 'scripts/resolvers/testing.ts', 'test/fixtures/coverage-audit-fixture.ts', 'test/skill-e2e-test-value.test.ts', 'test/helpers/test-value-fixture.ts', 'scripts/resolvers/test-value.ts', 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts'], - 'review-test-value': ['review/**', 'test/fixtures/coverage-audit-fixture.ts', 'test/skill-e2e-test-value.test.ts', 'test/helpers/test-value-fixture.ts', 'scripts/resolvers/test-value.ts', 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts'], - 'test-audit-report-only': ['test-audit/**', 'test/fixtures/coverage-audit-fixture.ts', 'test/skill-e2e-test-value.test.ts', 'test/helpers/test-value-fixture.ts', 'scripts/resolvers/test-value.ts', 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts'], + 'ship-coverage-value': ['ship/**', 'scripts/resolvers/testing.ts', 'test/fixtures/coverage-audit-fixture.ts', 'test/skill-e2e-test-value.test.ts', 'test/helpers/test-value-fixture.ts', 'scripts/resolvers/test-value.ts', 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts', 'lib/model-families.ts'], + 'review-test-value': ['review/**', 'test/fixtures/coverage-audit-fixture.ts', 'test/skill-e2e-test-value.test.ts', 'test/helpers/test-value-fixture.ts', 'scripts/resolvers/test-value.ts', 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts', 'lib/model-families.ts'], + 'test-audit-report-only': ['test-audit/**', 'test/fixtures/coverage-audit-fixture.ts', 'test/skill-e2e-test-value.test.ts', 'test/helpers/test-value-fixture.ts', 'scripts/resolvers/test-value.ts', 'test/helpers/office-hours-attempt.ts', 'lib/eval-model.ts', 'lib/model-families.ts'], 'plan-eng-coverage-audit': [ 'scripts/resolvers/learnings.ts', 'test/fixtures/coverage-audit-ci-diagrams.json', @@ -1142,15 +1142,15 @@ export const E2E_TOUCHFILES: Record = { 'office-hours-section-loading': [ 'ETHOS.md', 'office-hours/**', 'bin/gstack-office-hours-review', 'lib/office-hours-review.ts', 'lib/fs-atomic.ts', 'lib/spec-review-cap.ts', 'test/helpers/office-hours-formatter-fixture.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/sections.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/carve-guards.ts', 'test/helpers/auq-sdk-capture.ts', 'test/helpers/office-hours-completion.ts', 'test/helpers/llm-judge.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-office-hours-section-loading.test.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/capture-parity-baseline.ts', 'test/helpers/claude-pty-runner.ts', 'test/helpers/pty/**', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/hermetic-skill-runtime.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/parity-harness.ts', 'test/helpers/size-ledger.ts', 'test/size-ledger/**', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-fixture.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-count-transcript.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/plan-skill-questions.ts', 'test/helpers/pty-screen.ts', 'test/helpers/pty-trust-dialog.ts', 'test/helpers/skill-census.ts'], 'office-hours-design-draft': [ 'ETHOS.md', 'office-hours/**', 'lib/office-hours-review.ts', 'scripts/resolvers/review-dashboard.ts', 'scripts/resolvers/plan-gates.ts', 'scripts/resolvers/spec-review.ts', 'scripts/resolvers/outside-voice-steps.ts', 'scripts/resolvers/review-scope.ts', 'scripts/resolvers/outside-voice.ts', 'scripts/resolvers/sections.ts', 'scripts/gen-skill-docs.ts', 'test/helpers/carve-guards.ts', 'test/helpers/auq-sdk-capture.ts', 'test/helpers/office-hours-completion.ts', 'test/helpers/llm-judge.ts', 'test/helpers/session-runner.ts', 'test/skill-e2e-office-hours-design-draft.test.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'test/helpers/auq-native-capture.ts', 'test/helpers/auto-decision-state.ts', 'test/helpers/autoplan-artifact-digest.ts', 'test/helpers/autoplan-artifact-permission.ts', 'test/helpers/autoplan-artifact-recorder.ts', 'test/helpers/capture-parity-baseline.ts', 'test/helpers/claude-pty-runner.ts', 'test/helpers/pty/**', 'test/helpers/dx-selected-navigation.ts', 'test/helpers/e2e-gate.ts', 'test/helpers/eng-cache-writer-decision.ts', 'test/helpers/hermetic-skill-runtime.ts', 'test/helpers/native-auto-decide.ts', 'test/helpers/owned-claude-transcript.ts', 'test/helpers/parity-harness.ts', 'test/helpers/size-ledger.ts', 'test/size-ledger/**', 'test/helpers/plan-count-artifacts.ts', 'test/helpers/plan-count-file-permission.ts', 'test/helpers/plan-count-fixture.ts', 'test/helpers/plan-count-pending-exit.ts', 'test/helpers/plan-count-pending-question.ts', 'test/helpers/plan-count-transcript.ts', 'test/helpers/plan-floor-review.ts', 'test/helpers/plan-floor-target.ts', 'test/helpers/plan-scope-selection.ts', 'test/helpers/plan-seed-submission.ts', 'test/helpers/plan-skill-question-events.ts', 'test/helpers/plan-skill-question-hook-scope.ts', 'test/helpers/plan-skill-questions.ts', 'test/helpers/pty-screen.ts', 'test/helpers/pty-trust-dialog.ts', 'test/helpers/skill-census.ts'], - 'dx-error-contract-review': ['test/skill-e2e-dx-error-contract.test.ts', 'test/fixtures/dx-error-contract-case.ts', 'lib/dx-error-contract.ts', 'scripts/resolvers/dx.ts', 'scripts/resolvers/index.ts', 'scripts/gen-skill-docs.ts', 'plan-devex-review/**', 'bin/gstack-autoplan-snapshot.ts', 'lib/autoplan-prompts.ts', 'lib/autoplan-reconcile.ts', 'lib/coordinator-contract.ts', 'test/helpers/session-runner.ts', 'test/helpers/eval-store.ts', 'test/helpers/eval-budgets.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts'], + 'dx-error-contract-review': ['test/skill-e2e-dx-error-contract.test.ts', 'test/fixtures/dx-error-contract-case.ts', 'lib/dx-error-contract.ts', 'scripts/resolvers/dx.ts', 'scripts/resolvers/index.ts', 'scripts/gen-skill-docs.ts', 'plan-devex-review/**', 'bin/gstack-autoplan-snapshot.ts', 'lib/autoplan-prompts.ts', 'lib/autoplan-reconcile.ts', 'lib/coordinator-contract.ts', 'test/helpers/session-runner.ts', 'test/helpers/eval-store.ts', 'test/helpers/eval-budgets.ts', 'lib/claude-bin.ts', 'lib/eval-model.ts', 'lib/model-families.ts'], 'plan-devex-peer-comparison-classification': [ -'test/skill-e2e-plan-devex-peer-comparison-classification.test.ts', 'test/fixtures/devex-peer-comparison-classification.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'test/helpers/e2e-helpers.ts', 'test/helpers/eval-store.ts', 'test/helpers/eval-budgets.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'docs/askuserquestion-split.md', 'plan-devex-review/SKILL.md.tmpl', 'plan-devex-review/sections/review-sections.md.tmpl'], +'test/skill-e2e-plan-devex-peer-comparison-classification.test.ts', 'test/fixtures/devex-peer-comparison-classification.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/helpers/e2e-helpers.ts', 'test/helpers/eval-store.ts', 'test/helpers/eval-budgets.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'docs/askuserquestion-split.md', 'plan-devex-review/SKILL.md.tmpl', 'plan-devex-review/sections/review-sections.md.tmpl'], 'plan-decision-classification': [ 'ETHOS.md', -'test/skill-e2e-plan-decision-classification.test.ts', 'test/fixtures/plan-decision-classification.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'test/helpers/e2e-helpers.ts', 'test/helpers/eval-store.ts', 'test/helpers/eval-budgets.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'docs/askuserquestion-split.md', 'plan-ceo-review/SKILL.md.tmpl', 'plan-ceo-review/sections/review-sections.md.tmpl', 'scripts/resolvers/tasks-section.ts'], +'test/skill-e2e-plan-decision-classification.test.ts', 'test/fixtures/plan-decision-classification.ts', 'test/helpers/plan-review-decisions.ts', 'test/helpers/plan-review-cases.ts', 'test/helpers/llm-judge.ts', 'lib/eval-model.ts', 'lib/model-families.ts', 'test/helpers/e2e-helpers.ts', 'test/helpers/eval-store.ts', 'test/helpers/eval-budgets.ts', 'scripts/resolvers/preamble/generate-ask-user-format.ts', 'docs/askuserquestion-split.md', 'plan-ceo-review/SKILL.md.tmpl', 'plan-ceo-review/sections/review-sections.md.tmpl', 'scripts/resolvers/tasks-section.ts'], 'health-reporting': ['health/**', 'test/skill-e2e-health.test.ts', 'test/helpers/health-eval-fixture.ts', 'test/helpers/e2e-gate.ts'], 'overlay-harness-claude-dedicated-tools-vs-bash': ['model-overlays/**', 'test/fixtures/overlay-nudges.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'scripts/resolvers/model-overlay.ts', 'test/skill-e2e-overlay-harness-claude-dedicated-tools-vs-bash.test.ts', 'test/helpers/overlay-measurement.ts', 'test/helpers/overlay-workspace.ts', 'test/helpers/overlay-attempt.ts', 'test/helpers/overlay-case.ts', 'test/helpers/overlay-case-policy.ts', 'test/helpers/overlay-lifecycle.ts', 'test/fixtures/overlay-admission-child.ts', 'test/helpers/e2e-gate.ts'], 'overlay-harness-opus-4-7-effort-match-trivial': ['model-overlays/**', 'test/fixtures/overlay-nudges.ts', 'test/helpers/agent-sdk-runner.ts', 'test/helpers/sdk-system-prompt.ts', 'scripts/resolvers/model-overlay.ts', 'test/skill-e2e-overlay-harness-opus-4-7-effort-match-trivial.test.ts', 'test/helpers/overlay-measurement.ts', 'test/helpers/overlay-workspace.ts', 'test/helpers/overlay-attempt.ts', 'test/helpers/overlay-case.ts', 'test/helpers/overlay-case-policy.ts', 'test/helpers/overlay-lifecycle.ts', 'test/fixtures/overlay-admission-child.ts', 'test/helpers/e2e-gate.ts'], diff --git a/test/llm-judge-frontier.test.ts b/test/llm-judge-frontier.test.ts index 59c6a58e5..93a291586 100644 --- a/test/llm-judge-frontier.test.ts +++ b/test/llm-judge-frontier.test.ts @@ -27,19 +27,19 @@ describe('frontier Claude judge compatibility', () => { { type: 'thinking', thinking: '', signature: 'fixture' }, { type: 'text', text: '{"score":4}' }, ] } as never); - expect(await callJudge('score this', 'claude-fable-5-1')).toEqual({ score: 4 }); + expect(await callJudge('score this', 'claude-fable-5-2')).toEqual({ score: 4 }); expect(create.mock.calls[0][0].max_tokens).toBe(8192); expect(diagnostics).not.toHaveBeenCalled(); }); test('an explicit provider refusal retains typed public evidence without parsing a score or retrying', async () => { - create.mockResolvedValue({ id: 'msg_synthetic', _request_id: 'req_synthetic', model: 'claude-fable-5-1', + create.mockResolvedValue({ id: 'msg_synthetic', _request_id: 'req_synthetic', model: 'claude-fable-5-2', stop_reason: 'refusal', content: [], usage: { input_tokens: 3886, output_tokens: 0 } } as never); let failure: unknown; - try { await callJudge('Synthetic test prompt', 'claude-fable-5-1'); } catch (error) { failure = error; } + try { await callJudge('Synthetic test prompt', 'claude-fable-5-2'); } catch (error) { failure = error; } expect(failure).toBeInstanceOf(JudgeRefusalError); expect((failure as JudgeRefusalError).refusal).toEqual({ stop_reason: 'refusal', response_id: 'msg_synthetic', - request_id: 'req_synthetic', model: 'claude-fable-5-1', input_tokens: 3886, output_tokens: 0, text_blocks: 0 }); + request_id: 'req_synthetic', model: 'claude-fable-5-2', input_tokens: 3886, output_tokens: 0, text_blocks: 0 }); expect(create).toHaveBeenCalledTimes(1); expect(JSON.parse(diagnostics.mock.calls[0][0]).stopReason).toBe('refusal'); }); @@ -105,7 +105,7 @@ describe('frontier Claude judge compatibility', () => { stop_reason: 'max_tokens', content: [{ type: 'text', text: '{"score":4}' }], } as never); - await expect(callJudge('score this', 'claude-fable-5-1', { max_tokens: 1024 })) + await expect(callJudge('score this', 'claude-fable-5-2', { max_tokens: 1024 })) .rejects.toThrow('Judge response truncated at max_tokens=1024'); expect(diagnostics).toHaveBeenCalledTimes(1); expect(JSON.parse(diagnostics.mock.calls[0][0])).toMatchObject({ stopReason: 'max_tokens', textBlocks: ['{"score":4}'] }); @@ -114,7 +114,7 @@ describe('frontier Claude judge compatibility', () => { test('retains public truncation evidence without accepting a score or exposing private blocks', async () => { const text = '{"clarity":4,"completeness":4,"actionability":4,"reasoning":"Partial response"}'; create.mockResolvedValue({ - id: 'msg_truncated', _request_id: 'req_truncated', model: 'claude-fable-5-1', stop_reason: 'max_tokens', + id: 'msg_truncated', _request_id: 'req_truncated', model: 'claude-fable-5-2', stop_reason: 'max_tokens', content: [ { type: 'thinking', thinking: 'PRIVATE_THINKING', signature: 'PRIVATE_SIGNATURE' }, { type: 'text', text }, @@ -122,16 +122,16 @@ describe('frontier Claude judge compatibility', () => { ], usage: { input_tokens: 1000, output_tokens: 8192, thinking: 'PRIVATE_USAGE' }, } as never); - await expect(callJudge('score the complete workflow', 'claude-fable-5-1')) + await expect(callJudge('score the complete workflow', 'claude-fable-5-2')) .rejects.toThrow('Judge response truncated at max_tokens=8192'); expect(create).toHaveBeenCalledTimes(1); expect(create.mock.calls[0][0].max_tokens).toBe(8192); expect(diagnostics).toHaveBeenCalledTimes(1); expect(JSON.parse(diagnostics.mock.calls[0][0])).toEqual({ type: 'llm-judge-response-parse-error', responseId: 'msg_truncated', requestId: 'req_truncated', - model: 'claude-fable-5-1', stopReason: 'max_tokens', + model: 'claude-fable-5-2', stopReason: 'max_tokens', usage: { input_tokens: 1000, output_tokens: 8192, cache_creation_input_tokens: null, cache_read_input_tokens: null }, - textBlocks: [text], error: { name: 'Error', message: 'Judge response truncated at max_tokens=8192 (model=claude-fable-5-1)' }, + textBlocks: [text], error: { name: 'Error', message: 'Judge response truncated at max_tokens=8192 (model=claude-fable-5-2)' }, }); expect(diagnostics.mock.calls[0][0]).not.toContain('PRIVATE_'); }); @@ -144,7 +144,7 @@ describe('frontier Claude judge compatibility', () => { test('rejects responses without JSON text', async () => { create.mockResolvedValue({ content: [{ type: 'thinking', thinking: '', signature: 'fixture' }] } as never); - await expect(callJudge('score this', 'claude-fable-5-1')).rejects.toThrow('Judge returned non-JSON'); + await expect(callJudge('score this', 'claude-fable-5-2')).rejects.toThrow('Judge returned non-JSON'); }); test('structured JSON is opt-in and preserves request options and quoted values', async () => { @@ -156,11 +156,11 @@ describe('frontier Claude judge compatibility', () => { { type: 'thinking', thinking: 'PRIVATE_THINKING', signature: 'PRIVATE_SIGNATURE' }, { type: 'text', text: ' ' + JSON.stringify(answer) + '\n' }, ] } as never); - expect(await callJudge('classify the supplied evidence', 'claude-fable-5-1', { + expect(await callJudge('classify the supplied evidence', 'claude-fable-5-2', { signal: controller.signal, max_tokens: 16_384, jsonSchema, })).toEqual(answer); expect(create.mock.calls).toEqual([[{ - model: 'claude-fable-5-1', max_tokens: 16_384, + model: 'claude-fable-5-2', max_tokens: 16_384, output_config: { format: { type: 'json_schema', schema: jsonSchema } }, messages: [{ role: 'user', content: 'classify the supplied evidence' }], }, { signal: controller.signal }]]); @@ -172,13 +172,13 @@ describe('frontier Claude judge compatibility', () => { for (const text of ['Summary: {"score":4}', '```json\n{"score":4}\n```', '{"score":4} trailing prose', '{"score":']) { create.mockClear(); diagnostics.mockClear(); create.mockResolvedValue({ stop_reason: 'end_turn', content: [{ type: 'text', text }] } as never); - await expect(callJudge('score this', 'claude-fable-5-1', { jsonSchema })).rejects.toBeInstanceOf(SyntaxError); + await expect(callJudge('score this', 'claude-fable-5-2', { jsonSchema })).rejects.toBeInstanceOf(SyntaxError); expect(create).toHaveBeenCalledTimes(1); expect(JSON.parse(diagnostics.mock.calls[0][0]).textBlocks).toEqual([text]); } create.mockClear(); diagnostics.mockClear(); create.mockResolvedValue({ content: [{ type: 'text', text: 'Summary: {"score":4} done.' }] } as never); - expect(await callJudge('score this', 'claude-fable-5-1')).toEqual({ score: 4 }); + expect(await callJudge('score this', 'claude-fable-5-2')).toEqual({ score: 4 }); expect(create.mock.calls[0][0]).not.toHaveProperty('output_config'); expect(diagnostics).not.toHaveBeenCalled(); }); @@ -188,7 +188,7 @@ describe('frontier Claude judge compatibility', () => { for (const stop_reason of ['refusal', 'max_tokens', 'stop_sequence', 'tool_use', null]) { create.mockClear(); diagnostics.mockClear(); create.mockResolvedValue({ stop_reason, content: [{ type: 'text', text: '{"score":4}' }] } as never); - await expect(callJudge('score this', 'claude-fable-5-1', { max_tokens: 16_384, jsonSchema })) + await expect(callJudge('score this', 'claude-fable-5-2', { max_tokens: 16_384, jsonSchema })) .rejects.toThrow(stop_reason === 'max_tokens' ? 'truncated at max_tokens=16384' : stop_reason === 'refusal' ? 'Judge provider refused the evaluation; no automated score' : 'Structured judge did not complete'); expect(create).toHaveBeenCalledTimes(1); diff --git a/test/model-catalog-isolation.test.ts b/test/model-catalog-isolation.test.ts index 0b2944cf0..10d46c09c 100644 --- a/test/model-catalog-isolation.test.ts +++ b/test/model-catalog-isolation.test.ts @@ -9,7 +9,7 @@ test('replacing the shipped catalog changes role choices, not eval rulers, overl const root = fs.mkdtempSync(path.join(os.tmpdir(), 'gstack-catalog-isolation-')); try { const files = [ - 'lib/model-catalog.ts', 'lib/model-policy.ts', 'lib/model-policy-notice.ts', 'lib/state-root.ts', + 'lib/model-catalog.ts', 'lib/model-families.ts', 'lib/model-policy.ts', 'lib/model-policy-notice.ts', 'lib/state-root.ts', 'lib/eval-model.ts', 'lib/claude-code.ts', 'lib/claude-bin.ts', 'lib/claude-code-windows-job.ts', 'lib/outside-review-result.ts', 'lib/autoplan-reconcile.ts', 'lib/gate-outcomes.ts', 'lib/design-catalog.ts', 'scripts/resolve-codex-generation-model.ts', 'scripts/models.ts', @@ -62,17 +62,19 @@ console.log(JSON.stringify({ return JSON.parse(result.stdout); }; const before = inspect(); - expect(before.roles).toEqual(['claude-fable-5-1', 'gpt-6-astra', 'claude-opus-5-5', 'gpt-6.1-sol']); + expect(before.roles).toEqual(['claude-fable-5-2', 'gpt-6.2-astra', 'claude-opus-5-5', 'gpt-6.2-sol']); expect(before.independent).toMatchObject({ - claudeRuler: 'claude-opus-5-5', claudeJudge: 'claude-fable-5-1', openaiRuler: 'gpt-6-astra', capture: 'claude-opus-5-5', - judge: 'claude-fable-5-1', codexExec: 'gpt-6-astra', codexReview: 'gpt-6-astra', codexOverlay: 'gpt-6-astra', + claudeRuler: 'claude-opus-5-5', claudeJudge: 'claude-fable-5-2', openaiRuler: 'gpt-6.2-astra', capture: 'claude-opus-5-5', + judge: 'claude-fable-5-2', codexExec: 'gpt-6.2-astra', codexReview: 'gpt-6.2-astra', codexOverlay: 'gpt-6-astra', }); expect(before.independent.claudeArgs.some((arg: string) => arg.startsWith('--model'))).toBe(false); const catalog = path.join(root, 'lib/model-catalog.ts'); expect(fs.realpathSync(catalog).startsWith(`${fs.realpathSync(root)}${path.sep}`)).toBe(true); const replacements = ['claude-sonnet-5', 'gpt-5.4', 'claude-opus-4-8', 'gpt-5.6-sol']; let text = fs.readFileSync(catalog, 'utf-8'); - for (let i = 0; i < before.roles.length; i++) text = text.replace(`model: '${before.roles[i]}'`, `model: '${replacements[i]}'`); + let i = 0; + text = text.replace(/model: newestModel\('[a-z]+'\)/g, () => `model: '${replacements[i++]}'`); + expect(i).toBe(before.roles.length); fs.writeFileSync(catalog, text); const after = inspect(); expect(after.roles).toEqual(replacements); diff --git a/test/model-generation-guard.test.ts b/test/model-generation-guard.test.ts new file mode 100644 index 000000000..2f3d36de2 --- /dev/null +++ b/test/model-generation-guard.test.ts @@ -0,0 +1,137 @@ +import { describe, expect, test } from 'bun:test'; +import { spawnSync } from 'node:child_process'; +import * as fs from 'node:fs'; +import * as path from 'node:path'; +import { newestModel } from '../lib/model-families'; +import { MODEL_CATALOG } from '../lib/model-catalog'; +import { CLAUDE_CAPTURE_EVAL_MODEL, CLAUDE_JUDGE_EVAL_MODEL } from '../lib/eval-model'; +import { CYBER_RETRIES } from '../lib/review-pass'; +import { CODEX_FRONTIER_MODEL } from '../scripts/resolvers/constants'; +import { resolveCodexRuntimeModel } from '../scripts/resolve-codex-generation-model'; +import { resolveModel } from '../scripts/models'; + +/** + * Garry, 2026-11-24: "gstack should always be using latest astra, sol, fable or opus". + * Runtime code and agent-loaded prose name only the newest model of those four families + * (lib/model-families.ts). History, frozen eval records and tests are out of scope; + * ALLOWED names each runtime file that must still recognize an older id, and why. + */ +const ROOT = path.resolve(import.meta.dir, '..'); +const NEWEST: Record = { opus: newestModel('opus'), fable: newestModel('fable'), sol: newestModel('sol'), astra: newestModel('astra') }; +const FAMILY_ID = /\b(?:claude-(opus|fable)-\d+(?:-\d{1,2})?|gpt-\d+(?:\.\d+)?-(sol|astra))(?!\w)/gi; + +const HISTORY: readonly RegExp[] = [ + /(^|\/)test\//, + /^CHANGELOG\.md$/, + /^changelog\.d\//, + /^docs\/designs\//, + /^docs\/evals\//, + /^docs\/test-audit-\d{4}-\d{2}\.md$/, + /^TODOS\.md$/, +]; + +const ALLOWED: Record = { + 'lib/pricing.ts': { ids: '*', why: 'prices runs on every model, older ones included; pricing is outside this rule' }, + 'scripts/typecheck-test-baseline.json': { ids: '*', why: 'recorded test-code type diagnostics, not a model choice' }, + 'scripts/models.ts': { ids: ['gpt-5.6-sol', 'gpt-6-astra', 'claude-opus-4-7', 'claude-fable-5', 'claude-opus-4-8'], why: 'prompt-overlay names for the model a user runs, recognized, never picked' }, + 'scripts/resolvers/model-overlay.ts': { ids: ['gpt-5.6-sol'], why: 'the Sol overlay, selected only when the user runs exactly that model' }, + 'scripts/resolvers/preamble/generate-completeness-section.ts': { ids: ['gpt-5.6-sol'], why: 'the Sol overlay, selected only when the user runs exactly that model' }, + 'scripts/resolve-codex-generation-model.ts': { ids: ['gpt-5.6-sol'], why: 'warns a user whose Codex config names a near-miss of the Sol overlay id' }, + 'setup': { ids: ['claude-opus-4-8', 'gpt-5.6-sol', 'gpt-6-astra'], why: 'overlay names and overlay examples for the model a user runs' }, + 'bin/gstack-config': { ids: ['claude-opus-4-8'], why: 'overlay example for the model a user runs' }, + 'docs/hosts.md': { ids: ['gpt-5.6-sol'], why: 'documents the Sol overlay a user on that model receives' }, + 'docs/loadouts.md': { ids: ['gpt-6-astra', 'claude-opus-55', 'claude-opus-5-50'], why: 'the Astra overlay name, a heading anchor, and an id the model map must not match' }, + 'modules/loadouts.json': { ids: ['claude-fable-5', 'gpt-6-astra', 'claude-opus-5', 'gpt-6.1-sol', 'gpt-6-sol', 'gpt-5.6-sol'], why: 'rung globs that recognize the model a user runs, older ones included' }, + 'lib/inventory.ts': { ids: ['gpt-6.1-sol'], why: 'ledger rows measured on 6.1 Sol keep it (R116: frozen plans keep their models)' }, + 'docs/TESTING_INTERNALS.md': { ids: ['gpt-6.1-sol', 'claude-opus-4-7', 'gpt-6-astra', 'claude-fable-5-1', 'claude-opus-4-5'], why: 'R116 check: frozen plans and examples of refused older ids' }, + 'docs/eval-models.md': { ids: ['claude-opus-5', 'claude-opus-4-8', 'claude-fable-5-1', 'gpt-6.1-sol'], why: 'example families list, newest first, so it names older ids on purpose' }, + 'docs/troubleshooting.md': { ids: ['claude-opus-5'], why: 'example of an arm identity that does not cover the newest id' }, + 'eval-plan/SKILL.md.tmpl': { ids: ['claude-opus-4-5'], why: 'example of an older id the R116 check refuses' }, + 'eval-plan/SKILL.md': { ids: ['claude-opus-4-5'], why: 'generated from eval-plan/SKILL.md.tmpl' }, + 'docs/unattended.md': { ids: ['gpt-6.1-sol'], why: 'records which model past no-loss rounds ran on' }, + 'docs/skill-routing-and-contracts.md': { ids: ['gpt-6.1-sol'], why: 'records Codex behavior observed on that model' }, + 'lib/codex-rollout.ts': { ids: ['gpt-6.1-sol'], why: 'records Codex behavior observed on that model' }, + 'lib/review-brief.ts': { ids: ['gpt-6.1-sol'], why: 'records a reader behavior observed on that model (GST-850)' }, + 'lib/context-bill.ts': { ids: ['claude-opus-4-5'], why: 'records the tokenizer the offline divisors were fitted on' }, + 'scripts/preflight-agent-sdk.ts': { ids: ['claude-opus-4-7'], why: 'preflight for the Opus 4.7 overlay harness, whose model under test is Opus 4.7' }, + 'crew/scripts/measure-journal-read.ts': { ids: ['claude-opus-4-1'], why: 'a fixed journal envelope whose byte size the measurement depends on' }, + '.github/docker/Dockerfile.ci': { ids: ['claude-fable-5-1'], why: 'records why an earlier Claude CLI pin was chosen' }, +}; + +export function olderIds(text: string): Array<{ id: string; line: number; newest: string }> { + const found: Array<{ id: string; line: number; newest: string }> = []; + text.split('\n').forEach((line, i) => { + for (const m of line.matchAll(FAMILY_ID)) { + const id = m[0].toLowerCase(); + const newest = NEWEST[(m[1] ?? m[2]).toLowerCase()]; + if (id !== newest) found.push({ id, line: i + 1, newest }); + } + }); + return found; +} + +function runtimeFiles(): string[] { + const listed = spawnSync('git', ['ls-files', '-z'], { cwd: ROOT, encoding: 'utf8', timeout: 30_000 }); + if (listed.status !== 0) throw new Error(`git ls-files failed: ${listed.stderr}`); + return listed.stdout.split('\0').filter(f => f && !HISTORY.some(re => re.test(f))); +} + +function readText(file: string): string | null { + const full = path.join(ROOT, file); + const stat = fs.lstatSync(full, { throwIfNoEntry: false }); + if (!stat?.isFile() || stat.size > 4_000_000) return null; + const bytes = fs.readFileSync(full); + return bytes.includes(0) ? null : bytes.toString('utf8'); +} + +describe('model generations', () => { + test('the detector flags older ids of the four families and nothing else', () => { + const ids = (s: string) => olderIds(s).map(f => f.id); + expect(ids('gpt-6-astra openai/gpt-6.1-sol claude-fable-5-1 claude-opus-4-7-1 claude-opus-5* gpt-5.6-sol.')).toEqual(['gpt-6-astra', 'gpt-6.1-sol', 'claude-fable-5-1', 'claude-opus-4-7', 'claude-opus-5', 'gpt-5.6-sol']); + expect(ids(`${NEWEST.opus} ${NEWEST.fable} openai/${NEWEST.sol} ${NEWEST.astra} ${NEWEST.opus}-20261101 ${NEWEST.sol}-2026-11-01`)).toEqual([]); + expect(ids('claude-sonnet-4-6 claude-haiku-4-5 gpt-6-luna gpt-5.4 claude-fable-* gpt-daybreak-blue-latest')).toEqual([]); + }); + + test('the newest Astra maps to a Codex prompt overlay', () => { + expect(resolveModel(newestModel('astra'))).not.toBeNull(); + }); + + test('runtime code and agent-loaded prose name only the newest opus, fable, sol and astra', () => { + const offenders: string[] = []; + for (const file of runtimeFiles()) { + const allowed = ALLOWED[file]; + if (allowed?.ids === '*') continue; + const text = readText(file); + if (text === null) continue; + for (const f of olderIds(text)) { + if (allowed?.ids.includes(f.id)) continue; + offenders.push(`${file}:${f.line} names ${f.id}; use ${f.newest} (lib/model-families.ts)`); + } + } + expect(offenders).toEqual([]); + }); + + test('every allowance is still needed', () => { + const stale: string[] = []; + for (const [file, { ids }] of Object.entries(ALLOWED)) { + const text = readText(file); + const present = new Set(text === null ? [] : olderIds(text).map(f => f.id)); + if (ids === '*') { if (present.size === 0) stale.push(`${file}: *`); continue; } + for (const id of ids) if (!present.has(id)) stale.push(`${file}: ${id}`); + } + expect(stale).toEqual([]); + }); + + test('every default that names one of the four families reads lib/model-families.ts', () => { + const tier = (provider: string, t: string) => MODEL_CATALOG.find(e => e.provider === provider && e.tier === t)?.model; + expect([tier('anthropic', 'frontier'), tier('openai', 'frontier'), tier('anthropic', 'smart'), tier('openai', 'smart')]).toEqual([NEWEST.fable, NEWEST.astra, NEWEST.opus, NEWEST.sol]); + expect([CLAUDE_CAPTURE_EVAL_MODEL, CLAUDE_JUDGE_EVAL_MODEL, CODEX_FRONTIER_MODEL]).toEqual([NEWEST.opus, NEWEST.fable, NEWEST.astra]); + expect(CYBER_RETRIES.find(r => r.name === 'astra-read-only')?.model.model_id).toBe(`openai/${NEWEST.astra}`); + const empty = fs.mkdtempSync(path.join(fs.realpathSync(require('node:os').tmpdir()), 'gstack-gen-')); + try { + expect(resolveCodexRuntimeModel({ kind: 'exec', env: {}, codexHome: empty, home: empty }).model).toBe(NEWEST.astra); + } finally { + fs.rmSync(empty, { recursive: true, force: true }); + } + }); +}); diff --git a/test/model-policy-cli.test.ts b/test/model-policy-cli.test.ts index cc042bad3..090276a7d 100644 --- a/test/model-policy-cli.test.ts +++ b/test/model-policy-cli.test.ts @@ -60,7 +60,7 @@ describe('gstack-models inspector', () => { const { env, state } = fixture(); const human = models([], env); expect(human.code).toBe(0); - expect(human.stdout).toContain('plan-review via openai: gpt-6-astra'); + expect(human.stdout).toContain('plan-review via openai: gpt-6.2-astra'); expect(human.stdout).toContain('implementation via anthropic: claude-opus-5-5'); expect(human.stdout).toContain('gstack-config set plan_review_tier smart'); expect(human.stderr).toBe(''); @@ -73,7 +73,7 @@ describe('gstack-models inspector', () => { expect(doc.selections.map((s: { role: string; provider: string }) => `${s.role}/${s.provider}`)).toEqual(['plan-review/anthropic', 'plan-review/openai', 'implementation/anthropic', 'implementation/openai']); expect(doc.tiers).toHaveLength(4); expect(doc.settings.plan_review_tier).toEqual({ value: null, effective: 'frontier', origin: 'default' }); - expect(doc.settings.model_smart_openai).toEqual({ value: null, effective: 'gpt-6.1-sol', origin: 'default' }); + expect(doc.settings.model_smart_openai).toEqual({ value: null, effective: 'gpt-6.2-sol', origin: 'default' }); }); test('resolve plan-review returns one tagged selection with its source', () => { @@ -117,7 +117,7 @@ describe('gstack-models inspector', () => { const { env } = fixture('implementation_tier: frontier\n'); const both = json(['resolve', '--role', 'implementation'], env); expect(both.code).toBe(0); - expect(both.doc.selections.map((s: { provider: string; requestedModel: string }) => [s.provider, s.requestedModel])).toEqual([['anthropic', 'claude-fable-5-1'], ['openai', 'gpt-6-astra']]); + expect(both.doc.selections.map((s: { provider: string; requestedModel: string }) => [s.provider, s.requestedModel])).toEqual([['anthropic', 'claude-fable-5-2'], ['openai', 'gpt-6.2-astra']]); const one = json(['resolve', '--role', 'implementation', '--provider', 'openai'], env); expect(one.doc.selections).toHaveLength(1); expect(one.doc.selections[0].provider).toBe('openai'); @@ -192,10 +192,10 @@ describe('gstack-models inspector', () => { const { env, home } = fixture(); fs.mkdirSync(path.join(home, '.codex')); const toml = (model: string) => fs.writeFileSync(path.join(home, '.codex', 'config.toml'), `model = "${model}"\nmodel_provider = "proxy"\n`); - toml('gpt-6-astra'); + toml('gpt-6.2-astra'); const ok = json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env); expect(ok.code).toBe(0); - expect(ok.doc.selections[0]).toMatchObject({ role: 'plan-review', provider: 'openai', requestedModel: 'gpt-6-astra' }); + expect(ok.doc.selections[0]).toMatchObject({ role: 'plan-review', provider: 'openai', requestedModel: 'gpt-6.2-astra' }); expect(json([], env).doc.errors.filter((e: { role: string }) => e.role === 'plan-review')).toEqual([]); toml('my-alias'); const alias = json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env); @@ -284,7 +284,7 @@ process.exit(result.status ?? 1); `, { mode: 0o755 }); const portable = { ...env, PATH: `${bin}${path.delimiter}${env.PATH}` }; for (const key of ['model_frontier_claude', 'model_smart_claude']) { - for (const value of ['claude-fable-5-1', 'a'.repeat(512)]) { + for (const value of ['claude-fable-5-2', 'a'.repeat(512)]) { expect(config(['set', key, value], portable).code).toBe(0); expect(config(['get', key], portable).stdout).toBe(value); } @@ -309,7 +309,7 @@ process.exit(result.status ?? 1); expect(config(['unset', 'plan_review_tier'], env).code).toBe(0); expect(config(['unset', 'model_smart_openai'], env).code).toBe(0); - expect(json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env).doc.selections[0]).toMatchObject({ tier: 'frontier', requestedModel: 'gpt-6-astra', source: { kind: 'catalog' } }); + expect(json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env).doc.selections[0]).toMatchObject({ tier: 'frontier', requestedModel: 'gpt-6.2-astra', source: { kind: 'catalog' } }); }); test.each([ @@ -337,7 +337,7 @@ process.exit(result.status ?? 1); ['implementation_tier', 'frontier'], ['implementation_tier', 'smart'], ['implementation_tier', 'host'], ['model_frontier_claude', 'claude-opus-4-6[1m]'], ['model_frontier_claude', 'vendor+claude@2026'], ['model_frontier_claude', 'a'.repeat(512)], ['model_frontier_claude', 'a'.repeat(513)], ['model_smart_claude', 'claude;x'], ['model_smart_claude', 'claude x'], ['model_smart_claude', '$(id)'], - ['model_frontier_openai', 'gpt-6.1-sol'], ['model_frontier_openai', 'org/model:v1'], ['model_frontier_openai', 'a'.repeat(100)], + ['model_frontier_openai', 'gpt-6.2-sol'], ['model_frontier_openai', 'org/model:v1'], ['model_frontier_openai', 'a'.repeat(100)], ['model_frontier_openai', 'a'.repeat(101)], ['model_smart_openai', 'gpt+6'], ['model_smart_openai', 'gpt@6'], ]; const { env } = fixture(); diff --git a/test/model-policy-workflow.test.ts b/test/model-policy-workflow.test.ts index 45af1f6ff..0a8ce3ee7 100644 --- a/test/model-policy-workflow.test.ts +++ b/test/model-policy-workflow.test.ts @@ -1,7 +1,7 @@ import { describe, expect, test, spyOn } from 'bun:test'; import { readFileSync } from 'node:fs'; import { MODEL_CATALOG, modelCatalogSha256 } from '../lib/model-catalog'; -import { assessFreshness, freshnessCatalogIdentity, validLifecycle, validState } from '../lib/model-policy-freshness'; +import { assessFreshness, CATALOG_SOURCE_FILES, catalogSourceSha256, freshnessCatalogIdentity, validLifecycle, validState } from '../lib/model-policy-freshness'; import { FRESHNESS_SOURCES, FRESHNESS_BOUNDS, sha256 } from '../lib/model-policy-freshness-sources'; import { FRESHNESS_ISSUE_AUTHOR, FRESHNESS_ISSUE_MARKER, FRESHNESS_REGION_BEGIN, FRESHNESS_REGION_END, publishFreshness, readFreshnessIssue, writeFreshnessIssue, type FreshnessGitHub, type TrackingIssue } from '../lib/model-policy-freshness-publication'; import { freshnessGitHub } from '../lib/model-policy-freshness-github'; @@ -449,10 +449,11 @@ describe('publication ordering and default-branch guards', () => { describe('network adapter, real catalog and CLI seams', () => { test('real catalog export and canonical hash bind the four identities and separate source-file hash', () => { - const source = readFileSync(new URL('../lib/model-catalog.ts', import.meta.url), 'utf8'); - const identity = freshnessCatalogIdentity(source); + const sources = CATALOG_SOURCE_FILES.map(file => readFileSync(new URL(`../${file}`, import.meta.url), 'utf8')); + const identity = freshnessCatalogIdentity(sources); expect(identity.sha256).toBe(modelCatalogSha256()); - expect(identity.sourceSha256).toBe(sha256(source)); + expect(identity.sourceSha256).toBe(catalogSourceSha256(sources)); + expect(identity.sourceSha256).not.toBe(catalogSourceSha256([sources[0], `${sources[1]}\n`])); expect(identity.models).toEqual(MODEL_CATALOG.map(entry => ({ provider: entry.provider, tier: entry.tier, modelId: entry.model }))); }); @@ -463,13 +464,15 @@ describe('network adapter, real catalog and CLI seams', () => { calls.push({ url, method: init.method }); expect(init.redirect).toBe('error'); if (url.endsWith('/repos/owner/repo')) return Response.json({ default_branch: 'main' }); + if (url.endsWith('/commits/main')) return Response.json({ sha: 'c'.repeat(40) }); if (url.includes('/contents/')) return Response.json({ encoding: 'base64', content: Buffer.from(text).toString('base64'), size: Buffer.byteLength(text) }); if (new URL(url).searchParams.get('page') === '1') return Response.json(Array.from({ length: 100 }, (_, i) => ({ number: i + 1, body: '', state: 'closed', user: { login: FRESHNESS_ISSUE_AUTHOR }, ...(i === 0 ? {} : { pull_request: {} }) }))); if (new URL(url).searchParams.get('page') === '2') return Response.json([{ number: 101, body: FRESHNESS_ISSUE_MARKER, state: 'closed', user: { login: FRESHNESS_ISSUE_AUTHOR } }]); return Response.json({ number: 101, body: FRESHNESS_ISSUE_MARKER, state: 'closed', user: { login: FRESHNESS_ISSUE_AUTHOR } }); }); const signal = new AbortController().signal; - expect(await api.defaultCatalog(signal)).toEqual({ defaultBranch: 'main', sourceSha256: sha256(text) }); + expect(await api.defaultCatalog(signal)).toEqual({ defaultBranch: 'main', sourceSha256: catalogSourceSha256([text, text]) }); + expect(calls.filter(call => call.url.includes('/contents/')).map(call => call.url.split('/contents/')[1])).toEqual(CATALOG_SOURCE_FILES.map(file => `${file}?ref=${'c'.repeat(40)}`)); expect((await api.listIssues(signal)).map(issue => issue.number)).toEqual([1, 101]); await api.updateIssue(101, { body: 'machine-owned data', state: 'open' }, signal); expect(calls.at(-1)?.method).toBe('PATCH'); diff --git a/test/model-policy.test.ts b/test/model-policy.test.ts index b84eb31b9..0e409c711 100644 --- a/test/model-policy.test.ts +++ b/test/model-policy.test.ts @@ -75,10 +75,10 @@ function tree(dir: string): string[] { describe('model catalog', () => { test('ships exactly the four approved tier IDs with provenance', () => { expect(MODEL_CATALOG.map(e => [e.tier, e.provider, e.model])).toEqual([ - ['frontier', 'anthropic', 'claude-fable-5-1'], - ['frontier', 'openai', 'gpt-6-astra'], + ['frontier', 'anthropic', 'claude-fable-5-2'], + ['frontier', 'openai', 'gpt-6.2-astra'], ['smart', 'anthropic', 'claude-opus-5-5'], - ['smart', 'openai', 'gpt-6.1-sol'], + ['smart', 'openai', 'gpt-6.2-sol'], ]); for (const entry of MODEL_CATALOG) { expect(entry.sourceUrl).toMatch(/^https:\/\/(platform\.claude\.com|developers\.openai\.com)\//); @@ -86,7 +86,7 @@ describe('model catalog', () => { expect(Object.isFrozen(entry)).toBe(true); } expect(Object.isFrozen(MODEL_CATALOG)).toBe(true); - expect(catalogEntry('openai', 'smart').model).toBe('gpt-6.1-sol'); + expect(catalogEntry('openai', 'smart').model).toBe('gpt-6.2-sol'); }); test('identity is deterministic and independent of user config', () => { @@ -100,8 +100,8 @@ describe('model catalog', () => { test('eval rulers and the no-role Codex pattern stay independent of the catalog', () => { expect(CLAUDE_CAPTURE_EVAL_MODEL).toBe('claude-opus-5-5'); - expect(CLAUDE_JUDGE_EVAL_MODEL).toBe('claude-fable-5-1'); - expect(CODEX_FRONTIER_MODEL).toBe('gpt-6-astra'); + expect(CLAUDE_JUDGE_EVAL_MODEL).toBe('claude-fable-5-2'); + expect(CODEX_FRONTIER_MODEL).toBe('gpt-6.2-astra'); for (const file of ['lib/eval-model.ts', 'scripts/resolvers/constants.ts']) { expect(fs.readFileSync(path.join(ROOT, file), 'utf-8')).not.toMatch(/from\s+['"][^'"]*model-(catalog|policy)/); } @@ -131,7 +131,7 @@ describe('model ID validation', () => { }); test.each([ - ['gpt-6.1-sol', true], + ['gpt-6.2-sol', true], ['org/model:v1', true], ['a'.repeat(100), true], ['a'.repeat(101), false], @@ -274,7 +274,7 @@ describe('strict policy config snapshot', () => { expect(selected(resolvePlanReviewModel({ provider: 'openai', env, config }))).toBe('gpt-old'); const fresh = resolvePlanReviewModel({ provider: 'openai', env }); expect(fresh.tier).toBe('smart'); - expect(selected(fresh)).toBe('gpt-6.1-sol'); + expect(selected(fresh)).toBe('gpt-6.2-sol'); }); }); @@ -295,14 +295,14 @@ describe('plan-review precedence', () => { expect(fromConfig).toMatchObject({ requestedModel: 'tier-model', source: { kind: 'config', key, path: path.join(state, 'config.yaml') } }); const fromCatalog = resolvePlanReviewModel({ provider, env: fixture().env }); - expect(fromCatalog).toMatchObject({ requestedModel: catalogEntry(provider, 'frontier').model, source: { kind: 'catalog', catalogVersion: 1, verifiedAt: '2026-10-07' } }); + expect(fromCatalog).toMatchObject({ requestedModel: catalogEntry(provider, 'frontier').model, source: { kind: 'catalog', catalogVersion: 1, verifiedAt: '2026-11-24' } }); expect(fromCatalog.tierFrom).toMatchObject({ key: 'plan_review_tier', origin: 'default' }); }); test('smart tier reads the smart override, not the frontier one', () => { const { env } = fixture('plan_review_tier: smart\nmodel_frontier_openai: gpt-frontier-pin\n'); const selection = resolvePlanReviewModel({ provider: 'openai', env }); - expect(selection).toMatchObject({ tier: 'smart', requestedModel: 'gpt-6.1-sol', tierFrom: { origin: 'config' } }); + expect(selection).toMatchObject({ tier: 'smart', requestedModel: 'gpt-6.2-sol', tierFrom: { origin: 'config' } }); }); test('host mode delegates with a null model; request and env still win; tier overrides do not apply', () => { @@ -531,7 +531,7 @@ describe('implementation recommendation', () => { test('known hosts recommend their own provider; unknown hosts get both', () => { const { env } = fixture(); expect(resolveImplementationModels({ host: 'claude-code', env }).map(s => [s.provider, selected(s)])).toEqual([['anthropic', 'claude-opus-5-5']]); - expect(resolveImplementationModels({ host: 'codex', env }).map(s => [s.provider, selected(s)])).toEqual([['openai', 'gpt-6.1-sol']]); + expect(resolveImplementationModels({ host: 'codex', env }).map(s => [s.provider, selected(s)])).toEqual([['openai', 'gpt-6.2-sol']]); for (const host of ['unknown', undefined] as const) { expect(resolveImplementationModels({ host, env }).map(s => s.provider)).toEqual(['anthropic', 'openai']); } @@ -542,7 +542,7 @@ describe('implementation recommendation', () => { const { env } = fixture('implementation_tier: frontier\nmodel_frontier_openai: gpt-pin\n'); const envWithOverrides = { ...env, GSTACK_CLAUDE_MODEL: 'claude-env', GSTACK_CODEX_MODEL: 'gpt-env' }; const [anthropic, openai] = resolveImplementationModels({ env: envWithOverrides }); - expect(anthropic).toMatchObject({ role: 'implementation', tier: 'frontier', requestedModel: 'claude-fable-5-1', source: { kind: 'catalog' }, tierFrom: { key: 'implementation_tier', origin: 'config' } }); + expect(anthropic).toMatchObject({ role: 'implementation', tier: 'frontier', requestedModel: 'claude-fable-5-2', source: { kind: 'catalog' }, tierFrom: { key: 'implementation_tier', origin: 'config' } }); expect(openai).toMatchObject({ requestedModel: 'gpt-pin', source: { kind: 'config', key: 'model_frontier_openai' } }); expect(resolveImplementationModels({ provider: 'openai', requestedModel: 'gpt-req', env })[0]).toMatchObject({ requestedModel: 'gpt-req', source: { kind: 'request' } }); }); diff --git a/test/model-role-invocation.test.ts b/test/model-role-invocation.test.ts index 2ded5df30..d01bfed19 100644 --- a/test/model-role-invocation.test.ts +++ b/test/model-role-invocation.test.ts @@ -218,7 +218,7 @@ describe('Codex plan-review invocation binds one selection', () => { expect(result.stderr).toMatch(/WARN:.*0\.120\.2.*known stdin deadlock/); expect(result.calls.filter(call => call.probe)).toHaveLength(1); expect(result.calls.filter(call => !call.probe)).toHaveLength(1); - expect(result.calls.every(call => codexModel(call) === 'model="gpt-6-astra"')).toBe(true); + expect(result.calls.every(call => codexModel(call) === 'model="gpt-6.2-astra"')).toBe(true); }); test('frontier catalog model wins over a native pin; probe and dispatch use it; notice once', () => { @@ -227,8 +227,8 @@ describe('Codex plan-review invocation binds one selection', () => { expect(first.status).toBe(0); expect(first.stdout).toContain('OUTSIDE_STATUS: completed provider=codex'); expect(first.calls.map(c => c.probe)).toEqual([true, false]); - expect(first.calls.map(codexModel)).toEqual(['model="gpt-6-astra"', 'model="gpt-6-astra"']); - expect(first.stderr).toContain('CODEX_MODEL: gpt-6-astra (exec; role: plan-review, tier: frontier; source: gstack catalog frontier/openai'); + expect(first.calls.map(codexModel)).toEqual(['model="gpt-6.2-astra"', 'model="gpt-6.2-astra"']); + expect(first.stderr).toContain('CODEX_MODEL: gpt-6.2-astra (exec; role: plan-review, tier: frontier; source: gstack catalog frontier/openai'); expect(first.stderr).toContain(NOTICE); expect(first.stderr).toContain('gstack-config set plan_review_tier smart'); expect(first.stderr.indexOf(NOTICE)).toBeLessThan(first.stderr.indexOf('CODEX_MODEL:')); @@ -254,14 +254,14 @@ describe('Codex plan-review invocation binds one selection', () => { const h = home(); const r = run('claude', h, { REPLACE_CONFIG: 'model_frontier_openai: gpt-replaced\n' }); expect(r.status).toBe(0); - expect(r.calls.map(codexModel)).toEqual(['model="gpt-6-astra"', 'model="gpt-6-astra"']); + expect(r.calls.map(codexModel)).toEqual(['model="gpt-6.2-astra"', 'model="gpt-6.2-astra"']); const next = run('claude', h); expect(next.calls.map(codexModel)).toEqual(['model="gpt-replaced"', 'model="gpt-replaced"']); expect(next.stderr).toContain('source: model_frontier_openai in'); }); for (const [label, config, extra, model, fragment] of [ - ['smart tier', 'plan_review_tier: smart\n', {}, 'gpt-6.1-sol', 'tier: smart'], + ['smart tier', 'plan_review_tier: smart\n', {}, 'gpt-6.2-sol', 'tier: smart'], ['env override', '', { GSTACK_CODEX_MODEL: 'gpt-env-pick' }, 'gpt-env-pick', 'source: GSTACK_CODEX_MODEL'], ['host mode', 'plan_review_tier: host\n', {}, 'gpt-5.6-terra', 'source: plan_review_tier=host'], ] as const) { @@ -386,7 +386,7 @@ describe('one deadline bounds Codex role readiness and dispatch (native F3)', () const r = timed(home(), { FAKE_PROBE_SLEEP: '3' }); expect(r.status).toBe(0); expect(r.calls.map((c: { probe: boolean }) => c.probe)).toEqual([true, false]); - expect(r.calls.map(codexModel)).toEqual(['model="gpt-6-astra"', 'model="gpt-6-astra"']); + expect(r.calls.map(codexModel)).toEqual(['model="gpt-6.2-astra"', 'model="gpt-6.2-astra"']); withinBudget(r.dispatch!); }, 60000); @@ -412,7 +412,7 @@ describe('one deadline bounds Codex role readiness and dispatch (native F3)', () const r = timed(h, { FAKE_PROBE_SLEEP: '8' }); expect(r.status).toBe(0); expect(r.out).toContain('MODEL_PROBE_INCONCLUSIVE'); - expect(r.calls.map(codexModel)).toEqual(['model="gpt-6-astra"', 'model="gpt-6-astra"']); + expect(r.calls.map(codexModel)).toEqual(['model="gpt-6.2-astra"', 'model="gpt-6.2-astra"']); withinBudget(r.dispatch!); expect(fs.existsSync(path.join(h.state, '.codex-model-probe')) ? fs.readFileSync(path.join(h.state, '.codex-model-probe'), 'utf8') : '').not.toContain('MODEL_OK'); }, 60000); @@ -470,10 +470,10 @@ describe('Claude plan-review invocation emits one selected model or none', () => const r = run('codex', h, { GSTACK_CLAUDE_MODEL: '' }); expect(r.status).toBe(0); expect(r.calls).toHaveLength(1); - expect(claudeModels(r.calls[0])).toEqual(['claude-fable-5-1']); - expect(result(r).selection).toMatchObject({ role: 'plan-review', tier: 'frontier', status: 'selected', requested_model: 'claude-fable-5-1' }); + expect(claudeModels(r.calls[0])).toEqual(['claude-fable-5-2']); + expect(result(r).selection).toMatchObject({ role: 'plan-review', tier: 'frontier', status: 'selected', requested_model: 'claude-fable-5-2' }); expect(result(r).modelUsage).toHaveProperty('model-actual'); - expect(r.stderr).toContain('CLAUDE_MODEL: plan-review via anthropic: claude-fable-5-1'); + expect(r.stderr).toContain('CLAUDE_MODEL: plan-review via anthropic: claude-fable-5-2'); expect(r.stderr).toContain(NOTICE); expect(run('codex', h).stderr).not.toContain('NOTICE: gstack plan reviews'); }); @@ -539,7 +539,7 @@ describe('Claude plan-review invocation emits one selected model or none', () => const selected = resolvePlanReviewModel({ provider: 'anthropic', env: { GSTACK_HOME: h.state, HOME: h.dir } }); if (selected.status !== 'selected') throw new Error('expected a selected record'); const args = claudeCodeArgs({ access: 'none', selection: selected }, cmd, { GSTACK_CLAUDE_MODEL: 'claude-late-change' }); - expect(claudeModels({ args })).toEqual(['claude-fable-5-1']); + expect(claudeModels({ args })).toEqual(['claude-fable-5-2']); const dashed = claudeCodeArgs({ access: 'none', selection: { ...selected, requestedModel: '-p' } }, cmd, {}); expect(dashed.filter(arg => arg === '-p')).toHaveLength(1); expect(dashed).toContain('--model=-p'); @@ -640,12 +640,12 @@ describe('manual /codex entry: explicit role only, paid probe only for the dispa const before = Math.floor(Date.now() / 1000); const role = shell(h, script('plan-review')); expect(role.status).toBe(0); - expect(role.stdout).toContain('DISPATCH=gpt-6-astra'); + expect(role.stdout).toContain('DISPATCH=gpt-6.2-astra'); const deadline = Number(role.stdout.match(/DEADLINE=(\d+)/)![1]); expect(deadline).toBeGreaterThanOrEqual(before + Number(budget)); expect(deadline).toBeLessThanOrEqual(Math.ceil(Date.now() / 1000) + Number(budget)); - expect(role.calls.map(codexModel)).toEqual(['model="gpt-6-astra"']); - expect(role.stderr).toContain(`CODEX_MODEL: gpt-6-astra (${kind}; role: plan-review, tier: frontier`); + expect(role.calls.map(codexModel)).toEqual(['model="gpt-6.2-astra"']); + expect(role.stderr).toContain(`CODEX_MODEL: gpt-6.2-astra (${kind}; role: plan-review, tier: frontier`); expect(role.stderr).toContain(NOTICE); const named = shell(home(), script('plan-review', t => t.replace(`role-ready ${kind}`, `role-ready ${kind} --model 'gpt-named'`))); expect(named.status).toBe(0); @@ -666,9 +666,9 @@ describe('manual /codex entry: explicit role only, paid probe only for the dispa const started = Date.now(); const r = shell(home(), script, 'zsh'); expect(r.status).toBe(0); - expect(r.stdout).toContain('RC=124 SEL=gpt-6-astra MODE=read-only'); + expect(r.stdout).toContain('RC=124 SEL=gpt-6.2-astra MODE=read-only'); expect(Date.now() - started).toBeLessThan(15000); - expect(r.calls.map(codexModel)).toEqual(['model="gpt-6-astra"']); + expect(r.calls.map(codexModel)).toEqual(['model="gpt-6.2-astra"']); }, 30000); }); @@ -734,7 +734,7 @@ describe('implementation handoff recommendation', () => { const r = spawnSync(path.join(ROOT, 'bin', 'gstack-models'), ['resolve', '--role', 'implementation', '--provider', 'anthropic', '--json'], { env: env(h, 'claude'), encoding: 'utf8', timeout: 15000 }); expect(r.status).toBe(0); - expect(JSON.parse(r.stdout).selections[0]).toMatchObject({ role: 'implementation', requestedModel: 'claude-fable-5-1' }); + expect(JSON.parse(r.stdout).selections[0]).toMatchObject({ role: 'implementation', requestedModel: 'claude-fable-5-2' }); expect(fs.readdirSync(h.state)).toEqual(['config.yaml']); }); }); diff --git a/test/outside-voice-invocation.test.ts b/test/outside-voice-invocation.test.ts index f94465ee8..73f09cd60 100644 --- a/test/outside-voice-invocation.test.ts +++ b/test/outside-voice-invocation.test.ts @@ -125,7 +125,7 @@ describe('generated outside-review dispatch', () => { expect(await stdout).toContain('OUTSIDE_STATUS: completed provider=claude-code host=codex'); expect(fs.existsSync(paid)).toBe(true); expect(stderr.match(/NOTICE: gstack/g)).toHaveLength(1); - expect(stderr).toContain('CLAUDE_MODEL: plan-review via anthropic: claude-fable-5-1'); + expect(stderr).toContain('CLAUDE_MODEL: plan-review via anthropic: claude-fable-5-2'); expect(stderr).toContain('provider diagnostic retained'); } finally { reader.releaseLock(); @@ -245,7 +245,7 @@ describe('generated outside-review dispatch', () => { expect(capture().args).toContain('--json'); // exec carries the exec-kind selection, no review_model, and no skill catalog (#2914, #2847). expect(capture().args.some((arg: string) => arg.startsWith('review_model='))).toBe(false); - expect(capture().args).toContain('model="gpt-6-astra"'); + expect(capture().args).toContain('model="gpt-6.2-astra"'); expect(capture().args).toContain('skills.include_instructions=false'); expect(capture().prompt).toBe(PROMPT_TEXT); // Completion is distinct from approval; the caller retains the P1 fail gate. @@ -388,7 +388,7 @@ describe('generated outside-review dispatch', () => { const probe = path.join(BIN, 'gstack-codex-probe'); fs.writeFileSync(probe, `#!/usr/bin/env bash case "$1" in - select-model) printf 'CODEX_SEL: gpt-6-astra\\nCODEX_SEL_KIND: exec\\nCODEX_SANDBOX: read-only\\n' ;; + select-model) printf 'CODEX_SEL: gpt-6.2-astra\\nCODEX_SEL_KIND: exec\\nCODEX_SANDBOX: read-only\\n' ;; check-sandbox|show-first-use-notice) ;; run-with-timeout) echo 'Partial finding'; exit 124 ;; log-event|log-hang) printf '%s %s\\n' "$2" "$3" >> "$FAKE_EVENTS" ;; diff --git a/test/provider-model-defaults.test.ts b/test/provider-model-defaults.test.ts index a986a2d3a..2e5b173f6 100644 --- a/test/provider-model-defaults.test.ts +++ b/test/provider-model-defaults.test.ts @@ -326,7 +326,7 @@ describe.skipIf(process.platform === 'win32')('provider model selection', () => test('Codex defaults to Astra and explicit model wins over the environment', async () => { const adapter = new GptAdapter(); - expect(await selected(adapter)).toBe('gpt-6-astra'); + expect(await selected(adapter)).toBe('gpt-6.2-astra'); process.env.GSTACK_CODEX_MODEL = 'gpt-5.6-sol'; expect(await selected(adapter)).toBe('gpt-5.6-sol'); expect(await selected(adapter, 'custom-codex')).toBe('custom-codex'); @@ -347,7 +347,7 @@ describe.skipIf(process.platform === 'win32')('provider model selection', () => test('Codex skill evals default to Astra and preserve model overrides', () => { writeFileSync(join(workdir, 'SKILL.md'), '# Fixture\nReply OK.\n'); for (const [override, explicit, expected] of [ - ['', undefined, 'gpt-6-astra'], + ['', undefined, 'gpt-6.2-astra'], ['gpt-5.6-sol', undefined, 'gpt-5.6-sol'], ['gpt-5.6-sol', 'custom-codex', 'custom-codex'], ]) { diff --git a/test/review-pass-voice-failures.test.ts b/test/review-pass-voice-failures.test.ts index 0b5376982..5ae54d68c 100644 --- a/test/review-pass-voice-failures.test.ts +++ b/test/review-pass-voice-failures.test.ts @@ -114,20 +114,20 @@ describe('Capy pass program (fake host, real bins)', () => { return { res, all, h, created, verify, base }; } - // Value: protects=R95 on the real pass program: Capy's captured cyber_policy refusal of the Sol outside voice is recorded unavailable with its own reason and retried once on openai/gpt-6-astra with the read-only brief, whose review is the Step 11 outside record; fails_when=the refusal is recorded as a plain failure with no retry, the retry resends the original brief, or the original's unavailable record replaces the retry's; + // Value: protects=R95 on the real pass program: Capy's captured cyber_policy refusal of the Sol outside voice is recorded unavailable with its own reason and retried once on openai/gpt-6.2-astra with the read-only brief, whose review is the Step 11 outside record; fails_when=the refusal is recorded as a plain failure with no retry, the retry resends the original brief, or the original's unavailable record replaces the retry's; // why_new=R95; seam=lib/capy-review-pass.js ended outside voice; no_claim=that Astra finishes a real refused brief (one live smoke in GSTA-537) test('a cyber_policy refusal is retried once on Astra with the read-only brief (R95)', async () => { const { res, all, h, created, verify } = await refusedVoices('x40p1', t => (t.endsWith(' outside-voice') ? CYBER : undefined)); expect(res).not.toContain('STOP:'); - expect(all).toContain('RETRY: reader=outside-voice/astra-read-only model=openai/gpt-6-astra brief=read-only'); + expect(all).toContain('RETRY: reader=outside-voice/astra-read-only model=openai/gpt-6.2-astra brief=read-only'); expect(all).toMatch(/COLLECT_UNAVAILABLE: reader=outside-voice .*/); const astra = created('outside-voice/astra-read-only')!; - expect(astra.model).toEqual({ model_id: 'openai/gpt-6-astra', reasoning_mode: 'high' }); + expect(astra.model).toEqual({ model_id: 'openai/gpt-6.2-astra', reasoning_mode: 'high' }); expect(astra.prompt).toContain(READ_ONLY_RETRY); expect(astra.prompt).not.toContain('Think like an attacker'); expect(created('outside-voice')!.prompt).toContain('Think like an attacker and a chaos engineer.'); expect(created('outside-voice/gemini-4-carbon')).toBeUndefined(); - expect(res).toContain('OUTSIDE_RECORD: "outside_provider":"host-subagent","outside_model":"openai/gpt-6-astra","outside_status":"completed","outside_note":"second-family read by openai/gpt-6-astra on the read-only retry brief after cyber_policy refused openai/gpt-6.2-sol"'); + expect(res).toContain('OUTSIDE_RECORD: "outside_provider":"host-subagent","outside_model":"openai/gpt-6.2-astra","outside_status":"completed","outside_note":"second-family read by openai/gpt-6.2-astra on the read-only retry brief after cyber_policy refused openai/gpt-6.2-sol"'); expect(res).not.toContain('"outside_model":"openai/gpt-6.2-sol"'); expect(res).toContain('NEXT: judge the voices'); expect(verify).toMatch(/^BRIEF outside-voice UNAVAILABLE/m); @@ -143,14 +143,14 @@ describe('Capy pass program (fake host, real bins)', () => { test('an Astra refusal falls through to Gemini 4 Carbon with the original brief, then the second-family read is missing (R95)', async () => { const { res, all, h, created, verify } = await refusedVoices('x41p1', t => (/outside-voice(\/astra-read-only|\/gemini-4-carbon)?$/.test(t) ? CYBER : undefined)); expect(res).not.toContain('STOP:'); - expect(all).toContain('RETRY: reader=outside-voice/astra-read-only model=openai/gpt-6-astra brief=read-only'); + expect(all).toContain('RETRY: reader=outside-voice/astra-read-only model=openai/gpt-6.2-astra brief=read-only'); expect(all).toContain('RETRY: reader=outside-voice/gemini-4-carbon model=google/gemini-4-carbon brief=original'); expect(all).toContain('RETRY: exhausted'); const gemini = created('outside-voice/gemini-4-carbon')!; expect(gemini.model).toEqual({ model_id: 'google/gemini-4-carbon', reasoning_mode: 'high' }); expect(gemini.prompt).toBe(created('outside-voice')!.prompt); expect(h.creates.filter(c => c.title.includes('outside-voice')).length).toBe(3); - expect(res).toContain('"outside_model":"google/gemini-4-carbon","outside_status":"unavailable","outside_note":"second-family read missing: cyber_policy refused openai/gpt-6.2-sol, openai/gpt-6-astra (read-only retry brief) and google/gemini-4-carbon"'); + expect(res).toContain('"outside_model":"google/gemini-4-carbon","outside_status":"unavailable","outside_note":"second-family read missing: cyber_policy refused openai/gpt-6.2-sol, openai/gpt-6.2-astra (read-only retry brief) and google/gemini-4-carbon"'); expect(res).toContain('first write this voice its own adversarial-review row'); expect(res).toContain('NEXT: judge the voices'); expect(verify).not.toContain('MISMATCH'); @@ -164,10 +164,10 @@ describe('Capy pass program (fake host, real bins)', () => { const lane = { laneModel: 'google/gemini-4-argon', models: { 'outside-voice': { model_id: 'openai/gpt-6.2-sol', reasoning_mode: 'medium' } } }; const { res, all, h, created, base } = await refusedVoices('x45p1', t => (/outside-voice(\/astra-read-only)?$/.test(t) ? CYBER : undefined), lane); expect(all).not.toContain('STOP:'); - expect(all).toContain('RETRY: reader=outside-voice/astra-read-only model=openai/gpt-6-astra brief=read-only'); + expect(all).toContain('RETRY: reader=outside-voice/astra-read-only model=openai/gpt-6.2-astra brief=read-only'); expect(all).toContain('RETRY: exhausted reader=outside-voice/astra-read-only'); expect(created('outside-voice/gemini-4-carbon')).toBeUndefined(); - expect(res).toContain('"outside_status":"unavailable","outside_note":"second-family read missing: cyber_policy refused openai/gpt-6.2-sol and openai/gpt-6-astra (read-only retry brief)"'); + expect(res).toContain('"outside_status":"unavailable","outside_note":"second-family read missing: cyber_policy refused openai/gpt-6.2-sol and openai/gpt-6.2-astra (read-only retry brief)"'); expect(res).toContain('NEXT: judge the voices'); const again = await runPass(h, { ...base, stage: 'voices', stuckMs: 60_000 }); expect(again).not.toContain('STOP:'); diff --git a/test/run-in-background-guidance.test.ts b/test/run-in-background-guidance.test.ts index 03eb9032c..d5ce6134e 100644 --- a/test/run-in-background-guidance.test.ts +++ b/test/run-in-background-guidance.test.ts @@ -99,7 +99,7 @@ exec ${quote(Bun.which('cat')!)} "$@" })); }; // #2914: the selected model and its source are printed before the paid call. - const selected = (cached = false) => `CODEX_MODEL: gpt-6-astra (exec; role: plan-review, tier: frontier; source: gstack catalog frontier/openai (verified 2026-10-07))\nAUTH_OK\nMODEL_OK${cached ? ' (cached)' : ''}\nHINT: If the review rejects the selected model, repair its winning source: gstack-config set model_frontier_openai ; gstack-config set plan_review_tier smart; gstack-config set plan_review_tier host.\n`; + const selected = (cached = false) => `CODEX_MODEL: gpt-6.2-astra (exec; role: plan-review, tier: frontier; source: gstack catalog frontier/openai (verified 2026-11-24))\nAUTH_OK\nMODEL_OK${cached ? ' (cached)' : ''}\nHINT: If the review rejects the selected model, repair its winning source: gstack-config set model_frontier_openai ; gstack-config set plan_review_tier smart; gstack-config set plan_review_tier host.\n`; return { dir, run, stale, staleError, calls, selected, created: () => fs.existsSync(created) ? fs.readFileSync(created, 'utf8').trim().split('\n') : [], cleanup: () => fs.rmSync(dir, { recursive: true, force: true }) }; diff --git a/test/team-mode.test.ts b/test/team-mode.test.ts index 40c35b612..e439002f1 100644 --- a/test/team-mode.test.ts +++ b/test/team-mode.test.ts @@ -458,7 +458,7 @@ describe('setup --team / --no-team / -q', () => { 'bin/gstack-state-root.sh', 'bin/gstack-bun-version.sh', 'bin/gstack-path-spelling.sh', 'bin/gstack-skill-name.sh', 'bin/gstack-claude-root.sh', 'bin/gstack-install-registry.sh', 'bin/gstack-render-claude.sh', 'bin/gstack-host-renders.sh', 'scripts/resolve-codex-generation-model.ts', 'scripts/models.ts', 'scripts/preflight-codex-overlap.ts', 'scripts/discover-skills.ts', 'scripts/external-skill-names.ts', 'scripts/host-config.ts', - 'lib/claude-code-migration.ts', 'lib/model-policy.ts', 'lib/model-catalog.ts', + 'lib/claude-code-migration.ts', 'lib/model-policy.ts', 'lib/model-catalog.ts', 'lib/model-families.ts', 'lib/model-policy-notice.ts', 'lib/state-root.ts', 'lib/bun-isolation.ts', ]) { const dest = path.join(cwd, rel);