Repository navigation
Harness mechanics eval and results: a stop rule as hook or prose, best-of-2 at equal spend, and Jev behind a judgment hook - #300
Merged
Conversation
… a launcher profile on L1 host and part machinery, the session table, stubs for scoring and the report, and the dry run Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…hecker at the pin Vendor gstack's skill contract checker and its imports byte for byte from ba2289e1 (blob shas in pins.ts, NOTICE row), run match.txt's 72 cases and probes.txt's 189 probes through checkContract under Bun and through the same transform under Node, print the built-in classifier's wrong count, time the timing cases, and check that the Stop hook calls checkContract once with no loadLine. Fill the dry-run steps 3-matcher-probes, matcher-72, probes-189 and stop-hook-loadline, which need HM_GSTACK, and add E_HM_PIN. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e patterns per arm, with 50 fixture transcripts, 20 endings and 20 picker replies Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…to H3 with their R48 end states and Why-null fields, H1 pre-data reporting amendment, the report and admission commands, and 26 known-answer tables in the dry run Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…rm build mode, arm config and hook checks, the snapshot strip, and dry-run steps 1, 2 and the env part of 7 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ntracts, patch every installed /verify copy after setup in the hook arm, record the copies in its manifest, and strip auto-loaded instruction files from the snapshot in the hooks agent before arm setup Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… new grid.ts agent option that reaches the job kwargs and the run record, and record HARBOR_TELEMETRY=0 in hm.json, since the pinned Harbor job config has no field for its own process env Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cs-eval Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # tests/cli.test.ts
…steps 1 and 2 Seven keyless sessions drive the none, prose and hook tars through the agent's own setup, strip and teardown against a stub model: the hook blocks an edit-then-stop once and then allows it, prose blocks nothing, a waiver and a final STATUS: BLOCKED each let a stop through, a reread of verify/SKILL.md passes the hook and scores non-adherent, the /verify prompt gives one counted load, routing stays off, and a hostile CLAUDE.md, AGENTS.md and .claude/ reach no arm. The in-image checks run as code, the captures are cut to fixtures, and the scorer now counts the lite render's /verify body. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and C1 launch guard before host-up, launch and relaunch, reserve mechanics and the infrastructure rerun through the real ledger in dry-run steps 6-ledger, leases-per-item and reserve-mechanics, and the task-fit screen with its VM shape Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Section 13 ships the diff at session end whatever stopped the session. An allowance stop, a turn-limit stop or a model error after a response now scores by the verifier reward. A session with no verifier reward is a verifier infrastructure error that reruns once, then counts as missing. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ot moves to a LanebHooksOptions model on LanebHooksAgent Dry-run steps 1 and 2 check Docker first and name it when it is missing. The analyze tests that call power.py get a 60 s timeout for slow CI runners. vm-run.sh puts HARBOR_TELEMETRY=0 before the trial order variable so the Lane B order test sees the command it pins. 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> # Conflicts: # NOTICE.md
…re origin in every hm arm's task image, gstack-checks trust before each gstack-arm session, the same steps in the task-fit screen with a detect resume cache, and dry-run step d1-checks Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lines after the runtime copy at a pinned sha256, L1's profile passes them, and the checks_trust arm option makes LanebHooksAgent run gstack-checks trust after the arm extract Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r every lane code, so the skill-eval docs check no longer expects them in docs/skill-eval.md Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…sks from repositories not tried yet until two pass or four are tried, with each task's selected count and CHECK lines and a fit line for TOO_BROAD or ENV Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…o 300 test files, counted before any test runs, and prints a fit line when the first module by name selects more Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…gin step a no-context detect means the lane file's RUN or PATH did not reach the container Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…with kappa, seeded splits by task, the Jev cascade's band tuned on dev and frozen, the held report per point and backend, and the admission result the report reads as h3_admission, behind one client interface the judgment backends plug into; hm replay commands, dry-run step 10-replay with fakes and one lease on a temporary ledger, and E_HM_REPLAY Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… mechanics README's pieces Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…with its build command in the README Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…vations and the batch's calls at the dearest call stay at or under the $90 lease, with the plan's per-call estimate times 1.5 before any call settles Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…, shared) on each screened task with no network, selection counts, every CHECK line and a base-commit pytest rerun when tests read FAIL, resumable fit.jsonl and a per-repository and per-split fit.md; E_HM_FIT Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…cs-eval Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # src/cli.ts # tests/cli.test.ts
… run it with --color=no Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
leak.ts reuses the decision-routing custody: taskCustody plants a task's canary and builds its runner-only markers with markers.ts, custodyBind puts them on a slot of the decision-routing metering proxy (unchanged, DR_ALLOWANCE_STOP), and journalCheck fails a run whose journal holds a DR_CUSTODY_HIT refusal and counts marker hits. Dry-run step 7 now runs the leak half through a fake upstream. picker.ts is section 7's picker: the other frontier family picks, a coin seeded by HM.seed and the task id sets the order, each diff is cut at 40,000 characters with cuts counted, an empty diff loses to a non-empty one, and pickShip reads the reply. Each call reserves its worst case on the item's Lane B ledger and settles at its metered cost. pickerColumns fills bo2_pass, picker_parsed and picker_cost_usd on none rows. hm pick runs it on the awake host. New codes E_HM_PICKER and E_HM_CUSTODY. The skeleton test now expects step 7 to pass with the leak scan built. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he judge columns Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ar build Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…step Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The harness-mechanics eval can now run its two judge arms (jev and p1). When a batch includes a judge arm, the launcher starts a second metering proxy on the run VM that charges the judge model's calls to the same spending ledger as the agent, and the run agent binds a per-session judge slot and passes the proxy details into the task container. Batches with no judge arm, and the whole L1 eval, are unchanged: nothing judge-related is written or started for them. This is the last piece of Stage 3 infrastructure; the judge arms were listed as "Not built" in the lane's README. Agent notes: - Backend-gated and additive. A judge arm sets backend=jev|p1 in grid.ts, which emits judge_backend in job.json; everything judge keys off that, so non-judge arms and L1 stay byte-identical (job.json env, launch specs). - The only seam into the pinned Lane B agent is an override of run() in LanebHooksAgent (laneb_hooks.py); laneb_agent.py is untouched and its sha256 pin in tests/real-outcome/arms.test.ts still holds. - The judge proxy is a self-contained bundle prepare-run.ts drops in the run dir, so the VM needs no src/ checkout to run it. - launch.sh adds TYPESAFE_API_KEY to the VM key file for the jev decider; p1 rides the existing OPENROUTER key. - Not done here: the .gstack lane lines for the new test files, /ship, and a paid dry run to prove the VM launch end to end. No paid model call was made. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The live judge arms now bind the metering proxy with each calibration task's own canary and hidden-test markers, built on the host before any part VM starts, so a judge decider that echoes a held-out marker is refused and the session fails its post-run check. The judge agent resolves custody per task at run time from a markers directory, so one agent config serves a whole rectangle of tasks. This fills in the Stage 3 judge pilot path the eval needs. Non-judge arms and the whole L1 eval stay byte-identical: the markers directory and the judge backend are emitted only for judge arms, and a host still writes only the item model's route key to its part VMs (Amendment E unchanged). launch.sh and l1.ts return to their pre-judge-key bytes. Agent notes: - judge-custody.ts (hm judge-custody) builds <work>/judge-markers/<task>.json at 0600 from each task's pristine listing; any listing failure raises DR_LABEL_MISSING and writes nothing, so custody is settled before host-up and a failure never costs a VM. The canary label store stays off the run-dir sync path. - laneb_hooks resolves <markers_dir>/<task>.json at run time (task from logs_dir.parent.parent.name) and keeps markers_file for the keyless tests. - vm-run.sh adds -u TYPESAFE_API_KEY so a judge proxy key can never reach Harbor or the task containers. - Two committed tests prove no provider key reaches a session container: one in agent_test.py (the session env and docker exec -e forward), one in vm-run.test.ts (Harbor's dumped env on a judge and a non-judge batch). - The host-side shipping of the judge proxy's keys (jev's TYPESAFE, p1's OPENROUTER) is held out of this commit for the Captain's call on Amendment E; it is saved as a patch under the run's work dir. - Pre-existing on this branch (fail identically at e2bd677, unrelated to this change): tests/autoplan-audit/dryrun.ts clause 57, tests/tbv/dryrun.ts frozen bundle, tests/tbv/rebuild.ts git archaeology. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ns can't use them (D9) Amendment E has host-up send the item model's route key alone to the host. The Stage 3 pilot is one Opus item with Opus, Sol and particle-1 parts, so under that rule its Sol and particle-1 sessions had no OpenRouter key, and no judge part had the keys its judge proxy needs. A plan that carries a judge arm now also ships TYPESAFE_API_KEY and OPENROUTER_API_KEY, through the same refuse-if-unset check and the same secrets file. L1 and the non-judge items are unchanged. A new test shows a session proxy opened for one model sends every request to that model's route with that route's key, whatever model or path the request names, even with other providers' keys in its env. The README records the deviation and describes the live judge wiring. Agent notes: GEVA-503. Captain ruling A, 2026-11-13 (judge-keys.patch sha256 e5d6b5a6). Applied the patch as built and added quick/laneb/tests/proxy-pin.test.ts, mutation-checked: routing the key by the requested model fails 2 of its 3 tests. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Judge arms now find their task in Harbor's trial config.json instead of the job name, and stop when the config or the judge journal is missing. Custody files are built by prepare-run for every judge batch, so a relaunch or attempt 2 part binds with its task's markers. hm judge-custody is now a check. Judge ledger rows carry the part's prefix. recover refuses a lost part that has judge arms and points to the hand-settlement steps in the README. A judge or picker call whose outcome is unknown settles at its reserve, marked unknown. hm judge-check reports per part, fails closed on missing sessions or hook logs, and splits measured spend from unknown spend. A custody hit after a judge session writes a STOP. Cap and allowance refusals are counted in the session summary. stage3-pilot starts with smoke-opus, one calibration task on both judge arms. Nothing launches after it on its own, and section 11, hm table and the report leave its sessions out. Review-Finding: p1/specialist-batched#2.1 reader=specialist-batched Review-Finding: p1/specialist-batched#2.2 reader=specialist-batched Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/red-team#3 reader=red-team Review-Finding: p1/red-team#4 reader=red-team Review-Finding: v1/adversarial-native#1 reader=adversarial-native Review-Finding: v1/adversarial-native#2 reader=adversarial-native Review-Finding: v1/adversarial-native#6 reader=adversarial-native Review-Finding: v1/outside-voice#1 reader=outside-voice Review-Finding: v1/outside-voice#2 reader=outside-voice Review-Finding: v1/outside-voice#3 reader=outside-voice Review-Finding: v1/outside-voice#4 reader=outside-voice Review-Finding: v1/outside-voice#5 reader=outside-voice Review-Finding: v1/outside-voice#6 reader=outside-voice Review-Finding: v1/targeted#1 reader=targeted Review-Finding: v1/targeted#2 reader=targeted Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The agent copied a judge session's hook log with `cat ... 2>/dev/null || true`, so a log the hook never wrote came out as an empty judge-hooks.jsonl, and hm judge-check read an empty log as a readable one. A smoke could then pass with hooks that never ran. The copy now fails when the log is missing: the failure lands in laneb-summary.json's teardown_errors and no judge-hooks.jsonl is written. judge-check counts a missing, unreadable or empty hook log as missing and fails the part. The new tests run the copy through a real shell, in both directions. Review-Finding: v2/targeted#1 reader=targeted Review-Finding: p2/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The launcher's C1 bound counts six parallel sessions at the item's $5 allowance, but the Sol part reserves $6 a session. With Sol's $6 in that term the bound reads $90.90, over the $90 cap. The Captain set the cap to $95, recorded as D10 before any Stage 3 spend. The item allowance and the launcher code are unchanged. The ledger caps now sum to $2,485, and to $2,885 with the crew's $400, inside the $3,000 line. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
In stage3-pilot's smoke, OpenRouter answered three particle-1 judge calls with HTTP 429 on all three of the judge proxy's attempts, so one of the 14 judgment calls failed open. vm-run.sh now starts the judge proxy with --retry-attempts 5. A run of 429s backs off 1, 2, 4 and 8 seconds, inside the hook's 30 second particle-1 limit, and a Retry-After header the provider sends still sets the wait. A refused judge reserve now writes the ledger's HTTP status and its own reason into the judge journal, so a reused id can be told from the cap. Every 409 is still a CAP_STOP; only the message changed. stage3-pilot closed at its smoke's spend. stage3-pilot-2 is a new item at $95 with the same plan, parts and holds under its own ledger prefix, so the ledger caps sum to $2,580, and to $2,980 with the crew's $400, inside the $3,000 line. The tests were written first and failed before the change. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The keyless dry run showed that five attempts do worse than four. After a call's last 429 the judge proxy pauses the provider for the next backoff step, and the decider's one retry waits out that pause. At five attempts the pause is 16 seconds, so the retry could only start at 31 seconds, past the hook's 30 second particle-1 limit: runs of five or more 429s timed out, and the late answer was paid and never read. At four attempts the pause is 8 seconds, so a judgment gets 8 attempts by about 22 seconds. Runs of 4, 5 and 7 429s are answered inside 30 seconds, and a run of 8 fails open on the proxy's 502 with nothing sent after it. The tests now go end to end through the hook's judge call, the decider's retry and the real proxy at vm-run.sh's attempt count. They failed at five attempts before the change. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tage3-pilot-3 (D12) Harbor's egress sidecar runs gost with HTTP sniffing on and no readTimeout, so gost closed any connection whose response headers took more than 15 seconds. The judge proxy answers only when its upstream call finishes, so in stage3-pilot-2's pilot-opus part every particle-1 answer slower than 15 seconds was cut, paid and never read, and 26 of 378 judgment calls failed open. vm-run.sh now sets the sidecar handler's readTimeout to 900 seconds in Harbor's installed gost.yaml before the image pulls. That matches the judge proxy's own upstream deadline and the value the decision-routing lane's vendored sidecar already uses. A gost.yaml that doesn't end up with exactly that line stops the run with exit 8 before any trial. On Harbor's real sidecar image, a 20 second non-streaming answer was cut at 15 seconds before the change; after it, 20 and 65 second answers came back and a 905 second one was cut at 900. stage3-pilot-2 closed at $11.98629. stage3-pilot-3 reruns its smoke and all three pilot parts on the fixed setup, with a cap carved from the rest of stage3-pilot's $95, so the ledger caps still sum to $2,580. Every batch that runs through vm-run.sh gets the new setting: L1's launcher, R3's launches and keyless checks, and direct launch.sh runs. The README's D12 entry lists them. The tests were written first and failed before the change. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…opping them (D13) In stage3-pilot-3, Ubicloud had no standard-16 capacity in eu-central-h1 for pilot-sol's part VM. ubi-runner waited 10 minutes, destroyed the VM and failed, and launch.sh exited 1. The item's ledger held only the part's VM block, so no trial started. The launcher read that ending as neither a loss nor a cap stop, so all 24 cells counted as infra: relaunch refused them, and the attempt 2 check would have left them missing. The launcher now records ubi-runner's "VM did not reach running" line from the part's controller log, and counts such a launch as a lost part VM (prereg section 6) only when launch.sh exited 1, nothing was pulled, no cap stop applies, the part is not itself a relaunch or an attempt 2, and the ledger holds no session or judge row for the part. Its one relaunch then runs every planned cell. A capacity failure on that relaunch is no loss, so the run holds for a ruling instead. l1.ts is L1's shared launcher, so every profile gets the branch. Only a part VM that never came up leaves the runner's line, so no finished run's reading changes. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d refuse any other judge tar at launch (D14) stage3-pilot-3 ran a judge tar built before the replay: a placeholder band and a done judgment that the replay read NOT BEATEN. hm_judge.py now reads the replay's admission.json beside band.json. A point the replay didn't admit logs not_admitted and calls no backend, so the Stop hook runs only gstack's contract hook, and a point with no band acts on Jev's answer at any probability. build.sh copies the replay's band.json and admission.json by sha256 and refuses any other file. host-up, launch and relaunch refuse a judge part whose tar.gz isn't the committed manifest's, or whose tar or manifest names another band, another admission or other admitted points (E_HM_JUDGE_BUILD, hm judge-tar). stage3-pilot-4 reruns the smoke and pilot at $94.387061 as its own item. The skeleton check counts a done item at its settled once its done row is in the ledger and still fails above the $3,000 line. Dry-run step 5's cases follow the new tar. gstack's setup no longer rebuilds prose and hook byte for byte, so build.sh hm-judge builds the judge tar alone from the pinned hook tar and decision-routing runtime, refusing either unless it is at its committed sha256, and rewrites only judge.json. The judge manifest is re-pinned in its own commit after the rebuild. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…mission (D14) build.sh hm-judge rebuilt the judge tar from the pinned hook tar and decision-routing runtime, on a VM and on GEVA-503's machine, with byte-identical results: judge.tar 0c1a5548, judge.tar.gz ba357452. The manifest now names the replay's band.json (ae18c668) and admission.json (d3f8ab05) and admits risky only. The none, prose and hook manifests are unchanged. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ce (D15) Section 11 passed on stage3-pilot-4, so Stage 4 runs. Before it spends: - Stage 4's caps move to the rates Stage 1 and the pilot measured: Opus $560, Sol $690 and particle-1 $310, each above the launch guard's projection at the planning rates. - Every Sol session in Stage 4 gets a $10 allowance through its own cells file. Sol's byte-based input bound ran 6.3x over real context and refused one pilot session at $3.44 spent under the $6 cap. Stage 1 and Stage 3 keep the allowances they ran at. - The crew's cap moves from $400 to $1,050, and the vms item is closed. The README's D15 entry records the reasons and the numbers. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…test The test plants four provider key names in the process env and checks that none of their values reaches a session env or the docker exec forward. Its stub values read as high-entropy secrets to gstack's pregate secrets scan, which blocked #300's ship receipt. They are now placeholder words, and the test checks the same thing. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Resolves tests/cli.test.ts: the PLANNED list keeps main's of, h2h and ask-replay and this branch's hm. docs/errors.md regenerated. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Section 13 counts a pytest summary line as a test outcome. The scorer's regex needed a word boundary before the count, so a summary pytest printed in colour, with an ANSI code just before the count, showed no outcome. The count may now follow an ANSI colour code; a line with 1m57 passed and no colour code still doesn't count. Deviation S4-2, made after the Stage 4 data. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…Jev on 200 SWE-rebench fixes The results post for the harness mechanics preregistration, with the printed reports as run at 3d5dcce and at this head, the replay report and plots, the descriptive counts and the scripts that made them. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot
added a commit
that referenced
this pull request
Nov 15, 2026
Gstack's /ship review no longer sends the recorded Claude Code sessions under `tests/harness-mechanics/fixtures/arms/` (transcripts, SDK logs, first-request captures and hook records) to its model reviewers. Why: those files are 568 KB of the harness mechanics results pull request (#300). Leaving them out takes its review input from 2.2 MB to about 1.65 MB, under the 2 MB gstack gives one reviewer, so that pull request can get its final full review. Nothing to do: reviewers still read the tests that replay these files, the secret and privacy scan before every push still reads the files, and the new pattern matches nothing on main until #300 lands. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Brings in the review_exclude_paths entry for tests/harness-mechanics/fixtures/arms/** (#353), so this branch's final review fits under gstack's 2 MB reviewer limit. No conflicts; this branch's own changes are unchanged.
…nal review The best-of-2 headline now compares best-of-2 with both single plain attempts: +2.0 points over the none arm but -0.3 over plain-2, with the +2.0 traced to Opus's low none arm. Sol's H1 end state is stated as CUT-CANDIDATE with its own interval and detectable difference. The Stage 4 spend line separates model spend from machines, and the scorer-fix count reads 169 of the 2,760 counted sessions. The recount patch and its printed lines are attached. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The README moves the hook-against-text test from what we're testing next to other research, with its results and its cut candidate on Sol. docs/all-results.md lists its three verdicts among the results waiting for their independent check and defines the two new verdict words. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
docs/all-results.md now describes the hook as the results post does: it blocks the agent's stop once when no test ran after the last edit. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot
added a commit
that referenced
this pull request
Nov 15, 2026
…ipt past the secret scan (#354) The secret scan that runs before merge now accepts one line in the harness mechanics results' published counting script: `key = (short.get(kw.get("upstream_model"), kw.get("upstream_model")), arm)`, a dict key tuple that the scanner reads as a secret-named assignment. Why: the harness mechanics results pull request (#300) publishes that script as it ran, so the line shouldn't be rewritten, and the scan can't be told a finding is harmless any other way. Nothing to do: the new allowlist row covers only that one file and is anchored at the flagged value, like the existing row for `laneb_agent.py`. The pattern matches nothing on main until #300 lands. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
Adds the harness mechanics eval (lanes/harness-mechanics) and its results post. On 200 SWE-rebench bug fixes with Opus 5.5, GPT-6.1 Sol and particle-1, gstack's Stop hook added nothing over /verify's prose: the models already ran a test after their last edit in 89% to 98% of sessions. A second plain attempt tied /verify at equal spend, and Jev ran a risky-command hook at 0.16 times particle-1's hook time with no measurable cost in passes.
It answers the preregistered questions that steer gstack's defaults: should a rule live in a hook or in prose, does /verify earn its spend, and is a fast decision model good enough behind a judgment hook.
Please merge with a merge commit, not a squash. Every paid stage ran from a commit on this branch (Stage 4 from 3d5dcce), and the run records point to those commits.
Results
The post is wiki/board/2026-11-15-geva-503-harness-mechanics-results.
The scorer fix in this PR
The section 13 scorer missed pytest summaries printed in colour, because its regex needed a word boundary just before the count, where the colour code puts a letter. Section 13 counts any pytest summary line, so the fix (lanes/harness-mechanics/score.ts, two regexes) lets the count follow an ANSI colour code. Tests in tests/harness-mechanics/score.test.ts check both ways: a coloured summary counts, and a line holding "1m57 passed" without a colour code does not. Both run tables rebuild from the raw trial dirs at this head, and the post shows the reading as run and the corrected reading side by side.
What else is in the branch
The eval build that every paid stage ran: the arms, the verify-hook patch, the judgment hooks and their logs, the picker, the scorer, the replay, the analysis, the launcher on the L1 host and part machinery, and the dry run. This head also merges main (the only conflict was the PLANNED command list in tests/cli.test.ts, which keeps main's of, h2h and ask-replay and this branch's hm).
Agent notes
Plan: exempt: crew:R40-post
Preregistration: wiki/plans/2026-11-09-geva-448-harness-mechanics-prereg (merged as d5def64).
gstack pin: ba2289e1cd9f2387d069b3b6c51b404d56c4a1e9 (v1.98.0.0).
Deviation S4-2 (the scorer fix) was ruled by the Captain on 2026-11-15 (A1, B1, C1). Run record: handoffs/GEVA-503/stage4-run-record.md in the Captain's drive.
The receipt below is the one /ship wrote at the final head. It replaces the receipt from 0b93c99.
Review
This was the read-only full review of the final head that R51 allows for a PR already past its round limit. There was no fix round. The Captain's corrections after it are listed under Approvals and the R12 acceptance.
Readers on 12b1e69: a batched specialist reader (testing, security, api-contract, state-machines), a Red Team reader, a native adversarial reader, a targeted reader for money, gate, auth and secret, all on Claude Opus 5.5 at high, and a second-model review on GPT-6.1 Sol at medium. The reviewer diff left out the recorded arm fixtures under main's review_exclude_paths (32 files, 554,679 bytes), so it was 1,652,774 bytes. Each later head got the one targeted read gstack named: afe2392, 609e071 and dbe86e4, all with no blocker.
The specialist reader's first attempt was set aside because repo tests it ran wrote large files under /tmp during its stage. Its rerun found nothing.
REVIEW_LOOP: passes=1 blocking_found=4 deferred=0 noted=8 fixed=2 scope=frozen
R12: Accepted by GSTA-2 2026-11-15 via GEVA-503: the results post's best-of-2 headline, Sol's end state and two figures were corrected after the final review to match a recount from the raw data with the report's own code; under R12 the correction clears the block with no new review round
Named docs risk for the targeted reads after the correction: the results post's best-of-2 headline, Sol's end state and two figures were corrected after the final review to match a recount from the raw data with the report's own code
Step 7 (test coverage audit, which may write tests) did not run. Accepted by GSTA-2 2026-11-15 via GEVA-503: R51 case for a PR already past its round limit: one read-only full review of the final head, with no fix round
Review notes
Fixed by the Captain's correction (afe2392):
Second-model review findings, ruled non-blocking by the Captain, each with the check that shows no published number changes:
These are item 16 in handoffs/GEVA-503/next-harness-notes.md in the Captain's drive.
Other notes (no number changes):
Documentation
Documentation exception: accepted by GSTA-2 2026-11-15 via GEVA-503: the only docs change after the last audit replaces the hook description in docs/all-results.md with the results post's own wording, that the hook blocks a stop once when no test ran after the last edit; gstack allows no further docs audit
The second docs audit read README.md, docs/all-results.md, NOTICE.md, quick/laneb/l1/README.md, lanes/harness-mechanics/README.md and the results post at 609e071. Its one blocker, the hook wording in docs/all-results.md, was fixed in dbe86e4.
Approvals