Skip to main content

Module dsl_semantics

Module dsl_semantics 

Source
Expand description

Post-parse semantic checks for model-generated Flow graphs.

The DSL parser accepts syntactically valid documents that still violate runtime contracts (e.g. utility nodes with actionId: run-command). The Generate tab runs these checks after flow_dsl::parse so local/cloud models get a corrective retry instead of shipping runnable-but-broken flows.

Functionsยง

repair_generated_graph
Fix common model mistakes before re-serialization (self-loop edges, missing commandName, implicit adapter on canvas node types).
validate_generated_graph
Return human-readable issues. Empty means the graph is acceptable.