Repository navigation
setup: read-only vetted ops must never prompt (install applies, verify checks, update reports drift) - #1640
Merged
Conversation
Bulk skills run vetted-op-read from background gatherer agents, which cannot surface a permission prompt, so every prompt there is a silent denial. Make "read-only vetted ops never prompt" an imperative of the secure setup: install proposes the shape, verify checks it (check 16), update reports drift as must-fix, and sandbox-lint enforces the committed half. The shape: vetted-op-read allowed and sandbox-excluded for both launchers on both the ~ and the absolute $HOME base, no ask rule that matches it, blockReadsOutsideWorkingDirectories off (it cannot resolve the literal ~), and the three vetted-ops Edit deny rules present. vetted-op-tracker and vetted-op are unchanged. Generated-by: Claude Opus 5
5 tasks done
potiuk
added a commit
that referenced
this pull request
Oct 15, 2026
Brings tools/spec-loop/specs/ in line with what landed between 21fe630 and 1807199 (#1554 to #1640): the pr-management code-path work and mention policy, the vetted-ops reads and --save, the Subversion backend, the CVE tooling changes, candidate-screen's pre-filter and data-only report, calendar-date release versions, the session-start drift mod, the Grok and Copilot guard hooks, the fixed adversarial-review path, and the vendor-neutrality multi-vendor rule. Specs that had drifted into stating the opposite of the code are corrected (candidate-screen pre-filter, stats writes, reviewer-routing eligibility). The non-ASF reviewer-routing smoke case still expected NO ELIGIBLE REVIEWER when no roster area matches; since #1583 every member is eligible there, so it now expects the lowest-load member. .last-sync moves to 1807199. Generated-by: Claude Code (Opus 5.5)
potiuk
added a commit
to Kaap10/magpie
that referenced
this pull request
Oct 16, 2026
Bulk skills run vetted-op-read from background gatherer agents, which cannot surface a permission prompt, so every prompt there is a silent denial. Make "read-only vetted ops never prompt" an imperative of the secure setup: install proposes the shape, verify checks it (check 16), update reports drift as must-fix, and sandbox-lint enforces the committed half. The shape: vetted-op-read allowed and sandbox-excluded for both launchers on both the ~ and the absolute $HOME base, no ask rule that matches it, blockReadsOutsideWorkingDirectories off (it cannot resolve the literal ~), and the three vetted-ops Edit deny rules present. vetted-op-tracker and vetted-op are unchanged. Generated-by: Claude Opus 5
potiuk
added a commit
to Kaap10/magpie
that referenced
this pull request
Oct 16, 2026
…1643) Brings tools/spec-loop/specs/ in line with what landed between 21fe630 and 1807199 (apache#1554 to apache#1640): the pr-management code-path work and mention policy, the vetted-ops reads and --save, the Subversion backend, the CVE tooling changes, candidate-screen's pre-filter and data-only report, calendar-date release versions, the session-start drift mod, the Grok and Copilot guard hooks, the fixed adversarial-review path, and the vendor-neutrality multi-vendor rule. Specs that had drifted into stating the opposite of the code are corrected (candidate-screen pre-filter, stats writes, reviewer-routing eligibility). The non-ASF reviewer-routing smoke case still expected NO ELIGIBLE REVIEWER when no roster area matches; since apache#1583 every member is eligible there, so it now expects the lowest-load member. .last-sync moves to 1807199. Generated-by: Claude Code (Opus 5.5)
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Bulk skills run
vetted-op-readfrom background gatherer agents, and a background agent cannot show a permission prompt.Every prompt there is a silent denial: the read fails, and the orchestrator gets a partial report with nothing to show that a read was refused.
A bulk sync over a few dozen trackers produced exactly that: patchy, unverifiable results.
Two settings shapes cause it:
permissions.blockReadsOutsideWorkingDirectorieson, Claude Code prompts on every call ("uvx names '~/.claude/magpie/vetted-ops', which cannot be checked against the read block").~in the command, which is the spellingsandbox.excludedCommandsmatches.allowrule nor an absolute$HOME/.claude/magpieinadditionalDirectoriesoverrides it.permissions.askrule that matches avetted-op-readcommand prompts, even when anallowrule also matches.What
"Read-only vetted ops never prompt" becomes a requirement of the secure setup.
Required shape:
permissions.allowcarriesvetted-op-readfor both launchers (uvx --from,uv run --project) on both bases:~/.claude/magpie/vetted-opsand the resolved absolute$HOME/....sandbox.excludedCommandscarries avetted-op-readentry for each of those four forms, plus the existing tracker exclusions. An allowed form without its exclusion runs sandboxed, and itsghcall fails silently.permissions.askrule matches avetted-op-readcommand, including broad rules such asBash(uvx *).blockReadsOutsideWorkingDirectoriesis false or absent in every scope. Bash stays sandboxed regardless.Editdeny rules (catalogue, fixed path, policy) are required. They are what makes the unprompted read safe.Where the rules live:
~allow pair, the~exclusions and the deny rules may live in the committed project settings or in user scope.$HOMEallow and exclusion forms are per machine: user scope, orsettings.local.jsonwhen user settings are synced. They are never committed.This covers the read dispatcher only.
vetted-op-trackerandvetted-opkeep theiraskrules and stay out ofallow.Changes:
docs/setup/secure-agent-setup.md: new section Read-only vetted ops never prompt, with the rationale. The install, verify and update prompts are updated to match.setup-isolated-setup-install: new Step V.1 proposes the exact edits. The operator applies them.setup-isolated-setup-verify: new check 16 (16a–16e). Any failure is ✗.setup-isolated-setup-update: a fourth vetted-ops check reports drift as must-fix.sandbox-lint: runs these checks whenever aBash(...)rule or anexcludedCommandsentry names a dispatcher. It requires both~allow forms, no read block and the three Edit denies. It also rejects anyaskrule that matches avetted-op-readcommand; rules are pattern-matched, so broad rules are caught. 15 new tests.tools/vetted-ops/README.md, thesandbox-add-project-root.shcomment and the spec-loop specs are updated to match.The framework's own
.claude/settings.jsonalready has this shape, so it is unchanged.Testing
oauth-api,jiraandtyped-decision, which this PR does not change.oauth-apifails because the sandbox blocks binding a local port;jiraandtyped-decisioncould not be run directly here.🤖 Generated with Claude Code