Skip to content

/eval-plan checks follow the plan's own dates and models, and plans name their grader (GST-3464) - #4673

Merged
capy-ai[bot] merged 6 commits into
mainfrom
eval-plan-honours-plan-exemptions
Nov 22, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
eval-plan-honours-plan-exemptions

Conversation

@garrytan

@garrytan garrytan commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

/eval-plan dry-run --prereg <file> now reads the plan's frozen date and Models section, so plans frozen before the model-generation rule, and competitor vendor defaults, pass as the rule allows; priced families refuse unpriced older generations; and a new grader: line is required for plans frozen from 2026-11-23.
Nothing to do for readers; plans frozen before 2026-11-23 need no grader: line.

What changed

Eval authors hit refusals the rule never meant: dry-run refused a competitor arm the plan declared as a vendor default, and arms in plans frozen before the model-generation rule, because it never read the plan. Unpriced older models of a priced family (claude-opus-4-5, gpt-4.1, o1, gemini-2.0-flash) slipped through.

  • dry-run reads the preregistration (bin/gstack-eval-plan, lib/eval-plan-checks.ts): --prereg <file> passes the plan's Models lines and frozen: date to the generation check and prints each exception or MODEL_GENERATION: exempt; pilot start re-checks with the same record. The frozen date counts only when the plan's ## Arms names every dry-run arm, and pilot start applies it only to arms the dry run checked. A malformed vendor-default: line, or an old reader or simulator, is named in the failure instead of "an arm". /eval-plan step 2 passes --prereg.
  • Older generations (lib/pricing.ts): currentReplacement refuses an unpriced older generation of a priced family instead of letting it through.
  • Grader line (lib/eval-plan-checks.ts): Held-out exposure needs a grader: line, or grader: none, for plans frozen on or after 2026-11-23.
  • Docs: the EVAL_MODEL_OLD_GENERATION troubleshooting entry names unpriced older generations and dry-run --prereg.

Why

Eval plans keep the model rules they were frozen under, and declared vendor defaults are allowed exceptions; the checks now follow the plan instead of refusing it, while still refusing old models a plan does not name.

Blast radius

Only gstack-eval-plan (prereg check, dry-run, pilot start) and lib/pricing.ts callers of currentReplacement change. Every change refuses the same or more except the plan-backed exemptions, which need --prereg and a plan that names the arms; the 7 changed eval-plan and pricing test files pass (133 tests including the module-size ratchet).

Pre-Landing Review

Full-depth review with one fix round. Round 1 (batched specialist and red team): 2 informational findings, both fixed with regression tests. Round 2 (a check of the fixed lines plus the money reader): nothing blocking. Second-model review on the final code: two findings marked blocking were ruled below the blocking floor (listed in Agent notes); the Claude adversarial pass raised 5 low notes, listed below.

Review notes

Below the blocking floor; recorded here and not fixed in this PR.

  • INFORMATIONAL security finding, details recorded privately
  • INFORMATIONAL bin/gstack-eval-plan:217 the unnamed-arms hint also fires for a frozen: date on or after 2026-11-21, which could never exempt; message text only
  • INFORMATIONAL lib/pricing.ts:171 gpt-5.5, gpt-5.5-pro and gpt-5.3-codex are now refused as older than gpt-6 (matches R116; a plan using one now fails)
  • INFORMATIONAL lib/eval-plan.ts:457 pilot start trusts the exemption recorded in dry-run.json
  • INFORMATIONAL lib/pricing.ts:155 Vertex @-dated and Bedrock anthropic.-prefixed ids are not caught (lenient miss)
  • INFORMATIONAL bin/gstack-eval-plan:209 arms match the plan by exact string, so a provider-prefixed spelling drops the frozen exemption (errs toward refusing)
  • INFORMATIONAL lib/eval-plan-checks.ts:118 grader: accepts any text starting with "none"
  • Second-model review, ruled below the floor: bin/gstack-eval-plan:210 vendor-default exceptions are not bound to the plan's arms (follow-up PR); lib/pricing.ts:157 dotted provider ids such as anthropic/claude-sonnet-4.6 get no replacement (same on main c2b4f0d)

Exploratory QA

Smoke only: the two CLI repros the reviewers ran (a malformed vendor-default: line; a one-line file carrying only a frozen: date) were reproduced, fixed, and are now regression tests. No browser surface.

Issues

Refs p1/red-team#1
Refs p1/specialist-batched#1

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. One factual correction was made in docs/troubleshooting.md.

Scope: the committed diff c2b4f0d2..e9f82b4 on eval-plan-honours-plan-exemptions (15 files). The branch adds gstack-eval-plan dry-run --prereg, makes dry-run and pilot start read the plan's vendor-default lines and frozen date, refuses unpriced older-generation models of priced families, and requires a grader: line under Held-out exposure for plans frozen from 2026-11-23.

Documentation health:

  • docs/TESTING_INTERNALS.md: current (the branch already documents --prereg, older generations and grader:)
  • eval-plan/SKILL.md.tmpl and eval-plan/SKILL.md: current
  • changelog.d/eval-plan-dry-run-reads-the-plan.md: current
  • docs/troubleshooting.md: updated. The EVAL_MODEL_OLD_GENERATION entry now names unpriced older generations and the dry-run --prereg <file> fix

Coverage debt: none left. dry-run --prereg is covered as reference (CLI help, TESTING_INTERNALS), as a how-to (the eval-plan skill) and as troubleshooting. No architecture diagrams are affected.

Tests

  • Targeted: the 7 changed eval-plan and pricing test files plus test/module-size-ratchet.test.ts: 133 pass, 0 fail
  • bun run typecheck: clean
  • Full free suite: carried from CI at the pushed head
Agent notes

