Skip to content

feat(cli): tole curator and usage recording (#593 part 2) - #661

Merged
ajianaz merged 1 commit into
developfrom
feat/skill-curator-cli
Nov 13, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/skill-curator-cli

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What

Part 2 of #593: tole curator, the owner's side of the skill curator, plus the recording of recalls and loads that feeds it.

Why

Part 1 (#659) added the usage ledger, the derived lifecycle and the package-aware archive. Nothing used them yet. The owner wants the curator on by default, switchable off or paused (design skills-registry-design.md §4.5, §6.4); this is the command surface and the usage recording. The [curator] config table, run outcomes and the weekly schedule are part 3.

Changes

  • tole curator run [--dry-run] assesses every skill the curator manages (promoted from a draft, or adopted) and archives those unused past the thresholds (stale after 14 days, archived after 30, 30 days of grace for a skill never used). The whole package moves with a mutation-ledger entry; a symlinked skill is refused and reported. Pinned skills, skills a live cron job names with --skill NAME and skills the curator does not manage are never touched. Underperformers (success rate 0.2 or more below runs without a skill) are listed as proposals, never acted on. One sweep at a time (lock file, taken over after 10 minutes).
  • status, pause and resume (a paused curator changes nothing), restore <name>, pin/unpin, lock/unlock (a locked skill takes no skill_propose draft), adopt/unadopt.
  • Usage recording: each successful load_skill writes a loaded line and each skill the uteke index recalls writes a recalled line to skill-usage.jsonl. A recall alone never keeps a skill alive. The ledger is a field of SkillRecall (off by default, set by from_env), so tests and embedders never write the user's ledger. A ReadOnly tool appending to host bookkeeping under the CodeCora home is the one behavior to look at: it is outside the workspace and best effort.
  • cron::skill_names lists the skill names live jobs run with.
  • CHANGELOG.md, docs/epics.md and the README status are updated in this PR.

Testing

  • cargo fmt --all; clippy -D warnings on tole-core and on tole-cli lib, bins and every test target except tui_e2e (also --no-default-features --lib): clean.
  • 9 unit tests for the sweep (threshold archive, dry run and pause, pinned, cron-named, unmanaged and adopted skills, the lock and a stale lock, an archive failure reported, status text, state edits, invalid thresholds, underperformers), one for the locked-skill refusal in skill_propose, one for load_skill counting a load, and 4 end-to-end tests with the real binary (status, dry run, sweep, restore, pin, pause, resume, lock, a bad name).
  • Not caused by this PR, reproduced on clean develop on macOS: tui_e2e does not compile (libc::openpty), 3 delegate:: tests and compaction_e2e::doctor_warns_non_fatally_about_a_missing_window fail; serve_images and serve_events are flaky locally. CI runs on Linux.
  • Cora agent review: review_prepare 0 deterministic findings, review_finalize should_block: false.

tole curator run archives agent-grown skills unused past the thresholds
(dry-run, pause, pin, lock, adopt, restore, status). load_skill and the
uteke recall now count loads and recalls in the usage ledger.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 4426967 into develop Nov 13, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/skill-curator-cli branch November 20, 2026 08:37
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