# Gating: not built

Default to parity with Claude Code, opencode and hermes; add a mechanism only for a concrete user pain. Each item below fails that test.

| Idea | Why it comes up | Why not | Revisit when |
| --- | --- | --- | --- |
| Per-session gating toggle: override the profile for one conversation | A role is too tight for a one-off task; editing the profile feels heavy | Claude Code's `permissionMode` and opencode's ruleset are per agent; hermes has no such escape. Editing `agent.json` applies next turn. An override raises state questions: where it lives, whether it survives reload, whether it leaks across WebSocket reconnects | Users keep editing `agent.json` back and forth for one task |
| Plugin subprocess sandbox: restricted file system and network | Plugins ship arbitrary Python; a malicious one could take API keys or delete the workspace | The references load plugins in-process. Trust levels already gate dangerous capabilities: `plugin.json` declares `trust`, `~/.openprogram/plugin-trust.json` stores `verified`, `community` or `untrusted` (default). OS sandboxes are per-platform: seccomp Linux, App Sandbox macOS. Install is an explicit user action with manifest review | Automatic plugin install exists, such as a model installing one mid-conversation |
| Skill `requires` chain in frontmatter | Skills depend on other skills' context; users chain `/skill A /skill B` | No reference has it, nor the SKILL.md spec. The fix is merging skills or stating it in the description. Dependencies add ordering, conflict and version questions found nowhere else here | Authors repeatedly write "use together with X" |
| Hook-level gating: hooks scoped to one agent profile | Plugin hooks in `openprogram/extensions/plugins/hooks.py` subscribe on the process-wide bus; no per-agent choice | Few plugins register hooks. Claude Code's per-agent hooks are mostly used through plugins. Gating answers what the model can use; hooks answer how a call goes through | A plugin must behave differently per agent |
| Single ruleset: one `permission: [{pattern, action}]` list | One source of truth, easier new types | A pure refactor with no new capability. Every profile under `~/.openprogram/agents/` needs migration. First-match-wins makes order matter; separate blocks do not | A fifth or sixth gated type bloats the schema |

## Revisiting

1. Find the symptom: complaint, incident or a concrete use case.
2. Check it against the reason here.
3. If the reason no longer holds, implement and update this page. If it holds, this page is the answer.
