Skip to main content

ToolOrigin

Enum ToolOrigin 

Source
pub enum ToolOrigin {
    LocalSandbox,
    Fetcher,
    FirstParty,
    AccessGrant,
    AccessRevoke,
    AdminManage,
    RegisteredConnector,
    Unknown,
}
Expand description

Where a tool comes from — the registry-provenance half of classification.

Trust scoping is the security-load-bearing part: taint-immune classification (Capability::FixedConnectorRead) is earned only by operator registration (ToolOrigin::RegisteredConnector / ToolOrigin::FirstParty) — never by a connector’s self-declared annotation hints alone. This is what the MCP specification normatively requires: clients MUST treat tool annotations as untrusted unless the server is trusted.

Variants§

§

LocalSandbox

A process-local built-in, such as a coding tool. This origin describes local file authority. It does not prove operating-system network isolation. shell_exec can use routes allowed by the pod policy today; issue #2508 owns alignment with this taxonomy and D6’s route-removal checklist.

§

Fetcher

A built-in fetcher (the web/paid fetchers): brokered on the trusted side to a model-controlled destination.

§

FirstParty

A built-in that reads or acts on the caller’s own first-party state via the control plane (the history and wallet families): a fixed, operator-owned destination.

§

AccessGrant

A built-in that grants a third party access to the system itself — the admin invite (#700). Classified apart from Self::FirstParty because it requires Capability::GrantAccess, the never-granted marker, so it always escalates to a human before anything is minted: the agent can only ever PROPOSE an invite, never grant access on its own.

§

AccessRevoke

A built-in that removes a third party’s access to the system itself — the admin de-admission (#713), the offboarding sibling of Self::AccessGrant. Requires Capability::RevokeAccess, the never-granted marker, so it always escalates to a human before anything is removed: the agent can only ever PROPOSE a removal, never de-admit anyone on its own.

§

AdminManage

A built-in that takes away a persona’s ADMIN ROLE — the demote tool (#715), the sibling that completes the admin-management set alongside Self::AccessGrant/Self::AccessRevoke. Requires Capability::ManageAdmin, the never-granted marker, so it always escalates to a human before anyone’s admin role changes: the agent can only ever PROPOSE a demote, never remove anyone’s admin role on its own.

§

RegisteredConnector

A connector tool whose server the operator registered (registry provenance, e.g. the ToolService registry). Its annotations are load-bearing inputs because the operator vouched for the server.

§

Unknown

Anything else: an unregistered server’s self-declared tool, an unknown name, an unannotated spec. Fails closed to the privileged set.

Trait Implementations§

Source§

impl Clone for ToolOrigin

Source§

fn clone(&self) -> ToolOrigin

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ToolOrigin

Source§

impl Debug for ToolOrigin

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ToolOrigin

Source§

impl PartialEq for ToolOrigin

Source§

fn eq(&self, other: &ToolOrigin) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ToolOrigin

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more