Expand description
Pure trusted-evidence reducer.
verify(input, witnesses, now, max_age) -> VerifiedTrustState. No I/O. No
filesystem reads, no network calls, no clock reads — now is injected.
Order of checks (each is a hard fail when violated):
- Advisory-only short-circuit — local / dev / pre-v2 evidence cannot be
promoted by witnesses (
witness.tier_insufficient). - Subject binding — every witness’s
asserted_subject_blake3must matchinput.evidence_blake3(witness.disagreement). - Domain integrity — every witness’s
authority_domainmust equalclass.required_authority_domain()and no two witnesses may share a domain (witness.authority_overlap). - Freshness —
now - witness.asserted_at <= max_age(witness.stale). - Tier sufficiency — remote-CI and reproducible-build witnesses must be
ThirdParty(witness.tier_insufficient). - Signature — Ed25519 verify over the canonical preimage
(
witness.signature_invalid). - Class coverage —
FullChainVerifiedrequires one witness from each of the four ADR 0041 classes; missing classes drop the result toPartial, never to a falsely-trusted state. - Composition — effective ceiling for the input must be at or above the
required ceiling for the claim kind
(
composition.ceiling_below_required).
Structs§
- Verify
Options - Options for
verify_with_options. Groups the optional policy decision and the optional operator-supplied key registry so the call site stays readable as the option count grows.
Functions§
- ceiling_
from_ state - Map a
VerifiedTrustStateresult to aClaimCeilingfor downstream composition withruntime_claim_preflight_with_policy. Non-promoted states fall toDevOnlyso any verifier-side bug cannot lift the trust path silently. - verify
- Pure reducer over independent witnesses.
- verify_
with_ options - Full-featured verify entry point: composes ADR 0026 policy AND resolves
SelfSignedwitnesses against the operator-supplied key registry. - verify_
with_ policy - Same as
verify, but composes with an ADR 0026 policy decision so the trust path falls closed independently of witness composition when policy returnsRejectorQuarantine. The verifier honoursAllowandWarnwithout ceiling impact (mirrorsruntime_claim_preflight_with_policy).