Skip to content

v1.91.127.0 fix(evals): paid-gate reliability round 2: docsync candidate protocol, scope-block detection, qa fix-loop budgets, lettered consent - #3260

Merged
capy-ai[bot] merged 40 commits into
mainfrom
capy/fw3-b
Oct 18, 2026
Merged

capy-ai[bot] merged 40 commits into
mainfrom
capy/fw3-b

Conversation

@garrytan

@garrytan garrytan commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Fix wave 3, W3: paid-gate reliability round 2 (plan: docs/designs/fix-wave-3-2026-10-17/PLAN.md, gate approved by Garry: "rec").

A 132-verdict PR gate was all-green only about 26% of the time. Every red verdict in PR gates since #3231 (21 reds in 17 runs, plus two forwarded from #3252) was diagnosed from its transcript and replayed through the real detector. Six were already fixed on main. This PR fixes the remaining causes where they start. No threshold, trial count, case kind or quarantine changes.

Fixes by cause

Fixture and detector defects

  • Docsync fault actor uses the production candidate protocol (38990111230; 79 of 198 docsync captures hit it). prepare wrote records the installed gstack-docs-candidate compare rejects, while ship/sections/documentation.md requires running compare. prepare, dispatch, inspect, prompts and the legacy re-audit now use the helper's schema and git blob hashes; prepare runs the installed snapshot under a 30 s timeout and returns the exact command. A failed snapshot exits with a stable reason (snapshot_exit|timeout|spawn_error|invalid_record), a redacted stderr excerpt and kept files, and allows one retry under a fresh audit id.
  • gstack-docs-candidate: snapshot --help / compare --help exit 0 before any side effect (the observer admits exactly those); the compare reject names the path, each bad field and a fix that never snapshots over a pre-audit baseline.
  • Shim-dom scan check resolves the command's own literal _REPORT=/_RUN= (38980005793 was a false red); 15/15 captured runs pass vs 14/15.
  • PTY dumps: stripAnsi strips \x1b[?25h/l (they blanked 38976253774's screen dump); sessions keep lastScreen() for timeout errors and the guard test's failure dump.

Skill and prompt defects

  • qa-callers prompt stops teaching helper syntax (38973329985, 38993076767 skipped the QA sections and ran a bare materialize); it binds the fixture paths and points to the section. The read requirement stays.
  • State-machine scope in the generated scope block (39002269281): the detector runs in the block, its output counts only on exit 0, and a failure yields SCOPE_STATE_MACHINE=unknown, which dispatches the specialist.
  • Lettered consent options when Aside is absent (39011101113): B/C/D.
  • Tier-1 reality rows are never n/a (39004466422 looped repairing deferred-asks n/a past its capture).
  • Exploratory stop rule ties to one probe per documented input rule of each field, breaking only that rule and satisfying every other (cli-report reds 38983306684, 39001107574, 39073934326).
  • Webhook fix runs: 12 captures with the post-repair reruns reserved first (the 7 invariant scenarios plus any distinct pre-repair command the verdict relies on); superseded captures are rerun before completion, never relabelled (39053431488 on v1.91.131.0 feat(pregate): Python import lanes (#3201) and a missing-dependencies regen diagnostic #3252). The required-probe reminder counts only captures after the last edit (GSTACK_QA_REQUIRED_AFTER_EDIT, set only by the fixture).

Model misses kept as negative controls: the docsync grep and cat …; cat … (38983306684, 38984977679) and the qa-functional cat pair (39006896632).

autoplan-guard-pty fixture actor (red on three unrelated heads, including #3258 and 38976253774): the haiku actor sometimes read the close packet in the dispatch turn, before the CEO reviewer's notice. Gates with byte-identical autoplan inputs passed and failed on that ordering alone. Step 5 now ends the turn after a background dispatch, step 6 reads the close packet only after the reviewer finishes, and the order check lives in closePacketReadAfterNotice, with both captured orders replayed in a free test.

Budgets: test/review-army-budget.test.ts nested --timeout 30000 (Windows hit Bun's 5 s hook default, run 39053431430), spawn 40 s, outer 45 s; test/autoplan-answer-invalidation.test.ts 30 s per test.

TODOS: the stale createQAFunctionalFixture entry is closed (fixed by 0bf9d50); qa-quick's timeout tail and nested-output attribution in the free runner are filed.

Gate edits

file old acceptance new acceptance negative controls
test/skill-e2e-design.test.ts (domScanOfRun) any Bash with gstack-design-detect.ts scan and dom/run1 anywhere a non---changed scan whose argument is exactly <REPORT_DIR>/dom/run1 after substituting that command's literal assignments --changed, run2, dom/run11, heredoc text, mkdir-only mention, non-literal assignments
test/skill-e2e-autoplan-guard-pty.test.ts:59 dump prints visibleText() also prints lastScreen() no verdict change
test/helpers/docsync-observer.ts helper --help only adds snapshot --help, compare --help, alone help with other args, -h, in-repo --out, composition
test/helpers/docsync-fault-eval.ts changed sha256 among selected_paths same rule on selected/hashes (git blob ids); a prepare snapshot failure is prepare-failed, not rejected reused failed id, dispatching it, a third prepare stay rejected (red)
test/fixtures/docsync-observer-commands.json 2 known_bad rows they are the controls
scripts/resolvers/review-army.ts scope block detector named in prose detector in the block; failure -> unknown -> specialist dispatched false-output/non-zero, empty/127, stderr-only, late failure
test/review-workflow-clarity.test.ts State Machines output (47f4543) output written to fixed .gstack/tmp/state-machines.md and checked there prose runs gstack-state-matrix outfile, writes the full output to the new file it prints and checks that path; the clarity test asserts that and rejects the fixed path test/state-matrix.test.ts: two calls give two distinct empty 0600 files in a 0700 .gstack/tmp, one info/exclude line, nothing in git status; outside git exits 2 with no path
test/qa-evidence.test.ts post-repair required probes (e6c1386) edit written right after capture 002 returned, mtime from the kernel clock same edit, mtime pinned to capture 002's recorded completedAt 002 asserted to start before that instant; 003/004 and the second-edit case unchanged
lib/qa-evidence.ts requiredRemaining counts every capture only with GSTACK_QA_REQUIRED_AFTER_EDIT, which only the fixture sets: counts only captures started after the last edit. materialize lists each remaining command as an open (required probe not run, lib/qa-evidence.ts:375), which makes the verdict inconclusive, so the filter can only add opens: stricter pre-repair-only nudges; second edit nudges again; the post-repair test pins the edit's mtime to capture 002's completion (e6c1386)
test/helpers/autoplan-guard-pty.ts notice-before-close-packet order asserted inline; actor prompt ended its turn only conditionally same assertion via closePacketReadAfterNotice; actor ends its turn after background dispatch and reads the packet after the reviewer finishes captured failing order (dc739be gate) stays red
test/helpers/third-party-actions.ts asideDownloadPitch (fixes the tpa-absent-darwin red in gate 39075977549; boundary narrowed in d44d805 after the /review delta) download it/Aside [(macOS 15+)] at aside.com only at a sentence, bullet or quote start short forms unchanged. The canonical download Aside (macOS 15+) at aside.com counts only at a recommendation boundary: a sentence, clause (, : ; dash), bullet, line or bold start, optionally led by then/please/just/so/first/now and you can/could/may/should/need to, with no negation directly before it (including across a line break). Quoted, parenthesised, reported and clause-negated mentions never count the captured red and the 4 captured Darwin passes count 1 each; 5 Linux + 5 READY captures and both recovery-public responses count 0; every probe from both /review voices (21 non-pitches: quoted policy, will not ask you to, won't say to, cannot, no need to, don't need to, do not↵download, …) counts 0; genuine forms such as If you don't have it, download … count 1; duplicates count 2. Residual, strict direction only: colon-introduced reported speech (would I say: download …) still counts, as before 0f71a55
test/helpers/qa-callers-fixture.ts caller binding (fixes the ship-exploratory-late-input red in gate 39077524802) Explicit plan probes outside the smoke budget may use --timeout-ms 10000 in place of the deadline; the actor read a post-late-input revalidation rerun of captures 001/002 as outside the budget Only an explicit plan check this phase requires may use --timeout-ms 10000 in place of the deadline; every other capture, including a rerun or revalidation of an earlier probe, uses the deadline verifier unchanged; free binding assertion in test/qa-exploratory-callers.test.ts; focused paid run fw3b-li2 passed (an earlier focused run fw3b-li1 was killed by machine sleep at 186 s, no verdict)
test/review-army-budget.test.ts, test/autoplan-answer-invalidation.test.ts 5/8/10 s 30/40/45 s asserted registrations unchanged

QA_WEBHOOK_REQUIRED_SCENARIOS, verdict rules, trials, kinds and quarantine are unchanged.

Behavior changes

  • /review and /ship dispatch the State Machines specialist when detection fails (unknown), and write its output to a new private file from gstack-state-matrix outfile (.gstack/tmp, 0700, kept out of git through info/exclude) instead of a fixed path.
  • Absent-Aside consent options are lettered B/C/D.
  • Plan-reality tier-1 rows are never n/a.
  • The QA exploratory stop rule requires one probe per documented input rule (uncovered rules at the 12-probe cap go to limits); fix loops rerun superseded captures before completion.
  • gstack-docs-candidate snapshot --help / compare --help exit 0; compare's reject text is new.
  • PTY wait-timeout errors gain a "Last non-blank screen" section; visibleText() no longer contains cursor show/hide escapes.

HARNESS_VERSION 4 -> 5 (behavioral): the PTY stripAnsi change can change pattern matches, so pass-rate series restart.

Size pins (CREW.md rule 11): all 31 changed pins go down against main. gstack-review on cursor, factory, kiro, opencode and slate ends 49 characters below main: the scope block's detector line added the env-var-host runtime prelude on those hosts, and 47f4543 moved the state-machines check inline, which removed a bash fence and its prelude. The other 26 (land-and-deploy, office-hours, plan-eng-review) go down 10-20.

Validation

Focused paid cases, one trial each, local, no retries: ship-docsync-stale-after, ship-docsync-missing-asset (both on the final part-1 head), design-review-detector-shim-dom; ship-exploratory-small-cli, ship-exploratory-plan-checks, qa-functional-webhook-fix, qa-functional-cli-report (final part-2 head), tpa-absent-linux, plan-mode-no-op (reused: their inputs did not change after that run): 9/9 pass. The 24 selected judges pass. Free: docsync 230/230; QA, caller, observer and fixture sets 468/468; qa-evidence and producer 108/108; parity, size guard, clarity, plan-reality, third-party-actions 79/79; typecheck clean; typecheck:test none new; regen fresh on the combined tree. The PR gate and the full suite run on this head.

Open in Capy

garrytan and others added 28 commits October 17, 2026 19:11
…of teaching helper forms (W3-4)

The caller session prompt taught full capture/checkpoint syntax but only
mentioned materialize, so two ship-exploratory-small-cli sessions (paid
gate runs 38973329985, 38993076767) skipped qa/sections/exploratory.md and
system-functional.md and guessed a bare materialize. The prompt now
declares only fixture bindings (DEADLINE_TOOL, EVIDENCE_TOOL, PROBE_DIR,
DEADLINE_FILE, --public approval, --timeout-ms 10000 for plan probes) and
points to the section for every form. The read requirement is unchanged;
both captured transcripts are kept as negative controls.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nd check its exit status (W3-5)

Specialist 9 named gstack-state-matrix detect only in selection prose, and
small diffs keep only State Machines, so agents ran an undeclared command
(paid gate run 39002269281). The generated scope block now runs the
detector with its exit status checked: on failure it keeps the detector's
diagnostics and sets SCOPE_STATE_MACHINE=unknown, and selection dispatches
State Machines when the signal is true or unknown. The check step becomes a
declared heredoc block. The clarity test requires every non-diff-scope
signal to come from a detect helper the scope block runs; a free test runs
the block against a failing detector stub; the captured standalone call
stays outside the caller interface.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…/D (W3-7)

The contract fixed letters only when Aside is detected, so a tpa-absent-linux
agent numbered its consent question 1/2/3 (paid run 39011101113), which the
lettered-offer inspection cannot read. The absent branch now offers
B) gstack's own visible browser, C) manual instructions, D) defer and omits
A). The paid test's assertion is unchanged; the captured numbered answer is
a documented fail example in the unit test.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The plan-review reality block offered pass|finding|n/a without saying tier 1
rows may never be n/a, so a plan-mode-no-op session wrote
`REALITY: deferred-asks n/a ...`, check returned repair, and the repair loop
ran past the 300 s capture (paid run 39004466422). The block now says tier
1 rows are never n/a and that with no linked issue deferred-asks is pass
with a receipt showing none. The captured line is pinned through check as
missing=deferred-asks verdict=repair.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t and rerun superseded captures (W3-6, W3-14)

W3-6: stage 2 of the fix-run prompt asked only for the original, happy,
cancel and dependency probes while verifyQANativeRegression reruns all
eight, so a status-only repair that left partial broken reached the verifier
(paid run 38986120559). The webhook fix prompt now states the capture budget
up front (at most 5 pre-repair captures, then the 7 post-repair scenarios:
duplicate, partial, concurrent-ab, concurrent-ba, happy, cancel, dependency;
12 in total; report incomplete if 5 cannot establish the defect). That list
feeds the capture nudge (GSTACK_QA_REQUIRED_PROBES);
QA_WEBHOOK_REQUIRED_SCENARIOS and the verdict are unchanged.

W3-14: the fix prompt now says to rerun every pre-repair capture the
verdict relies on after the final repair, and that a superseded row stays
open until its command reran on the repaired source (paid run 39053431488
labelled a pre-repair duplicate superseded and never reran it). The
detector and its negative test are unchanged; the captured shape joins them
as a negative control.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…runs close superseded captures (W3-9, W3-14)

W3-9: two qa-functional-cli-report sessions stopped at 5-7 of 12 probes
without probing a non-digit amount (paid runs 38983306684, 39001107574),
though system-functional.md requires one probe per documented input rule.
The single stop rule shared by both exploratory templates now says each
documented input rule needs its own probe breaking only that rule, and
rules left uncovered at a probe or time cap go in limits.

W3-14: for fix runs (not qa-only), every capture taken before a fix is
superseded even when its client prints no snapshot; before completion the
agent reruns each one its verdict relies on or reports it as an open
remainder. Production superseded/open semantics are unchanged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… denied negative controls (Q3)

Paid run 39006896632 (qa-functional-webhook-report) attempted
`cat package.json probe.ts .gitignore` and `cat src/*.ts test/*.ts`; the
PreToolUse hook denied both. This is a model miss, not a detector defect, so
both commands are pinned as denied by the registered hook and outside
qaCommandAllowed. No detector change.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…names the fix (W3-2)

snapshot --help and compare --help print the usage and exit 0 before any side
effect; the docsync observer admits exactly those two forms. compare names the
record path, each missing or wrong field (schema_version, base, hashes) and
the snapshot command that writes a valid record, keeping exit 1. The captured
ship-docsync-stale-after commands from PR gate run 38990111230 replay inside
the interface; help with any other argument stays rejected.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he installed snapshot (W3-1)

The fault actor prepare wrote its own {base_sha, content_hashes, ...} record,
which the installed gstack-docs-candidate compare rejects, while
ship/sections/documentation.md requires running compare; 79 of 198 docsync
captures (and the red in PR gate run 38990111230) were pushed off the
documented path by it.

prepare now runs the installed snapshot under a 30 s timeout for the same
selection, returns its exact command as snapshot_command so the post-child
rerun is literal, publishes prompt and event only after a valid record
exists, and removes a record its own failed snapshot left. dispatch observes
the candidate with the same installed snapshot; inspect returns base, index
and per-file git blob ids in the record representation; the legacy re-audit
check reads selected/hashes. The fault prompt names snapshot_command and the
new field names.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…, T)

qa-quick timed out once at 300 s (paid run 38980005793) against passing
runs of 164-272 s. Trimming what the Quick tier loads is a product call, so
it is filed, not repaired; no budget change.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… (W3-3)

The Bash grep of ship-docsync-missing-asset (PR gate run 38983306684,
bash#13) and the composed cat; cat of ship-docsync-failure (38984977679,
bash#12) were correct rejections. They join the stored known_bad commands
(with a {home} placeholder for the fixture home); no detector change.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…3-7 consent letters

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…racters (W3-7)

Same contract (B), C), D) when Aside is not detected; the next sentence
already omits the Aside option), 67 fewer characters on the pinned
land-and-deploy and office-hours skills.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…prompt repairs (owner sign-off needed)

CREW rule 11: these skills were already over 100,000 characters and grow
by the minimum text each repair needs; none crosses the limit for the
first time.
- gstack-review on cursor, factory, kiro, opencode, slate (+657..+676):
  W3-5 runs gstack-state-matrix detect inside the scope block with its exit
  status checked and declares the check step as a heredoc block; the new
  fence carries the env-var-host runtime prelude (about 360 characters).
- gstack-plan-eng-review on 12 hosts (+104): W3-8 says tier 1 reality rows
  are never n/a (paid run 39004466422 looped on a rejected n/a row).
- gstack-land-and-deploy on 12 hosts and gstack-office-hours on 4 hosts
  (+21): W3-7 letters the absent-Aside consent options B), C), D).

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

