Repository navigation
Add a harness and preregistration that test gstack's engineering plan review on real bug fixes - #346
Conversation
…son codes and the ep command Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…uild-read prereg Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…on gstack main 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>
…it checked by file digests Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…l, a run id and per-cell mounts Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… the readout, the judge and power.py Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t region finder Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ions for planted units Planted units (GEVA-537 plan sections 2 and 13) need: Go's image from go.mod's toolchain line or the newest Go, Rust's cargo registry on screen volumes, rule 1's functional set, rule 2's crash class, the frozen grading sandbox passed to the verifier, ISC and 0BSD licences, a keyless statement note, and extra functional test files. Every option is off by default, so existing callers keep their behaviour. The leak needles now reach git grep through a patterns file (ported from eb525-lane-fixes at 1ee2704), which only changes how they are passed. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…checks, grading and supply gstack-evals ep search, mine, construct, screen, recount and supply take the frozen manifest to a supply count in the frozen grading sandbox. The PlantedGrader seam grades a tree's planted and functional cases and a build's catch. Dry-run cases and keyless tests cover each frozen rule; the Docker cases need GSTACK_EVALS_DOCKER=1. 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>
…restore pin, the builds, the ledger gate and the ep commands Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s' into eng-review-planted-units
…ng-review-planted-units-stages
… and test the stages end to end on stubs 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>
…, and check a planted base with the merge's tests laid over it eng-build's grading never gives crash, so its results do not change. The planted screen runs the merge's own test changes on base, and the planted unit build drops its base no-result check, which rule 1's base grid already covers. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ct' into eng-review-planted-units
… reads, clean up root-owned files Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… into eng-review-planted-units
… records, sandbox patches Adds the Gemini 4 Carbon meter route and price row, wires the build stage's grader to the construct part's planted grader, lets the readings gates write the step records the stages part reads, renames the readings short-supply command to admitted, adds the restore pin's preamble digest, and applies the writable-sandbox and verifier-frame patches the supply probe needed. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… read, under random labels ep units writes each clean unit's folder (ep-unit.json, ep-author.json, ep-note.md beside eb.json) and its base tree as a one-commit repository, and keeps the label map outside the repository for custody. ep search now keeps its full result pool with a digest, and --extend draws the next repositories of an earlier run in the same seeded order. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he built harness in the preregistration Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…'s outputs, not from the slash command's expansion Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n elsewhere The body check no longer drops a unit because more than 10% of its removed lines appear somewhere outside the stubbed region. On real repositories that share came from boilerplate lines in sibling functions, not from copies of the body. A run of 3 removed lines laid out as in the body, or on one line as in a bundle or source map, still drops the unit. 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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The screen now writes the drop record, the run output, the per-case grids and any leak hits for each candidate into that folder, so a drop can be audited later. Outcomes do not change, and with the variable unset nothing is written. 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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ule 2 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
With EP_EVIDENCE set, each grading run's output files are kept per unit, under recount-out for a recount and tree-out otherwise. Outcomes do not change. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A rebuilt unit keeps the label its candidate already has in the label map, so a rebuild can be compared with the sealed copy. New candidates still get labels from random bytes. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…me limit ep screen --minutes N stops a candidate's screen after N minutes and records it as screen:timeout on the next start, with its drop record kept as evidence. Without the flag nothing changes. 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>
…e, label reuse and the screen wall-time limit
…tent digests Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…pository mix in the planted-unit prereg Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The planted grader now reads the session's final.patch instead of treating the output folder as a tree. ep records writes every screened unit's hinted outcome and the admitted count, the pilot needs both, and its power input carries the unforeseeable share rather than a count; power.py refuses a share outside [0, 1). The judge's bundle set takes each arm's first review in run order. A passing raise read prints that admission stays blocked until the raise's authoring and draw are built, and the prereg says so. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he tests that read them Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lls whose grading fails The real-outcome vrun.py goes back to the copy sealed real-outcome tasks were built with, so readTask accepts them again. Planted-unit and eng-build restore sets now take their vrun.py from vrun-where.py, which adds each failure's innermost frame. A build cell whose grading throws after its paid session now carries that spend on the error, and the item gate settles it before the error stops the stage, so the admission, re-projection and all-in stops see every dollar spent. Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merge note: Capy's automatic review couldn't run on this PR's last heads (a3c9293, 30493c5 and 363be0e). The review service returned |
What changed
Adds
gstack-evals ep, a harness that turns real merged bug fixes from open-source repos into review-then-build tasks, plus the preregistration for the third measurement of gstack's engineering plan review (/plan-eng-review, alone and inside/autoplan).Nothing here spends money. Paid stages refuse to run until this merges and a cap is recorded for each line item.
Why
Attempt 2 stopped because it ran out of suitable tasks. This attempt plants the real bug back into real code, then scores what ships without a judge. Does the code pass the real fix's tests, and do its own tests catch the real bug?
Blast radius
Blast radius
Outside the new lane, the change touches the product-value meter's routes, the real-outcome verifier and the eng-build screen and unit builder. Existing callers see no change. The real-outcome vrun.py matches main byte for byte and a test pins its digest (tests/real/task.test.ts), and the drop evidence is written only when
EP_EVIDENCEnames a folder. CI runs the full keyless suite on the branch.What the harness does
ep digestschecks a unit rebuilt from its public repo against the digests sealed when it was screened.power.py.gstack-evals ep dryrundrives every frozen rule without keys. The Docker cases needGSTACK_EVALS_DOCKER=1.The preregistration
wiki/plans/2026-11-15-geva-537-eng-review-planted-units-prereg/supersedes the 2026-11-11 build-read prereg. It freezes:It also records the full keyless supply read: 131 usable units from 953 repos searched (Go 68, Python 35, Node 24, Rust 4), the drops by check and by the training-cutoff filter, and how units are kept in custody as recipes plus digests.
Both skill arms pin gstack at the restore commit 8837fda39 (garrytan/gstack#4375).
Changes outside the new lane
vrun.pyitself stays byte-identical to main, so tasks built before this change still pass their copy check; the version that records the frame is a separate file,vrun-where.py, which only eng-build restore sets copy in.EP_EVIDENCEnames a folder and never changes an outcome.epcommand row and theE_EP_reason codes.Agent notes
Approvals
Approved: yes (record r-9571b8f694f0). The full approval record stays private.
Plan: approved (record r-a640e0386a4b)
Plan check: approved (record r-a640e0386a4b)
Pre-Landing Review
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=2 fixed=3 scope=frozen ledgers_read=4 dispatches=4 est_input_tokens=425262
Gate edits: none detected (40 listed, 10 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: clean (second-model review on openai/gpt-6.1-sol)
Findings and dispositions:
lanes/real-outcome/task/verifier/vrun.py:62: the changed vrun.py made readTask (format.ts:288) refuse every real-outcome task built before this PR, sealed ones included. Fixed in 363be0e: vrun.py is main's copy again, a test pins its digest, and the frame-recording runner moved to vrun-where.py.lanes/eng-planted/stages/ledger.ts:303: runGated aborted when grading failed after a paid session, so that spend never reached the item gate's journal. Fixed in 363be0e: the build stage attaches the spend to the error and runGated settles it, with tests in gate.test.ts and build.test.ts.lanes/real-outcome/task/verify.ts:261: the writable sandbox and thewherefield had no keyless test. Fixed in 363be0e (recipes.test.ts and unit.test.ts).lanes/eng-planted/stages/ledger.ts:305: a cell whose grading failed settles a journal line but writes no record, so a resume runs it again and reprojection() counts two sessions for one cell, which understates the re-projection stop by one session mean per such cell. The hard cap in admit() still binds on settled dollars.lanes/eng-planted/stages/build.ts:227: the spend is attached by mutating the thrown value, so a non-object throw or a frozen error loses it. Investigate only: a shared error instance across cells could settle twice; no such path exists today.lanes/eng-build/unit.ts:183: an eng-build restore set built from main before this PR carries main's vrun.py, and nothing checks it against vrun-where.py, so its failures read with no frame.lanes/eng-planted/stages/ledger.ts:311: a re-projection stop thrown while settling a failed cell is reported as the grading error; the gate still stops new cells.lanes/eng-planted/stages/e2e.ts:153: the end-to-end path calls the build outside runGated, so a thrown spend there is not counted, as before this change.lanes/eng-planted/stages/commands.ts:125: meterLauncher throws on a non-200 status or an empty text without passing on the metered cost, so gatedJudge and gatedCall abort and the item gate's journal records nothing for a call the meter may have billed. The ledger lease still caps real spend.lanes/eng-planted/stages/pipeline.ts:358: in the review stage, a throw from reviewMount or erExposure after the session's cost is known reaches runGated with no spend attached, so the gate records nothing for that review. The ledger lease still caps real spend.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lanes/eng-planted/stages/ledger.ts:312a settled failed attempt counts against the kind's planned sessions in reprojection() and toward haltAfterSessions, so the early re-projection stop can fire one mean session late per failed cell; admission still holdslanes/eng-build/launch.ts:318the launcher's cap stops (buildStop, reviewEnd, finishTrial rethrows) carry no spentUsd, so a cap-stopped attempt's spend never reaches the item gate's journal; the ledger lease still meters the real spendExploratory QA
Functional smoke on the CLI and the two review findings, run without keys:
bin/gstack-evals ep ledgerprinted the program and item init lines (capture 001).Issues
Refs p1/red-team#1
Refs p1/specialist-batched#1
Refs p1/specialist-batched#2
Documentation
Status: current. No documentation edits were needed.
Scope: branch eng-review-planted-units against base 18eada5, 118 committed files with no staged, unstaged or new content. The authored docs in scope were the new lane READMEs (lanes/eng-planted/README.md, lanes/eng-planted/readings/README.md), the status-only change to the GEVA-522 preregistration post, the root README and docs/all-results.md. The prompts, generic lists, stock review and GEVA-537 preregistration post are frozen inputs and were audited only.
Documentation health
Coverage debt: the lane README does not list the construct and stages subcommands (ledger, preflight, author, smoke, reviews, builds, records, judge, lost, digests).
gstack-evals ep --helplists them. Diagram drift: none, since the docs have no diagrams.Test plan
Tests ran: test 537
Tests ran: typecheck 1
Tests ran: errors 1
Tests ran: wiki 1