pub struct CompactionPlan {
pub schema_version: String,
pub algorithm_version: String,
pub input_hash: String,
pub contract_hash: String,
pub workspace_generation: u64,
pub state_binding: String,
pub side_effect_watermark: u64,
pub authority_hash: Option<String>,
pub budget: CompactionBudget,
pub selections: Vec<ContextSelection>,
}Expand description
Complete deterministic decision before provider context is rewritten.
Fields§
§schema_version: StringPublic schema identifier.
algorithm_version: StringDeterministic algorithm identifier.
input_hash: StringBLAKE3 digest of the uncompacted provider input.
contract_hash: StringBLAKE3 digest of the complete task contract.
workspace_generation: u64Workspace generation to which this decision is bound.
state_binding: StringCanonical workspace digest at this generation.
side_effect_watermark: u64Runtime side-effect watermark at the decision point.
Secret-free policy/tool authority digest when configured.
budget: CompactionBudgetProvider-context boundary.
selections: Vec<ContextSelection>Every considered item in deterministic priority/rank/identifier order.
Implementations§
Source§impl CompactionPlan
impl CompactionPlan
Sourcepub fn digest(&self) -> Result<String, CompactionError>
pub fn digest(&self) -> Result<String, CompactionError>
Returns the canonical BLAKE3 digest committed by a receipt.
Sourcepub fn validate(&self) -> Result<(), CompactionError>
pub fn validate(&self) -> Result<(), CompactionError>
Validates schema, bindings, ordering, uniqueness, and fail-closed pinning.
Trait Implementations§
Source§impl Clone for CompactionPlan
impl Clone for CompactionPlan
Source§fn clone(&self) -> CompactionPlan
fn clone(&self) -> CompactionPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompactionPlan
impl Debug for CompactionPlan
Source§impl<'de> Deserialize<'de> for CompactionPlan
impl<'de> Deserialize<'de> for CompactionPlan
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompactionPlan
Source§impl PartialEq for CompactionPlan
impl PartialEq for CompactionPlan
Source§impl Serialize for CompactionPlan
impl Serialize for CompactionPlan
impl StructuralPartialEq for CompactionPlan
Auto Trait Implementations§
impl Freeze for CompactionPlan
impl RefUnwindSafe for CompactionPlan
impl Send for CompactionPlan
impl Sync for CompactionPlan
impl Unpin for CompactionPlan
impl UnsafeUnpin for CompactionPlan
impl UnwindSafe for CompactionPlan
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
Mutably borrows from an owned value. Read more