The parity suite left 2-42 bytes of headroom on ship, review,
plan-eng-review, plan-ceo-review and land-and-deploy, so each repair now
pays for itself in the same resolver:
- W3-5: the scope block runs `source <(gstack-state-matrix detect --base
  <base> || echo SCOPE_STATE_MACHINE=unknown)` (a failed detector's
  stdout is overridden by the later unknown assignment; its stderr still
  shows), the check block uses a short heredoc, and DIFF_LINES comes from one
  `git diff --numstat | awk` sum instead of two --stat greps (same count:
  insertions plus deletions, binary files zero).
- W3-7: the absent branch reads "offer only options B), C) and D)."
- W3-8: "never n/a" joins the tier 1 parenthesis, the no-linked-issue rule
  joins the receipt sentence, and the deep header says the same in fewer
  words; the redundant "(it prints the PLAN_REALITY: line)" is dropped.
Size pins: land-and-deploy (12 hosts, -20), office-hours (4 hosts, -20)
and plan-eng-review (12 hosts, -10) are lowered to their new sizes;
gstack-review on cursor, factory, kiro, opencode and slate stays above its
main pin (+355..+374) because the declared check block is a new fence that
carries the env-var-host runtime prelude. Raising those five pins needs
owner sign-off.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…al _REPORT/_RUN (W3-10)

