Skip to content

fix(disk-hygiene): scan needs-input statuses exit 0 (#4216) - #4707

Merged
cursor[bot] merged 8 commits into
mainfrom
cursor/4216-scan-needs-input-exit-37e9
Sep 27, 2026
Merged

cursor[bot] merged 8 commits into
mainfrom
cursor/4216-scan-needs-input-exit-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #4216

Summary

root-children-selection-required and large-target-confirmation-required now exit 0 (were 5). Payload/status unchanged; real failures keep 2/3. Documented in SKILL.

disk-hygiene → 0.24.1.

Test plan

  • test_hygiene 423 OK; 4 fail on main (per implementer)
Open in Web Open in Cursor 

…4216)

root-children-selection-required, the documented first call for an OS-managed
volume root, and large-target-confirmation-required exited 5, so the harness
showed a normal step as a tool error. Both now exit 0 with the payload
unchanged; status carries the distinction and real failures keep exits 2 and 3.

Co-authored-by: Kyle Sexton <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Fix" section. State the concrete change and how it addresses the problem.
  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@cursor
cursor Bot marked this pull request as ready for review September 27, 2026 22:55
cursoragent and others added 7 commits September 27, 2026 23:08
The DLSS selftest's user-only Set-Acl deny still lets an elevated runner
list the folder, and Windows often leaves the error TargetObject empty, so
the four unreadable-folder assertions never match.

Co-authored-by: Kyle Sexton <[email protected]>
# Conflicts:
#	plugins/disk-hygiene/CHANGELOG.md

Co-authored-by: Kyle Sexton <[email protected]>
DirectoryInfo.SetAccessControl is absent in PowerShell 7, so the Windows
selftest threw before the deny cases ran. Write the same user,
Administrators, and Everyone list deny through FileSystemAclExtensions.

Co-authored-by: Kyle Sexton <[email protected]>
A Deny ACE, including one for Everyone, still lets the elevated Windows
runner list the folder. Hold the directory open with no sharing so the
next Get-ChildItem fails with a sharing violation, and recover a quoted
path from the error message when TargetObject is empty.

Co-authored-by: Kyle Sexton <[email protected]>
The runner's pwsh has no FileOptions.BackupSemantics, so the selftest
threw before the sharing lock was taken. Open the directory with
CreateFileW and FILE_FLAG_BACKUP_SEMANTICS instead.

Co-authored-by: Kyle Sexton <[email protected]>
# Conflicts:
#	plugins/disk-hygiene/CHANGELOG.md

Co-authored-by: Kyle Sexton <[email protected]>
@cursor
cursor Bot merged commit 4dedf73 into main Sep 27, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/4216-scan-needs-input-exit-37e9 branch September 27, 2026 23:58
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.

disk-hygiene: scan exits 5 on root-children-selection-required, so the required first step reads as a failure

2 participants