AttractorEx.Validator (attractor_phoenix v0.1.0)

Copy Markdown View Source

Validates parsed graphs against the supported Attractor runtime contract.

Validation covers structural errors, routing issues, handler-specific attributes, human-gate metadata, retry configuration, and model stylesheet linting.

Summary

Functions

Finds the normalized start node ID for a graph, if present.

Returns all diagnostics for a normalized graph.

Validates a graph and raises when error-severity diagnostics are present.

Functions

start_node_id(graph)

Finds the normalized start node ID for a graph, if present.

validate(graph, opts \\ [])

Returns all diagnostics for a normalized graph.

validate_or_raise(graph, opts \\ [])

Validates a graph and raises when error-severity diagnostics are present.