lesson_violation
Record a repeat violation of an existing lesson's rule instead of creating a duplicate. Use violations to trigger an active guard when memory is insufficient.
Instructions
Record that an EXISTING lesson's rule was broken again (#228).
Call this instead of appending a duplicate lesson when the dialog shows
the user correcting behavior that slug already covers. evidence is a
one-line description of the repeat (no secrets or transcript dumps). One
conversation counts once per lesson per day. At
LESSON_VIOLATION_THRESHOLD violations in the window the lesson is
memory-insufficient and should become an active guard (a PreToolUse-style
hook) rather than more memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| evidence | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |