learn_error
Records structured error details including file, root cause, and fix, then automatically synthesizes a prevention rule into the rules table after repeated patterns are detected.
Instructions
Structured error capture: file, error, root_cause, fix, pattern. After N (default 3) errors share the same pattern, a prevention rule is auto-synthesized into the rules table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | Yes | ||
| file | Yes | ||
| error | Yes | ||
| pattern | Yes | ||
| project | No | general | |
| category | No | bug | |
| severity | No | medium | |
| root_cause | Yes |