Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
74d5588
feat(eval-plan): results --check refuses a results table without its …
garrytan Oct 31, 2026
3dcb1ac
test(model-panel): a <model>#no-gstack arm per model, identity-keyed …
garrytan Oct 31, 2026
c323d4f
feat(arm-benchmark): no-gstack arm on a pinned model, 3 paired trials…
garrytan Oct 31, 2026
634c0da
Merge remote-tracking branch 'origin/garrytan/ng5-lane-c' into garryt…
garrytan Oct 31, 2026
86f5857
test(evals): no-gstack arm for the safety-rule and router evals (GST-…
garrytan Oct 31, 2026
f2f7fbd
Merge remote-tracking branch 'origin/garrytan/ng5-lane-d' into garryt…
garrytan Oct 31, 2026
0f2f604
chore: changelog fragment for the no-gstack arms in existing evals
garrytan Oct 31, 2026
32cb224
test(arm-benchmark): arm-pair paired-judge calibration run (bar met 6…
garrytan Oct 31, 2026
f69977f
Merge remote-tracking branch 'origin/main' into garrytan/no-gstack-ar…
garrytan Oct 31, 2026
ea50880
test(paid-shards): keep loop-named panel and arm-benchmark cases sele…
garrytan Oct 31, 2026
4f4c260
fix(tests): keep FREE_FIXTURES and the placeholder allowlist current …
garrytan Oct 31, 2026
eab8522
test(eval-plan): cover a complete table after a partial one, --json o…
garrytan Oct 31, 2026
656f272
test(eval-plan): keep the Step 7 coverage test as reviewed
garrytan Oct 31, 2026
610bd43
chore: name the changelog fragment after the branch slug
garrytan Oct 31, 2026
294e7b4
docs: arm-benchmark project folder names and the arm-pair calibration…
garrytan Oct 31, 2026
9c6f9e7
docs: keep the judge-calibration fixture README as reviewed
garrytan Oct 31, 2026
b32a013
docs(skills): describe eval-plan results --check
garrytan Oct 31, 2026
0701669
v1.92.2.0 stamp: train gate.train-0926fe2eb4d2-2d1b55d7621d-620d7a S3…
garrytan Jan 1, 2000
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.92.2.0] - 2026-10-31

- The model panel adds a `<model>#no-gstack` arm beside each model's skill arm (Garry's rule that every head-to-head eval also tests no gstack), with its rows keyed by arm identity and the candidate's folders named after a project. arm-benchmark runs three with/without pairs per task under a spend ledger and a pinned model. A paired judge scores both orders and must pass calibration before it decides; the per-diff judge is reported beside it. The safety-rule and router cases gain a descriptive `none` arm where the task exists without the skill text. `gstack-eval-plan results --check <prereg> <results.md>` refuses a results file unless one table holds a filled row for every arm, so each no-gstack row sits beside its variants (`EVAL_REPORT_NO_GSTACK_ROW`).

## [1.92.1.0] - 2026-10-31

**The free suite moves from `ubicloud-standard-2` to `ubicloud-standard-4`, still at 20 shards, because standard-2 made Free Tests slower than its revert rule allows.** #3617's week-1 check measured three paired rounds at main 5ba425af. On standard-2 the slowest shard took 380, 396 and 388 s, against 314, 327 and 336 s on standard-8, and runs finished in 514 to 526 s against 405 to 434 s. On standard-4 the slowest shard took 323, 335 and 317 s, inside standard-8's 313 to 336 s range from the same day's paired runs. Per shard, standard-4 runs 10 to 15 % slower than standard-8 and costs about 57 % as much per run, so it keeps most of the saving without slowing the run's slowest shard.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.92.1.0
1.92.2.0
2 changes: 1 addition & 1 deletion agents-digest/gstack-AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gstack digest v1.92.1.0 — regenerate/re-copy after upgrading gstack
# gstack digest v1.92.2.0 — regenerate/re-copy after upgrading gstack

