Workflow graph architecture
Version 1 graphs, typed handles, allocation branches and validation rules.
On this page
Graph and node shape
The versioned graph contains name, description, nodes, edges, and viewport. Each node has an identifier, registered type, position, collapsed state and strict configuration. Each edge references a source ID and port and a target ID and port. A graph allows up to 40 nodes and 120 edges. Position coordinates and zoom are bounded.
{
"schemaVersion": 1,
"name": "Inspect starting capital",
"description": "A read-only manual-start test.",
"nodes": [
{"id":"start","type":"start","position":{"x":0,"y":0},"collapsed":false,"config":{"asset":"USDC","capital":"manual","amount":"100"}},
{"id":"result","type":"result","position":{"x":330,"y":0},"collapsed":false,"config":{"note":"Review capital"}}
],
"edges": [
{"id":"wire","source":"start","sourcePort":"next","target":"result","targetPort":"in"},
{"id":"value","source":"start","sourcePort":"amount","target":"result","targetPort":"value"}
],
"viewport":{"x":0,"y":0,"zoom":1}
}Connections and graph validation
Execution handles include next/in, with true and false outputs for branch nodes. Amount, price, boolean, research, decision and review handles carry typed values. A link must have compatible types and known, distinct endpoints. Allocation branches declare named output IDs and a remainder. Percentage Allocation accepts percentage branches; Split Amount can combine fixed and percentage branches subject to the engine’s amount checks.
- Manual Start
- Percentage Allocation
- Shield Preparation
- Review Actions
- Percentage Allocation
- Private Send Preparation
- Review Actions
- Market Price
- Condition
- True branch or false branch
Malformed or duplicate IDs, incompatible or dangling connections, cycles, and absent required inputs produce validation issues. Drafts can retain unresolved configuration where allowed; tests enforce the required graph invariants before evaluation.
See registered nodes, React Flow handles, and workflow testing.

CogniTech