pub struct TaskEnvelopeV1 {Show 22 fields
pub schema_version: u32,
pub task_id: TaskId,
pub trace_id: TraceId,
pub project_id: ProjectId,
pub session_id: SessionId,
pub agent_id: AgentId,
pub complexity: TaskComplexity,
pub created_at: String,
pub parent_task_id: Option<TaskId>,
pub tenant_id: Option<TenantId>,
pub intent: Option<String>,
pub task_class: Option<String>,
pub risk_class: Option<RiskClass>,
pub quality_requirement_milli: Option<u16>,
pub cost_budget_micros: Option<u64>,
pub latency_budget_ms: Option<u64>,
pub data_classification: Option<DataClassification>,
pub region_policy_ref: Option<String>,
pub model_policy_ref: Option<String>,
pub context_state_ref: Option<String>,
pub outcome_contract_ref: Option<String>,
pub extensions: ExtensionsV1,
}Expand description
Canonical task envelope for a V1 execution lineage.
Fields§
§schema_version: u32§task_id: TaskId§trace_id: TraceId§project_id: ProjectId§session_id: SessionId§agent_id: AgentId§complexity: TaskComplexity§created_at: String§parent_task_id: Option<TaskId>§tenant_id: Option<TenantId>§intent: Option<String>§task_class: Option<String>§risk_class: Option<RiskClass>§quality_requirement_milli: Option<u16>§cost_budget_micros: Option<u64>§latency_budget_ms: Option<u64>§data_classification: Option<DataClassification>§region_policy_ref: Option<String>§model_policy_ref: Option<String>§context_state_ref: Option<String>§outcome_contract_ref: Option<String>§extensions: ExtensionsV1Unknown additive V1 fields retained for lossless forwarding.
Implementations§
Source§impl TaskEnvelopeV1
impl TaskEnvelopeV1
Sourcepub const SCHEMA_VERSION: u32 = 1
pub const SCHEMA_VERSION: u32 = 1
Schema version represented by this type.
Sourcepub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ValidationError>
Compact UTF-8 JSON with recursively sorted object keys. These bytes retain all additive fields and identify the complete task, not just its ID.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate invariants that also apply to values constructed in Rust.
Sourcepub fn validate_child_of(&self, parent: &Self) -> Result<(), ValidationError>
pub fn validate_child_of(&self, parent: &Self) -> Result<(), ValidationError>
Validate that this envelope is a child of parent in the same trace.
Trait Implementations§
Source§impl Clone for TaskEnvelopeV1
impl Clone for TaskEnvelopeV1
Source§impl Debug for TaskEnvelopeV1
impl Debug for TaskEnvelopeV1
Source§impl<'de> Deserialize<'de> for TaskEnvelopeV1
impl<'de> Deserialize<'de> for TaskEnvelopeV1
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 TaskEnvelopeV1
Source§impl PartialEq for TaskEnvelopeV1
impl PartialEq for TaskEnvelopeV1
Source§impl Serialize for TaskEnvelopeV1
impl Serialize for TaskEnvelopeV1
impl StructuralPartialEq for TaskEnvelopeV1
Auto Trait Implementations§
impl Freeze for TaskEnvelopeV1
impl RefUnwindSafe for TaskEnvelopeV1
impl Send for TaskEnvelopeV1
impl Sync for TaskEnvelopeV1
impl Unpin for TaskEnvelopeV1
impl UnsafeUnpin for TaskEnvelopeV1
impl UnwindSafe for TaskEnvelopeV1
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