Skip to content

docs(disk-hygiene): session belt recovery is a new session (#3856) - #4935

Closed
kyle-sexton wants to merge 2 commits into
mainfrom
cursor/3856-belt-escape-hatch-37e9
Closed

kyle-sexton wants to merge 2 commits into
mainfrom
cursor/3856-belt-escape-hatch-37e9

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Closes #3856

Summary

After /disk-hygiene:clean loads, Bash deny-by-default stays. The sanctioned recovery is a new session.

Claim: the sanctioned recovery from the session belt is a new session; PowerShell is the in-session read-only support lane; there is no in-session Bash override; re-scoping the Bash allowlist (for gh / git / other inspection after skill load) is parked.

Basis: #3856; kyle-sexton 2026-09-19 on v0.23.12 (Windows: after /disk-hygiene:clean the belt denied unrelated gh calls; recovery was a new session / PowerShell); the issue records that an override everyone uses is not an override. #3855 Option A (no emergency mode) removes the reason to scope the belt differently under pressure. Session-never-invoked wording was already fixed in 0.23.4 (#3348).

As of: 2026-09-28.

Recheck: an operator funds a classifier allowlist for named read-only Bash heads, Claude Code documents a skill-hook disable/unload API, or the hooks page documents subagent inheritance of skill-frontmatter hooks.

Fix

Docs only.

  • reference/safety-model.md: four-part record next to session-wide belt persistence.
  • skills/clean/SKILL.md gotcha and reference/unsupported-platform-handoff.md name the new-session recovery.
  • disk-hygiene 0.28.9 with CHANGELOG entry (merged current main; main's 0.28.7 and 0.28.8 entries kept).

Verification

  • scripts/check-changelog-parity.sh --check, --check-order, --check-bump origin/main, --check-preserved origin/main: pass.
  • scripts/check-stale-base-overlap.sh --check origin/main, markdownlint, typos, purged-em-dashes: pass.
  • disk-hygiene suites: pass except the 11 test_guard_allows_literal_readonly_supporting_bash_commands subtests that also fail on clean main on this machine (not touched by this docs-only diff).

Related

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body conforms to the issue-linkage contract. Nothing to do.

After /disk-hygiene:clean loads, Bash stays the exact-engine allowlist.
The sanctioned recovery is a new session; PowerShell is the in-session
read-only support lane. No in-session Bash override. Bump to 0.27.2.

Co-authored-by: Kyle Sexton <[email protected]>
@cursor
cursor Bot force-pushed the cursor/3856-belt-escape-hatch-37e9 branch from 4f8bfb3 to 2f9d074 Compare September 28, 2026 12:38
@kyle-sexton
kyle-sexton marked this pull request as ready for review September 28, 2026 19:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T19:36:58.431763Z 77cf148 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77cf148060

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +437 to +439
PowerShell deletion spellings are hook-`ask`. Subagent reach of skill-frontmatter hooks is
build-specific; do not treat a subagent as an escape hatch, and the belt denial text is forbidden
from claiming non-inheritance.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reconcile the subagent hook guarantee

When cleanup or support work is delegated to a subagent, this new statement says hook reach is build-specific, while plugins/disk-hygiene/README.md lines 103–107 unconditionally says PreToolUse hooks fire inside subagents and workers therefore run under the same guards. Those instructions give opposite answers about whether the destructive-command belt protects worker calls, potentially causing the model to rely on a guard that is absent. Reconcile the README and this reference, and provide the required claim/basis/as-of/recheck evidence for the volatile inheritance behavior.

AGENTS.md reference: AGENTS.md:L38-L38

Useful? React with 👍 / 👎.

@claude

claude Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 37s —— View job


Security review (/review:security-review)

  • Gather context (PR is docs-only, 5 files changed)
  • Invoke /review:security-review for this PR
  • Post findings

Skip gate hit: this PR has no security-relevant surface. All changes are prose/documentation edits — a version bump in plugins/disk-hygiene/.claude-plugin/plugin.json, a CHANGELOG.md entry, and clarifying text added to three reference/skill markdown files (SKILL.md, safety-model.md, unsupported-platform-handoff.md) about the existing session-belt behavior. No code, hooks, permissions, or executable logic are modified.

No security findings. Nothing to post.

@claude

claude Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 5m 1s —— View job


Claude code review (/review:code-review)

  • Gather context (PR body, changed files)
  • Invoke /review:code-review for this PR
  • Post findings as inline comments / summary

This is a docs-only PR for disk-hygiene (safety-model.md, SKILL.md, unsupported-platform-handoff.md, CHANGELOG, plugin.json version bump). Reviewed the diff against the pre-merge main tip (c08c3ab) for correctness and internal consistency, since it records claims about a specific decision (no in-session Bash override; recovery is a new session).

Finding posted inline:

Checked and ruled out: initially flagged a possible mismatch between unsupported-platform-handoff.md's (#3856 Option A) and safety-model.md's #3855 Option A — verified against the changelog entry itself and confirmed these are two distinct, correctly-attributed "Option A" decisions on two separate issues, not a copy-paste error.

The four-part verification record (claim/basis/as-of/recheck) added to safety-model.md follows the repo's required convention for volatile specifics in skill bodies, and the cross-file wording ("no in-session Bash override", "PowerShell is the in-session read-only support lane") is otherwise consistent across SKILL.md, safety-model.md, and unsupported-platform-handoff.md.

Author-claimed verification (changelog-parity scripts, markdownlint, typos, disk-hygiene test suites) is noted but not independently re-run here — this review is docs-content scoped, no code changed.
· branch

after `/disk-hygiene:clean` loads, Bash stays the exact-engine allowlist; PowerShell stays
the in-session read-only support lane; there is no in-session Bash override (an override
everyone uses is not an override). Re-scoping the classifier is parked until the owner
funds it. Serializes after #3855 (0.27.1).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale/incorrect version reference. "Serializes after #3855 (0.27.1)" implies #3855 shipped as (or corresponds to) version 0.27.1, but that doesn't hold up against the rest of this same file:

This reads like a version number that wasn't updated after a rebase/renumbering (this entry itself moved from 0.28.7 through to 0.28.9 across merges). Recommend either dropping the (0.27.1) parenthetical or replacing it with whatever version #3855 actually corresponds to, if it shipped at all.

Fix this →

@kyle-sexton

Copy link
Copy Markdown
Member Author

Closing by operator decision (2026-09-28): records a "no in-session Bash override" decision on #3856 (needs-human) that the operator has not made. Reopen once #3856 is decided.

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: give the session belt an escape hatch and re-scope its deny-by-default to its actual threat model

2 participants