Rules-Based Router
Learning goals
Understand exclusive branching without executing user code.
Quick reference: Level 3; intermediate; output type routed_value; estimated cost: none.
Architecture
Text alternative: The graph contains FlowBeads/input, Control/Switch, Control/Merge, Test/DataProbe, FlowBeads/output. It accepts public input and returns a public result.
Prerequisites
None.
Connections
None.
Secrets
No paid secret is required.
Build and run
- Run urgent, normal and unknown values.
- Inspect active output summaries.
- Enable non-strict Merge to compare behavior.
Use this fixture in the Test panel:
Priority route
"urgent"
Expected result
- priority branch is active
- other branches are undefined
- Merge returns the original value
Open the persisted run and verify the node timeline. Browser sinks appear in the Inspector; public output appears in the run result when enabled.
Side effects and cost
This Braid has no external side effect.
Cost: none. DataBraid stores summaries and structured errors, not secret values.
Extensions
- Change the fixture and compare the node-level timeline.
- Add a Data Probe before the final output.
- Save a known-good fixture for regression testing.