Repository navigation
feat(plugins): tole plugin audit, a read-only report of locked plugins and pinned skills (#600) - #882
Merged
Merged
Conversation
…nd-only ledger tole skills approve takes --source-url, --registry-id and --pinned-sha, recorded as data only. Skill approve, revoke and draft promotion are appended to skill-ledger.jsonl before the approvals file; an approval the ledger contradicts is ignored at load, unrecorded approvals are reported once, an unreadable ledger fails startup, and a torn tail is repaired. tole skills revoke and tole skills drafts revoke are owner-only. Refs #600
…s and skills Per MCP server: tier, state, approved against live manifest hash, grants, sandbox profile, scanner findings and the last sandbox_fallback ledger events. Per skill: status, approved hash against disk, stated source and ledger lines. Starts only what list would start, never under a session. Refs #600
…in the audit Refs #600
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
Closed
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
Slice 3b of #600, building on #880:
tole plugin audit [NAME] [--json], one read-only report of every MCP server in the plugin lock and every discovered skill.Why
The design (third-party-plugins 4.5) promises an audit that shows tier, hashes, grants and recent events in one place. Until now the owner had to combine
plugin list,plugin diff, the ledger file andskills listby hand, and the sandbox fallbacks of #876 were only in the ledger. Follow-ups: the uteke registry fetch is #878, ledger gaps are #879.Changes
sandbox_fallbackevents of the plugin ledger.listdoes: never one the lock refuses, never under an agent session, each at most once.plugin diffshows.short()), and ledger-derivedprofileandreasonare capped at 300 characters.listis split intocollectandrender_listso both commands share the row data; behaviour-preserving (the existinglisttests pass unchanged), andprobe_statenow wraps a newprobe_listedthat also returns the live tool list.short,trusted_tier,binary_noteandCtx::cleanbecomepub(super)inside the plugin module only;PluginAction::Audithas no other match site;skill_approve::audit_rowsis new and only called by audit. No published pub item changes signature.Testing
audit_reports_hashes_findings_and_the_last_fallbacks_without_writing; a newline in a lock key forging a report line failedaudit_is_terminal_safe_for_names_from_the_lockbefore the one-line rule was added; restoring the byte slice inshort()failsaudit_survives_non_ascii_hashes_and_caps_ledger_textwith a char-boundary panic.skill_approval_e2e(audit calls gated on themcpfeature) checks the pinned skill appears with its source and that a swapped SKILL.md shows as changed.-D warnings(workspace all features; core, cli and tui--no-default-features; cli shell-tools-only),cargo check -p tole-core --no-default-features --tests, andTOLE_REQUIRE_BWRAP=1 cargo test --no-fail-fastin default (2658 passed),--no-default-features(2015) and shell-tools-only (1129): all green on the merged head. CI: all 19 checks green and Cora Review "No issues found" on the final head.plugin::lib tests (80/80),skill_approval_e2e(3/3) and the no-default-features checks.Refs #600