Skip to main content

ExecutionPolicy

Struct ExecutionPolicy 

Source
pub struct ExecutionPolicy {
Show 29 fields pub max_scan_wall_time_ms: u64, pub max_no_progress_time_ms: u64, pub max_codegraph_sync_wall_time_ms_per_repo: u64, pub max_worker_memory_bytes: u64, pub graceful_termination_ms: u64, pub watch_idle_timeout_ms: u64, pub max_watch_session_wall_time_ms: u64, pub min_watch_rescan_interval_ms: u64, pub max_checkpoint_cache_bytes: u64, pub max_codegraph_corroboration_anchors_per_repo: CodeGraphCorroborationAnchorLimit, pub max_explore_wall_time_ms: u64, pub max_explore_codegraph_operations: u64, pub max_explore_concurrent_codegraph_processes: u64, pub max_explore_source_files: u64, pub max_explore_resolved_symbols: u64, pub max_explore_anchors: u64, pub max_explore_neighbors_per_direction: u64, pub max_explore_local_relationships: u64, pub max_explore_federated_handoffs_per_anchor: u64, pub max_explore_federated_handoffs: u64, pub max_explore_evidence_locations_per_handoff: u64, pub max_explore_source_markdown_bytes: u64, pub max_explore_enrichment_bytes: u64, pub max_agent_next_actions_per_response: u64, pub max_query_repository_suggestions: u64, pub max_mcp_tool_response_bytes: u64, pub max_mcp_resource_items: u64, pub max_mcp_resource_bytes: u64, pub max_mcp_schema_catalog_bytes: u64,
}
Expand description

Effective global execution policy for one workspace operation.

Fields§

§max_scan_wall_time_ms: u64

Maximum wall time for one scan or sync pass.

§max_no_progress_time_ms: u64

Maximum time without verified forward progress.

§max_codegraph_sync_wall_time_ms_per_repo: u64

Maximum wall time for one repository-local CodeGraph synchronization.

§max_worker_memory_bytes: u64

Maximum resident memory accepted for one worker process.

§graceful_termination_ms: u64

Cooperative shutdown grace period before forced termination.

§watch_idle_timeout_ms: u64

Inactivity lease for a foreground watch session.

§max_watch_session_wall_time_ms: u64

Absolute lifetime for one foreground watch session.

§min_watch_rescan_interval_ms: u64

Minimum delay between watched sync pass starts.

§max_checkpoint_cache_bytes: u64

Maximum retained historical checkpoint-cache bytes.

§max_codegraph_corroboration_anchors_per_repo: CodeGraphCorroborationAnchorLimit

Effective corroboration-anchor count, or unlimited.

§max_explore_wall_time_ms: u64

Effective Explore wall-time budget.

§max_explore_codegraph_operations: u64

Effective maximum public provider operations per Explore request.

§max_explore_concurrent_codegraph_processes: u64

Effective maximum concurrent provider child processes.

§max_explore_source_files: u64

Effective maximum source files returned by Explore.

§max_explore_resolved_symbols: u64

Effective maximum resolved local symbols.

§max_explore_anchors: u64

Effective maximum symbols selected as traversal anchors.

§max_explore_neighbors_per_direction: u64

Effective maximum neighbors per anchor and direction.

§max_explore_local_relationships: u64

Effective maximum retained local relationships.

§max_explore_federated_handoffs_per_anchor: u64

Effective maximum federated handoffs per anchor.

§max_explore_federated_handoffs: u64

Effective maximum federated handoffs per response.

§max_explore_evidence_locations_per_handoff: u64

Effective maximum evidence locations per federated handoff.

§max_explore_source_markdown_bytes: u64

Effective maximum retained source Markdown bytes.

§max_explore_enrichment_bytes: u64

Effective maximum retained enrichment bytes.

§max_agent_next_actions_per_response: u64

Effective maximum agent next actions per response.

§max_query_repository_suggestions: u64

Effective maximum repository suggestions from Query.

§max_mcp_tool_response_bytes: u64

Effective final MCP tool response byte limit.

§max_mcp_resource_items: u64

Effective MCP resource item limit.

§max_mcp_resource_bytes: u64

Effective final MCP resource byte limit.

§max_mcp_schema_catalog_bytes: u64

Effective final MCP schema-catalog byte limit.

Implementations§

Source§

impl ExecutionPolicy

Source

pub fn resolve( overrides: Option<&ExecutionPolicyOverrides>, ) -> Result<Self, InvalidExecutionPolicy>

Resolves a partial global override and validates the effective relationships.

§Errors

Returns InvalidExecutionPolicy for zero, unrepresentable, or inconsistent values.

Source

pub fn scan_fingerprint(&self) -> String

Returns the stable canonical fingerprint of the effective operational policy.

Source

pub fn fingerprint(&self) -> String

Returns the historical scan-only fingerprint alias.

Source

pub fn fingerprint_with_codegraph_limit( &self, limit: CodeGraphCorroborationAnchorLimit, ) -> String

Returns a fingerprint that also includes the additive CodeGraph corroboration bound.

Source

pub fn agent_delivery_fingerprint(&self) -> String

Returns the fingerprint for limits that only affect ephemeral agent delivery.

Trait Implementations§

Source§

impl Clone for ExecutionPolicy

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 Debug for ExecutionPolicy

Source§

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

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

impl Default for ExecutionPolicy

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for ExecutionPolicy

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ExecutionPolicy

Source§

impl JsonSchema for ExecutionPolicy

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for ExecutionPolicy

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 Serialize for ExecutionPolicy

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ExecutionPolicy

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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