Repository navigation
fix(disk-hygiene): engine gate defers simple readers that only quote the engine name - #8117
Conversation
…the engine name Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
claude-security-review reviewed No security findings in the incremental change since c233623. The change has three parts:
I read the current This diff deletes, narrows or softens no standing instruction, so the instruction-surface lens found nothing to check. |
|
claude-review reviewed No findings on the incremental change since c233623 (changelog line, docstring paragraph, two test additions). I read the code and did not run the tests. Both attempts to run pytest needed approval and were not granted, so the new tests are unexecuted by me.
|
…nking A symlink to the engine under a name without the marker, written in quotes, was blanked to `_` and never identity-checked. Run the same all-tokens _samefile/_in_engine_dir scan over the command as written before blanking. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
pr-unblock / address-feedback finished round 1 of 3 on edf16c6. |
|
pr-unblock / address-feedback finished round 2 of 3 on edf16c6. |
|
The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.
To resume, deal with the reason above, remove the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8117 -f activity=address-feedback |
|
This was generated by AI: an independent fresh-context review requested by the owner in an attended backlog-shaping session on 2026-10-18. The owner merges this PR after the findings are fixed. Review: PR #8117 (fix(disk-hygiene): engine gate defers simple readers that only quote the engine name)PR: #8117 (head edf16c6) Criteria read: REVIEW.md, AGENTS.md Code Review Rules, .claude/rules/pr-body-contract.md, issue #6242 decision and Agent Brief, PR inline review threads. Verdict: FIXThe design matches the decision and I found no way for an engine invocation to get past the gate. The head commit still fails its own acceptance test and breaks PowerShell behavior already on main. CI is red, and the fix is one line. FindingsIMPORTANT (blocking): the new pre-blank identity scan gates every quoted bare engine name and breaks the PowerShell rule already on main
IMPORTANT: the quoted marker-free link scan has no test (review thread still open)
SUGGESTION: the fail-closed tests passed at head for the wrong reason
SUGGESTION: the new identity scan widens PowerShell behavior beyond the brief
SUGGESTION: the PR body misreports verification
Can a destructive command slip past the gate?No bypass found. What I checked:
Decision match and scope
CI and review lanes
Coverage: all changed files reviewed. |
kyle-sexton
left a comment
There was a problem hiding this comment.
This was generated by AI: independent review requested by the owner in an attended backlog-shaping session on 2026-10-18. Each finding is its own thread so the PR-fix lane can address it. The owner merges this PR after the fixes.
File-level notes:
- plugins/disk-hygiene/skills/clean/scripts/test_hygiene.py: SUGGESTION: the PR body misreports verification (the body is not a file, so this sits on the test file it describes). It says the 6 failures are lsof sandbox failures, and its Verification section reports a run from before edf16c6. At this head 16 engine-gate tests fail, and the head commit was never executed.
Fix: after the destructive_guard.py:1081 fix, update the Not verified and Verification sections with the CI run on the new head.
The pre-blank scan used _names_engine, which joins bare tokens to the engine directory, so any quoted `hygiene.py` mention gated and the PowerShell string-data deferral regressed. Check _samefile instead: a path resolving from the working directory still gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ells Add a test that a quoted word naming a hard link to the engine gates a gh reader on Bash and PowerShell, with a stay-quiet case before the link exists. The `@@` name owns no marker token, so only the whole-word scan sees it and removing that scan now fails the test. Add a `git grep -nc` case so the `-c` half of the git option check has a failing subtest. State in the gate docstring and the changelog fragment that the scan runs for both shells. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #6242
Hold: a human merges this
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
Fix
Verification
The run reports:
Left out: the items under Not verified.
Related
#6242