Skip to main content

ToolDispatchFacts

Struct ToolDispatchFacts 

Source
pub struct ToolDispatchFacts {
Show 28 fields pub runs_as_judged: bool, pub keeps_own_grants: bool, pub shell_command_line: bool, pub offering: Offering, pub task_lead_delegation: bool, pub same_tool_streak: SameToolStreak, pub delivers_files: bool, pub spawns_child_agents: bool, pub requirement_checklist: bool, pub opaque_execution: bool, pub manages_own_timeout: bool, pub records_launch_trust: bool, pub goal_context: GoalContext, pub network_reach: NetworkReach, pub file_guard: FileGuard, pub checkpoints_writes: bool, pub needs_live_model: bool, pub status_from_arguments: bool, pub recap: RecapKind, pub activity: ToolActivity, pub status_label: Option<&'static str>, pub project_dir_argument: ProjectDirArgument, pub opens_project_instructions: bool, pub result_fit: ResultFit, pub channel_reach: ChannelReach, pub evidence: EvidenceSource, pub semantic_scope: Option<ToolSemanticScope>, pub low_signal_result: bool,
}
Expand description

Typed facts about how the dispatcher and the engine treat a tool. A tool states them about itself; nothing keys on its name. Several can hold for one tool, so they are flags beside ToolRole (which scopes tools by agent role) rather than more roles.

Fields§

§runs_as_judged: bool

The kernel’s approval rules judge this tool’s calls in the canonical form the dispatcher executes, and the dispatcher then runs each call exactly as judged (the terminal).

§keeps_own_grants: bool

The tool keeps the owner’s answers to its cards in its own grant stores, consulted by its own ladder (the terminal’s command prefixes), instead of the kernel’s session grants.

§shell_command_line: bool

The call’s command or script is a shell command line, which the kernel’s access manifest carries so the approval policy’s catastrophic-command check sees it (the terminal).

§offering: Offering

Whether the tool’s schema is sent on every model call (Offering::Core) or listed by name until the run loads it (Offering::Deferred, the default).

§task_lead_delegation: bool

A task lead keeps the tool through pruning: it is its delegation surface (spawn_agent, cli_agent, manage_goal_tasks).

§same_tool_streak: SameToolStreak

How long a run may call the tool consecutively before the same-tool guard treats it as a loop.

§delivers_files: bool

The tool delivers a file to the user; the same file and caption go out once per task.

§spawns_child_agents: bool

The tool spawns child agents, which inherit the turn’s authority as it is when the call runs.

§requirement_checklist: bool

The tool is the executor’s requirement checklist: the status line shows the checklist, and its items become ledger expectations.

§opaque_execution: bool

The call runs inside a process the daemon cannot see into (an MCP server), so its downstream effects escape per-action scoping and accounting. A mandate never delegates such a tool.

§manages_own_timeout: bool

The tool manages its own timeout and backgrounding, so the generic watchdog never wraps it (it would cancel the call early and could orphan the process it started).

§records_launch_trust: bool

The tool records the trusted roots its launch was judged with (the terminal), so a background result keeps the trust it ran under.

§goal_context: GoalContext

Which goal facts the call receives.

§network_reach: NetworkReach

Which addresses a call may name, judged by web::NetworkGuard.

§file_guard: FileGuard

Which of a call’s paths ProtectedPathGuard judges.

§checkpoints_writes: bool

The dispatcher takes a file checkpoint before the call runs, so its writes can be rolled back.

§needs_live_model: bool

The call receives the live model, provider and model chain (a tool that runs its own model loop).

§status_from_arguments: bool

The status line summarizes a finished call from its arguments, not its result (memory and people edits, whose result text is terse).

§recap: RecapKind

What a run’s activity recap counts a finished call as.

§activity: ToolActivity

What kind of work every card shows a call as.

§status_label: Option<&'static str>

The words a live status ping uses for the tool (“reading a file”). None: its name in words.

§project_dir_argument: ProjectDirArgument

Which argument names the project directory a call works in, and how the turn’s known project directory fills it when it is empty.

§opens_project_instructions: bool

The paths a call touches open their project’s instructions on first access (reads, writes and command working directories; broad searches do not).

§result_fit: ResultFit

How the engine fits the call’s result for the model.

§channel_reach: ChannelReach

Which conversations the tool may be offered in.

§evidence: EvidenceSource

What a substantive result from the call can serve as evidence for.

§semantic_scope: Option<ToolSemanticScope>

The domain the tool inspects or changes, when it states no per-call semantics.

§low_signal_result: bool

A result that says only that it worked (a write’s confirmation): the turn’s recent-work context leaves it out.

Trait Implementations§

Source§

impl Clone for ToolDispatchFacts

Source§

fn clone(&self) -> Self

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 ToolDispatchFacts

Source§

impl Debug for ToolDispatchFacts

Source§

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

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

impl Default for ToolDispatchFacts

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ToolDispatchFacts

Source§

impl PartialEq for ToolDispatchFacts

Source§

fn eq(&self, other: &Self) -> 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 ToolDispatchFacts

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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, !>

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