Skip to content

feat(plugin): list shows source, tier, secrets and sandbox; list and diff start nothing the lock refuses - #773

Merged
ajianaz merged 2 commits into
developfrom
feat/plugin-list-diff
Nov 14, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/plugin-list-diff

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What

First part of the first slice of #600. tole plugin list and tole plugin diff (already present since #599) show the facts an owner needs to judge a third-party server, and no longer start servers the lock would refuse.

Why

list and diff connected to every configured server, including revoked ones, unapproved ones and ones whose command line or program file no longer matches the approval. For a third-party server that is running unvetted code from a read-only command. They also lacked the source, secrets, sandbox status and trust tier.

Changes

  • Core: Tier (first-party, third-party-verified, third-party-unverified) as optional data in the lock entry, tier_of (a first-party claim only counts for a name on the owner's first-party list, so a hand-edited lock cannot promote a server), admit_unseen (the pre-start lock decision, now also used by Gate::refuse_unseen).
  • list: source, program hash, secrets, revoked, sandbox status, tier, in text and --json.
  • diff: source, program hash and secret grant drift; server text printed behind a bar (data, cannot forge the output structure); revoked, moved or rebuilt servers are not started and show the approved snapshot instead.
  • Under an agent session (TOLE_UNDER_SESSION, TOLE_AGENT_DEPTH) neither command starts anything.
  • CHANGELOG entry. The first-party list is not yet configurable (default cora, uteke, nginjen, laya); that and the rest of feat(plugins): tole plugin add/list/diff/revoke, description scanner, grants and trust tiers #600's slice 1 (revoke hardening, scanner, add, doctor) follow in stacked parts. Bundle manifests, registry resolution and per-plugin secret grants are later slices.

Testing

  • Unit tests: tier rules, admit_unseen, lock round trip of tier, list fields, no start for revoked/unapproved/moved, no start under a session, secret grant drift, fencing of a forged === END === line.
  • Mutation checks: disabling the pre-start lock decision fails list_and_diff_never_start_what_the_lock_would_not_start; removing the bar fails the fencing and diff tests.
  • cargo clippy -p tole-cli -p tole-core --all-targets -D warnings, cargo fmt.

Refs #600

));
} else if !e.integrity.is_empty() {
out.push_str("binary: unchanged\n");
}
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

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.

3 participants