PR gate run 38980005793 went red because the agent ran the generated DOM
block, scanning "$_REPORT/dom/$_RUN" with _RUN="run1" assigned in the same
command, and the check looked for the literal dom/run1 anywhere in a command.

domScanOfRun substitutes that command's own literal _REPORT=/_RUN=
assignments and credits a scan only when one of its own arguments is the run
directory. scan --changed, another directory, quoted heredoc report text and
non-literal or conflicting assignments stay negative controls. All 15
captured shim-dom runs in the window pass the new check (14 passed the old).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
autoplan-guard-pty (PR gate run 38976253774) stalled at 489 s and its screen
dump, the tail of visibleText(), was only spinner redraws. Live PTY sessions
now remember the last non-blank viewport a screen read returned
(session.lastScreen()) and the harness wait-timeout dumps append it.
Diagnostic only: visibleText(), matching and verdicts are unchanged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…st (W3-12)

The eng-only override test ran 4.1-4.4 s on a 4-core machine against Bun's
5 s default (7.8-9.4 s per file). Each test now names a 30 s budget.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t (W3-15)

windows-free-tests run 39053431430 (shard 5): the nested bun test exited 1 in
5.58 s because Bun's default 5 s hook timeout fired on the real Red Team
beforeAll (8 git spawns plus skill-section copies). Both nested argvs pass
--timeout 30000, which raises only the nested default; the registrations
under test keep their explicit timeouts. Spawn timeouts move from 8 s to
40 s and outer test timeouts to 45 s, including the consensus test that had
none. With a 6 s beforeAll injected, the lifecycle still matches; the old
argv reproduces the Windows hook timeout.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…3-13)

The git auto-maintenance entry was fixed by 0bf9d50 (#3190). D6: nested bun
test output pollutes free-runner failure attribution in
scripts/lib/shard-engine.ts (windows-free-tests 39053431430).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… free-only fixture

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…on autoplan-guard-pty failure (W3-11)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…it 0 (W3-5 confirm round)

A failing gstack-state-matrix detect prints SCOPE_STATE_MACHINE=false before
exiting non-zero. The scope block now captures its output and sources it only
when the detector succeeds; otherwise it discards the output, sets
SCOPE_STATE_MACHINE=unknown (dispatching the State Machines specialist) and
leaves the detector's stderr visible. Free tests cover false-output/non-zero,
empty-output/non-zero and a late failure after printing true. The stack
comment is shortened so gstack-review stays 4 chars under its pin; the five
host pins are lowered to match.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…the unchanged 12-capture ceiling (W3-6/W3-14 confirm round)

The fix prompt now states precedence: post-repair reruns (the 7 stage-2
scenarios plus each distinct pre-repair command the verdict relies on, such as
a reject probe) are reserved first, pre-repair exploration gets what remains,
and reruns that cannot fit are reported as open. A free test fits a pre-repair
reject plus the reproduced defect and its replay within 12 (11 captures).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…apshot after the child audit (W3-2)

A post-audit snapshot over the candidate replaces the before-audit baseline, so
the ownership check would compare current files with themselves. The fix line
now says the candidate must be the record the Prepare snapshot wrote, that the
Prepare snapshot is rerun only before dispatching the child audit, and that the
post-child snapshot uses a different --out (<audit-id>-post.json). The helper
test pins the text.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…resh-id retry (W3-1)

A failed installed snapshot now returns exit 25 with a stable reason code
(snapshot_exit, snapshot_timeout, snapshot_spawn_error, snapshot_invalid_record),
the helper's stderr tail redacted through lib/redact-engine with the fixture
root as <HOME> and bounded to 800 characters, and keeps the attempt's files: the
candidate the helper left, if any, and prepare-<audit-id>-failure.json. The
failure is a prepare-failed event, not a rejected interaction. One retry is
allowed under a fresh audit id; reusing the failed id, dispatching it or a third
prepare is rejected. Tested before and after candidate creation. The two
snapshot tests get an explicit 30 s timeout: the compare/inspect agreement
test runs 4.3-4.8 s alone and timed out at Bun's 5 s default under load.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…xture-declared final source edit (W3-6/W3-14 confirm round)

GSTACK_QA_REQUIRED_PROBES reminders counted any complete capture, so a
pre-repair duplicate or partial capture looked like post-repair coverage. The
caller may now declare GSTACK_QA_REQUIRED_AFTER_EDIT with absolute paths and a
clean-fixture time: only captures started after the last edit under those
paths count, none count before the first edit, and a malformed declaration
counts none. Without the declaration every capture counts as before. The
webhook fix fixture declares its src/ directory. A free test covers
pre-repair-only coverage (nudges), complete post-repair coverage (no nudge)
and a second edit (nudges again).

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

trunk-io Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

stripAnsi now removes cursor-visibility escapes (ESC[?25h/l). Every PTY case
matches patterns against its output, so a pattern spanning one of those escapes
can now match where it did not before: a verdict can change, so this is a
behavioral bump, not a non-behavioral entry. The launch.ts change (last
non-blank screen in failure messages) is diagnostic only.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n file, not a heredoc placeholder (W3-5)

The generated-bash lint (env-host-fence-conformance INV-3) rejects free text in
a heredoc body: <its complete output> reached the shell. The agent now writes
the specialist's full output to .gstack/tmp/state-machines.md and the fence
runs gstack-state-matrix check on that file. Two stack-detection comments and
the parenthetical are trimmed to stay inside the review/ship parity ratios;
gstack-review shrinks by 33 on the five pinned hosts and their pins are
lowered to match.

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

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 108/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 8m52s · cost $94.69 known + 54 of 132 trial(s) cost unknown

121 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $94.69 rule/judge cost | reconcile exit: 0

Profile: pr / mode dependents; selected behaviors: 108, judges: 24. Deferred to scheduled/release coverage: 139 behaviors and 1 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Derived dependents (scripts/pr-dependencies.ts):

  • scripts/resolvers/plan-reality.ts: 73 case(s), 2 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $3.11
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $1.7
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $1.16
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $1.06
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.93
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $2.39
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $1.73
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $2.66
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.64
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $2
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $2.58
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $1.67
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $2.28
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $5.09
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.95
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $1.22
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $2.08
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $2.25
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $3.78
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $3.73
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.84
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.48
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $1.14
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $2.55
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.23
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.93
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.23
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.87
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $2.06
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.25
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $1.35
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $1.25
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.8
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $1.02
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $1.07
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $1.14
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $2.99
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.16
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $1.92
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $1.25
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $2.41
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $2.59
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $1.47
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $3.7
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $3.65
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.71
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.46
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $1.23
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.41
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.7
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.02
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.52
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.51
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.86
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $1.18
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.43
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.74
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.32
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.4
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.24
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.46
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.7
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.35
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.56
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.26
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.5
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.47
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.39
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.47
Fail-closed reconciliation
0s  test/skill-e2e-qa-callers.test.ts#ship-exploratory-small-cli
  slice 12  passed            161s  test/skill-e2e-shared-libs-paths.test.ts#shared-libs-review-index-flags
  slice 12  passed            131s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-late-result
  slice 12  passed            130s  test/skill-e2e-deploy.test.ts#benchmark-workflow
  slice 12  passed            127s  test/skill-e2e-review-army.test.ts#review-army-perf-n-plus-one
  slice 12  passed            114s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 12  passed             46s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 12  passed             25s  test/skill-e2e-review-army.test.ts#review-army-json-findings
  slice 13  passed            103s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-asset
  slice 13  passed             99s  test/skill-e2e-plan-devex-plan-mode.test.ts
  slice 13  passed            104s  test/skill-e2e-safety-ship-evidence.test.ts
  slice 13  passed             85s  test/skill-e2e-design.test.ts#design-review-detector-shim-dom
  slice 13  passed             64s  test/skill-e2e-shared-libs.test.ts#shared-libs-unsupported-git
  slice 13  passed             61s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 13  passed             76s  test/skill-e2e-design.test.ts#design-review-plugin-handoff
  slice 13  passed             58s  test/skill-e2e-bws.test.ts
  slice 13  passed             52s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 13  passed             58s  test/skill-e2e-review-army.test.ts#review-army-quality-score
  slice 13  passed              6s  test/skill-e2e-hermetic-canary.test.ts
  slice 14  passed             68s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             61s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             77s  test/skill-e2e-triage.test.ts
  slice 14  passed             74s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             48s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             43s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             53s  test/skill-e2e-session-intelligence.test.ts
  slice 14  passed             47s  test/skill-e2e-ship-hook-consent.test.ts
  slice 14  passed             42s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 14  passed             50s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 14  passed             38s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 14  passed             41s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 14  passed             47s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 14  passed             35s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 14  passed             40s  test/skill-e2e-safety-pair-agent.test.ts
  slice 14  passed             38s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             35s  test/skill-e2e-learnings.test.ts
  slice 15  passed             29s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 121 executed, 0 reused; 121 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (121 attempt records from 70 collectors; every record counts)
[test:paid] deselected testcases, zero credit (312):
[test:paid]    298  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 108/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 8m52s · cost $94.69 known + 54 of 132 trial(s) cost unknown
[test:paid] report: every planned shard accounted and passed

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

garrytan and others added 3 commits October 17, 2026 21:39
…ckground CEO dispatch before reading the close packet

PR gate 39070276914 (dc739be) failed at the close-packet check while gate
39069171159 (b789898) passed with byte-identical autoplan inputs. The evidence
differs only in order: the failing actor read the close packet in the dispatch
turn, so the first tool call after the CEO notice was the publication. The
product guard allowed all four guarded calls in both runs. The fixture step 5
told the actor to end its turn only conditionally; step 5 now ends the turn as
soon as the result says the agent runs in the background, and step 6 reads the
close packet only after the reviewer finished. The close-packet check moves to
closePacketReadAfterNotice, replayed in a free test against both captured
orders; a second free test pins the actor's steps 5 and 6.

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>
@github-actions github-actions Bot changed the title fix(evals): paid-gate reliability round 2: docsync candidate protocol, scope-block detection, qa fix-loop budgets, lettered consent v1.91.127.0 fix(evals): paid-gate reliability round 2: docsync candidate protocol, scope-block detection, qa fix-loop budgets, lettered consent Oct 17, 2026
garrytan and others added 7 commits October 17, 2026 22:31
…les covers neither (W3-9)

PR gate 39073934326 (93449bc) failed qa-functional-cli-report with no observed
unannounced defect, the same class as 38983306684 and 39001107574. The agent
read 'allowed characters' as the ID rule only, counted -5 as its sign probe
and never probed the amount's digits-only rule with an otherwise valid value,
so the seeded parseInt defect stayed hidden. The stop rule now says each
field's documented input rule needs a probe breaking only it, and that a
signed amount breaks sign and digits-only and covers neither; the functional
table row names input rules per field. The qa union stays inside its parity
ratio.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…W3-9)

The signed-amount example in 0fe616e was misread in the focused rerun as 'a
signed amount breaks only the digits-only rule', and the run again missed
the seeded non-digit defect. The stop rule now states the principle: each
field's documented input rule needs a probe that breaks only it and satisfies
every other rule.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…where, short forms only at a sentence start

PR gate 39075977549 (d6d82fb) failed tpa-absent-darwin on a correct pitch:
'One-time note: you can download Aside (macOS 15+) at aside.com, then open it,
sign in, and re-run'. The contract is to deliver the pitch once; the
sentence-start anchor exists only so narration is not counted. The full
canonical phrase now counts anywhere unless a negation precedes it, and the
short forms (download it / download Aside at aside.com) keep the
sentence-start rule. The detector moves to test/helpers/third-party-actions.ts
with a count helper. Free tests replay the captured red (counts once), the
four captured passing Darwin pitches (once each), five Linux and five READY
narrations plus both recovery-public responses (zero), a mid-sentence short
form and negated phrases (zero), and a duplicated phrase (two).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r --timeout-ms; reruns keep the deadline

PR gate 39077524802 (0f71a55) failed ship-exploratory-late-input: after the
late input change the actor reran captures 001 and 002 with --timeout-ms
10000, reading the fixture's 'explicit plan probes outside the smoke budget'
clause as covering revalidation reruns, and the verifier reported both as
smoke probes missing a trusted deadline run. The binding now says only an
explicit plan check this phase requires may use --timeout-ms, and every other
capture, including a rerun or revalidation, uses the deadline.

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

/review delta on 51f1e02 (Claude and GPT-6.1 Sol voices): the 0f71a55
detector accepted the canonical phrase anywhere unless the adjacent word was
a negation, so a Darwin refusal or a quoted policy mention ('I will not ask
you to download Aside ...', 'The Darwin policy says to "download Aside ..."',
'You cannot download ...') satisfied the paid case's positive match, and a
free assertion even expected "You don't need to download ..." to count.

The canonical phrase now counts only where a recommendation can start: a
sentence, clause (, : ; dash), bullet, line or bold start, optionally led by
then/please/just/so/first/now and you can/could/may/should/need to, with no
negation directly before it across a line break. Quoted, parenthesised,
reported and clause-negated mentions fall outside that boundary. Every probe
from both voices is a free test; the five captured Darwin pitches (including
the 39075977549 red) still count 1 each and the Linux/READY captures 0.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…file from gstack-state-matrix outfile

/review delta on 51f1e02 (Claude F2): dc739be wrote the specialist output to
a fixed .gstack/tmp/state-machines.md with no exclude. On a second review
Claude Code's Write refuses an existing unread file, so check could validate
the previous run's output, and git add -A could commit it.

gstack-state-matrix outfile creates .gstack/tmp (0700) at the repo top,
adds /.gstack/tmp/ to info/exclude once, and prints a new empty 0600 file
per call; the selection prose has the agent Read that file, write the full
output there and check that path. The prose moved the check command inline,
so gstack-review shrinks and its pins are lowered (cursor 141010->140637,
factory 144792->144416, kiro 140816->140449, opencode 143258->142872,
slate 140913->140543).

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

The GPT voice's /review run on 51f1e02 failed qa-evidence.test.ts:547 once:
capture 003 reported no required probe remaining, so capture 002 (started
before the edit) counted as post-edit. The test wrote the edit right after
002 returned, a gap of one child run (7-27 ms measured here; the voice's
machine ran this test in 59 ms against 183 ms here, so a few ms there),
while an ext4 mtime comes from the kernel's coarse clock and lags
Date.now() by up to a tick (0.5-4.5 ms measured here).

The edit's mtime is now set to 002's recorded completedAt, so 002 started
strictly before the boundary and 003 starts after it on any machine. The
product boundary is unchanged: tick-scale imprecision only matters when a
capture starts within milliseconds before an edit, and a stricter margin
would refuse a real edit && capture chain.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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