Repository navigation
Description
This was generated by AI during triage.
Parent
Refs #3347, findings F9.3 and F9.4. Blocked by the proportionality decision carrier; a component that gains a proportionality notion may want the belt scoped differently.
What this is
Two related problems with the session-scoped safety belt:
No escape hatch. Once engaged, the belt has no lever. An operator who knows the belt is wrong about a specific command has no supported way to proceed, so the only paths are to abandon the work or to defeat the belt by means it does not sanction. A safety mechanism with no sanctioned override trains people to route around it, which costs more safety than it buys.
This is not theoretical. The parent records that a triage session which had never invoked the skill was nonetheless denied a read-only inspection command in the belt's wording. A belt that blocks read-only inspection in sessions unrelated to the skill is over-scoped by any reading.
The deny-by-default exceeds its threat model. The belt denies broadly on the Bash lane. The parent records an inversion worth stating plainly: on Windows, the lane that is hard-denied cannot perform the deletion the belt exists to prevent, while the lane that can is treated differently. Re-verified on 2026-09-06: the two lanes are still registered asymmetrically, one carrying a narrowing predicate that the other does not. So the denial's breadth is not tracking where the danger actually is.
Constraint that must be carried forward
The parent records a withdrawn claim whose correction matters: the belt does not reach subagents, and that non-inheritance is undocumented and build-specific.
This cuts both ways and any redesign must account for it. It bounds the belt's real coverage, so a belt that appears to protect a session may not protect work the session delegates; and because the behavior is build-specific and undocumented, it cannot be relied upon in either direction. Whoever takes this must establish the current behavior empirically rather than reasoning from the belt's intent, and document what they find.
Why human-gated
Changing what a safety mechanism denies is a threat-model decision. The questions have no default:
- What is the belt actually protecting against, stated concretely enough to test a denial against it?
- Which lane presents that risk on which platform? The recorded inversion suggests the current answer is wrong.
- What form does the escape hatch take, and what stops it becoming the default path? An override everyone uses is not an override.
- What is the intended subagent behavior, now that non-inheritance is known?
An agent answering these would be setting security policy.
Acceptance criteria
- The belt's threat model is stated explicitly, concretely enough that a given denial can be judged correct or incorrect against it.
- Denials are scoped to that model. A read-only inspection command in a session that never invoked the skill is not denied.
- A sanctioned override exists, with its boundaries stated and its use visible rather than silent.
- Subagent behavior is established empirically, documented, and made deliberate rather than incidental.
- The platform inversion is resolved: the lane that can perform the dangerous operation is the lane that is governed.
- Regression coverage for the recorded false positive, so it cannot silently return.
Out of scope
- The proportionality question, which is the carrier.
- The residual fail-open when no interpreter resolves, which is its own child.
- Broadening the belt to cover new operations.
Activity
fix(disk-hygiene): branch Bash denial text on engine-gate vs belt (#3983
kyle-sexton commentedon Sep 19, 2026
Another occurrence on v0.23.12 (Windows): after /disk-hygiene:clean loaded, the belt denied every non-engine Bash command for the rest of the session, including unrelated gh calls for filing issues. The only recovery offered was "start a new session". The work had to move to the PowerShell lane.
docs(disk-hygiene): park belt escape-hatch; keep deny-by-default (#3856)
docs(disk-hygiene): no emergency lane vs tidiness (#3855) (#4938)
kyle-sexton commentedon Sep 29, 2026
This was generated by AI during triage.
Health check: the body says "Blocked by #3855"; #3855 is closed. Re-check whether its outcome changes this issue's scope before acting.
kyle-sexton commentedon Sep 29, 2026
Another occurrence, this time with the cost stated. One operator session ran
/disk-hygiene:cleanonC:\,$HOMEandD:\, and/repo-hygiene:cleanacross all repos, orchestrated together. After/disk-hygiene:cleanloaded, the session belt deniedgit,ghand/repo-hygiene:clean's scripts on the Bash lane for the rest of the session. The denial text says the belt "persists until the session ends" and names recovery as a new session (skills/clean/scripts/destructive_guard.py:1847). Running both concurrently under one orchestrator could not be done, so cleanup was split into separate sessions with disk-hygiene last.The belt also blocks the discovery plugin's dispatch gate (
discovery/0.24.0/scripts/check-dispatch-artifact.sh)./discovery:exploreand/discovery:researchcould not run their default route in the session and ran inline through subagents. Because the Bash belt stayed on for the whole session, execution had to route through PowerShell and subagents.The operator's requirement is that the whole workflow runs in ONE orchestrated session: disk-hygiene across C:, $HOME and D:; repo-hygiene across all repos; the discovery skills; and git/gh cleanup. Splitting across sessions is not acceptable.
Requirement to add to the acceptance criteria: the plugins must work both in a dedicated session and together in one session. Concretely:
/disk-hygiene:cleanmust not deny commands that belong to another skill's documented workflow (git,gh, repo-hygiene scripts, discovery's dispatch gate). The deny list should be the deletion shapes the belt exists for, not everything not on the engine allowlist.skills/clean/SKILL.md:6-24registers the belt as a skill-frontmatter hook withmatcher: "Bash|PowerShell"and noiffilter, so the scope is the whole session by construction. Moving deletion enforcement to the always-on plugin-level gate (already present, and already fires without the skill being invoked) would remove the need for a session-lifetime belt.Related: #2618 (closed, documented the lifetime), #4228 item 3 (subagent reach), #5214 (orchestrated whole-machine audit), #3347.
🤖 Generated with Claude Code
https://claude.ai/code/session_01K3VkbjLqtYZ6JtsQaDKP4v
kyle-sexton commentedon Sep 29, 2026
Owner decision (2026-09-29): Decide with evidence. The owner accepted the recommendation: an agent gathers the evidence, then the choice among A (narrow the belt to deletion shapes with an if filter plus a visible release lever), B (drop the session-lifetime belt and enforce deletion shapes in the always-on plugin gate), C (keep the belt, add only a documented release lever) and D (close as won't do) is made from it. Leading candidate is A.
Next: an agent posts on this issue (1) whether the skill hook outlives the skill turn on the current Claude Code build, (2) whether the belt reaches subagents (CHANGELOG:47 and README:106-107 conflict), and (3) a matrix of the deletion shapes the belt blocks today versus what the plugin gate covers. This is a security choice, so the agent stops after posting the evidence and the issue keeps needs-human for the final call.
kyle-sexton commentedon Sep 30, 2026
Resolution (2026-09-29, owner-approved consensus)
Three independent read-only researchers voted do-here (3/3, confidence 0.8). The problem is live: repeat occurrences are recorded on v0.23.12 and 0.24.0. The belt is a skill-frontmatter PreToolUse hook in
plugins/disk-hygiene/skills/clean/SKILL.md(matcherBash|PowerShell, noif), so it denies git, gh, repo-hygiene scripts and discovery's dispatch gate for the whole session. Its only stated recovery is a new session (#4935, docs only). No evidence comment has been posted yet.Goal
Post one evidence comment that lets the owner choose among A (narrow the belt with an
iffilter plus a visible release lever), B (drop the session-lifetime belt, enforce deletion shapes in the always-on plugin gate), C (keep the belt, add a documented release lever) and D (won't do). Make no code change until the owner picks. This is a security choice, so the agent stops after the post.Steps
plugins/disk-hygiene/skills/clean/scripts/destructive_guard.pyand the plugin-levelhooks/hooks.jsongate. Tabulate each deletion shape the belt denies against what the always-on gate already denies, on both the Bash and PowerShell lanes. Include the lane asymmetry and the read-only false positive recorded in this issue.plugins/disk-hygiene/CHANGELOG.md(line ~136, "belt does not reach subagents") with README lines 106-107, which conflict on subagent reach.Basis:line.Acceptance criteria
Basis:line citing file:line, probe output or a fetched doc URL.Labels:
needs-humanremoved andagent-readyadded per the owner's "approve all". The owner's final A/B/C/D choice stays gated.6 remaining items
fix(disk-hygiene): close Windows audit gaps in overlay, totals, hints…
kyle-sexton commentedon Oct 1, 2026
Cross-reference: #5226 part (b), pwsh launched from Bash getting through, is the same belt-does-not-reach-subagents gap tracked here. #5226 is closed by owner decision; part (a) was fixed by #5546.
kyle-sexton commentedon Oct 1, 2026
Owner decision (2026-10-01): approved the recommendation ("go with recommended", the owner's reply to the batch decision page that listed this question and its recommendation).
Question: for the /disk-hygiene:clean session belt, which option: A, B, C or D?
Chosen: A. Add an
iffilter so the skill-frontmatter belt checks only deletion shapes, and add a visible, logged release lever. git, gh, the repo-hygiene scripts and discovery's dispatch gate stop being denied; ad hoc rm, find -delete and Remove-Item stay governed. Accepted cost: the Bash lane becomes a deny-list that a wrapped deletion can bypass. Subagent reach is unchanged; widening the plugin gate is a separate decision.Next: an agent edits
plugins/disk-hygiene/skills/clean/SKILL.md(if filters) anddestructive_guard.py(logged release lever), adds regression tests for the read-only false positive, updates README and CHANGELOG, and opens a draft PR that Closes #3856. The change touches a security guard, so it needs the security review before ready.fix(disk-hygiene): refuse a linked release marker and state when git …
test(disk-hygiene): cover the allowed and still-denied belt shapes
docs(disk-hygiene): bring the belt docs under the skill gates and sta…
fix(disk-hygiene): match the belt's script filters on interpreter cal…
test(disk-hygiene): check the printed release lever against the belt …
fix(disk-hygiene): defer belt commands that name no deletion verb
docs(disk-hygiene): state which commands the belt filters were seen t…
fix(disk-hygiene): replace the belt's shell reader with an allowlist
docs(disk-hygiene): describe the belt allowlist
kyle-sexton commentedon Oct 1, 2026
Owner decision (2026-10-01): accepted the recommendation ("accept all recommendations" and "I want you to do all of this for me", the owner's reply to the list that named this item).
Close #5698 and keep the session belt on main unchanged. Four fresh-verify rounds on #5698 each found a new way for a delivered deletion to pass the belt (exec-wrapper heads,
${x:-/bin/rm }operator defaults, abbreviated git exec options such asgit rebase --exe), so option A does not ship. While the belt is armed, git and gh stay denied as before.