pub struct CompactionReceipt {Show 13 fields
pub schema_version: String,
pub algorithm_version: String,
pub plan_hash: String,
pub input_hash: String,
pub output_hash: String,
pub output_history_hash: String,
pub output_history_items: u64,
pub workspace_generation: u64,
pub state_binding: String,
pub plan: CompactionPlan,
pub usage: CompactionUsage,
pub retained_ids: Vec<String>,
pub omitted_ids: Vec<String>,
}Expand description
Durable proof that one validated plan produced one exact provider input.
Fields§
§schema_version: StringPublic schema identifier.
algorithm_version: StringDeterministic algorithm identifier.
plan_hash: StringCanonical digest of plan.
input_hash: StringDigest repeated from the plan to make event inspection self-contained.
output_hash: StringBLAKE3 digest of the exact compacted provider input.
output_history_hash: StringBLAKE3 digest of the exact compacted conversation history persisted for recovery.
output_history_items: u64Number of conversation items covered by outputHistoryHash.
workspace_generation: u64Workspace generation repeated from the plan.
state_binding: StringCanonical workspace digest repeated from the plan.
plan: CompactionPlanComplete decision whose canonical digest is planHash.
usage: CompactionUsageExact resulting input accounting.
retained_ids: Vec<String>Sorted identifiers included in the compacted provider context.
omitted_ids: Vec<String>Sorted identifiers deliberately excluded from the provider context.
Implementations§
Source§impl CompactionReceipt
impl CompactionReceipt
Sourcepub fn validate(&self) -> Result<(), CompactionError>
pub fn validate(&self) -> Result<(), CompactionError>
Validates the plan commitment, output binding, accounting, and identifier sets.
Trait Implementations§
Source§impl Clone for CompactionReceipt
impl Clone for CompactionReceipt
Source§fn clone(&self) -> CompactionReceipt
fn clone(&self) -> CompactionReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more