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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"evidence": "<evidence>"
},
"name": "lesson_violation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| evidence | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |