pub fn bounded_audit_coordinate(raw: &str) -> StringExpand description
Deterministic bounded audit identity for a coordinate that failed to parse
into a typed object (PRRT_kwDONmv2Pc6a2ZGv, v16 §14: audit is a trail,
never an authorization input).
A malformed name can be attacker-sized, and the deny path would otherwise
clone and durably persist it in full — input-sized allocation and disk
amplification per denial. This representation keeps at most a
MAX_AUDIT_COORDINATE_PREFIX_BYTES prefix (truncated on a UTF-8 char
boundary, deterministically) plus a BLAKE3-8 digest and byte length of
the complete raw input, so distinct oversized inputs remain
distinguishable while the persisted text is bounded independently of the
input. Inputs already within the prefix cap are recorded verbatim.
This is audit-only: it never feeds an authorization decision, and the
accepted-parse deny paths keep auditing the full decoded
MoqEventObjectRef::audit_coordinate (already parser-bounded).