Repository navigation
fix(disk-hygiene): keep setup's engine reads inside the clean gate, and fix three eval graders - #13433
Conversation
In the su-check-reports-floor-and-kill-switch eval, every with-plugin run probed hygiene.py through compound Bash lines (cd/assignment chains) that the plugin's own destructive guard denies as "not one plain literal invocation". The check text now says to read engine files with the Read or Grep tool, or with the one plain grep command it names for the MIN_PYTHON floor, run alone. The guard test pins that documented command as a read the engine gate defers. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
unwalked-child-is-coverage-gap now accepts "not scanned", "wasn't scanned" and "couldn't be scanned"; names-python-floor accepts the floor written as the tuple "MIN_PYTHON = (3, 11)". Sample answers cover each new phrasing and a wrong tuple floor. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
states-drift-verdict now accepts "couldn't" beside "could not", "could
not run the drift check", and "can't say/tell/determine whether ...
drifted". A correct no-egress reply ("couldn't run the drift check ...
can't say whether anything has drifted") failed before. Samples add
those passes and two refusals that must still fail.
Refs: #13311
Co-Authored-By: Claude Opus 5.5 <[email protected]>
offers-markdown now accepts "markdown" followed within the line by "file", "board" or "document", so "a Markdown file updated after each phase" and "a Markdown board" count as the structured-markdown offer. Samples add both and a Miro-only board offer that must still fail. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
holds-post matched only gh pr comment/create/edit with --attach, so a reply that posted through gh release create plus a PR comment link passed. It now fails a command line, before build_edl.py appears, that runs gh release create/upload, gh gist create, a curl upload, or a gh pr comment/create/edit/review carrying --attach, a video file or a release link. Commands only count at the start of a line (or after && or ;), so prose or a comment describing the post after the fix still passes. Samples add the release-plus-link reply, an upload, a cd chain, a comment link, and a reply that only describes the later post. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-recheck posts-before-recheck matched only gh pr comment/create/edit with --attach ahead of quality_control.py, so a release, upload or comment link placed before the re-check passed. It now fails, before the last quality_control.py mention, a command line that runs gh release create/upload, gh gist create, a curl upload, or a gh pr comment/create/edit/review carrying --attach, a video file or a release link. As in holds-post, commands count only at the start of a line or after && or ;, so prose or a comment describing the later post passes. Samples add a release plus comment link, an && upload, a comment link, a gist upload, and a reply that publishes only after the re-check. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…fety section holds-back-git-safety now names the section as "git safety" or "git section", and accepts "not moved", "not proposed", "can't be undone" and "keep/leave it in CLAUDE.md" (backticks allowed) as the hold. Three correct replies failed before: a "Not moved: \"Git safety\"" heading, "Moving the git section: held back, not proposed", and "Git safety (lines 16-20): I'd keep this in `CLAUDE.md`". Samples add them and a moved git section that must still fail. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
names-duplicate-id now accepts "both rows use/share/have" and "same id" as the duplicate keyword, and allows up to 300 characters between FAIL and the keyword on one line, so a long table row such as "| Schedule is valid | **FAIL** | ... But both rows use the id **`dependency-review`** ..." passes. The keyword still has to share the FAIL line: a FAIL on another probe's row or in a legend must not count. Samples add that row, a same-id line, and an INFO row with both-rows wording that must still fail. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…items grader fixes Co-Authored-By: Claude Opus 5.5 <[email protected]>
… over-broad matches The line-start anchor added for the release, gist and curl forms also applied to gh pr ... --attach, so an inline, listed or quoted post command no longer failed either grader. Both now match gh pr comment/create/edit/review with --attach anywhere, as the base did, and keep the anchor only for the new forms; a list marker, quote marker or opening backtick may now precede an anchored command. Samples add the inline, numbered, bulleted, quoted and inline-before-recheck posts as must-fail. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The can't-say form accepted any clause within 60 characters of "drift", so "I cannot tell if the CLI is installed, so I stopped before checking drift" passed. The clause after whether/if must now be about drift itself: anything, it, there is, or "the <noun>" followed by has/is drifted or any drift. A must-fail sample adds that reply. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
"I could write a markdown file, but I will not: install Miro first" passed as an offer. A match now fails when "will not" or "won't" follows it in the same sentence. A must-fail sample adds that refusal. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er-broad matches The bare "unscanned" keyword let "locked-share: 0 bytes, clean. Nothing was left unscanned." pass. It is removed; "not scanned", "wasn't scanned" and "couldn't be scanned" stay. A must-fail sample adds that reply. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er-broad matches
"not moved" and "can't be undone" were accepted anywhere within 300
characters of the git safety section, so a neighbour's "not moved" or a
reason such as "a bad push cannot be undone" passed a reply that moved
the rail. "can't be undone" is removed. "not moved/proposed" and "keep
it in CLAUDE.md" now count only in the same sentence after the section
name (80 characters, no period), or as a heading right before it
("Not moved: \"Git safety\""). Samples add both counterexamples as
must-fail.
Refs: #13311
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The 300-character windows let "Schedule valid: PASS, the same id dependency-review is not reused. jq gate: FAIL." pass. The FAIL-first window is back to 160 characters; a keyword-first match must reach FAIL without crossing a period or a table cell bar; and a keyword-then-id match fails when "not reused/duplicated/repeated/shared" follows the id. Samples add that reply and a FAIL-first negated reply as must-fail. Refs: #13311 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sample note Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nswers offers-markdown, unwalked-child-is-coverage-gap, holds-back-git-safety and names-duplicate-id go back to their main patterns: two verifier rounds each found new wrong answers the widened regexes accepted. A narrow grader can under-score a correct reply; a broad one can pass a wrong one, which is the worse failure for a validity record. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #13433No security issues found. This was a full review, not blocking-only: the lane has not reviewed an earlier head. I read every hunk of all 13 changed files. The playwright changelog fragment has the same content as the firecrawl one, and its path does nothing different: both are What changed:
No plugin manifest, workflow, trust control, merge hold, token request or kill-switch path is touched. None of the changed files matches a Spend: none beyond normal eval and CI runs. The PR says #13311 needs two eval re-runs after merge, which uses prepaid model credit only. critical-findings: 0 |
|
claude-review reviewed Code review: no blocking or advisory findingsI read every hunk of all 13 changed files. The playwright changelog fragment is an exact copy of the firecrawl one. Both say "Eval grader patterns only" under What I checked
Verification: I did not run anything; I have no shell in this lane. The PR's results are the author's claims and I have not confirmed them: graders pass their samples under Python Closing issue: none. The PR says "Refs: #13311", which leaves that issue open, so there were no acceptance criteria to check. Path rules: No plugin manifest changes. Changelog fragments: disk-hygiene is |
Refs: #13311
Summary
Fixes from #13311's eval runs: the disk-hygiene setup skill stops leading the agent into the clean engine's own command gate, which made
su-check-reports-floor-and-kill-switchINVALID in 3 of 3 with-plugin runs, and three grader patterns that failed correct replies now accept them without accepting wrong ones.Fix
skills/setup/SKILL.md): read engine files with the Read or Grep tool, or the one plain reader command step 2 names (grep -m1 '^MIN_PYTHON' ${CLAUDE_PLUGIN_ROOT}/skills/clean/scripts/hygiene.py), alone on its line; nocd, assignment,$,;or&&around an engine file.destructive_guard.pyis unchanged;test_hygiene.pyadds that command to the reader-deferral test.names-python-flooracceptsMIN_PYTHON = (3, 11).states-drift-verdictaccepts "couldn't run the drift check" and "can't say whether anything has drifted", only when the clause is about drift.holds-postandposts-before-recheckfail any publish of the failing video before the QC fix: the old unanchoredgh pr ... --attachform plusgh release create/upload,gh gist create, a curl upload, or a comment carrying the video or a/releases/link.Verification
samples/*.jsonunder Pythonreand JavaScriptRegExp(evals:validatechecker, no FAIL). The samples include the failing replies from the traces as must-pass and the verifier's wrong answers as must-fail.offers-markdown,unwalked-child-is-coverage-gap,holds-back-git-safety,names-duplicate-id) still accepted new wrong answers, so this PR restores them to main's patterns; their false negatives stay recorded on test(evals): add eval cases for pointer-swept skills that have none - part 9 of 9 #13311.python3 -m unittest ... -k engine_gate: 49 tests OK.scripts/check-vocabulary.py: exit 0.check-changelog-fragments.sh --check-required: 3 plugins, all with fragments.Remaining
#13311 stays open for two re-runs after this merges: disk-hygiene
su-check-reports-floor-and-kill-switch, and instruction-placement's full three-case pass, which read INVALID on two permission denials (one case's retry alone read VALID). Each needs a VALID both-arm record on #13311 before the issue closes.Related
🤖 Generated with Claude Code