Skip to main content

interpret

Function interpret 

Source
pub fn interpret(capture: &ProbeCapture) -> Vec<Interpretation>
Expand description

Turn one capture into zero or more observations.

PURE. No I/O, no clock, no randomness, no allocation-order dependence. Given identical bytes this returns an identical vector forever, which is what lets bathy answer “why do you believe this” from stored evidence and what lets the replay corpus in M4 Task 4 act as a real regression suite.

Returns an empty vector when nothing matches (AC-4.13). Guessing a service from bytes that do not structurally confirm it is a bug, not a feature – see tests::unrecognized_bytes_yield_no_observation_rather_than_a_guess.