Skip to main content

parse_agent_walkthrough

Function parse_agent_walkthrough 

Source
pub fn parse_agent_walkthrough(contents: &str) -> AgentWalkthrough
Expand description

Parse the agent’s judgment JSON from a --walkthrough-file path’s contents. A malformed payload yields an empty AgentWalkthrough whose default hash ("") will not match any real snapshot hash, so it is refused as stale (the safe direction: a garbled agent file never accepts).