Skip to content

Eval plans now pilot every arm, check the judge per arm, state their cost and take one planned look above 500 dollars (GST-3218) - #4591

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/eval-plan-loop-rules-gst-3218
Nov 21, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/eval-plan-loop-rules-gst-3218

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

/eval-plan now refuses an eval plan that would waste money: every arm gets a small uncounted pilot, the judge is checked on each arm's outputs, the plan carries a cost line, and a run above 500 dollars takes one planned look at half its units. Small questions get a 100-dollar quick look that publishes no number.
Why: 23.7% of the 28,836 dollars spent on our last 30 evals settled nothing, mostly through arms and judges that broke after the full run. Nothing to do as a reader; plans frozen before 2026-11-21 keep their old rules.

What the plan check now asks for
Rule Where it's held
Name the decision each outcome changes ## Decisions (already checked); Step 0 of the skill says don't run an eval that changes nothing
Uncounted pilot per arm, at most a tenth of its budget, showing the part ran, the judge passes on that arm's outputs, and the units can be supplied ## Pilot: share: (10% or less), counted: no, ran:, judge:, supply:
The pilot draws every unit type, in a seeded order that doesn't depend on concurrency ## Pilot: units:, seed:
Judge checked per arm, at a stated reasoning effort ## Scoring: per-arm: yes, effort:; judge --check prints a JUDGE_ARM: line per arm and fails an arm below the bar
A cost line ## Cost: paid:, meter:, ledger: (the private file that gets the actual cost and the decision it settled)
One look at half the units above 500 dollars paid ## Interim look: at: 50%, looks: 1, O'Brien-Fleming bounds:, futility:
A "smaller change" arm is scored with tests a regression test bar is required beside it
No answers readable on the task machine an answers: line under held-out exposure, now a hard check for plans frozen on or after 2026-11-21
Quick look first for a small question prereg --init --quick writes a three-line plan capped at 100 dollars; results --check refuses it with EVAL_QUICK_LOOK_NO_NUMBER

New plans name GPT-6.2 Sol as the frontier Sol (judges GPT-6 or GPT-6.2 Astra for Claude arms), and GPT-6.2 Sol and Astra are in the price table. Plans frozen earlier keep their models. The cross-agent page's eval placeholder now points at /eval-plan.

Evidence and how we'll measure it

The rules come from our audit of the last 30 evals: 23.7% of 28,836 dollars settled nothing, the biggest single loss (2,033 dollars) was a judge that failed its check after the whole grid ran, a pilot that drew one unit type planned a 77% yield and got 9%, a "smaller change" instruction cut code to 0.44x and wrote fewer tests (28 of 100 sessions against 79), and a reader that inherited its parent's highest effort cost about four times the default. Cost per decision (1,922 dollars today) gets recounted over plans written under these checks on Monday 2026-12-07.

What changed
Why
Blast radius
Who this touches

Only /eval-plan and gstack-eval-plan change: prereg --check, judge --check and results --check refuse more plans, and paid: and cap: must be plain dollar amounts. Plans frozen before 2026-11-21 keep their old rules. Reviewer prompts, review packets, /ship and the pre-merge checks are untouched.

Documentation

Status: updated: two factual doc edits, no blockers.

Scope: 21 committed files in 3 commits (base 41729a0..86938fd), covering the eval-plan loop checks, quick look, per-arm judge labels and the gpt-6.2-sol frontier swap. No staged, unstaged or new files.

Documentation health:

  • docs/TESTING_INTERNALS.md: current (new Eval-loop checks section verified against lib/eval-plan-checks.ts)
  • docs/troubleshooting.md: updated (EVAL_JUDGE_UNCHECKED now names the per-arm refusals and the arm field; EVAL_QUICK_LOOK_NO_NUMBER anchor present)
  • docs/skills.md: updated (/eval-plan entry names the eval-loop sections and prereg --init --quick)
  • docs/working-across-agent-systems.md: current
  • eval-plan/SKILL.md.tmpl: current
  • changelog.d/eval-plan-loop-rules.md: current (not edited)

Coverage debt: prereg --init --quick and the eval-loop checks have reference and how-to coverage but no tutorial. No architecture diagram drift.

