Repository navigation
feat(cli): tole curator and usage recording (#593 part 2) - #661
Merged
Merged
Conversation
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.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 NAMEand 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,pauseandresume(a paused curator changes nothing),restore <name>,pin/unpin,lock/unlock(a locked skill takes noskill_proposedraft),adopt/unadopt.load_skillwrites aloadedline and each skill the uteke index recalls writes arecalledline toskill-usage.jsonl. A recall alone never keeps a skill alive. The ledger is a field ofSkillRecall(off by default, set byfrom_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_nameslists the skill names live jobs run with.CHANGELOG.md,docs/epics.mdand the README status are updated in this PR.Testing
cargo fmt --all; clippy-D warningsontole-coreand ontole-clilib, bins and every test target excepttui_e2e(also--no-default-features --lib): clean.skill_propose, one forload_skillcounting a load, and 4 end-to-end tests with the real binary (status, dry run, sweep, restore, pin, pause, resume, lock, a bad name).developon macOS:tui_e2edoes not compile (libc::openpty), 3delegate::tests andcompaction_e2e::doctor_warns_non_fatally_about_a_missing_windowfail;serve_imagesandserve_eventsare flaky locally. CI runs on Linux.review_prepare0 deterministic findings,review_finalizeshould_block: false.