Validation Reference
DLGValidator runs 11 checks in order. First failure raises.
# |
Check |
Exception |
|---|---|---|
1 |
JSON Schema conformance |
|
2 |
Security allowlist |
|
3 |
Module existence |
|
4 |
Callable attribute |
|
5 |
Handler signature |
|
6 |
Input/output schema subset |
|
7 |
Cycle detection |
|
8 |
Reachability analysis |
|
9 |
Mixed routing conflict |
|
10 |
Send API target validation |
|
11 |
Subgraph compatibility |
|
Examples
Bad version → GraphValidationError:
{ "version": "not-semver" }
Cycle → StaticLoopException:
{ "static_edges": [{"from": "a", "to": "b"}, {"from": "b", "to": "a"}] }
Unreachable node → UnreachableNodeException:
{ "nodes": ["a", "orphan"], "edges": {"entry_point": "a", "static_edges": [{"from": "a", "to": "__end__"}]} }