Skip to main content

Module validate

Module validate 

Source
Expand description

Parses and validates the LLM’s YAML reflection response.

Two-stage: (1) serde_yaml::from_str into an LlmEnvelope of EventKinds, then (2) per-variant semantic checks against the existing item IDs in the current session state. Failure returns a ValidationError that carries the raw output for the caller to attach to a reflection.error event.

Structs§

ValidationError
A parse failure or a semantic check failure.

Functions§

parse_and_validate
Parses raw_yaml and validates each event against the v1 rules.