Skip to content

feat(disk-hygiene): kill-switch probe reports interpreter and --data-root (#4215) - #4726

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/4215-probe-reports-guard-values-37e9
Sep 28, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/4215-probe-reports-guard-values-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Contributor

Closes #4215

Kill-switch probe prints hook_python and data_root so clean no longer needs a denied scan to learn them. Skill runs the probe first.

Test plan

  • kill_switch_probe.test.sh (per implementer)
Open in Web Open in Cursor 

… and --data-root (#4215)

The probe's JSON gains hook_python and data_root, computed by the guard's
own launch_disclosure (the helpers its denial guidance uses) against the
probe's install root. The clean skill takes both from the probe instead of
submitting a scan with bare python to provoke a denial. A parity test runs
the probe beside a belt denial and compares the values.

Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
@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 "## Summary" section. Describe what this PR changes and why, in a sentence or two.
  • 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 28, 2026 01:48
@cursor
cursor Bot merged commit 01e32b4 into main Sep 28, 2026
26 checks passed
@cursor
cursor Bot deleted the cursor/4215-probe-reports-guard-values-37e9 branch September 28, 2026 02:00
kyle-sexton added a commit that referenced this pull request Sep 30, 2026
…guard values (#5508)

Closes #4215

## Summary

The owner decision on #4215 (2026-09-29) chose option A: keep the
UserPromptExpansion hook that injects `hook_python` and `data_root`, and
accept the one denied probe in the no-hook path. This PR applies that
decision to the skill wording.

## Fix

- `plugins/disk-hygiene/skills/clean/SKILL.md`: one primary source (the
`disk-hygiene guard values` note) and one fallback (bare-python probe
denied once, then the probe's `data_root` field).
- `plugins/disk-hygiene/skills/clean/reference/safety-model.md`: records
that the hook is the chosen delivery path and the denied probe in the
no-hook path is an accepted residual.
- disk-hygiene 0.28.19 -> 0.28.20 with a CHANGELOG entry.

## Verification

- `scripts/check-changelog-parity.sh --check --check-order`: passes.
- `scripts/validate-plugins.sh`: all manifests and the catalog
validated.
- `python3 -m unittest discover -s skills/clean/scripts -p 'test_*.py'`
in `plugins/disk-hygiene`: 546 tests OK.

## Related

#4632 (hook), #4726 (probe fields), #5336 (untouched by this change).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

disk-hygiene:clean: hook interpreter and --data-root are only discoverable by provoking a guard denial

2 participants