kuma_safety
Guard risky work, verify edits with scoped tests, snapshot/restore checkpoints, and track tool costs at task boundaries to catch drift, loops, and regressions early.
Instructions
Safety & verification. Use at task boundaries, not on every edit.
CORE ACTIONS (use these): guard (before risky work: anti-patterns, drift, loops), verify (after edits: scoped tests + validation), checkpoint + rollback_label (the one rollback mechanism: snapshot before risky work, restore after), cost (cost-per-tool ledger).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force re-run even if cache is fresh or rate limited (verify) | |
| label | No | Checkpoint label for checkpoint/rollback_label | |
| scope | No | Scope for verify (e.g. 'auth', file path) | |
| action | Yes | guard=anti-patterns/drift/loops before risky work, verify=scoped tests after edits, checkpoint=labeled snapshot before risky work, rollback_label=restore a labeled snapshot, cost=cost-per-tool ledger | |
| target | No | Target test file or scope for verify | |
| command | No | Custom test command to run during verify | |
| timeout | No | Custom timeout in seconds for verify | |
| guardGoal | No | Goal for guard check | |
| timeoutMs | No | Custom timeout in milliseconds for verify (default: 60000) | |
| guardCheck | No | Guard check type | |
| description | No | Description for checkpoint |