pub fn record(
mode: Mode,
outcome: Outcome,
ctx: &Context<'_>,
explanation: Option<&Explanation>,
)Expand description
Append one entry, if this mode keeps that outcome. Never fails, never panics, never blocks the caller’s decision.
explanation supplies the per-segment breakdown. It is optional because the caller only has one
on the paths that computed it: an approval is decided without ever building an explanation, and
making one just to log it would put the cost back on the hot path that --log exists to keep
free.