pub struct ContextCheckpointV3 {
pub schema_version: u32,
pub identity: ContextCheckpointIdentityV1,
pub lineage: ContextCheckpointLineageV2,
pub live_state: ContextCheckpointLiveStateV2,
pub carrier: Option<ContextCheckpointCarrierBindingV1>,
pub engine_version: SemanticVersion,
pub created_at: UtcTimestamp,
pub updated_at: UtcTimestamp,
pub encryption_metadata: Option<ContextCheckpointEncryptionMetadataV1>,
}Expand description
Canonical typed live-state checkpoint with additive Unicode prose.
Fields§
§schema_version: u32Schema version of the checkpoint contract.
identity: ContextCheckpointIdentityV1Parent, branch, and device identity.
lineage: ContextCheckpointLineageV2Work-graph lineage references and authoritative artifact refs.
live_state: ContextCheckpointLiveStateV2Portable Unicode live state.
carrier: Option<ContextCheckpointCarrierBindingV1>Binding to a P6 carrier envelope, when the checkpoint travels in one.
engine_version: SemanticVersionEngine version that produced the checkpoint.
created_at: UtcTimestampCanonical UTC creation timestamp.
updated_at: UtcTimestampCanonical UTC timestamp of the latest portable semantic update.
encryption_metadata: Option<ContextCheckpointEncryptionMetadataV1>Metadata for an encrypted downstream projection, when present.
Implementations§
Source§impl ContextCheckpointV3
impl ContextCheckpointV3
Sourcepub const SCHEMA_VERSION: u32 = 3
pub const SCHEMA_VERSION: u32 = 3
Schema version represented by this type.
Sourcepub const SCHEMA_ID: &'static str = CONTEXT_CHECKPOINT_V3_SCHEMA_ID
pub const SCHEMA_ID: &'static str = CONTEXT_CHECKPOINT_V3_SCHEMA_ID
Schema identity represented by this type.
Sourcepub fn from_v2_unverified(
checkpoint: ContextCheckpointV2,
) -> Result<Self, ValidationError>
pub fn from_v2_unverified( checkpoint: ContextCheckpointV2, ) -> Result<Self, ValidationError>
Construct a V3 checkpoint from an already validated V2 value.
This is a structural migration only. It does not verify artifact ownership and therefore does not expose a signing payload; production callers must use the core lineage admission boundary first.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate every V3 invariant, including lineage and cross-field bindings.
Sourcepub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
Return canonical compact JSON bytes with lexicographically sorted keys.
Sourcepub fn canonical_json(&self) -> Result<String, ValidationError>
pub fn canonical_json(&self) -> Result<String, ValidationError>
Return the canonical JSON encoding as UTF-8 text.
Sourcepub fn from_canonical_bytes(bytes: &[u8]) -> Result<Self, ValidationError>
pub fn from_canonical_bytes(bytes: &[u8]) -> Result<Self, ValidationError>
Decode exactly canonical V3 JSON and validate every invariant.
Sourcepub fn digest(&self) -> Result<Sha256Digest, ValidationError>
pub fn digest(&self) -> Result<Sha256Digest, ValidationError>
Domain-separated content identity of the complete V3 checkpoint.