Skip to content

v1.91.373.0 feat(eval-plan): require a no-gstack arm in every head-to-head preregistration - #3690

Merged
capy-ai[bot] merged 3 commits into
mainfrom
garrytan/no-gstack-arm
Oct 31, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
garrytan/no-gstack-arm

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3690,
  "head": "30abe158c840849dd118bfd9e2e2cfb927d0f84c",
  "version": "1.91.366.0",
  "base": "main",
  "gate": {
    "remote-pregate": {
      "pass": 24319,
      "fail": 0,
      "skip": 0
    },
    "focused": {
      "pass": 144,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "queue_mode": "stamp-at-merge",
  "head_tree": "4882dead40e503799213b1ce56622a94f1e83c6e",
  "product_patch_id": "c5b701ecf3a078e5587af3f7505ae2a90767b7e6",
  "gstack_version": "1.91.366.0",
  "review_depth": {
    "depth": "standard",
    "class": "code",
    "runtime_lines": 185,
    "rules": "150435b0a543019a",
    "base": "41a67b996d8bbf2167996683953dd2d7cd387d64",
    "registry": "41a67b996d8bbf2167996683953dd2d7cd387d64",
    "gate_scan": {
      "tagged": 0,
      "head": "30abe158c840849dd118bfd9e2e2cfb927d0f84c"
    },
    "reasons": [
      "runtime=185>50"
    ]
  },
  "pregate": "requires-remote cleared @4882dead40e5 (1 checks, current for 30abe158c840)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41204574248",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41204574248",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41204574204",
    "pregate.json/remote_gate: remote-gate tree=4882dead40e5 tests=24319"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/TESTING_INTERNALS.md, docs/troubleshooting.md, eval-plan/SKILL.md.tmpl, lib/result-codes-eval.ts and changelog.d/no-gstack-arm.md match the shipped behavior; the EVAL_ARM_DUPLICATE wording names a repeated identity and does not yet mention identities that share one ledger attempt name (noted)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 6,
    "fixed": 3,
    "scope": "frozen",
    "fix_checks": 1,
    "est_input_tokens": 52163,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1,
      "targeted": 1,
      "fix-check": 1
    }
  },
  "review_targeted": {
    "classes": [
      "money",
      "gate"
    ],
    "rules": "baeb8f7ef7da92d0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "c5b701ecf3a078e5587af3f7505ae2a90767b7e6",
    "status": "done",
    "findings": 1,
    "raised_by": "targeted"
  }
}

Garry, 2026-10-31: "all of our head to head tests have to test no gstack from here so that that case is tested obviously Do it for science". This puts that rule into /eval-plan preregistration and writes it down as policy.

What changed

docs/TESTING_INTERNALS.md No-gstack arm, before and after: the section is new; every loaded comparison adds a plain-prompt arm on the same model

docs/TESTING_INTERNALS.md, No-gstack arm: before, a head-to-head eval could compare gstack variants with no plain-prompt control; after, every loaded comparison must add a no-gstack arm on the same model and report it beside the variants.

A required ## Comparison section. Every preregistration now says stack: loaded when any arm loads gstack or another skill stack (review variants, preamble loadouts, skill diets, a model panel under a stack), or stack: none with a why: line. A missing stack: line, an unknown value, or none without why: fails PREREG_INCOMPLETE. Multi-line <!-- --> guidance no longer counts as section content.

The no-gstack arm. A loaded comparison needs ## No-gstack arm with arms:, inputs:, prompt:, panel: and report:, and one <model>#no-gstack line under Arms for every model in the comparison. Matching is on whole arm identities, so claude-opus-5#no-gstack does not cover claude-opus-5-5, and a mention in prose does not count. Anything missing fails PREREG_NO_GSTACK_ARM (exit 1), printed after PREREG_INCOMPLETE when both apply.

Arm identities. Arms are <model>[#<loadout>], priced by the model in arms, dry-run and pilot start. Model rules in .gstack/eval-models.json are checked against the model, so a deny still refuses <model>#<loadout> and an exact allow accepts <model>#no-gstack. The pilot gives each identity its own attempt ids (pilot-claude-opus-5-5.no-gstack-1) and refuses, with EVAL_ARM_DUPLICATE and before anything is reserved, a repeated identity or two identities that would share one ledger attempt name.

Policy. docs/TESTING_INTERNALS.md gains a "No-gstack arm" section: the rule and its source, the scope, how the arm is built (same model, inputs, tools, panel, judge and blinding labels; a plain prompt with no skill text), reporting it beside the variants, and arm-benchmark's without-skill arm as the closest existing control with its three gaps. eval-plan/SKILL.md.tmpl and docs/troubleshooting.md say the same.

Result codes. lib/result-codes.ts sits at the 800-line ratchet cap, so the preregistration rows move to a new lib/result-codes-eval.ts (spread into RESULT_CODES like the release, capy and budget files) beside the two new codes.

Existing paid cases are not changed here; an audit of them is filed separately.

Fixed by /ship

  • Model rules now see the model, not the arm identity (bin/gstack-eval-plan lintModels). The rules were matched against the whole <model>#<loadout> string, so under an allow glob a denied model passed with any loadout suffix, and an exact allow list or a families map refused every #no-gstack arm. Each use is now linted as armModel(id), with the full identity kept in the where= text, for arms, dry-run, pilot start and price-gate.
  • Arms that would share a ledger attempt are refused (lib/eval-plan.ts startPilot). The duplicate check compared raw identities, but attempt names are sanitized, so m#a/b and m#a_b (or gpt-6#1-sol and gpt-6.1-sol) shared one reservation and the second arm's spend escaped --cap. Duplicates are now found on the same key the attempt name is built from.
  • changelog.d/no-gstack-arm.md carries the CHANGELOG entry; the merge step assigns the version.

Before and after

The same preregistration (two review variants on one model, stack: loaded, no no-gstack arm):

--- before (main 12dc6782c)
PREREG: ok present=5/5 file=../demo.md
exit=0
--- after (this branch)
PREREG: incomplete present=6/6 stack=loaded no_gstack_arm=missing file=demo.md
gstack-eval-plan prereg: the Comparison says stack: loaded and the No-gstack arm section is missing, … (no-gstack arm: missing section); fix: add `## No-gstack arm` with arms:, inputs:, prompt:, panel: and report:, … (PREREG_NO_GSTACK_ARM)
exit=1

Why

Garry wants every head-to-head eval to show how the plain model does next to the gstack variants, because a variant that beats another variant can still lose to no gstack at all. Putting the rule in the preregistration check makes it hold before any money is spent, instead of relying on each author to remember it.

Blast radius

Only /eval-plan: gstack-eval-plan prereg --check (a new required section, so earlier preregistrations now fail until they add ## Comparison), arm parsing and pricing in arms, dry-run and pilot start, the model-rules lint on those commands and price-gate, and two new result codes in lib/result-codes-eval.ts. bin/gstack-doctor-components.sh and scripts/pr-dependencies.ts only gain the new result-code file in their lists. No paid case, eval runner or CI workflow changes.

Approvals

Plan: eng-only /autoplan run nogstack-autoplan-20261031124334 (gate_rev 4). GStack Minder dispatched /ship; no approval row is recorded on this branch.

Summary

One lane commit, 465c86b, then one /ship commit: 30abe15 fixes the two floor findings with failing-first tests.

Test Coverage

  • test/eval-plan-no-gstack-arm.test.ts (new): the Comparison declaration, the No-gstack arm section and its fields, whole-identity matching, arm tables, pricing <model>#no-gstack by its model, distinct pilot attempts for a variant and its no-gstack arm, and refusals for a repeated identity. Added by /ship: two identities that share one ledger attempt name are refused before anything is reserved. It failed on 465c86b.
  • test/eval-models.test.ts, added by /ship: in a fixture repository with reviewed rules, gstack-eval-plan arms lints claude-opus-5-5#no-gstack as claude-opus-5-5 (ok) and gpt-5.4-mini#no-gstack as gpt-5.4-mini (denied), and an exact allow list accepts the no-gstack arm. It failed on 465c86b.
  • test/pricing-eval-plan.test.ts and test/eval-plan-prereg-diagnostics.test.ts: the filled template and diagnostics fixtures gained a valid Comparison section and now expect present=6/6; no assertion was weakened.

Pre-Landing Review

The review ran at full depth: pass 1's plan, against the merge base, tagged the bin/gstack-doctor-components.sh hunks as gate code, and the targeted money and gate reader covered lib/eval-plan.ts. Against current origin/main the receipt classifies the diff as code at standard depth, which the full review covers. On 465c86b: a batched specialist pass (testing, security, API contract, state machines), a red-team pass and the targeted reader on Claude Opus 5.5, a native adversarial pass on Claude Opus 5.5, and a cross-family outside voice on GPT-6.1 Sol. The security specialist, the adversarial pass and the outside voice found the model-rules bypass; the targeted reader, the adversarial pass and the outside voice found the shared ledger attempt. Both were fixed in 30abe15. One fix-check reviewer on 30abe15 returned no findings, and the targeted reader reran at that head.

Review notes

Informational, not fixed here:

  • The duplicate refusal prints a reserved status (bin/gstack-eval-plan:172): startPilot returns a record with EVAL_ARM_DUPLICATE, so the CLI prints PILOT: status=reserved reserved=0 and exits with the fail code instead of the refused code. Nothing is reserved.
  • stack: none is never checked against the Arms (lib/eval-plan.ts:106): arms with skill loadouts pass under stack: none with any why: line, and stack: Loaded is refused as an unknown value.
  • Every line under ## Arms counts as an arm (lib/eval-plan.ts:77): a prose line or a blinded-label table makes the check ask for a no-gstack arm for a word like All or A. It fails closed.
  • pilot start never reads the preregistration (bin/gstack-eval-plan:169): the rule holds only when the agent runs prereg --check and copies every arm into --arms.
  • PILOT_ATTEMPT hands the runner the raw identity (bin/gstack-eval-plan:173): nothing tells the project's runner to call the provider with armModel(id) and to drop skill text for the no-gstack loadout.
  • Earlier preregistrations now fail (lib/eval-plan.ts:26): one frozen before this change needs a dated ## Comparison amendment; the changelog fragment and troubleshooting entry don't say so.

Documentation

docs/TESTING_INTERNALS.md (No-gstack arm), docs/troubleshooting.md (PREREG_NO_GSTACK_ARM, EVAL_ARM_DUPLICATE), eval-plan/SKILL.md.tmpl and lib/result-codes-eval.ts are updated in the PR. The EVAL_ARM_DUPLICATE text names a repeated identity and does not yet mention identities that share one attempt name.

Test plan

  • bun run typecheck clean; bun run typecheck:test none new; bun run gen:skill-docs leaves the tree unchanged
  • Focused at 30abe15: the changed test files plus the module-size, bun-entry-isolation and spawnSync-timeout guards, no failures
  • Remote pregate at 30abe15 (tree 4882dead40e5, run 20261031T131316Z-303036-9b14), no failures, Ubicloud VM destroyed (left=0)
  • Free Tests (run 41204574248, including the macOS named-regression and cso-macos-launcher jobs) and Windows Free Tests (run 41204574204) green at 30abe15; all three pregate lanes cleared, gstack-pregate verify ok

Open in Capy

…istration

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

trunk-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits October 31, 2026 13:11
… a ledger attempt

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title feat(eval-plan): require a no-gstack arm in every head-to-head preregistration v1.91.373.0 feat(eval-plan): require a no-gstack arm in every head-to-head preregistration Oct 31, 2026
@capy-ai
capy-ai Bot merged commit 0cd2b4a into main Oct 31, 2026
63 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