Expand description
The evidence gates (SP4 design §5), as predicates over AdapterMetadata.
These live in the library rather than in tests/adapter_contract.rs for one reason: a gate whose only
expression is an assertion over static METADATA items cannot be proven non-vacuous. cargo mutants
mutates functions, not statics, so a weaker-than-intended gate — Gate B’s biconditional written as a
single implication, say — would pass purely because no shipped adapter exhibits the excluded
combination. As functions they take negative fixtures, and a mutant reaches them.
Enums§
- Gate
Failure - Why a gate refused. One variant per rule, so a test names the rule it is pinning.
Constants§
- CITED
- MEASURED
- The provenance prefixes a
basismay start with (SP4 design D5). - UNKNOWN_
VERSION - The encoding of a failed probe in
evidence.upstream_version(SP4 design §9 outcome 2). - UNMEASURED
Functions§
- gate_
a_ shape - Gate A’s shape half: what can be checked before any transcript exists (SP4 design §5.2).
- gate_b
- Gate B: every
basiscarries a provenance prefix, no newline, andunmeasured:exactly whenUnknown. - gate_c
- Gate C: what
Provencosts, and what a failed probe forces (SP4 design §5, D6). - gates_
before_ transcripts - Every gate that applies before the probe run, for one adapter.