# verboten Protected-path policy for Pi model tools. ## Install / load Loaded through the root `pi-ext` package. See [root README](../../README.md). ## Commands / tools / settings Command: - `/verboten` shows effective rules, their sources, skipped invalid settings, and the judge model. Tools: none. Hooks: - `session_start` loads built-ins plus trusted global and project settings. - `before_agent_start` injects protected regexes and preventive instructions. - `tool_call` blocks direct protected paths and judges matching Bash or PowerShell commands. - `tool_result` removes protected rows from broad grep results. Settings: ```json { "verboten": { "patterns": ["(?:^|/)private(?:/|$)"], "judgeModel": "openai-codex/gpt-5.6-luna" } } ``` `patterns` are additive JavaScript regex sources compiled with `iu` flags. Global and trusted project patterns merge. Invalid patterns warn and are skipped. `judgeModel: null` or omission follows the current Pi model. ## Behavior `read`, `write`, `edit`, and direct `grep` calls block when raw, absolute, or real paths match. Nonexistent write targets resolve through their nearest existing ancestor, covering symlinked parent directories. Broad grep searches remain usable. Protected rows and context are removed, and only the omission count is reported. `ls`, `find`, stat, status, existence checks, exclusions, and inert path mentions remain allowed. Matching Bash and PowerShell commands go to a dedicated low-reasoning judge with one constrained verdict tool. Trusted programs, repository hooks, filters, and credential helpers may consume protected files internally when they do not expose protected data or mutate protected files. The judge receives the complete raw command, cwd, and matched regexes, which may cross providers when `judgeModel` selects another provider. A probability of at least `0.8` blocks. Successful verdicts use a bounded in-memory SHA-256 cache. Judge failures warn, fall back to the current model when possible, then fail open after fallbacks are exhausted. Cancellation blocks the pending command. Human `!` and `!!` commands are unrestricted. Verboten is best effort, not a sandbox or complete mediation boundary.