self_rules
Manage behavioral rules (SOUL). Rules are promoted insights that shape agent behavior. Actions: list, fire (record relevance), rate (success=true/false), suspend, activate, retire, add_manual, followed (surface_id from…
Instructions
Manage behavioral rules (SOUL). Rules are promoted insights that shape agent behavior. Actions: list, fire (record relevance), rate (success=true/false), suspend, activate, retire, add_manual, followed (surface_id from self_rules_context(query=...): was the rule followed?), report (follow-rate effectiveness with Wilson CIs, measurement only). success_rate = success / (success + fail). Auto-suspend: 5+ ratings and the 95% upper bound of success_rate < 0.4.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule ID (for fire/rate/suspend/activate/retire) | |
| note | No | For followed: evidence note | |
| tags | No | ||
| min_n | No | For report: judged surfaces needed before a verdict | |
| scope | No | global | project:<name> | category:<name> | global |
| action | Yes | ||
| content | No | Rule text (for add_manual) | |
| project | No | general | |
| success | No | For rate: was rule helpful? | |
| category | No | Category (for add_manual) | |
| followed | No | For followed: true followed, false ignored, null clears | |
| priority | No | 1-10 | |
| applicable | No | For followed: false marks the rule not applicable | |
| surface_id | No | For followed: surface_id returned by self_rules_context |