Failing-first: dry-run exemptions, older generations and the grader line fail on main c2b4f0d; both review fixes have tests that failed at 22a9acf. The live /autoplan guard test's move to Haiku 5.5 (GST-3441) was taken out of this PR and continues on branch autoplan-guard-waits-for-notice.
Refs GST-3464

Gate edits: none detected (11 listed, 7 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Second-model review: openai/gpt-6.2-sol, completed, 2 findings marked blocking, both ruled below the floor.

Approvals

Approved: yes (record r-df5a6b75c0d2). The full approval record stays private.
Plan: exempt: bug fix (--kind fix, R65); failing-first tests on main c2b4f0d
Plan check: exempt bug fix

Ruled note: bin/gstack-eval-plan:210:outside-voice at e9f82b4 ruled by GSTA-796 lane (GStack Minder crew) (relayed from GSTA-796:2026-11-22T06:01:43Z) at 2026-11-22T06:01:45.688Z: GSTA-796 lane: below the blocking floor per CREW.md standing approval; OV#1 follow-up PR to bind vendor-default exceptions to the plan's arms; OV#2 pre-existing on main (approval a-01d42d0b6e15)
Ruled note: lib/pricing.ts:157:outside-voice at e9f82b4 ruled by GSTA-796 lane (GStack Minder crew) (relayed from GSTA-796:2026-11-22T06:01:43Z) at 2026-11-22T06:01:45.826Z: GSTA-796 lane: below the blocking floor per CREW.md standing approval; OV#1 follow-up PR to bind vendor-default exceptions to the plan's arms; OV#2 pre-existing on main (approval a-59335dc40768)

{
  "schema_version": 1,
  "pr": 4673,
  "head": "78b8faac11e10de8a1e55ae9777876dc28ec29a0",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {},
  "ci_carried": [
    {
      "lane": "test",
      "run": 44995445516,
      "attempt": 1,
      "tree": "a9f2a582e2cd01f44a7ac39bfc5194bfaa115e69"
    }
  ],
  "calls": 41,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gstack/ship-4673-22a9acf",
  "head_tree": "a9f2a582e2cd01f44a7ac39bfc5194bfaa115e69",
  "product_patch_id": "b437caff592a0ebeac33296e5e9960a58d083606",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 100,
    "rules": "630fd3101899e28e",
    "base": "c2b4f0d2adfa66e11143b95d9a42023a09380212",
    "registry": "c2b4f0d2adfa66e11143b95d9a42023a09380212",
    "gate_scan": {
      "tagged": 0,
      "head": "78b8faac11e10de8a1e55ae9777876dc28ec29a0"
    },
    "reasons": [
      "risk:money",
      "runtime=100"
    ],
    "risk": [
      "money"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @a9f2a582e2cd (8 checks, current for 78b8faac11e1)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44995445516/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44992277287/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=a9f2a582e2cd tests=38823 skipped=105 runs=44995445516/1 profiles=ci-reuse/free-tests heads=78b8faac11e1 verified=2026-11-22T07:08:36.383Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, eval-plan/SKILL.md.tmpl, README.md, AGENTS.md against c2b4f0d..e9f82b4"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 7,
    "fixed": 2,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "ruled_notes": [
    {
      "finding": "bin/gstack-eval-plan:210:outside-voice",
      "head": "e9f82b4a24b2bef6f3d83f201cca03b81beef696",
      "by": "GSTA-796 lane (GStack Minder crew)",
      "reason": "GSTA-796 lane: below the blocking floor per CREW.md standing approval; OV#1 follow-up PR to bind vendor-default exceptions to the plan's arms; OV#2 pre-existing on main",
      "at": "2026-11-22T06:01:45.688Z",
      "approval": "a-01d42d0b6e15",
      "relayed": "GSTA-796:2026-11-22T06:01:43Z"
    },
    {
      "finding": "lib/pricing.ts:157:outside-voice",
      "head": "e9f82b4a24b2bef6f3d83f201cca03b81beef696",
      "by": "GSTA-796 lane (GStack Minder crew)",
      "reason": "GSTA-796 lane: below the blocking floor per CREW.md standing approval; OV#1 follow-up PR to bind vendor-default exceptions to the plan's arms; OV#2 pre-existing on main",
      "at": "2026-11-22T06:01:45.826Z",
      "approval": "a-59335dc40768",
      "relayed": "GSTA-796:2026-11-22T06:01:43Z"
    }
  ],
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "b3f6f8b4843c0c30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "b437caff592a0ebeac33296e5e9960a58d083606",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

garrytan and others added 2 commits November 22, 2026 05:11
…test runs on Haiku 5.5 (GST-3464, GST-3441)

dry-run --prereg applies the plan's vendor-default lines and frozen date, and pilot start reads them from dry-run.json. An unpriced older generation of a priced family is refused like the marked rows. Plans frozen from 2026-11-23 need a grader: line under Held-out exposure. CLI tests pin the 100-label judge bar. The guard test's relay ends the actor's turn after the background CEO dispatch until its notice arrives.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ehind its local relay (GST-3441)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 22, 2026 05:31
…placeholder

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…Haiku 5.5 continues on autoplan-guard-waits-for-notice (GST-3441)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title /eval-plan checks follow the plan's own dates and models, and the live /autoplan guard test runs on Haiku 5.5 (GST-3464, GST-3441) /eval-plan checks follow the plan's own dates and models, and plans name their grader (GST-3464) Nov 22, 2026
@capy-ai
capy-ai Bot marked this pull request as ready for review November 22, 2026 05:38
garrytan and others added 2 commits November 22, 2026 05:49
…vendor-default line is named in the dry-run failure

Review-Finding: p1/specialist-batched#1 reader=specialist-batched
Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s and dry-run --prereg

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 094263d into main Nov 22, 2026
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant