pub enum MethodIntegrity {
Unattested,
Sound,
Compromised,
}Expand description
A method-specific integrity claim layered on top of AttachmentOutcome.
Passed says the method accepted; this says whether the method ran
soundly. A Lean proof can pass lake build yet depend on
native_decide (compiler trust) or sorry — sound elaboration, unsound
kernel claim. The producer that mints a lean_kernel attachment sets this
from the crate::tcb_policy::AxiomVerdict of the underlying
verification, so the gate can refuse compromised methods without ever
importing Lean specifics (G5).
Default is MethodIntegrity::Unattested, serialized as absent so
pre-existing vva_ records re-derive their content-addressed id
unchanged.
Variants§
Unattested
No method-specific integrity claim is made (legacy, or a method for which integrity is not applicable). Neither trusted nor rejected.
Sound
The method self-certifies clean (e.g. the Lean axiom set is
KernelClean, or an independent recompute matched).
Compromised
The method ran but its integrity check failed (a forbidden/unlisted Lean axiom, a failed external kernel re-check, a solver in an untrusted mode). Excluded from the matched set by the gate.
Implementations§
Trait Implementations§
Source§impl Clone for MethodIntegrity
impl Clone for MethodIntegrity
Source§fn clone(&self) -> MethodIntegrity
fn clone(&self) -> MethodIntegrity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MethodIntegrity
Source§impl Debug for MethodIntegrity
impl Debug for MethodIntegrity
Source§impl Default for MethodIntegrity
impl Default for MethodIntegrity
Source§fn default() -> MethodIntegrity
fn default() -> MethodIntegrity
Source§impl<'de> Deserialize<'de> for MethodIntegrity
impl<'de> Deserialize<'de> for MethodIntegrity
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>,
impl Eq for MethodIntegrity
Source§impl PartialEq for MethodIntegrity
impl PartialEq for MethodIntegrity
Source§impl Serialize for MethodIntegrity
impl Serialize for MethodIntegrity
impl StructuralPartialEq for MethodIntegrity
Auto Trait Implementations§
impl Freeze for MethodIntegrity
impl RefUnwindSafe for MethodIntegrity
impl Send for MethodIntegrity
impl Sync for MethodIntegrity
impl Unpin for MethodIntegrity
impl UnsafeUnpin for MethodIntegrity
impl UnwindSafe for MethodIntegrity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.