arai_add_guard
Add a rule to be enforced on subsequent tool calls. Use to persist a discovered rule (e.g., 'never write to /etc') for the remainder of the project.
Instructions
Register a new guardrail that Δrai will enforce on subsequent tool calls. Use when you discover a rule mid-session that should persist for the rest of this project (e.g. 'never write to /etc', 'always run tests before push'). The rule is parsed the same way CLAUDE.md instructions are and stored locally β it takes effect on the very next PreToolUse hook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | The rule, phrased as an imperative. Examples: 'Never force-push to main', 'Always run pytest before committing', 'Never edit files in vendor/'. | |
| reason | No | Optional rationale β why this rule is being added. Recorded in the audit log so a human reviewer can see the agent's justification. |