memoryguard_rule_create_auto
Creates a mandatory rule from text, automatically scoping access to the current agent or workspace. Broader scopes require explicit admin configuration.
Instructions
Create one mandatory rule from text. Automatic scope inference is fail-closed: only the trusted current agent or that agent plus the trusted project cwd are allowed. Broader scope requires explicit manual=true, an explicit scope object, and admin capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | optional preference|fact|project|procedure|episode|correction | |
| text | Yes | rule text | |
| scope | No | optional explicit audience assignment; auto mode still rejects broad targets | |
| manual | No | explicit human/admin declaration for broad scope | |
| priority | No | ||
| workspace | No | workspace path (default: configured MemoryGuard workspace) | |
| idempotency_key | No |