register_prevention_rule
Converts missed detections into automated prevention rules. Register a check that fires on a trigger event to prevent repeated errors.
Instructions
TRIGGER: Call this to convert a missed detection into an automated prevention rule. 🛡️ Registers an automated check that fires on a trigger event. Args: rule_name: Unique name for the rule trigger_event: Event that triggers the check (e.g., 'pre_commit', 'prompt_received', 'tool_invoked') check_query: What to check when triggered action_on_match: What to do if the check matches severity: P0/P1/P2 source_detection_id: ID of the missed detection this rule was derived from (0 = manual)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| severity | No | P1 | |
| rule_name | Yes | ||
| check_query | Yes | ||
| trigger_event | Yes | ||
| action_on_match | Yes | ||
| source_detection_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |