Agent Governor Research preview
Policy enforced inside an AI agent's loop before each tool action runs. A Claude Code hook sends the tool name and command (never file contents or transcripts) to this portal and enforces the answer: Block, Escalate (waits for a human decision in the Review queue), Advise (allowed, with a warning to the agent) or Allow. Anything no rule allows is blocked.
Policy · version 1
| Tool | Condition | Value | Decision | Reason |
|---|---|---|---|---|
Bash | command contains | rm -rf | Block | Destructive recursive delete is not allowed. |
Bash | command contains | git push | Escalate | Pushing code needs a human approval in the portal. |
Write | outside project | — | Advise | Writing outside the project folder: check this is intended. |
Edit | outside project | — | Advise | Editing outside the project folder: check this is intended. |
* | always | — | Allow | Default allow inside the sandbox. |
When several rules match, the strictest decision wins (Block, then Escalate, then Advise, then Allow).
Edit policy (publishes a new version)
Connect a Claude Code agent
- Create an engagement key on the use case overview and save it in a file only the agent's user can read.
- Download the hook script and the Claude Code settings into the project's
.claudefolder. - Set
MULTIPRA_PORTAL,MULTIPRA_KEY_FILEandMULTIPRA_PROJECT_ROOTfor the agent. If the portal cannot be reached, the hook blocks the action.
Decision log
Latest 200 governed events for this use case.
| When | Event | Tool | Action | Decision | Reason |
|---|---|---|---|---|---|
| 02 Dec 14:40:18 | PreToolUse | WebFetch | WebFetch | Allow | Default allow inside the sandbox. (policy v1) |
| 02 Dec 09:09:24 | Stop | — | | Observe | Lifecycle telemetry (policy v1) |
| 02 Dec 09:09:24 | PostToolUse | Bash | Bash | Observe | Lifecycle telemetry (policy v1) |
| 02 Dec 09:09:16 | PreToolUse | Bash | git push origin main | Escalate approved by demo-operator | Pushing code needs a human approval in the portal. (policy v1) |
| 02 Dec 09:09:15 | PreToolUse | Write | /opt/aia-governor-sandbox/project/notes.md | Allow | Default allow inside the sandbox. (policy v1) |
| 02 Dec 09:09:15 | PreToolUse | Write | /tmp/outside.txt | Advise | Writing outside the project folder: check this is intended. (policy v1) |
| 02 Dec 09:09:15 | PreToolUse | Bash | rm -rf build | Block | Destructive recursive delete is not allowed. (policy v1) |
| 02 Dec 09:09:15 | PreToolUse | Bash | ls -la | Allow | Default allow inside the sandbox. (policy v1) |
| 02 Dec 09:09:15 | SessionStart | — | | Observe | Lifecycle telemetry (policy v1) |