Skip to content

feat(cli): record run outcomes for the skill curator (#593 part 3b) - #664

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

ajianaz merged 1 commit into
developfrom
feat/curator-outcomes

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What

Part 3b of #593, which closes it: tole run and tole mission record 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 by load_skill when a ledger is on) and record_outcome: a success or failure line for each loaded skill, or one baseline line (skill: null) when the run loaded none.
  • tole-cli skill_outcome: report_outcome (so run and resume) and mission write the outcome. A settled turn, or a complete mission, 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_failed or an error mission is a failure. An approval stop, a cancel, a detach and a stopped mission say nothing about the skills and are not recorded.
  • Only where there is something to curate: UsageLedger::default_if_curated returns a ledger only when the user has made a skill draft or has curator state. A plain tole run leaves 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.md and the README are updated in this PR.

Testing

  • cargo fmt --all; clippy -D warnings on tole-core (also --no-default-features) and on tole-cli lib, bins and every test target except tui_e2e (also --no-default-features --lib): clean.
  • Unit: the outcome ledger and tracker (core), the turn and mission classification tables and the record-or-skip logic (cli), the curated-only gate. End to end with the real binary and a scripted mock provider: a run that loads no skill records a baseline success, a run that calls load_skill credits 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.
  • 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_* tests are flaky locally (serve_entries failed 2 of 3 runs on develop, 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.
  • Cora agent review: review_prepare 0 deterministic findings, review_finalize should_block: false with one info note (RunTracker::global is process-wide, exact for one task per process).

@github-actions

Copy link
Copy Markdown

🔍 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
ajianaz force-pushed the feat/curator-outcomes branch from b96a600 to 9f834a2 Compare November 13, 2026 08:16
@ajianaz
ajianaz merged commit 46c4c91 into develop Nov 13, 2026
15 checks passed
@ajianaz
ajianaz deleted the feat/curator-outcomes branch November 20, 2026 08:36
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