pub enum RoleReadiness {
NotReady,
Unknown,
Unverifiable,
Known(Binding),
}Expand description
Whether one signing role can sign, as far as this session can tell.
Two unknowns live here and they must never share a variant (RFC 026 §3). Self::Unknown
grants the capability with a caveat rendered; Self::Unverifiable withholds it and says so. A
single variant that sometimes did each is the shape C-T2c′ exists to forbid.
Variants§
NotReady
No key material this session can use. At ≤ 0.39 the variables are absent; at ≥ 0.41 prikk said
usable: false, and its own reason travels separately for display (ER-02).
Unknown
Key material is present, and whether it binds is unanswerable on this prikk — the ≤ 0.39
band, where binding does not exist. Grants, with the caveat rendered: RFC 016’s rule is
to offer the action and let prikk refuse, never to render the caveat as a pass.
Unverifiable
prikk 0.40 exactly: stikk cannot see whether there is key material at all. 0.40 moved seeds to a key directory and shipped no way to ask about them, so presence-in-the-environment stopped being an answer and nothing replaced it until 0.41. Withholds, and the UI says unknown rather than not ready — Q1(b), ruled: honest and actionable beats confident and wrong.
Known(Binding)
prikk answered (≥ 0.41).