fix(ai-slop): close leftover directory-expansion defects (0.3.9) - #3331
Conversation
|
Claude finished @kyle-sexton's task in 1m 8s —— View job Security Review
No security issues found. This PR is a narrow, local-tooling bug fix in Reviewed for the categories in scope for this lane:
Nothing here meets the skip-gate bar for further work — no security-relevant surface in this diff. Branch: |
|
Last security-reviewed head: |
85b1f3c to
4c4dfe4
Compare
|
Claude finished @kyle-sexton's task in 1m 54s —— View job Security Review
No security issues found. This PR is a local-tooling bug fix in
No security-relevant surface introduced by this diff. Branch: |
git ls-files C-quotes paths that hold non-ASCII bytes, so a tracked filename containing an em dash failed the scan loop's existence test and vanished from the report. Directory expansion now sets core.quotePath=false. Drive-root slash preservation is unchanged. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Drop the C-quoted octal example that typos reads as "caf", and collapse the extra blank line markdownlint flags between 0.3.9 and 0.3.8. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Report when git is missing or cannot confirm a work tree, instead of walking silently. Pin dir-target tests on the emitted file= path, subtree restriction, and a non-ASCII filename. quotePath=false and drive-root slash preservation stay. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
4c4dfe4 to
0e6b30c
Compare
|
Claude finished @kyle-sexton's task in 1m 12s —— View job Security Review
Skip gate: no new security-relevant surface since the last successful review. Diffing the previously-reviewed head ( No new review performed; the prior finding stands: no security issues found. Branch: |
|
Claude finished @kyle-sexton's task in 19s —— View job Code Review
Skipped: PR is merged (not open). Per If you'd like a review of this code as it stands on |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
…(0.5.6) (#3628) <!-- CURSOR_AGENT_PR_BODY_BEGIN --> Closes #3407 ## Summary The no-paths target list in `detect.sh` still ran `git ls-files '*.md'` without `core.quotePath=false`. Non-ASCII filenames were C-quoted, failed `[[ -f ]]`, and were silently dropped from a whole-repo scan. ## Fix The bare listing now uses `-c core.quotePath=false` and reports listing failures instead of swallowing them with `2>/dev/null`. Work-tree detection matches the already-fixed directory-expansion path. Plugin bumped to 0.5.6. ## Verification `scripts/affected-tests.sh --run`: 17 suites passed. `detect.test.sh` is at 202 cases, including nine new bare-invocation cases for non-ASCII names and listing failures. ## Related Refs #3331 (0.3.9 directory-expansion path) <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-7ffb619a-6ebb-4d47-9c45-d68e846edf93?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-7ffb619a-6ebb-4d47-9c45-d68e846edf93&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
Closes #3332
Summary
Three defects in
detect.shdirectory expansion survived the 0.3.8 path-anchor fix: a tracked non-ASCII filename was dropped, a filesystem walk still ran silently when git could not answer, and the new tests asserted only a scan count so the original spelling-rebuild defect could return unnoticed.Fix
git -c core.quotePath=false ls-filesso a filename holding an em dash is actually opened.rev-parse --is-inside-work-treefails; a silent walk remains only when git reports the directory is genuinely outside a checkout.file=path, subtree restriction, a non-ASCII filename, and the git-absent report.normalize_dir_targetstill keeps a Windows drive-root slash (C:/).ai-slop0.3.9. Duplicate stale PR #3330 is stillDIRTYand would regress drive-root slash preservation; ignore it.Verification
bash plugins/ai-slop/skills/audit/scripts/detect.test.sh: 149 cases passedscripts/check-changed-skills.sh origin/main: 0 failedscripts/check-changelog-parity.sh --check-bump origin/main: passpython3 scripts/sync-plugin-options-docs.py --check: up to dateRelated
Follow-up to the merged directory-anchor work. Do not merge #3330.