Repository navigation
feat(pi-automode): add command rules and reviewed reusable permissions - #87
Merged
Merged
Conversation
- Rules are now strict commands or glob patterns matched against the full bash command text: '*' is the only wildcard and matches any run of characters; every other byte is literal. Message rules are removed; legacy files carrying them are rejected with an explicit migration error, legacy type: "command" entries are accepted and normalized. - Matching scales with rule count: rules compile once per settings snapshot (memoized by list identity) into an exact-match hash map plus anchored regexes bucketed by first literal byte, so a lookup is one hash probe plus at most a small bucket of regex tests. - UI vocabulary is allowlist/blocklist throughout; the add-rule flow offers Allowlist command / Blocklist command only. - The decision-model envelope now asks a single typed safety question (safe / unsafe / uncertain) and carries the exact bash command under review; operator rules never leave the machine. Receipts drop the shadow marker; the gate's activation lands separately.
Always Allow now requires the current registry model and checkDisclosureConsent bindings, not a version-only flag.
GaganSD
marked this pull request as ready for review
November 13, 2026 21:19
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.
Uh oh!
There was an error while loading. Please reload this page.