Repository navigation
v1.91.373.0 feat(eval-plan): require a no-gstack arm in every head-to-head preregistration - #3690
Merged
Merged
Conversation
…istration Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… a ledger attempt Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-planpreregistration and writes it down as policy.What changed
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
## Comparisonsection. Every preregistration now saysstack: loadedwhen any arm loads gstack or another skill stack (review variants, preamble loadouts, skill diets, a model panel under a stack), orstack: nonewith awhy:line. A missingstack:line, an unknown value, ornonewithoutwhy:failsPREREG_INCOMPLETE. Multi-line<!-- -->guidance no longer counts as section content.The no-gstack arm. A loaded comparison needs
## No-gstack armwitharms:,inputs:,prompt:,panel:andreport:, and one<model>#no-gstackline under Arms for every model in the comparison. Matching is on whole arm identities, soclaude-opus-5#no-gstackdoes not coverclaude-opus-5-5, and a mention in prose does not count. Anything missing failsPREREG_NO_GSTACK_ARM(exit 1), printed afterPREREG_INCOMPLETEwhen both apply.Arm identities. Arms are
<model>[#<loadout>], priced by the model inarms,dry-runandpilot start. Model rules in.gstack/eval-models.jsonare 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, withEVAL_ARM_DUPLICATEand before anything is reserved, a repeated identity or two identities that would share one ledger attempt name.Policy.
docs/TESTING_INTERNALS.mdgains 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'swithout-skillarm as the closest existing control with its three gaps.eval-plan/SKILL.md.tmplanddocs/troubleshooting.mdsay the same.Result codes.
lib/result-codes.tssits at the 800-line ratchet cap, so the preregistration rows move to a newlib/result-codes-eval.ts(spread intoRESULT_CODESlike 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
bin/gstack-eval-planlintModels). 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-gstackarm. Each use is now linted asarmModel(id), with the full identity kept in thewhere=text, forarms,dry-run,pilot startandprice-gate.lib/eval-plan.tsstartPilot). The duplicate check compared raw identities, but attempt names are sanitized, som#a/bandm#a_b(orgpt-6#1-solandgpt-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.Before and after
The same preregistration (two review variants on one model,
stack: loaded, no no-gstack arm):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 inarms,dry-runandpilot start, the model-rules lint on those commands andprice-gate, and two new result codes inlib/result-codes-eval.ts.bin/gstack-doctor-components.shandscripts/pr-dependencies.tsonly 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-gstackby 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 armslintsclaude-opus-5-5#no-gstackasclaude-opus-5-5(ok) andgpt-5.4-mini#no-gstackasgpt-5.4-mini(denied), and an exact allow list accepts the no-gstack arm. It failed on 465c86b.test/pricing-eval-plan.test.tsandtest/eval-plan-prereg-diagnostics.test.ts: the filled template and diagnostics fixtures gained a valid Comparison section and now expectpresent=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.shhunks as gate code, and the targeted money and gate reader coveredlib/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:
bin/gstack-eval-plan:172):startPilotreturns a record withEVAL_ARM_DUPLICATE, so the CLI printsPILOT: status=reserved reserved=0and exits with the fail code instead of the refused code. Nothing is reserved.stack: noneis never checked against the Arms (lib/eval-plan.ts:106): arms with skill loadouts pass understack: nonewith anywhy:line, andstack: Loadedis refused as an unknown value.## Armscounts 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 likeAllorA. It fails closed.pilot startnever reads the preregistration (bin/gstack-eval-plan:169): the rule holds only when the agent runsprereg --checkand copies every arm into--arms.PILOT_ATTEMPThands the runner the raw identity (bin/gstack-eval-plan:173): nothing tells the project's runner to call the provider witharmModel(id)and to drop skill text for the no-gstack loadout.lib/eval-plan.ts:26): one frozen before this change needs a dated## Comparisonamendment; 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.tmplandlib/result-codes-eval.tsare updated in the PR. TheEVAL_ARM_DUPLICATEtext names a repeated identity and does not yet mention identities that share one attempt name.Test plan
bun run typecheckclean;bun run typecheck:testnone new;bun run gen:skill-docsleaves the tree unchangedleft=0)gstack-pregate verifyok