Expand description
THE fail-closed gate (ADR 007) — every learned head routes weight access through this (AU-LEARNED).
The invariant this module enforces: with no weights, a learned head returns
AudioError::BackendUnavailable — it never fabricates an output. The gate is a plain,
auditable function so the fail-closed decision is impossible to miss or bypass: a head holds a
WeightState, and the only sanctioned way to reach the weights is require_weights, which
is Err(BackendUnavailable) whenever the state is Absent.
Enums§
- Weight
State - Whether a learned head has usable weights. Default construction is
Absent(fail closed).
Functions§
- require_
weights - The fail-closed gate. Returns the loaded weights, or
BackendUnavailablewhen absent.