Repository navigation
feat(plugin): list shows source, tier, secrets and sandbox; list and diff start nothing the lock refuses - #773
Merged
Merged
Conversation
…diff never start what the lock refuses (#600)
| )); | ||
| } else if !e.integrity.is_empty() { | ||
| out.push_str("binary: unchanged\n"); | ||
| } |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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
First part of the first slice of #600.
tole plugin listandtole 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
listanddiffconnected 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
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 byGate::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.TOLE_UNDER_SESSION,TOLE_AGENT_DEPTH) neither command starts anything.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 (revokehardening, scanner,add, doctor) follow in stacked parts. Bundle manifests, registry resolution and per-plugin secret grants are later slices.Testing
admit_unseen, lock round trip oftier, list fields, no start for revoked/unapproved/moved, no start under a session, secret grant drift, fencing of a forged=== END ===line.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