Framework / Validation
Turn quality requirements into graph gates
Validate one node result, a named group path, or the complete FSM path with either deterministic code or a semantic judge.Choose the validation level
- Node validators gate one capability output mid-path.
- Group-path validators inspect the outcome of a complete subgraph.
- FSM-path validators inspect execution history before End.
- Functional validators write state['valid']; semantic validators return ValidationResult output for an explicit downstream decision.
Create a deterministic gate
Pythonpython
from neosyntropy.core.validation import functional_validation_node
@functional_validation_node(id="CheckAmount", input_schema=OpenInput)
def check_amount(ctx):
return float(ctx.state.get("amount", 0)) <= 100
# Branch with deterministic guarded edges after CheckAmount.