Permission Rule Warnings - #233
Merged
Merged
Conversation
File-permission checks only ever consult Edit(path) rules, and an Edit rule covers every file-editing tool. The parallel Write/MultiEdit deny rules on the guarded spec-kit paths, and the Glob(**)/MultiEdit(**)/Write(**) allow entries, denied and allowed nothing while emitting twelve warnings at every session start. The guard is unchanged in strength. Docs and a new memory entry record why one Edit(path) rule per path is the whole guard, so it isn't "strengthened" again. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Owner
Author
|
@claude Review this pull request. Analyse the code changes and provide feedback covering:
|
Contributor
|
Claude finished @FrankRay78's task in 1m 43s —— View job Review of PR #233 — Permission Rule Warnings
Verdict: looks correct, no blocking issues. This is a clean, well-scoped config/docs fix. Correctness
Security
CLAUDE.md / constitution adherence
Test coverage
Spec/test-plan mismatches
Minor observations (non-blocking)
|
NetPace is public; a link to the private IMS repo is unresolvable for every reader but its owner. Cite the NetPace PR instead, and correct the warning count to twelve (the allow-list entries warned too, not just the deny triples). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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
Every session opened with twelve permission warnings:
File-permission checks consult
Edit(path)rules only, and anEditrule covers every file-editing tool — Write included.MultiEditis a legacy tool name that matches nothing at all. So the parallelWrite(...)/MultiEdit(...)deny rules added alongside each guarded spec-kit path in #215 denied nothing, and theGlob(**)/MultiEdit(**)/Write(**)allow entries allowed nothing already covered byRead(**)/Edit(**). Twelve inert lines, twelve warnings.What changes
settings.jsondeny— back to oneEdit(path)rule per guarded spec-kit path. The guard is unchanged in strength.settings.jsonallow— dropped the three inert entries.speckit_file_guard.md— NetPace had none, so nothing was stopping this being "strengthened" a third time.Non-obvious things a reviewer should know
Permission rules and hook
matcherfields are different mechanisms. A hook matcher matches tool names directly, so aWrite/MultiEditarm in a"matcher"string is a separate question from the above — NetPace's only hook matcher isBash, so nothing here touches hooks, and the memory entry says so explicitly to stop a future reader over-applying the rule.How to verify
Writeto a path under.specify/templates/— still denied with only theEdit(...)rule present. (Verified during authoring: aWriteto.specify/templates/deny-probe.mdwas blocked.).specify/templates/overrides/**,.specify/memory/constitution.md) is still editable.Related