Repository navigation
docs(disk-hygiene): session belt recovery is a new session (#3856) - #4935
kyle-sexton wants to merge 2 commits into
Conversation
|
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]>
4f8bfb3 to
2f9d074
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PT4esxbdC7eQiwQxy35Mie
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| 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. |
There was a problem hiding this comment.
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 finished @kyle-sexton's task in 37s —— View job Security review (
|
|
Claude finished @kyle-sexton's task in 5m 1s —— View job Claude code review (
|
| 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). |
There was a problem hiding this comment.
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:
- The
## [0.27.1] - 2026-09-28entry a few lines below (lines 75–87) is entirely about--root-childreninventorying approved children for disk-hygiene: approved home-root directories cannot be inventoried without walking the whole home (root-child selection is OS-root only) #4221 — nothing about the session belt, emergency mode, or disk-hygiene: decide whether the cleaner may distinguish a tidiness pass from a disk-full emergency #3855. #3855appears nowhere else in this CHANGELOG.safety-model.md(lines 128–130, pre-existing, untouched by this PR) describes disk-hygiene: decide whether the cleaner may distinguish a tidiness pass from a disk-full emergency #3855 as "the open related design issue" — i.e. still open, not shipped in any version.
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.
Closes #3856
Summary
After
/disk-hygiene:cleanloads, 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:cleanthe belt denied unrelatedghcalls; 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.mdgotcha andreference/unsupported-platform-handoff.mdname the new-session recovery.disk-hygiene0.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.test_guard_allows_literal_readonly_supporting_bash_commandssubtests that also fail on clean main on this machine (not touched by this docs-only diff).Related