Skip to main content

Module validation

Module validation 

Source
Expand description

Structural validation of policy node graphs, run before compilation (e.g. at config load and on Admin API writes) so malformed policies are rejected with actionable messages instead of failing at request time.

Constants§

RESERVED_ERROR_IDS 🔒
Error-boundary ids that would collide with an instance’s fixed port names (spec §1). error is the one special id: it is both the port name and the black-box default exit.
RESERVED_OUTPUT_IDS 🔒
Output-boundary ids that would collide with an instance’s fixed port names (spec §1). output is the one special id: it maps to success.

Functions§

validate_policy
Validates a policy’s node graph structure, collecting all violations.
validate_supernode
Validates a supernode definition’s structure, collecting all violations.