pub struct ExecutionPolicy {Show 30 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_extraction_workers: 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: u64Maximum wall time for one scan or sync pass.
max_no_progress_time_ms: u64Maximum time without verified forward progress.
max_codegraph_sync_wall_time_ms_per_repo: u64Maximum wall time for one repository-local CodeGraph synchronization.
max_worker_memory_bytes: u64Maximum resident memory accepted for one worker process.
graceful_termination_ms: u64Cooperative shutdown grace period before forced termination.
watch_idle_timeout_ms: u64Inactivity lease for a foreground watch session.
max_watch_session_wall_time_ms: u64Absolute lifetime for one foreground watch session.
min_watch_rescan_interval_ms: u64Minimum delay between watched sync pass starts.
max_checkpoint_cache_bytes: u64Maximum retained checkpoint-cache bytes.
max_extraction_workers: u64Maximum concurrent extraction workers. Output is identical for every value.
max_codegraph_corroboration_anchors_per_repo: CodeGraphCorroborationAnchorLimitEffective corroboration-anchor count, or unlimited.
max_explore_wall_time_ms: u64Effective Explore wall-time budget.
max_explore_codegraph_operations: u64Effective maximum public provider operations per Explore request.
max_explore_concurrent_codegraph_processes: u64Effective maximum concurrent provider child processes.
max_explore_source_files: u64Effective maximum source files returned by Explore.
max_explore_resolved_symbols: u64Effective maximum resolved local symbols.
max_explore_anchors: u64Effective maximum symbols selected as traversal anchors.
max_explore_neighbors_per_direction: u64Effective maximum neighbors per anchor and direction.
max_explore_local_relationships: u64Effective maximum retained local relationships.
max_explore_federated_handoffs_per_anchor: u64Effective maximum federated handoffs per anchor.
max_explore_federated_handoffs: u64Effective maximum federated handoffs per response.
max_explore_evidence_locations_per_handoff: u64Effective maximum evidence locations per federated handoff.
max_explore_source_markdown_bytes: u64Effective maximum retained source Markdown bytes.
max_explore_enrichment_bytes: u64Effective maximum retained enrichment bytes.
max_agent_next_actions_per_response: u64Effective maximum agent next actions per response.
max_query_repository_suggestions: u64Effective maximum repository suggestions from Query.
max_mcp_tool_response_bytes: u64Effective final MCP tool response byte limit.
max_mcp_resource_items: u64Effective MCP resource item limit.
max_mcp_resource_bytes: u64Effective final MCP resource byte limit.
max_mcp_schema_catalog_bytes: u64Effective final MCP schema-catalog byte limit.
Implementations§
Source§impl ExecutionPolicy
impl ExecutionPolicy
Sourcepub fn resolve(
overrides: Option<&ExecutionPolicyOverrides>,
) -> Result<Self, InvalidExecutionPolicy>
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.
Sourcepub fn effective_extraction_workers(&self) -> usize
pub fn effective_extraction_workers(&self) -> usize
Returns the extraction worker count bounded by the host’s available parallelism.
Sourcepub fn scan_fingerprint(&self) -> String
pub fn scan_fingerprint(&self) -> String
Returns the stable canonical fingerprint of the effective operational policy.
Sourcepub fn fingerprint_with_codegraph_limit(
&self,
limit: CodeGraphCorroborationAnchorLimit,
) -> String
pub fn fingerprint_with_codegraph_limit( &self, limit: CodeGraphCorroborationAnchorLimit, ) -> String
Returns a fingerprint that also includes the additive CodeGraph corroboration bound.
Sourcepub fn agent_delivery_fingerprint(&self) -> String
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
impl Clone for ExecutionPolicy
Source§impl Debug for ExecutionPolicy
impl Debug for ExecutionPolicy
Source§impl Default for ExecutionPolicy
impl Default for ExecutionPolicy
Source§impl<'de> Deserialize<'de> for ExecutionPolicy
impl<'de> Deserialize<'de> for ExecutionPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ExecutionPolicy
Source§impl JsonSchema for ExecutionPolicy
impl JsonSchema for ExecutionPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ExecutionPolicy
impl PartialEq for ExecutionPolicy
Source§impl Serialize for ExecutionPolicy
impl Serialize for ExecutionPolicy
impl StructuralPartialEq for ExecutionPolicy
Auto Trait Implementations§
impl Freeze for ExecutionPolicy
impl RefUnwindSafe for ExecutionPolicy
impl Send for ExecutionPolicy
impl Sync for ExecutionPolicy
impl Unpin for ExecutionPolicy
impl UnsafeUnpin for ExecutionPolicy
impl UnwindSafe for ExecutionPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.