Behavioral rules from gstack (https://github.com/garrytan/gstack), compressed
for agent hosts without a full skill install. The full skills add workflows,
Expand Down
1 change: 1 addition & 0 deletions bin/gstack-doctor-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ gstack_result_anchor() {
PREREG_INCOMPLETE) printf '%s' 'prereg-incomplete' ;;
PREREG_DIAGNOSTIC_UNTESTED) printf '%s' 'prereg-diagnostic-untested' ;;
PREREG_NO_GSTACK_ARM) printf '%s' 'prereg-no-gstack-arm' ;;
EVAL_REPORT_NO_GSTACK_ROW) printf '%s' 'eval-report-no-gstack-row' ;;
EVAL_ARM_DUPLICATE) printf '%s' 'eval-arm-duplicate' ;;
*) return 1 ;;
esac
Expand Down
22 changes: 20 additions & 2 deletions bin/gstack-eval-plan
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* gstack-eval-plan pilot settle --out <dir> --attempt <id> --usd <n|unknown>
* gstack-eval-plan pilot release --out <dir> --attempt <id>
* gstack-eval-plan pilot report --out <dir> --total <items> [--workers W] [--json]
* gstack-eval-plan results --check <prereg> <results.md> [--json]
* gstack-eval-plan price-gate --gate-file <file> | --gate "<exact gate command>" [--plan-file <file>] [--base <branch>] [--cap-usd N]
* [--smoke-cap-usd N] [--allow-unpriced "<reason>"] [--out <dir>] [--json]
*
Expand All @@ -26,12 +27,13 @@
* price-gate lint every arm's model against the base branch's
* .gstack/eval-models.json (docs/eval-models.md; lib/eval-models.ts). Exit 0 ok, 1 fail (incomplete
* prereg, failed check, exceeded cap, unpriced or stale gate), 2 usage, 3 refused.
* Logic: lib/eval-plan.ts.
* Logic: lib/eval-plan.ts; `results --check` in lib/eval-plan-report.ts.
*/
import * as fs from 'node:fs';
import * as path from 'node:path';
import { spawnSync } from 'node:child_process';
import { armModel, checkPrereg, DEFAULT_TOKENS, PREREG_SECTIONS, dryRun, pilotReport, preregTemplate, priceGate, releasePilot, renderArms, renderDryRun, renderGatePrice, renderPilotReport, renderPreregDiagnostics, resolveArms, resolvePlanSource, runPreregDiagnostics, settlePilot, startPilot } from '../lib/eval-plan';
import { checkResults } from '../lib/eval-plan-report';
import { checkModelRules, EVAL_SCOPES, type EvalScope, type ModelRulesCheck } from '../lib/eval-models';
import { EXIT, exitTableHelp } from '../lib/headless-artifacts';
import { resultLine } from '../lib/result-codes';
Expand All @@ -41,7 +43,8 @@ import { SpendCapExceeded } from '../lib/spend-ledger';
const HELP = `gstack-eval-plan — preregistration, priced arms, $0 dry run, priced pilot (eval-plan/SKILL.md)

prereg --check <file> [--allow-repo-commands] [--json]
the five sections exist and are filled: Bars, Arms, Decoys, Stop rules, Held-out exposure;
the required sections exist and are filled: Bars, Arms, Comparison, Decoys, Stop rules,
Held-out exposure, and No-gstack arm when the Comparison says stack: loaded;
an optional Diagnostics section's summarizer runs on its synthetic fixture only with
--allow-repo-commands (else it is listed and exit 3) and every count must match
prereg --init <file> [--title <t>] write the template
Expand All @@ -53,6 +56,9 @@ const HELP = `gstack-eval-plan — preregistration, priced arms, $0 dry run, pri
pilot start --out dir --cap usd --arms m,m#no-gstack --dry-run dry-run.json [--n 3]
pilot settle --out dir --attempt id --usd <n|unknown> pilot release --out dir --attempt id
pilot report --out dir --total items [--workers W] [--json] spend table + extrapolation with a 95% band, then the approval ask
results --check <prereg> <results.md> [--json]
one table in the results file has a filled row for every Arms identity, each no-gstack arm
beside its variants; reads text only (docs/TESTING_INTERNALS.md#no-gstack-arm)
price-gate --gate-file <file> | --gate "<exact gate command>" [--plan-file f] [--base b] [--cap-usd N] [--smoke-cap-usd N] [--allow-unpriced "<reason>"] [--out dir] [--json]
price a paid gate from its GSTACK_EVAL_CALLS v1 call-plan file (--plan-file, else the base
policy's price_file at HEAD); checks the gate/head/input binding, executes nothing, writes a
Expand Down Expand Up @@ -129,6 +135,17 @@ function doPrereg(rest: string[]): number {
return EXIT.ok;
}

function doResults(rest: string[]): number {
const prereg = flag(rest, '--check');
const results = rest.filter(a => !a.startsWith('--') && a !== prereg)[0];
if (!prereg || !results || !fs.existsSync(prereg) || !fs.existsSync(results)) return usage('results needs --check <existing prereg> <existing results file>');
const r = checkResults(fs.readFileSync(prereg, 'utf8'), fs.readFileSync(results, 'utf8'));
if (rest.includes('--json')) process.stdout.write(JSON.stringify({ prereg, results, ...r }) + '\n');
else process.stdout.write(`RESULTS: ${r.ok ? 'ok' : 'incomplete'} no_gstack_rows=${r.no_gstack.filter(id => r.found.includes(id)).length}/${r.no_gstack.length} rows=${r.found.length}/${r.required.length} file=${results}\n`);
if (!r.ok) { process.stderr.write(resultLine('gstack-eval-plan results', 'EVAL_REPORT_NO_GSTACK_ROW', r.problems.join('; ')) + '\n'); return EXIT.fail; }
return EXIT.ok;
}

function doArms(rest: string[]): number {
const tokens = { input: num(rest, '--input-tokens', DEFAULT_TOKENS.input)!, output: num(rest, '--output-tokens', DEFAULT_TOKENS.output)! };
const scope = scopeOf(rest);
Expand Down Expand Up @@ -242,6 +259,7 @@ function main(argv: string[]): number {
if (cmd === 'dry-run') return doDryRun(rest);
if (cmd === 'pilot') return doPilot(rest);
if (cmd === 'price-gate') return doPriceGate(rest);
if (cmd === 'results') return doResults(rest);
return usage(`unknown command ${cmd}`);
} catch (e: any) {
if (e instanceof SpendCapExceeded) { process.stderr.write(resultLine(`gstack-eval-plan ${cmd}`, 'EVAL_BUDGET_EXHAUSTED', e.message) + '\n'); return EXIT.fail; }
Expand Down
80 changes: 65 additions & 15 deletions docs/TESTING_INTERNALS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1645,9 +1645,11 @@ word list: `test/fixtures/arm-benchmark/` and its four children, `browse-judge/`
names under `paid-report-census/` and the `test/` subdirectories of
`state-matrix-6792/`. All of these are runner-side: no candidate's working
directory is one of them. Candidate-visible gaps are in the temporary roots
the harnesses create: `test/helpers/arm-benchmark-harness.ts` copies each fixture
into `os.tmpdir()/arm-<fixture>-<arm>-*`, so the candidate's working directory is
named after the arm rather than after a project; `test/skill-e2e-deploy.test.ts`
the harnesses create: `test/helpers/arm-benchmark-harness.ts` copied each fixture
into `os.tmpdir()/arm-<fixture>-<arm>-*`, so the candidate's working directory was
named after the arm rather than after a project (since GST-469 it is named after
the task's project: `hike-booking-*`, `notes-api-*`, `receipts-*`);
`test/skill-e2e-deploy.test.ts`
runs the /benchmark case in `skill-e2e-benchmark-*`, a root that carries a listed
word; `test/skill-e2e-test-value.test.ts` creates `skill-e2e-<id>-*` roots as the
candidate's working directory, and two of its ids (`review-test-value`,
Expand Down Expand Up @@ -1692,18 +1694,66 @@ own attempts. The arm gets:

**Reporting.** The no-gstack result is one row beside the variants in every
results table and every verdict, including when it wins. A comparison that
drops the row has not reported its result. The prereg check cannot see the
report, so the `report:` line states where the row goes and the reviewer of
the result holds the author to it.

**Precedent and its gaps.** `test/helpers/arm-benchmark-harness.ts` already has
a `without-skill` arm beside `with-skill`, and it is the closest existing
control. It falls short of this rule in three ways: each arm and task runs
once rather than as a panel; the judge (`armJudge` in
`test/helpers/llm-judge.ts`) scores each diff on its own, without `A`/`B`
labels; and the candidate's temporary folder is named after the arm
(`arm-<fixture>-<arm>-*`). Existing paid cases are not retrofitted by the
change that added this rule; an audit of them is tracked separately.
drops the row has not reported its result. `gstack-eval-plan results --check
<prereg> <results.md>` enforces it: one table in the results file must hold a
filled row for every Arms identity (`EVAL_REPORT_NO_GSTACK_ROW` otherwise), and
no number is published before it passes.

**Safety-rule and router evals: a descriptive third arm.** The W1 safety-rule
evals compare `GSTACK_SAFETY_ARM=rule` (the shipped rule) with `removed` (the
rule paragraph deleted), and the router failure-routing evals compare
`GSTACK_ROUTER_ARM=current` with `before` (the base branch's router). Both
variables also take `none` (GST-470): the same fixture, tools and user request,
with no skill excerpt, rule text, step file or installed skill. Any other value
throws, so a typo cannot run one arm under another's label. The `rule`,
`removed`, `current` and `before` prompts are byte for byte what they were
before `none` existed (`test/safety-none-arm.test.ts`,
`test/failure-routing-arm.test.ts`). To run the three arms as a comparison, run
the same case once per arm, each as its CI panel:

```bash
for arm in rule removed none; do
GSTACK_SAFETY_ARM=$arm bun run scripts/test-paid-shards.ts --tier gate --case safety-ship-stale-evidence
done
for arm in current before none; do
GSTACK_ROUTER_ARM=$arm bun run scripts/test-paid-shards.ts --tier gate --case router-failure-contradicted-cause
done
```

The arm variable is part of the shard-reuse environment, so one arm's result is
never reused for another. Report the three rows side by side in one results
table and pass `gstack-eval-plan results --check` on it.

**The descriptive exception.** Under `none` every behavioral check, the plain
`expect`s on model actions included, is recorded as an observation in
`none-arm-observations.jsonl` in the eval directory and on stderr
(`test/helpers/none-arm.ts`). It never fails the case and never writes
`contract-violations.jsonl`; harness preconditions (the fixture built, the CLI
ran, the session ended normally) still assert. This departs from "the same
panel" above because these contracts are gstack's own rules: a plain model was
never asked to keep them, so a failing `none` trial is the measurement, not a
regression, and a red verdict would block the gate on behavior nobody
specified. The router's `none` arm has no "routed to /investigate" metric,
since no skill is installed to route to; it records plain metrics instead:
whether the suite is green, whether an edit came before the first read, and
how many read-only calls came before the first edit. The first paid comparison
with these arms gets its own preregistration.

**Cases without a `none` arm.** `safety-pair-agent-block` and
`safety-ios-demo-ui-only` refuse `GSTACK_SAFETY_ARM=none` with the reason
(`NO_NONE_ARM` in `test/helpers/safety-rules.ts`). Their task exists only in
the skill: relaying /pair-agent's remote instruction block, and /ios-qa's demo
mode with its device routes. A plain prompt has nothing to relay and no device
interface to drive, so the arm would measure the prompt, not gstack.

**Precedent.** `test/skill-e2e-arm-benchmark.test.ts` runs a `with-skill` and a
`without-skill` arm (named `<model>#no-gstack` in its preregistration) as 3
pairs per task under a spend ledger and cap. A paired judge reads both diffs as
`A` and `B` in both orders, counts a win only when the orders agree, and
decides only after it passes calibration; the per-diff `armJudge` stays beside
it as the diagnostic. Candidate folders and git identity name a project, never
the arm. The model panel (`test/skill-e2e-model-panel.test.ts`) runs a
`<model>#no-gstack` arm beside each model (GST-468, GST-469).

## Running evals as an agent: detach

Expand Down
3 changes: 3 additions & 0 deletions docs/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,9 @@ runs every row through the stub model for $0 and flags malformed rows
(`EVAL_DRY_RUN_FAILED`); `pilot start|settle|release|report` runs three priced
items, records actual spend, extrapolates to the full set against the cap
(`EVAL_BUDGET_EXHAUSTED`) and prints the spend table the approval question shows.
`results --check <prereg> <results.md>` refuses a finished results file unless one
table holds a filled row for every arm, each `<model>#no-gstack` row beside its
variants (`EVAL_REPORT_NO_GSTACK_ROW`); no number leaves the run before it passes.
The skill's closing section lists the tier-3 items (instrument audit, steady
state, sealed paths, off-machine persistence, memory preflight, power tables, QA
soak) as `tier 3, after P7`; none of them run yet.
Expand Down
15 changes: 15 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -3685,6 +3685,21 @@ goes beside the variants. When no arm loads a skill stack, write
`stack: none` with a `why:` line instead. The rule is in
[docs/TESTING_INTERNALS.md](TESTING_INTERNALS.md#no-gstack-arm).

<a id="eval-report-no-gstack-row"></a>
### `EVAL_REPORT_NO_GSTACK_ROW`

**Meaning.** `gstack-eval-plan results --check <prereg> <results>` found no
single markdown table in the results file with a filled row for every arm
identity the preregistration's Arms section lists. Usually the
`<model>#no-gstack` row is missing, sits in a separate table from its
variants, or holds only placeholders (`-`, `n/a`, `tbd`). It also fires when
the preregistration itself fails `prereg --check`.

**Fix.** Put one row per arm identity, each no-gstack arm beside its variants,
in one table, and rerun the check. Publish no number before it prints
`RESULTS: ok`. A preregistration with `stack: none` needs no row. The rule is
in [docs/TESTING_INTERNALS.md](TESTING_INTERNALS.md#no-gstack-arm).

<a id="eval-arm-duplicate"></a>
### `EVAL_ARM_DUPLICATE`

Expand Down
14 changes: 14 additions & 0 deletions eval-plan/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,20 @@ Under `SESSION_KIND: unattended` write the question as an `approval` gate item t
The full run, when approved, keeps settling every attempt into the same ledger and reprints
the spend table at each gate; `budget_exhausted` stops it.

## Step 5: Results beside the no-gstack arm

Write the run's results as one markdown table in a results file, one row per arm identity
from the Arms section, each `<model>#no-gstack` row beside its variants. Before any number
leaves the run (a report, a READY block, a PR body), check it:

```bash
~/.claude/skills/gstack/bin/gstack-eval-plan results --check <prereg-path> <results-path>
```

`RESULTS: ok` lets the numbers go out. `EVAL_REPORT_NO_GSTACK_ROW` (exit 1) names the arm
whose filled row is missing from the table that holds the others; add it and rerun. A
preregistration with `stack: none` needs no row.

## Tier 3, after P7 (not in this skill yet)

Each of these waits for the adoption number in the multi-agent wave plan (P7); one line each so the shape is known:
Expand Down
14 changes: 14 additions & 0 deletions eval-plan/SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,20 @@ Under `SESSION_KIND: unattended` write the question as an `approval` gate item t
The full run, when approved, keeps settling every attempt into the same ledger and reprints
the spend table at each gate; `budget_exhausted` stops it.

## Step 5: Results beside the no-gstack arm

Write the run's results as one markdown table in a results file, one row per arm identity
from the Arms section, each `<model>#no-gstack` row beside its variants. Before any number
leaves the run (a report, a READY block, a PR body), check it:

```bash
~/.claude/skills/gstack/bin/gstack-eval-plan results --check <prereg-path> <results-path>
```

`RESULTS: ok` lets the numbers go out. `EVAL_REPORT_NO_GSTACK_ROW` (exit 1) names the arm
whose filled row is missing from the table that holds the others; add it and rerun. A
preregistration with `stack: none` needs no row.

## Tier 3, after P7 (not in this skill yet)

Each of these waits for the adoption number in the multi-agent wave plan (P7); one line each so the shape is known:
Expand Down
46 changes: 46 additions & 0 deletions lib/eval-plan-report.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* eval-plan-report: the results check behind `gstack-eval-plan results --check`.
* A preregistration that says `stack: loaded` names its no-gstack arms; its
* results file must hold one markdown table with a filled row for every Arms
* identity, so each no-gstack row sits beside its variants
* (docs/TESTING_INTERNALS.md#no-gstack-arm). Reads text only; executes nothing.
*/
import { armIdentities, checkPrereg } from './eval-plan';

export interface ResultsCheck { ok: boolean; required: string[]; no_gstack: string[]; found: string[]; missing: string[]; problems: string[] }

const PLACEHOLDER = /^(?:|-+|—|–|n\/a|tbd|todo|\?)$/i;
const cellsOf = (line: string) => line.trim().replace(/^\|/, '').replace(/\|$/, '').split('|').map(c => c.trim());
const separator = (line: string | undefined) => !!line && /^\s*\|[\s:|-]+\|?\s*$/.test(line) && line.includes('-');

/** The filled-row identities of each markdown table: first cell, backticks stripped, header and separator rows skipped. */
export function resultTables(text: string): Array<Set<string>> {
const lines = text.split('\n');
const tables: Array<Set<string>> = [];
let current: Set<string> | null = null;
lines.forEach((line, i) => {
if (!/^\s*\|/.test(line)) { current = null; return; }
if (!current) { current = new Set(); tables.push(current); }
if (separator(line) || separator(lines[i + 1])) return;
const [first, ...rest] = cellsOf(line);
const id = (first ?? '').replace(/`/g, '').trim();
if (id && rest.some(c => !PLACEHOLDER.test(c.replace(/`/g, '').trim()))) current.add(id);
});
return tables;
}

export function checkResults(preregText: string, resultsText: string): ResultsCheck {
const prereg = checkPrereg(preregText);
if (prereg.comparison.stack === 'none') return { ok: true, required: [], no_gstack: [], found: [], missing: [], problems: [] };
const required = [...new Set(armIdentities(preregText))];
const noGstack = prereg.no_gstack.arms;
const problems: string[] = [];
if (!prereg.ok) problems.push('the preregistration does not pass prereg --check');
const tables = resultTables(resultsText);
const best = tables.reduce<Set<string>>((b, t) => (required.filter(id => t.has(id)).length > required.filter(id => b.has(id)).length ? t : b), new Set());
const found = required.filter(id => best.has(id));
const missing = required.filter(id => !best.has(id));
if (!tables.length) problems.push('no markdown table in the results file');
else for (const id of missing) problems.push(`no filled row for ${id} in the table that holds the other arms`);
return { ok: problems.length === 0, required, no_gstack: noGstack, found, missing, problems };
}
Loading
Loading