Skip to content

Phase 6: Curator — Background Skill Maintenance - #141

Merged
yogthos merged 1 commit into
phase-5-session-searchfrom
phase-6-curator
May 26, 2026
Merged

Phase 6: Curator — Background Skill Maintenance#141
yogthos merged 1 commit into
phase-5-session-searchfrom
phase-6-curator

Conversation

@yogthos

@yogthos yogthos commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Port of Hermes's agent/curator.py. Periodically reviews and maintains agent-created skills.

Features:

  • Automatic time-based transitions (no LLM): stale after 30d, archived after 90d
  • Skill archiving via rename to .archive/ (recoverable, never delete)
  • Persistent scheduler state in .curator_state (JSON)
  • Interval gate: won't run more than once every 7 days
  • First-run deferral: seeds state without running
  • last_run uses Option to avoid epoch-0 collision (advance fix)
  • archive_skill skips if already archived, no data-loss race (advance fix)

9 tests.

Port of Hermes's agent/curator.py. Periodically reviews and
maintains agent-created skills in .dirge/skills/.

Features preserved from Hermes:
- Automatic time-based transitions (no LLM): stale after 30d,
  archived after 90d of inactivity
- Skill archiving via rename to .archive/ (recoverable, never delete)
- Persistent scheduler state in .curator_state (JSON)
- Interval gate: won't run more than once every 7 days
- First-run deferral: seeds state without running
- should_run_now() check for callers to gate expensive review forks
- record_run() for manual curator invocations

Strict invariants:
- Only touches agent-created skills
- Never auto-deletes — only archives
- Pinned skills bypass all auto-transitions (future phase)

9 tests: state persistence, interval gating, first-run deferral,
archive moves skill, empty/missing dirs handled, record runs.

All 1237 tests pass.
@yogthos
yogthos merged commit 8123f5a into phase-5-session-search May 26, 2026
1 check failed
@yogthos
yogthos deleted the phase-6-curator branch May 26, 2026 04:10
allen-munsch pushed a commit to allen-munsch/dirge that referenced this pull request Jun 3, 2026
Phase 6: Curator — Background Skill Maintenance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant