Skip to content

disk-hygiene: run files under ~/.claude are protected-path writes that no allow rule can pre-approve #4225

Closed

Description

@kyle-sexton

Problem

The clean skill writes every model-authored plan and handoff JSON (plan-<tier>.json, handoff-paths.json, vcs-evidence.json) with the Write tool into ${CLAUDE_PLUGIN_DATA}/runs/. That directory is under ~/.claude, which the audit reads as a protected path (see the unverified note below).

Session: Windows 11 Pro 10.0.26200, Claude Code 2.1.278, auto mode, disk-hygiene 0.23.12. In this session each of 8 deletions started with a Write of a one-path handoff-paths.json, so there were at least 8 protected-path writes. Whether those Writes hit the classifier or a prompt is not recorded (unverified).

Consequences by mode (from the docs, not all exercised):

Root cause

  • SKILL.md line 136: "Create a unique run directory under ${CLAUDE_PLUGIN_DATA}/runs/". The skill treats this as a neutral location.
  • Doc basis (all rung 1 curl of https://code.claude.com/docs/en/<slug>.md, fetched 2026-09-19):
    • plugins-reference.md line 760 (141682 bytes): The `${CLAUDE_PLUGIN_DATA}` directory resolves to `~/.claude/plugins/data/{id}/`
    • permission-modes.md line 594 (82879 bytes): * `.claude`, except for `.claude/worktrees` where Claude stores its own git worktrees
    • permission-modes.md line 581: rules in settings files do not pre-approve protected-path writes.
    • permission-modes.md line 576: | `dontAsk` | Denied
    • permission-modes.md lines 571-576: default and acceptEdits prompt; auto routes the write to the classifier.
    • permission-modes.md line 581: which approves later `.claude/` writes in that session without prompting again.
  • Unverified: the page gives no scoping rule for a .claude segment nested under the home directory. The audit reads ".claude" as covering ~/.claude/plugins/data/.... Not observed live.

Related: #3351, #4224.

Proposed fix

Cheapest first:

  1. Land disk-hygiene: handoff-verify should accept --path inline, halving prompts on multi-path runs #3351's inline --path for handoff-verify. That removes the handoff write.
  2. Have the engine write its own artifacts: let preview or handoff-verify take the candidate list on argv and persist the plan itself. The engine's Python writes do not go through the Write tool's protected-path check.
  3. Document the session ".claude writes" option and its breadth in unsupported-platform-handoff.md step 1.

Not recommended without a safety-model review: moving the run directory outside ~/.claude, because the guard derives --data-root authority from it.

Acceptance criteria

  • A Windows clean run that deletes approved paths performs zero Write-tool calls into ~/.claude.
  • In default mode, a clean run shows no protected-path prompt for plan or handoff JSON.
  • In dontAsk mode, the execute lane is not blocked by a denied plan or handoff write.
  • unsupported-platform-handoff.md step 1 names the protected-path behavior and what the session-wide option grants.

Found by /plugin-quality:audit (run 20260919T170952Z).

Activity

  1. added
    needs-triage
    on Sep 19, 2026
  2. kyle-sexton commented on Sep 27, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage

    Verified. The protected-path claim holds, and the report's "unverified" note is resolved against the docs (fetched 2026-09-27):

    • plugins-reference.md: ${CLAUDE_PLUGIN_DATA} resolves to ~/.claude/plugins/data/<id>/.
    • permission-modes.md "Protected paths": .claude is a protected directory. The allow-rule paragraph names ~/.claude/ explicitly ("the prompt for a write to the project's .claude/ folder or to ~/.claude/ can offer ..."), so the nested home path is covered. permissions.allow rules do not pre-approve these writes. dontAsk denies them. Auto mode sends them to the classifier.
    • The clean skill (disk-hygiene 0.23.16 on main) still tells the model to create the run directory under ${CLAUDE_PLUGIN_DATA}/runs/ and to write plan-<tier>.json, handoff-paths.json and vcs-evidence.json there itself. Each of those writes is a protected-path write.

    Type: Bug. Priority: priority: medium (assessed default; nothing else is blocked on it). Routed to needs-human.

    Why human-gated: the cheapest complete fix (proposal 2) changes the command shape that the destructive engine and its hook belt accept: plan or path lists move onto argv, or the engine persists them. That is a change to the deletion lane's safety model, and it spans several files. It also overlaps the handoff/apply call shape that #4224 (needs-human) is redesigning. The approach should be chosen together with #4224's decision, not by an unattended lane.

    Agent Brief

    Type: Bug
    Summary: A clean run makes no Write-tool calls into the protected ~/.claude tree. The engine persists its own plan and handoff artifacts.

    Current behavior: The model writes the tier plan, the handoff path list, and the VCS evidence JSON with the Write tool into the plugin data run directory under ~/.claude. Each write is a protected-path write: a prompt in default and acceptEdits, a classifier round trip in auto, a denial in dontAsk (so the execute lane cannot run).

    Desired behavior: The engine subcommands that consume these artifacts (preview, apply, handoff-verify) accept the exact path list or the tier selection directly (argv, or --path repeated per #3351) and write any artifacts they need into the run directory themselves. The model never authors a file under ~/.claude. The run directory stays under the plugin data root, because the guard derives --data-root authority from it.

    Key interfaces:

    • The clean engine's preview / apply / handoff-verify argument surface: inline paths or selection instead of a model-written --plan / --paths / --vcs-evidence file.
    • Destructive-guard belt: its exact-command validation has to accept the new argument shape and must fail closed on anything else.
    • unsupported-platform-handoff reference, step 1: say what the protected-path behavior is and how much the session-wide ".claude writes" option grants.

    Acceptance criteria:

    • A Windows clean run that deletes approved paths makes zero Write-tool calls into ~/.claude.
    • In default mode, a clean run shows no protected-path prompt for plan or handoff JSON.
    • In dontAsk mode, no denied plan or handoff write blocks the execute lane.
    • The handoff reference's step 1 describes the protected-path behavior and the breadth of the session-wide option.
    • The guard's existing tests pass, and new tests show that the belt rejects a malformed inline-path invocation.

    Out of scope:

    Related: #3351 (inline --path for handoff-verify covers the handoff-write half), #4224.

  3. added
    needs-human
    and removed
    needs-triage
    on Sep 27, 2026
  4. added theissue type on Sep 27, 2026
  5. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-09-29): Accept the recommendation: decide with evidence, sequenced after #4224. The choice among the four options stays open until that evidence is in.

    Dependency: #4224 must be settled first (open, needs-human). It redesigns the same handoff/apply call shape, and its packet builds the batch only after the #1116 security review.

    Next: this issue stays open and keeps needs-human, because the fix changes the command shape the destructive engine and hook belt accept (deletion-lane safety model). Once #4224 is decided, post the evidence here (the #4224 decision, the #1116 review, and a guard test showing the belt rejects a malformed inline-path call), then the owner makes the final call.

  6. kyle-sexton commented on Oct 1, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI (Claude Code). It prepares the owner's A/B/C/D call on this issue. It decides nothing and implements nothing.

    #4225 security review

    This review follows #1116's shape: it weighs the trust surface each option adds against the risk the option leaves in place, and it ends with a recheck trigger. Code citations are relative to plugins/disk-hygiene/ at origin/main 038c2ae22. Every probe cited here was run this session against that tree; the probe list is at the end.

    Scope. This review covers how the clean lane's run artifacts reach the engine: A-D below. It does not cover #4224's option A, the batched Windows verify-and-recycle that would reverse the #1116 decline. That lane still needs its own review.

    The evidence the 2026-09-29 reservation asked for

    1. The disk-hygiene: batch verify-and-recycle into one gated call per tier and fold the approval into the hook ask #4224 decision. disk-hygiene: batch verify-and-recycle into one gated call per tier and fold the approval into the hook ask #4224 is still open. On 2026-09-29 the owner chose its option C. All three C pieces landed in feat(disk-hygiene): repeatable handoff-verify --path, self-describing ask reasons, allow-rule gotcha #5528 (1faef74fd):

      • repeatable handoff-verify --path (lib/engine_grammar.py:260-284);
      • an apply ask reason that lists the tier, the count and every path (skills/clean/scripts/destructive_guard.py:2863-2901);
      • the gotcha that allow rules cannot remove the deletion prompts (skills/clean/SKILL.md:495).

      disk-hygiene: batch verify-and-recycle into one gated call per tier and fold the approval into the hook ask #4224's option A, the batched verify-and-recycle, stays parked.

    2. A chore(disk-hygiene): affirm recorded decline of Windows engine-execution lane (F12) #1116-style security review. This comment, within the scope stated above.

    3. A guard test showing the belt rejects a malformed inline-path call. test(disk-hygiene): pin the guard's denial of malformed inline --path calls #5744, squash-merged as aa6a6e545. It pins that both guard modes deny 13 malformed inline-path shapes. Five separate loosenings of the guard each make it fail. For one of them, admitting --path=value, no other test in the suite fails.

    Already landed for this issue:

    What the model still writes under ~/.claude

    The run directory sits under ${CLAUDE_PLUGIN_DATA} (SKILL.md:170-172). The model still authors these files there:

    • plan-<tier>.json: once per tier, on every execution request (SKILL.md:345-349).
    • in-flight-refs.json: when open work references paths (SKILL.md:179).
    • findings.json and answers.json: when catalog records are written (skills/clean/reference/safety-model.md:869-874).
    • vcs-evidence.json: for a standalone checkout (unsupported-platform-handoff.md:84-107).
    • handoff-paths.json: now only for the optional --paths reporting form (unsupported-platform-handoff.md:41-46).

    The engine writes the rest of the run directory itself: the snapshot and the reports.

    What the belt enforces today

    • Lexer. Each argument must be one literal word. A command that contains any of {}$*?[]~`()<>;|&!#, CR, LF or tab fails closed. So does a quote inside a word, or an unquoted backslash (destructive_guard.py:69, :186-236).
    • Authority. The interpreter must be the hook's own Python, and the script must be the bundled engine. --data-root must equal the data root the guard derived itself (destructive_guard.py:1345-1379, :1316-1320).
    • Grammar. Required flags come first, in their declared order. Each optional flag appears at most once unless it is repeatable. Every value must be a literal that is not flag-shaped. Each one_of group needs exactly one member (lib/engine_grammar.py:367-417).
    • Verdicts.
      • scan, inventory, preview, handoff-verify and catalog: allow.
      • apply and handoff-apply: ask.
      • Anything else: deny (destructive_guard.py:587-595, :2986-3028).
    • Stricter than the parser. argparse accepts --path=rel/junk, and on handoff-apply it also accepts the prefix --pa, because build_parser keeps argparse's default prefix matching (skills/clean/scripts/hygiene.py:5452-5467). The guard denies both spellings; test(disk-hygiene): pin the guard's denial of malformed inline --path calls #5744 pins that.
    • Not enforced by the belt: what a path means. --path has no pattern (lib/engine_grammar.py:269-278). The guard admits --path /etc/passwd, --path ../../outside and --path ., as allow on handoff-verify and as ask on handoff-apply. Only the engine rejects them: validate_handoff_paths requires a relative path with no traversal that is present in the snapshot (hygiene.py:3192-3221, probed). Engine tests already pin that rejection (skills/clean/scripts/test_hygiene.py:8164-8183).
    • The engine already writes under ~/.claude. scan's --output (hygiene.py:5531), the apply and handoff-apply reports (:5845, :5864), and catalog all write through hook-allowed or hook-asked Bash calls. Only the engine confines those writes: state_output_path refuses any path outside --data-root or inside the plugin root (hygiene.py:382-396).
      • Probed, refused: runs/../../x.json, /tmp/elsewhere.json and ~/.claude/settings.json.
      • Probed, accepted: <data-root>/guard-decisions/decisions.jsonl and <data-root>/catalog.json.
      • The guard admits scan --output /tmp/x.json and leaves the refusal to the engine (probed).

    Options

    A. The engine persists the plan and the VCS evidence itself.

    • Trust boundary. The model's argv passes the belt's lexer and grammar, then the engine's validators. The engine then writes through state_output_path. scan already writes this way, so A extends a write path that exists rather than adding a new one.
    • What a confused or hostile agent can do.
      • It cannot move where the file lands outside the data root (probed above). Inside the data root, a model-chosen output name could overwrite the guard's decision log or catalog.json, so A's output name has to be fixed by the engine.
      • It does choose what goes into the plan, and that is the hard part:
        • validate_plan requires provenance, reason, evidence, why_not_work_product, risk and owner for each candidate (hygiene.py:3116-3167).
        • owner is not free text. Any value other than unmanaged needs native-GC evidence, and preview then blocks that candidate (hygiene.py:3168-3187).
        • The approval token binds the candidates, prose included (hygiene.py:4031-4040).
        • The skill's own example prose fails the lexer on its ; (SKILL.md:359,363). Probed: documented atomic-write staging name; owner process absent is denied, and so is owner process absent (lsof) for its (.
      • Putting today's plan on argv therefore needs one of four changes:
        1. Loosen line 69, which weakens every engine call.
        2. Pass an opaque encoding. Base64 passes the lexer (probed), but the human can no longer read the plan in the prompt.
        3. Add grouped per-candidate flags. The always-on grammar has no ordered groups: optional flags are an unordered set (lib/engine_grammar.py:402-411).
        4. Have the engine derive the prose, or make it optional, for plans the engine builds.
      • The "tier selection" reading, where the engine picks the candidates, conflicts with "a filename pattern is a discovery hint, never proof" (SKILL.md:34-36) and with the model-judgment layer (safety-model.md:29-35).
    • Bypass shapes tested. Every inline-path malformation in test(disk-hygiene): pin the guard's denial of malformed inline --path calls #5744. Also absolute and traversal values, which reach the engine and are refused there.
    • Residual risk.
      • The narrow form (see the recommendation) gives up two things:
        • The check that the prose fields are present. Any non-empty string passes that check, so it guards against a confused agent, not a hostile one.
        • Preview's block on a candidate the model itself labels managed, since argv-built plans would be unmanaged by construction. Managed state never belongs in a plan anyway (SKILL.md:370-372), so this is a confused-agent safety net too.
      • The other model-written files listed above stay files. vcs-evidence.json holds grouped repository records (unsupported-platform-handoff.md:87-107).
      • The narrow form changes preview's grammar, which test_apply_grammar_is_unchanged pins today (test_hygiene.py:16021-16024). disk-hygiene: handoff-verify should accept --path inline, halving prompts on multi-path runs #3351 made the same kind of change to handoff-verify.
      • Inference: no option fully meets the dontAsk criterion. hooks.md says an ask "prompts the user to confirm" (Basis: hooks, fetched 2026-10-01). dontAsk "auto-denies every call that would otherwise prompt" (Basis: permissions, fetched 2026-10-01). The deletion step is a hook ask, so it should be denied in dontAsk whatever happens to the plan write. Neither page states that combination directly.

    B. Plan and evidence travel on argv to both preview and apply.

    • Trust boundary. The same lexer, owner and prose problems as A. The grammar of the mutating apply grows as well; test_apply_grammar_is_unchanged pins it today (test_hygiene.py:16003-16020).
    • Gain over A. The apply ask reason could be built from the command's own words instead of from the --plan file it reads today (destructive_guard.py:2863-2901).
    • Bypass shapes tested. The same as A. B also widens the parser surface of a subcommand that answers ask.
    • Residual risk. A larger change to a mutating grammar, with no Windows benefit: the engine never deletes on Windows (SKILL.md:439-440).

    C. Docs only.

    • Trust boundary. Unchanged. docs(disk-hygiene): name protected-path cost of run-directory writes (#4225) #4815 already delivered most of C. The remaining gaps are plan-<tier>.json, in-flight-refs.json and the catalog files: the model writes each one and none carries a protected-path note.
    • What an agent can do. Nothing beyond what it can do today.
    • Residual risk.
      • Each tier still costs one protected-path write: a prompt in default and acceptEdits, a classifier round trip in auto, a denial in dontAsk.
      • Each prompt offers "Yes, and allow Claude to edit files in its ~/.claude folder for this session". Accepting it approves every later write under ~/.claude for the session, settings included (Basis: protected paths, fetched 2026-10-01). That repeated offer of a broad grant is C's main security cost.

    D. Park until a #1116-style review exists.

    • Trust boundary. The status quo. Within this review's scope, this comment is the review D waits on, so D now amounts to C without the notes.

    Found while reviewing, outside A-D

    These predate every option and do not bear on the choice. Each is worth its own issue.

    • Input paths are not confined.
      • The engine reads --snapshot, --plan, --paths and --vcs-evidence from any path (hygiene.py:308-315), and the guard admits preview --snapshot /tmp/s.json --plan /tmp/p.json (probed).
      • The snapshot carries the consumer protection globs (hygiene.py:3083-3097), yet the trust-boundary list names the plan as untrusted and not the snapshot (safety-model.md:20-23).
    • The decision log can be overwritten. A model-chosen scan --output (hygiene.py:5531) or an apply --report can overwrite the guard's local decision record, because state_output_path admits any path inside the data root (probed).
    • A possible Windows path escape (a lead, not verified on Windows). handoff_verify joins a snapshot key onto the target as target.joinpath(*PurePosixPath(key).parts) (hygiene.py:4468). PureWindowsPath('D:/target').joinpath('C:', 'Users') is C:Users, so a forged snapshot key C:/Users would resolve outside the target on Windows. Only the pathlib behavior was probed; the engine was not run on a Windows host.

    Probes run

    • The real hook, both modes. destructive_guard.py was run in belt and engine-gate modes, with the command passed as JSON on stdin, over 32 command shapes.
      • Every lexer and grammar malformation was denied in both modes.
      • The controls returned allow (handoff-verify, preview) or ask (handoff-apply).
      • Absolute, traversal and . values returned allow or ask.
      • preview/apply with an added --path were denied.
      • Read and write paths outside the data root were admitted.
    • Engine functions, called directly. validate_handoff_paths, state_output_path, build_parser().parse_args and the guard's _literal_shell_words were called on their own. No engine subcommand ran.
    • Mutation runs on the test(disk-hygiene): pin the guard's denial of malformed inline --path calls #5744 test.
      • Each of these loosenings was applied alone, the test was run, and the change was then reverted with git restore:
        • splitting --flag=value;
        • dropping is_argument;
        • dropping the one_of check;
        • prefix-matching required flags;
        • removing $ from line 69.
      • The test failed under every one of them, in both modes.
      • Across the whole clean-skill suite, only the --flag=value split went uncaught by every other test.

    Recommendation (for the owner's call; not a decision)

    Recommended: A, in its narrow form.

    • Pass the tier and the paths to preview as literal --tier and repeated --path, in a one_of with --plan.
    • The engine writes an all-unmanaged plan-<tier>.json under an engine-fixed name, through state_output_path.
    • Leave the apply grammar and the lexer unchanged, put no prose on argv, and keep the other run files as files.
    • It carries two confused-agent safety nets for the owner to accept losing on argv-built plans: the prose presence check, and the self-declared managed block.

    Basis: it removes the only per-tier protected-path write, and with it a repeated offer of the session-wide ~/.claude grant, by reusing the one_of inline-path shape the belt already enforces on handoff-verify and #5744 pins, without changing the lexer or either mutating grammar.

    Acceptance criteria under narrow A:

    Criterion Under narrow A
    Zero Write-tool calls into ~/.claude Met only for runs that write none of the other files listed above
    No plan or handoff prompt in default mode Met for the plan. The handoff path list is already inline. vcs-evidence.json still prompts
    dontAsk lane not blocked by a plan or handoff write Met for the plan. The deletion ask is still denied (inference above)
    Handoff reference step 1 Already met by #4815
    Guard tests Met by #5744. The narrow-A change would extend the same test to preview

    Recheck this recommendation when any of these happens:

    • the lexer at destructive_guard.py:69 changes;
    • validate_plan's required set or its owner rule changes;
    • the protected-paths section of permission-modes changes its directory list, its per-mode table or its session-scoped option;
    • the run directory moves out of ${CLAUDE_PLUGIN_DATA}.
  7. 22 remaining items

  8. removed
    admission-deferred
    on Nov 2, 2026
  9. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor
    No description provided.
  10. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 41498774694, the work-resolve-issue run that agent-ready started, before it did any work; that run ended at 2026-11-02T18:42:34Z. work-unblock has now removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  11. added
    agent-ready
    and removed
    agent-ready
    on Nov 2, 2026
  12. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor
    No description provided.
  13. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor
    No description provided.
  14. added
    host-run
    and removed
    agent-ready
    on Nov 2, 2026
  15. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped on this issue (host-only): the run reports the work needs a host run the lane cannot make.
    It added host-run and removed agent-ready: an agent run on a host builds it, and it waits on no decision from a person.

    In the run's words:

    host-only: every code done-when item for #4225 is already on the default branch through merged PR #11445 (afdb7f9). The one item left is the post-merge host check: in a default-mode session, a clean run of one tier shows no protected-path prompt for the plan file. That check needs an attended Claude Code session, which this lane cannot run. The issue stays open only for that check, as the 2026-11-02 recorded decision says.

    What the run says it did not do:

    • The post-merge host check (default-mode clean run of one tier shows no protected-path prompt for the plan file). It needs an attended session on a host, which this lane cannot run.
    • Could not resolve commit afdb7f9 in this shallow checkout. The work was confirmed from the file contents on HEAD 971e449 instead.
    • Tidy, review, verify and checks prep steps skipped: there is no diff.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41504771466

    To hand it back to the lane, remove host-run and add agent-ready again.

  16. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Delivered: closing as completed.

    Checked by the issue-triage session on origin/main 2ab34433b0 (no plugins/disk-hygiene change since) against the 2026-10-29 Done-when list. The 2026-10-13 decision chose option A in its narrow form, which narrowed the body's criteria: vcs-evidence.json, in-flight-refs.json and the catalog files stay model-written, and the deletion step stays a hook ask (see the 2026-10-01 review's criteria table). The body's handoff-reference criterion was met by #4815 (skills/clean/reference/unsupported-platform-handoff.md:110-121, step 1). All the narrow-A code landed in #11445 (afdb7f9e0a).

    • preview takes --tier plus repeated --path, in a one_of with --plan: plugins/disk-hygiene/lib/engine_grammar.py:379 and :386. feat(disk-hygiene): take preview's tier and paths inline #11445 leaves the lexer and the apply/handoff-apply grammars unchanged; test_apply_grammar_is_unchanged (skills/clean/scripts/test_hygiene.py:17636) changes only the preview flag list.
    • The engine writes plan-<tier>.json under a name it fixes itself, through state_output_path: inline_plan_path (engine_grammar.py:101) feeds hygiene.py:3391, which goes through model_output_path (hygiene.py:449-453) to state_output_path (hygiene.py:406-420). The guard test denies a caller-chosen --output on preview.
    • preview --path rejects an absolute path, .., ., and a path not in the snapshot: test_preview_inline_path_keeps_the_handoff_path_rules (test_hygiene.py:8350).
    • The test(disk-hygiene): pin the guard's denial of malformed inline --path calls #5744 guard test covers preview in both guard modes, malformed shapes denied and well-formed one- and two-path calls allowed: test_both_guard_modes_deny_a_malformed_inline_path_call (test_hygiene.py:10432).
    • SKILL.md step 4 writes no plan file, and step 5 runs the inline preview: skills/clean/SKILL.md:347-353 and :365.
    • Tests and changelog: feat(disk-hygiene): take preview's tier and paths inline #11445 reports the clean suite passing (777 tests); plugins/disk-hygiene/CHANGELOG.md:35, released in 0.50.0.
    • Post-merge host check, run by the issue-triage session on 2026-11-02 against installed disk-hygiene 0.50.4 (Linux, Claude Code 2.1.316):
      • Command: claude -p --permission-mode default --output-format json --model opus "/disk-hygiene:clean --execute <throwaway fixture of 3 files>".
      • Result: the session ran scan, then preview --tier high --path build-output.log.tmp --path report.pdf.crdownload, which returned ready-for-explicit-approval, and it ended at the approval question. Nothing was approved or deleted.
      • The transcript has no Write or Edit tool call. The preview Bash call ran unrefused, and the engine wrote plan-high.json itself: both candidates unmanaged, with the fixed prose.
      • It was a print-mode run, where every call that would prompt is refused instead. The transcript shows three refused calls of two kinds, none a write: two Reads of snapshot.json (a read outside the working directory, not a protected-path write) and one git check-ignore the model added.
      • Why this meets the check without an attended session: a protected-path prompt for the plan file can only come from a model Write or Edit of it. There is none, and print mode would have surfaced one as a refused call, as it did for the Read. An attended default-mode session running the same steps would show no plan-file prompt.
  17. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Closing as completed on the delivery record above (issuecomment-6587254524): every 2026-10-29 Done-when item is on main via #11445, and the post-merge host check passed. Written by the issue-triage session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    host-runstatus: ready

    Type

    Fields

    Work status

    agent-ready

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions