brain_hygiene
Automatically maintain your AI's cognitive memory by flagging stale lessons, archiving dormant ones, and resolving contradictions. Run on a schedule or before a release to keep active lessons relevant and accurate.
Instructions
Autonomously sweep and maintain your Brain — flags stale lessons as provisional, archives long-dormant ones, and resolves contradictions where success clearly dominates failure. Safe to run on a schedule (weekly CI job) or on-demand before a big release. Lesson state lifecycle: active → provisional (confidence < threshold) → archived (stale + low-recall + old). Archived lessons are excluded from smart_recall but preserved for audit. dry_run=true (default false) shows what would change without writing anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report changes without applying them (default false) | |
| instance_id | Yes | UUID of the cache instance | |
| archive_days | No | Days after which a provisional low-recall lesson is archived (default 30) | |
| provisional_threshold | No | Confidence below which a lesson is flagged provisional (default 0.5) |