Repository navigation
feat(cli): record run outcomes for the skill curator (#593 part 3b) - #664
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
tole run and tole mission write how they ended against each skill they loaded, or as the skill-less baseline. Recording applies only where there is something to curate, so a plain run leaves no file behind.
ajianaz
force-pushed
the
feat/curator-outcomes
branch
from
November 13, 2026 08:16
b96a600 to
9f834a2
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 3b of #593, which closes it:
tole runandtole missionrecord how they ended for the skill curator.Why
The curator proposes skills whose runs do worse than runs without one (design
skills-registry-design.md§4.5). Parts 1 to 3a built the comparison and its commands, but nothing wrote the outcomes it compares: only loads and recalls were recorded.Changes
skill_curator::RunTracker(the skills this process's run loaded, noted byload_skillwhen a ledger is on) andrecord_outcome: a success or failure line for each loaded skill, or one baseline line (skill: null) when the run loaded none.tole-cliskill_outcome:report_outcome(sorunandresume) andmissionwrite the outcome. A settled turn, or acompletemission, is a success. A provider failure, an exhausted step, token or time budget, a blocked stop gate, a loop, an unknown tool, a storage error,verify_failedor anerrormission is a failure. An approval stop, a cancel, a detach and astoppedmission say nothing about the skills and are not recorded.UsageLedger::default_if_curatedreturns a ledger only when the user has made a skill draft or has curator state. A plaintole runleaves no file behind, which also keeps test runs from writing into a developer's home (my own e2e runs did, which is why this exists). Recalls and loads use the same gate.chat,serve, ACP and cron agent runs record no outcomes yet (written in the CHANGELOG).CHANGELOG.md,docs/epics.mdand the README are updated in this PR.Testing
cargo fmt --all; clippy-D warningsontole-core(also--no-default-features) and ontole-clilib, bins and every test target excepttui_e2e(also--no-default-features --lib): clean.load_skillcredits that skill, a failed run is a baseline failure and leaves the skill untouched, a plain user's run leaves no ledger; a complete and an exhausted mission give one baseline success and one failure. Also green with--no-default-features.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 (serve_entriesfailed 2 of 3 runs ondevelop, 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 (RunTracker::globalis process-wide, exact for one task per process).