Skip to main content

CortexContextTrust

Struct CortexContextTrust 

Source
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: String

Schema discriminator. Must equal CORTEX_CONTEXT_TRUST_SCHEMA.

§version: u16

Schema 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: String

Stable context identifier.

§compatibility_trust_label: CompatibilityTrustLabel

Coarse compatibility label kept for back-compat — display only.

§proof_state: ContextProofState

Proof closure state and failing edges.

§truth_ceiling: TruthCeiling

Truth ceiling permitted to the receiving consumer.

§semantic_trust: ContextSemanticTrust

Semantic trust decomposition.

§provenance_refs: Vec<String>

Provenance references (optional in some fixtures).

§contradiction_state: ContradictionState

Contradiction posture for the context.

§promotion_state: PromotionState

Promotion posture for the context.

§quarantine_state: ContextQuarantineState

Quarantine posture for the context.

§redaction_state: ContextRedactionState

Redaction posture and references.

§confidence: Option<ContextConfidence>

Confidence value and scale (optional in some fixtures).

§policy_result: ContextPolicyResult

Policy 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

Source

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

Source§

fn clone(&self) -> CortexContextTrust

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CortexContextTrust

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CortexContextTrust

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CortexContextTrust

Source§

fn eq(&self, other: &CortexContextTrust) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CortexContextTrust

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CortexContextTrust

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,