Repository navigation
feat(cli): skill_propose tool and tole skills drafts (#592 part 2) - #657
Merged
Merged
Conversation
skill_propose writes a draft only: the host stamps the session, model, taint and meaning dedup, and a blocking finding stores nothing. tole skills drafts lists, shows, rejects and records a reviewer verdict. The turn loop records untrusted tool runs for the taint.
The registry folds its taint tracker over the session's existing entries on the first turn. The untrusted set now also holds gh, gitea, child-agent and session tools and the shared-memory tools.
🔍 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 #592: the
skill_proposetool andtole skills drafts. An agent can now propose a skill, and only as a draft; the owner lists, reads, rejects or records a reviewer's verdict on it. Promotion is part 3.Why
The owner decided that skills grow only by proposal plus approval (design
skills-registry-design.md§4.4). Part 1 (#656) added the gate and the store; this wires them to the agent and to the owner. Nothing here makes a skill loadable.Changes
skill_propose(new, Write tier, so each call is approved): input isname,skill_md,triggerand optionalsources; any other field is refused. The host adds the session id, model, taint and meaning dedup, none settable from the input. A blocking finding stores nothing and the refusal never quotes a secret. Registered for session faces only (not a child, not plan mode, not cron runs).ToolRegistry::set_taint_trackerand a record at the turn loop's single execute funnel (gate::Authorized::execute), soweb_fetch,web_searchandmcp_*runs mark later drafts, failed calls included.tests/skill_taint.rs); the untrusted set also holdsgh,gitea, child-agent and session tools anduteke_recall/uteke_document.read_fileandrun_commandare deliberately not counted (every coding session uses them;--accept-taintwould become a reflex), so a page curled insiderun_commanddoes not taint. This tradeoff is in the CHANGELOG.utekeskill index for the nearest skill (patch >= 0.92, reference >= 0.80, else new); without that index the result says dedup did not run.tole skills drafts [list|show|reject|verdict]. Everything a model wrote is printed with control and invisible characters escaped.skill_draft::is_hiddenis now public for that.tole serve, ACP) pass their session id into the roster. CLI faces build tools before the session exists, so their drafts have no session id yet (documented in the CHANGELOG).CHANGELOG.md,docs/epics.mdand the README status are updated in this PR.Testing
cargo fmt --all;cargo clippyontole-core(also--no-default-features), and ontole-clilib, bins and every test target excepttui_e2e, plustole-cli --no-default-features --lib: clean with-D warnings.skill_drafts_e2edriving the real binary (list, show, reject, never loadable).tole-coretests all pass. Intole-cli, not caused by this PR and reproduced on cleandevelopon macOS: 3delegate::tests,compaction_e2e::doctor_warns_non_fatally_about_a_missing_window, andtui_e2edoes not compile (libc::openptysignature).setup_cora_e2eis flaky locally (different test fails run to run, also on a stashed baseline). CI runs on Linux.review_prepare0 deterministic findings;review_finalizeshould_block: falsewith 2 info notes (everymcp_*tool taints, including cora; CLI faces record no session id).