Skip to main content

OperationConfig

Struct OperationConfig 

Source
pub struct OperationConfig {
Show 17 fields pub execution_policy: Option<ExecutionPolicy>, pub governance_policy: Option<GovernancePolicy>, pub scheduler_policy: Option<SchedulerPolicy>, pub resource_quota: Option<ResourceQuota>, pub budget_grant: Option<BudgetGrant>, pub signal_policy: Option<SignalPolicy>, pub context_policy: Option<ContextPolicy>, pub recovery_policy: Option<RecoveryPolicy>, pub payload_policy: Option<PayloadPolicy>, pub kernel_limits: Option<KernelLimits>, pub memory_access: Option<MemoryAccessBinding>, pub memory_policy: Option<MemoryPolicy>, pub tool_catalog: Vec<ToolSchema>, pub skill_catalog: Vec<SkillMetadata>, pub verification_contracts: Vec<VerificationContract>, pub feature_policy: Option<FeaturePolicy>, pub host_effect_support: HostEffectSupport,
}
Expand description

Boot configuration for one operation (§7.3).

Sparse on purpose: a host states what it wants to differ from the kernel’s compile-time defaults. host_effect_support is the one mandatory field — DEC-8 makes it an explicit declaration, and a default would be exactly the implicit assumption it exists to remove.

Fields§

§execution_policy: Option<ExecutionPolicy>

Turn/token/wall budgets plus the loop guards (criteria gate, repeat fuse, entropy watch).

§governance_policy: Option<GovernancePolicy>

Initial syscall-gate posture. Live changes go through LivePolicyPatch::ReplaceGovernancePolicy.

§scheduler_policy: Option<SchedulerPolicy>§resource_quota: Option<ResourceQuota>§budget_grant: Option<BudgetGrant>

RunGroup admission result. Absent ⇒ the operation is not reservation-backed.

§signal_policy: Option<SignalPolicy>

Initial signal routing. Live changes go through LivePolicyPatch::ReplaceSignalPolicy.

§context_policy: Option<ContextPolicy>§recovery_policy: Option<RecoveryPolicy>

Semantic recovery ladders the kernel owns. Host transport retry/backoff is not here.

§payload_policy: Option<PayloadPolicy>§kernel_limits: Option<KernelLimits>

May only tighten KernelBootstrapLimits.

§memory_access: Option<MemoryAccessBinding>

Opaque memory access binding. Absent ⇒ the operation has no memory plane at all.

§memory_policy: Option<MemoryPolicy>

Validation / recall / promotion thresholds for the memory plane. Never a path.

§tool_catalog: Vec<ToolSchema>

Initial tool catalog (§13.3 · SetTools). Live narrowing/widening is a capability patch, not a second catalog install.

§skill_catalog: Vec<SkillMetadata>

Initial skill catalog (§13.3 · SetAvailableSkills).

§verification_contracts: Vec<VerificationContract>

The verification contracts this operation may evaluate.

A skeleton, not a specification: an ordered phase list and, per phase, the capabilities passing it unlocks. See VerificationContract for why that is the exact line.

§feature_policy: Option<FeaturePolicy>§host_effect_support: HostEffectSupport

DEC-8. Mandatory: the kernel emits an effect only for a kind the host declared it can execute, and fail-closes on the rest.

Implementations§

Trait Implementations§

Source§

impl Clone for OperationConfig

Source§

fn clone(&self) -> OperationConfig

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 OperationConfig

Source§

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

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

impl Default for OperationConfig

Source§

fn default() -> OperationConfig

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

impl<'de> Deserialize<'de> for OperationConfig

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 PartialEq for OperationConfig

Source§

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

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 OperationConfig

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, !>

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.