Repository navigation
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
Conversation
…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>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
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.
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.test/fixtures/ship-local-hook-train-replies.jsonwith all 8 train and backstop gate replies, registered infree-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
No threshold, budget, trial count or case kind changes.
Gate integrity
test/ship-hook-actor.test.tsreplays 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."test/read-only-command-grammar.test.tsreplays the captured command: it is still refused, its reason names the quoted form, and the quoted form and both interface examples are accepted.Evidence