Skip to content

v1.91.174.0 fix(evals): local-hook detector credits "set it up by hand"; read-only grammar steers globbed options to the quoted form - #3332

Merged
capy-ai[bot] merged 3 commits into
mainfrom
flaky/2026-10-21-paid
Oct 21, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
flaky/2026-10-21-paid

Conversation

@garrytan

Copy link
Copy Markdown
Owner

What changed

ship-local-hook-preservation detector, 8 train-gate replies

The detector replayed over every Opus 5.5 gate reply for the case. The failing reply (train gate 39440559183) told the user "you'll need to set it up by hand". Before the fix, the detector didn't count that as reporting manual integration, and now it does.

read-only grammar: globbed option

The unquoted --include=* is still refused. The declared interface and the refusal reason now show the quoted form the agent should use.

  • test/helpers/ship-hook-actor.ts: the manual-integration sentence now accepts a pronoun object inside the phrasal verb (set it up, set both up, wire them in). It still needs "yourself", or "by hand" plus an addressee.
  • test/helpers/read-only-commands.ts: the interface now says that an unquoted glob may stand only as a path operand, and it gives quoted examples (--include='*.md', -name '*.md'). The globbed-option refusal now names the quoted form. Nothing is accepted or refused that wasn't before.
  • New fixture test/fixtures/ship-local-hook-train-replies.json with all 8 train and backstop gate replies, registered in free-fixtures-data.ts. CHANGELOG entry under ## [Unreleased]. VERSION is unstamped.

Why

ship-local-hook-preservation (rule) went red in train gate 39440559183 attempt 1 and passed its in-run rerun. The agent did exactly what the skill asks. It left both hooks alone, asked no consent question, and told the user to integrate by hand. The detector recognized "set up" and "wire in" only when the particle came straight after the verb, so "set it up by hand" didn't count. This was a detector gap, not a prompt or fixture problem. The fix widens the verb to the whole phrasal-verb class, with negative controls, instead of adding one more spelling.

ship-docsync-current lost a focused trial to grep -rn -i "banned" <repo> --include=* -l. #3288 refuses an unquoted globbed option on purpose, because the shell expands the glob before grep sees it, and that stays. The cause was the interface text. It told the agent that reads are accepted "unquoted glob matches included" and never said that a glob inside an option has to be quoted. The judge never sees the refusal live; the check runs after the trial. So the declared interface is the steer that matters, and the refusal reason now helps whoever reads the failure afterwards.

Approvals

Date Ask Words Covers Pending
2026-10-19 Daily flaky-fix pass Garry: "we should have a flaky test fix pass every day that tries to fix flaky tests" This pass's repairs, through GStack Minder Merge via train (standing approval)
2026-10-15 Focused paid runs Garry (CREW 5): paid gates, screens and focused runs are pre-approved The $5.79 of focused trials below none

No threshold, budget, trial count or case kind changes.

Gate integrity

  • Detector edit: the ship-local-hook-preservation detector. test/ship-hook-actor.test.ts replays all 8 gate replies: 7 already passed, and 39440559183 failed before the fix. New negative controls stay refused: "I set it up by hand.", "It was set up by hand before this run.", "Nobody touched it; set it up later.", "Whoever owns the hooks needs to work out how to combine them…", and "I wired them in myself."
  • Grammar acceptance: unchanged. test/read-only-command-grammar.test.ts replays the captured command: it is still refused, its reason names the quoted form, and the quoted form and both interface examples are accepted.

Evidence

  • Focused Opus 5.5 at 2eccb23 (same tree as the head, minus CHANGELOG and the touchfile row):
    • ship-local-hook-preservation: 3/3, $0.34.
    • ship-docsync-current: 5/5, $4.92. No trial used an unquoted globbed option.
    • qa-only-no-fix: 1/1, $0.53. It reads the same interface text. Its first attempt never started because this machine had no browse binary; after building one, the attempt ran and passed.
  • Free checks:
    • ship-hook-actor 22/0, read-only-command-grammar 195/0, and parity-suite, touchfiles, paid-pr-profile, spawnSync tripwire and module-size ratchet all green.
    • typecheck is clean and the credential scan finds 0 high.
    • Remote free-tier pregate on tree 78db6e0f9b16: 9,057 tests, 0 failed, $0.04.

Open in Capy

garrytan and others added 2 commits October 21, 2026 13:16
…y grammar steers globbed options to the quoted form

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

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

trunk-io Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix(evals): local-hook detector credits "set it up by hand"; read-only grammar steers globbed options to the quoted form v1.91.174.0 fix(evals): local-hook detector credits "set it up by hand"; read-only grammar steers globbed options to the quoted form Oct 21, 2026
@capy-ai
capy-ai Bot merged commit 6b2b5f3 into main Oct 21, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant