curator_run
Archive stale agent-created skills with tier-aware lifecycle rules: report planned changes in dry-run mode or apply moves while preserving pinned and validated skills.
Instructions
Move stale agent-created skills to archive.
Lifecycle: active → stale when last activity > stale_after_days stale → archived when last activity > archive_after_days (also moves primary directory to .archive/ and removes its mirrors, so a sync cannot revive it)
Activity is the last use, foreground view or creation. Patches do not count: autonomous loops patch skills routinely, which is maintenance, not proof that anyone relies on the skill. A skill must spend the gap between the two windows in 'stale' before it is archived, and renewed activity moves a stale skill back to 'active'. Every new curator pass runs this with dry_run=False.
Tier-aware adjustments (the discrete trust signal trumps raw activity): • tier='validated' skills are NEVER stale-aged or archived — proven load-bearing knowledge stays alive regardless of recency. • tier='hypothesis' skills age faster — half the stale_after window (default 15d instead of 30d). Unproven skills don't get to linger. • tier='observed' uses the standard windows.
Covers every learning-loop origin (CURATABLE_SKILL_ORIGINS). NEVER touches:
• foreground (user-authored) skills — provenance check
• pinned skills — opt-out flag
• validated tier — proven externally
• skills with no created_by_origin set (unknown provenance — be safe)
dry_run=True (default) reports what would change without writing.
Set False to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| stale_after_days | No | ||
| archive_after_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |