pub struct CortexContextTrust {Show 21 fields
pub schema: String,
pub version: u16,
pub cortex_context_trust_ref: Option<String>,
pub context_id: String,
pub compatibility_trust_label: CompatibilityTrustLabel,
pub proof_state: ContextProofState,
pub truth_ceiling: TruthCeiling,
pub semantic_trust: ContextSemanticTrust,
pub provenance_refs: Vec<String>,
pub contradiction_state: ContradictionState,
pub promotion_state: PromotionState,
pub quarantine_state: ContextQuarantineState,
pub redaction_state: ContextRedactionState,
pub confidence: Option<ContextConfidence>,
pub policy_result: ContextPolicyResult,
pub allowed_claim_language: Vec<ContextAllowedClaimLanguage>,
pub forbidden_uses: Vec<ContextForbiddenUse>,
pub allowed_use: Vec<ContextAllowedUse>,
pub evidence_refs: Vec<String>,
pub source_anchors: Vec<ContextSourceAnchor>,
pub residual_risk: Vec<String>,
}Expand description
Cortex context trust envelope (CORTEX_CONTEXT_TRUST.schema.json v1).
compatibility_trust_label is intentionally kept on the struct but
classified as display-only by Self::validate: per
CORTEX_AXIOM_TRUST_EXCHANGE_COMPATIBILITY.json it MUST NOT satisfy
any behavior-changing gate. Cortex consumes the decomposed fields.
Fields§
§schema: StringSchema discriminator. Must equal CORTEX_CONTEXT_TRUST_SCHEMA.
version: u16Schema version. Must equal TRUST_EXCHANGE_SCHEMA_VERSION.
cortex_context_trust_ref: Option<String>Stable receiver-side reference id (optional in pai-axiom’s wire, supplied by the boundary tool when present).
context_id: StringStable context identifier.
compatibility_trust_label: CompatibilityTrustLabelCoarse compatibility label kept for back-compat — display only.
proof_state: ContextProofStateProof closure state and failing edges.
truth_ceiling: TruthCeilingTruth ceiling permitted to the receiving consumer.
semantic_trust: ContextSemanticTrustSemantic trust decomposition.
provenance_refs: Vec<String>Provenance references (optional in some fixtures).
contradiction_state: ContradictionStateContradiction posture for the context.
promotion_state: PromotionStatePromotion posture for the context.
quarantine_state: ContextQuarantineStateQuarantine posture for the context.
redaction_state: ContextRedactionStateRedaction posture and references.
confidence: Option<ContextConfidence>Confidence value and scale (optional in some fixtures).
policy_result: ContextPolicyResultPolicy decision record.
allowed_claim_language: Vec<ContextAllowedClaimLanguage>Allowed claim language vocabulary.
forbidden_uses: Vec<ContextForbiddenUse>Forbidden authority-bearing uses.
allowed_use: Vec<ContextAllowedUse>Allowed use vocabulary.
evidence_refs: Vec<String>Evidence references backing the context.
source_anchors: Vec<ContextSourceAnchor>Source anchors backing the context.
residual_risk: Vec<String>Residual risk strings copied from the producer.
Implementations§
Source§impl CortexContextTrust
impl CortexContextTrust
Sourcepub fn validate(&self) -> TrustExchangeValidation
pub fn validate(&self) -> TrustExchangeValidation
Validate the decomposed fields required for Cortex admission.
Returns a list of stable invariant failures. The compatibility_trust_label
is always treated as display-only and never satisfies a required field.
Trait Implementations§
Source§impl Clone for CortexContextTrust
impl Clone for CortexContextTrust
Source§fn clone(&self) -> CortexContextTrust
fn clone(&self) -> CortexContextTrust
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CortexContextTrust
impl Debug for CortexContextTrust
Source§impl<'de> Deserialize<'de> for CortexContextTrust
impl<'de> Deserialize<'de> for CortexContextTrust
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>,
Source§impl PartialEq for CortexContextTrust
impl PartialEq for CortexContextTrust
Source§fn eq(&self, other: &CortexContextTrust) -> bool
fn eq(&self, other: &CortexContextTrust) -> bool
self and other values to be equal, and is used by ==.