Skip to main content

validate_walkthrough

Function validate_walkthrough 

Source
pub fn validate_walkthrough(
    agent: &AgentWalkthrough,
    surface: &DecisionSurface,
    change_anchor_ids: &FxHashSet<String>,
    current_hash: &str,
) -> WalkthroughValidation
Expand description

Post-validate the agent’s judgment JSON against the live graph.

The graph is the verifier:

  1. If the agent’s echoed graph_snapshot_hash != current_hash, the tree moved: REFUSE the whole payload as stale (accepted empty, every judgment rejected with stale-snapshot).
  2. Otherwise, each judgment is ACCEPTED iff its signal_id is on the decision surface’s emitted allowlist (DecisionSurface::accept_signal_id); an unanchored id is REJECTED (unanchored-signal-id). Accepted judgments carry the agent’s framing FENCED as non-deterministic.