Skip to main content

extract_verification_failure_shape

Function extract_verification_failure_shape 

Source
pub fn extract_verification_failure_shape(
    output: &str,
) -> VerificationFailureShape
Expand description

Extract a shape-only diagnostic from verifier output.

§Requires

None: the function is total over &str, including empty and hostile input.

§Ensures

  • site is at most 120 characters and comes only from an allowlisted marker.
  • fingerprint is None when no allowlisted marker matched, otherwise 16 lowercase hexadecimal characters.
  • No field reproduces arbitrary content from output beyond the bounded token at the matched marker position.
  • Total: a bounded number of substring scans over output.

§Termination

Bounded: at most 64 marker attempts per scan loop over 512-byte windows, plus a constant number of linear substring scans.