Agent notes
  • Context ceiling for eval-plan raised from 6,271 to 7,057 tokens (the captured value with the standard 1.1x headroom); only that entry changed.
  • No reviewer prompt or graded /eval-plan eval changes, so no no-loss replay applies.
  • Trial merge with Teach agents nine habits that several teams learned the hard way (GST-3336) #4585 (shares eval-plan files), run at the a4e1a82 pin before review: clean; typecheck and the eval-plan, capy-skill-wrapper, parity and gen-skill-docs tests passed on the merged tree. Teach agents nine habits that several teams learned the hard way (GST-3336) #4585 has since landed on main; this branch merges the base at the slot stamp.
  • Paid evals: none run here. eval:select picks 108 probes only through derived references; no eval-plan case exists, so paid coverage is left to the READY screen.
  • Captain exception (first on Eval plans now pilot every arm, check the judge per arm, state their cost and take one planned look above 500 dollars (GST-3218) #4591): GStack Minder (GSTA-36) granted a design-change round at 86938fd and one read-only full review of the final head, approval a-95fb8be2a442. The fix-check could not be recorded inside the open run (round-grant refuses there); the final full review read the whole change.
  • Pre-Landing Review (final, read-only, 86938fd, tree 16a5d61): specialists NO FINDINGS; red-team 2 notes; targeted (money) 2 notes; adversarial 5 notes; second-model review 2 CRITICAL, ruled below R12's floor and shipped as notes (below).
  • Gate edits: none detected (17 listed, 17 read, 0 tagged); the eval-plan context ceiling raise is the one gate value change, justified by the template growth in this diff.

Approvals

Approved: yes (record r-f37377f578e6). The full approval record stays private.
Plan: exempt: Garry's standing eval-loop rules (R97, R111, R112, R113, R78); Captain GStack Minder (GSTA-36) brief for GST-3218 named no /autoplan step

Ruled note: lib/eval-plan-checks.ts:79:pilot-share at 86938fd ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-688:2026-11-21) at 2026-11-21T06:58:44.380Z: A pilot share written as a fraction (1/2) reads as its first number; R12 floor not met: no test fails, nothing breaks in production, no data or secrets lost; plan-text check only (approval a-943ffaa45c6e)
Ruled note: lib/eval-plan-checks.ts:103:interim-bounds at 86938fd ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-688:2026-11-21) at 2026-11-21T06:58:44.512Z: Interim bounds are checked by method name, not by their numeric thresholds; R12 floor not met: no test fails, nothing breaks in production, no data or secrets lost; plan-text check only (approval a-226bd244daf3)

Review notes

  • No minimum label count per arm (red-team, adversarial).
  • An arm name with a newline could add a stdout line (red-team).
  • The quick look's $100 cap is declared, not enforced by a spend gate (targeted, adversarial).
  • A stray kind: quick look line skips the counted-run checks in prereg --check; results --check still refuses it (targeted, adversarial).
  • A one-class arm fails per-arm kappa even with a perfect judge (adversarial).
  • results --check now refuses plans with no frozen: line that lack the new sections (adversarial).
{
  "schema_version": 1,
  "pr": 4591,
  "head": "3286608ba996e26833371ffa5be714b23d57e1d1",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 107,
      "fail": 0,
      "skip": 0
    },
    "free": {
      "pass": 1723,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44878983977,
      "attempt": 1,
      "tree": "ef8ffd2a7cdac83d557da9f3552edb7fd93c74a7"
    }
  ],
  "calls": 38,
  "session_kind": "unattended",
  "run": "ship-4591",
  "head_tree": "ef8ffd2a7cdac83d557da9f3552edb7fd93c74a7",
  "product_patch_id": "cda0897d058784eea56a6d60053b307c10b55bf5",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 236,
    "rules": "85b3923b1a978e41",
    "base": "0adfab9dd9c7ee7141d43f5445de052ac34aa01f",
    "registry": "0adfab9dd9c7ee7141d43f5445de052ac34aa01f",
    "gate_scan": {
      "tagged": 0,
      "head": "3286608ba996e26833371ffa5be714b23d57e1d1"
    },
    "reasons": [
      "risk:money",
      "runtime=236"
    ],
    "risk": [
      "money"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @ef8ffd2a7cda (8 checks, current for 3286608ba996)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44878983977/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44878983977/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44878472617/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=ef8ffd2a7cda tests=38630 skipped=106 runs=44878983977/1 profiles=ci-reuse/free-tests heads=3286608ba996 verified=2026-11-21T07:17:32.850Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, AGENTS.md, CLAUDE.md (eval-plan loop checks, quick look, per-arm labels)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 6,
    "deferred": 0,
    "noted": 22,
    "fixed": 8,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 4,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "review_round_grants": [
    {
      "kind": "fix-check",
      "head": "86938fd758d7044a8e349db591af092a88f312da",
      "pr": 4591,
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "Captain exception (approval a-95fb8be2a442): one fix-check of the design change 86938fd for the four round-2 blockers",
      "at": "2026-11-21T07:22:46.168Z",
      "approval": "a-af2188cfc225",
      "stop_run": "ship-4591",
      "findings": [
        "p3/outside-voice#1",
        "p3/outside-voice#2",
        "p3/outside-voice#3",
        "p3/outside-voice#4"
      ]
    }
  ],
  "ruled_notes": [
    {
      "finding": "lib/eval-plan-checks.ts:79:pilot-share",
      "head": "86938fd758d7044a8e349db591af092a88f312da",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "A pilot share written as a fraction (1/2) reads as its first number; R12 floor not met: no test fails, nothing breaks in production, no data or secrets lost; plan-text check only",
      "at": "2026-11-21T06:58:44.380Z",
      "approval": "a-943ffaa45c6e",
      "relayed": "GSTA-688:2026-11-21"
    },
    {
      "finding": "lib/eval-plan-checks.ts:103:interim-bounds",
      "head": "86938fd758d7044a8e349db591af092a88f312da",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "Interim bounds are checked by method name, not by their numeric thresholds; R12 floor not met: no test fails, nothing breaks in production, no data or secrets lost; plan-text check only",
      "at": "2026-11-21T06:58:44.512Z",
      "approval": "a-226bd244daf3",
      "relayed": "GSTA-688:2026-11-21"
    }
  ],
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "b3f6f8b4843c0c30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "cda0897d058784eea56a6d60053b307c10b55bf5",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}
{"head":"86938fd758d7044a8e349db591af092a88f312da","run":"ship-4591","mark":"stop","tree":"16a5d61273ed00ab795943d472b5565a16b88758"}
{"head":"86938fd758d7044a8e349db591af092a88f312da","run":"ship-4591","mark":"grant","grant":"a-af2188cfc225"}

Open in Capy

…cost and take one planned look above 500 dollars (GST-3218)

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

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 21, 2026 06:35
… and need labels from every arm

Review-Finding: p1/specialist-batched#1 reader=specialist-batched
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p1/red-team#3 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…atch judge labels to arms by name (GST-3218)

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit e057dfa into main Nov 21, 2026
84 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 5/5 · behavior 0/0 · judge 0/0 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 2m39s · cost $1.61 known + 1 of 5 trial(s) cost unknown

0 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $0 rule/judge cost | reconcile exit: 0

Profile: pr / mode dependents; selected behaviors: 5, judges: 0. Deferred to scheduled/release coverage: 42 behaviors and 2 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Derived dependents (scripts/pr-dependencies.ts):

  • lib/inventory.ts: 42 case(s), 0 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
Fail-closed reconciliation
[test:paid] report: 1/1 slices, 5 planned shards, tier=gate, attempt 1
[test:paid] coverage: profile=pr mode=dependents; selected E2E=5, judges=0
[test:paid] deferred: 42 broad behaviors, 2 changed prompts without quick live coverage; these are not PR passes
  slice 1  passed             93s  test/skill-e2e-plan-mode-no-op.test.ts
  slice 1  passed             86s  test/skill-e2e-plan-ceo-finding-floor.test.ts
  slice 1  passed             45s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 1  passed             31s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 1  passed             31s  test/skill-e2e-ask-user-question-format-compliance.test.ts
[test:paid] collector final outcomes: 0 executed, 0 reused; 0 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (0 attempt records from 0 collectors; every record counts)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 5/5 · behavior 0/0 · judge 0/0 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 2m39s · cost $1.61 known + 1 of 5 trial(s) cost unknown
[test:paid] exercised-path map (shadow, non-blocking): 0 MAP_GAP line(s) over 2 executed case(s) with recorded commands
[test:paid] report: every planned shard accounted and passed

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit 5e2281cff811568d304e55fddbe77fe57b780dc4.

@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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