Files
gstack/test/fixtures/arm-benchmark/PREREG.md
T
Garry Tanandcapy-ai[bot] 4eff47c5cf v1.92.2.0 evals: no-gstack arms for the model panel, arm-benchmark, safety and routing evals (#3708)
* feat(eval-plan): results --check refuses a results table without its no-gstack rows

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

* test(model-panel): a <model>#no-gstack arm per model, identity-keyed cells, one campaign, results.md (GST-468)

Each panel model also runs as <model>#no-gstack: the same fixture, ticket,
tools, limits, route and reservation, with no skill folder and no routing
line. The arm identity keys the ledger attempt, test name, row and summary;
candidate folders are named after the fixture project and the seed commit
has a neutral author. summarize reads one campaign (run id and PREREG.md
sha256) and refuses a duplicate cell; suggestionLine reads the skill arms
only, so the preregistered particle-1 line is unchanged. renderResults writes
results.md, which passes gstack-eval-plan results --check against the new
test/fixtures/model-panel/PREREG.md (supersedes GSTA-173 for later runs).

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

* feat(arm-benchmark): no-gstack arm on a pinned model, 3 paired trials, both-order paired judge, spend ledger (GST-469)

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

* test(evals): no-gstack arm for the safety-rule and router evals (GST-470)

GSTACK_SAFETY_ARM and GSTACK_ROUTER_ARM take a third value, none: the same
fixture, tools and user request with no skill excerpt, rule text, step file
or installed skill. Under none every behavioral check is recorded as an
observation (none-arm-observations.jsonl) and never fails the case or writes
contract-violations.jsonl; harness preconditions still assert.

The four safety prompt builders (ship-evidence, codex-boundary,
codex-consult, design-risk) and the router fixtures move into helpers; the
rule, removed, current and before prompts stay byte-identical, proven
against reference copies of main's code. pair-agent and ios-demo refuse
none with the reason (NO_NONE_ARM). GSTACK_ROUTER_ARM now throws on an
unknown value instead of silently running current.

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

* chore: changelog fragment for the no-gstack arms in existing evals

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

* test(arm-benchmark): arm-pair paired-judge calibration run (bar met 6/6, $7.22)

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

* test(paid-shards): keep loop-named panel and arm-benchmark cases selectable by --case

The lanes moved each cell's testName into helpers, so the static detector no
longer saw a computed registration and B4 failed for all eight cases. Same
runtime test names; the paid runs are unaffected.

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

* fix(tests): keep FREE_FIXTURES and the placeholder allowlist current for the no-gstack arms

scripts/judge-calibration.ts is now an arm-benchmark paid touchfile, so it can no
longer be a free consumer of test/fixtures/judge-calibration/** (CI free-suite 8).
The eval-plan Step 5 fence names <prereg-path> and <results-path>; allowlist both
as PATH placeholders (CI free-suite 19).

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

* test(eval-plan): cover a complete table after a partial one, --json output and the results usage error

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

* test(eval-plan): keep the Step 7 coverage test as reviewed

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

* chore: name the changelog fragment after the branch slug

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

* docs: arm-benchmark project folder names and the arm-pair calibration corpus

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

* docs: keep the judge-calibration fixture README as reviewed

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

* docs(skills): describe eval-plan results --check

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

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-10-31 22:41:36 +00:00

4.7 KiB

arm-benchmark preregistration (GST-469)

Frozen on 2026-10-31 before the first paid run of this design: three with/without pairs per task, a no-gstack arm on the pinned model, a spend ledger, and a paired judge that decides only after calibration. The instrument gates nothing; its assertions cover harness mechanics only.

Bars

  • Metric order per arm: functional checks pass rate (tasks with an oracle), then paired over_engineering (wins/ties/losses and mean over both orders), then the per-diff armJudge mean (the no-loss diagnostic), then net LOC and tokens.
  • Decider bar, paired-judge calibration (arm-pair): before the paid run, bun run scripts/judge-calibration.ts run --config arm-pair --budget 8 on the 16 paired items in test/fixtures/judge-calibration/arm-pair/corpus.json. The bar is pairCalibrationBar (test/helpers/arm-pair-judge.ts) on the new panels: all 6 crossing pairs decided in both orders for the less over-engineered diff, so 6/6 correct, 0 reversed, 0 tied, 0 incomplete. Position bias on the 4 identical-diff pairs is reported, not gated.
  • If the calibration bar is met, the paired judge decides over_engineering. If it is missed or was not run, the per-diff armJudge decides and the paired result is the diagnostic. results.md names the decider.
  • Nine pairs per arm (3 tasks x 3 trials) are descriptive: no significance claim. A paired margin under 3 decided pairs is reported as no difference.

Arms

  • claude-opus-5-5#build-discipline: Claude Code claude -p on ARM_MODEL, the build-discipline skill installed (project .claude/skills plus a CLAUDE.md routing line) and invoked by the prompt; 40 turns, 8 minutes; tools Bash, Read, Write, Edit, Glob, Grep, Skill; $2.00 reserved per cell.
  • claude-opus-5-5#no-gstack: the same model, fixture, tools (Skill allowed, nothing installed), limits, plain project CLAUDE.md and ticket; no skill folder, routing line or invocation line; $2.00 reserved per cell.

Comparison

stack: loaded

  • Each task runs ARM_TRIALS = 3 pairs, one pair at a time; a pair runs both cells concurrently on fresh copies of the same fixture in project-named folders (hike-booking, notes-api, receipts) with a neutral git identity.
  • Judges: armJudge per diff and armPairJudge in both orders (A/B labels only; a win counts only when both orders agree), both on claude-fable-5-1 (ARM_JUDGE_MODEL, not env-overridable), $0.25 reserved per call.
  • A cell that asked for, or was billed for, a model other than ARM_MODEL is INFRA and leaves the aggregates.

No-gstack arm

arms: claude-opus-5-5#no-gstack inputs: the same three fixtures and tickets (TASKS in test/helpers/arm-benchmark-harness.ts), the same folder naming and git identity prompt: the ticket only, with no SKILL.md, routing line, invocation line, preamble or hooks panel: the same E2E kind (rule), 3 trials per task, the same per-diff and paired judges on the same pairs report: results.md, one table with its row beside claude-opus-5-5#build-discipline; passes gstack-eval-plan results --check

Decoys

  • bugfix-decoys plants over-build invitations (a plugin architecture and TypeScript migration in README.md, an obviously fake credential); taking them should raise over_engineering in either arm.
  • Calibration decoys: 4 identical-diff pairs (equal scores expected; a preference is position bias) and 3 fail-versus-empty pairs (an empty diff scores 0 on this axis).
  • The no-gstack arm must never consult the skill (consulted=false); the skill arm must consult it, or the pair is a vacuous comparison and the case fails.

Stop rules

  • Spend: every cell reserves $2.00 and every judge call $0.25 in /spend.json before it starts, settling to measured cost; unknown cost stays at its reservation. ARM_SPEND_CAP_USD = 25. A refused reservation prints STOP: reason=budget_exhausted, skips the remaining trials, keeps every recorded result and fails the case.
  • Pilot first: run arm-benchmark-crud-endpoint alone (6 cells, 6 per-diff and 6 paired judge calls) with GSTACK_ARM_BENCHMARK_OUT set; its settled spend times 3 is the projection. The other two tasks run under the same ledger only if the projection fits $25.
  • Calibration budget: $8 (an estimated $6 for 144 calls); a missed bar is not re-run with an edited prompt after seeing it.
  • No rerun to change a verdict. A red rule case may rerun once at the same head under the flaky policy.

Held-out exposure

set prior exposure (which runs, which models) reservation (what this run may read)
arm-benchmark fixtures and tickets (3 tasks) earlier WS2 periodic runs; reference diffs committed in the repo both arms read the same fixture; no held-out claim
judge-calibration/arm corpus (24 items) W2 comparison 1, 2026-10-03, claude-fable-5-1, 216 samples arm-pair reuses its labels and diffs unchanged; no held-out claim