pub enum WitnessStatus {
Resolved {
location: PathBuf,
witness_kind: WitnessKind,
},
External {
tool_hint: String,
},
Ambiguous {
candidates: Vec<PathBuf>,
},
NotFound {
reason: String,
},
Missing,
}Expand description
The status of a single witness validation.
Variants§
Resolved
Witness identifier resolves to a function with a recognized testing attribute in the workspace.
Important: “resolved” means the identifier was found — it does NOT
mean the witness was executed or that it asserts immunity to this specific
failure class. Semantic verification (does the witness actually assert
the antigen’s failure mode?) is behavioral-tier work tracked as
the BehavioralAlignment witness tier; not yet implemented
(ADR-001 Amendment 1 Change 4 + ADR-013 phantom-type witness pluralism).
Fields
witness_kind: WitnessKindWhat kind of witness was detected.
External
Witness identifier appears to reference an external tool (clippy lint, kani proof, prusti annotation, etc.); deferred to that tool’s validator.
Ambiguous
Witness identifier resolves to multiple functions in the workspace
(ATK-A2-005). The caller must qualify the path or rename one
candidate. Audit reports WitnessTier::None because no single
resolution was confirmed.
NotFound
Witness identifier could not be resolved in the workspace.
Fields
Missing
The immunity declaration didn’t include a witness identifier at all.
Trait Implementations§
Source§impl Clone for WitnessStatus
impl Clone for WitnessStatus
Source§fn clone(&self) -> WitnessStatus
fn clone(&self) -> WitnessStatus
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 WitnessStatus
impl Debug for WitnessStatus
Source§impl<'de> Deserialize<'de> for WitnessStatus
impl<'de> Deserialize<'de> for WitnessStatus
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 WitnessStatus
Source§impl PartialEq for WitnessStatus
impl PartialEq for WitnessStatus
Source§fn eq(&self, other: &WitnessStatus) -> bool
fn eq(&self, other: &WitnessStatus) -> bool
self and other values to be equal, and is used by ==.