Repository navigation
feat(cli): [curator] config, tole curator schedule and a doctor line (#593 part 3a) - #663
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
…593 part 3a) A user-layer [curator] table switches the curator off or sets the thresholds, tole curator schedule saves a weekly script job on the built-in scheduler, and tole doctor reports whether it is on and scheduled.
ajianaz
force-pushed
the
feat/curator-config-schedule
branch
from
November 13, 2026 08:04
74cd83e to
08612db
Compare
1 task done
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 3a of #593: a user-layer
[curator]config table,tole curator schedule(the weekly sweep as a job on the built-in scheduler) and atole doctorline. What remains of #593 is run outcomes (part 3b).Why
The owner wants the curator on by default, switchable off, and run weekly on the scheduler (design
skills-registry-design.md§4.5, §6.4; issue #593:curator.enabled). Parts 1 and 2 (#659, #661) built the core and the command; nothing scheduled it and nothing let the owner turn it off or tune the thresholds in config.Changes
[curator]in the user config:enabled(default on),stale_days(14),archive_days(30),grace_days(30), each at most 3650. User layer only, like[cron]: a project's table is ignored, andtole config checkshows it as ignored. The pair is validated with defaults filled in, so one key alone cannot leavearchive_daysat or belowstale_days. A user config that cannot be read is reported and the defaults apply.enabled = false,tole curator runand the weekly job report what they would do and change nothing;statussays why.tole curator schedule [--cron EXPR]saves one script jobcurator-weekly(tole curator run, default0 4 * * 1, UTC, zero tokens);unscheduleremoves it. The scheduler refuses a path-qualified program, so the job runs the baretolefrom the scheduler's PATH;schedulewarns whentoleis not on this PATH. It runs when the scheduler ticks (tole serve --cron, or cron(8) callingtole cron tick).tole doctorgains acurator:line;tole curator statusshows the schedule.README.md(config table and status),CHANGELOG.mdanddocs/epics.mdare 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.schedulethencron listthenstatus, a secondschedulerefused,unschedule).developon macOS:tui_e2edoes not compile (libc::openpty), 3delegate::tests andcompaction_e2e::doctor_warns_non_fatally_about_a_missing_windowfail;serve_*tests are flaky locally (flaky test: session_effort_e2e::a_rejecting_provider_still_answers_without_the_parameter (session lock still held by the test process) #646). CI runs on Linux.review_prepare0 deterministic findings,review_finalizeshould_block: falsewith one info note (the job needstoleon the scheduler's PATH).