A portable contract for the whole agent workflow.
GRAPH.md is Cromus’s deterministic, framework-neutral format for describing nodes, edges, shared state, bounded loops, and path budgets before an AI workflow runs.
Why GRAPH.md
Govern the topology, not only the nodes.
A collection of individually valid agent files can still form an expensive, slow, or unsafe workflow. GRAPH.md makes routing, fan-out, retries, human approvals, state movement, and path-level budgets explicit enough to inspect before execution.
The v1.1.0 contract
Small enough to read. Complete enough to govern.
v1.0.0 documents remain supported unchanged. Judge nodes require an explicit v1.1.0 declaration. Documents without a version retain v1.0.0 validation with a warning.
A judge declares its seat (router, gate, selector, verifier, advisor, or triage), decision model, question and option counts, state tokens, timeout, fallback, trigger, and optional 0–1 confidence threshold. Simulation charges input only and caps each call's estimated latency at its timeout; it does not execute the judge.
The v1.1 importer also accepts explicit question and option arrays, a model_key, state_tokens under estimates, and multiple fires_on event names. The count-based form remains supported.
spec_versionThe GRAPH.md contract version enforced by validators.
entryThe node where execution starts.
exitsOne or more successful terminal node IDs.
nodesAgents, tools, routers, verifiers, judges, humans, and subgraphs.
edgesSequential, conditional, parallel, and bounded loop connections.
stateOptional shared-state declarations with token estimates.
path_budgetOptional token or cost ceiling for one entry-to-exit run.
---
name: support-triage
spec_version: "1.1.0"
entry: route
exits: [close]
path_budget:
cost_usd: 0.25
nodes:
- id: route
kind: judge
seat: router
decision_model: typesafe:jev-1.13
questions: 1
options_count: 2
state_tokens: 500
timeout_ms: 1000
fallback: close
fires_on: on_request
confidence_threshold: 0.8
- id: answer
kind: agent
model_key: openai:gpt-5-mini
- id: close
kind: human
edges:
- id: route-answer
from: route
to: answer
kind: conditional
condition: known_issue
- id: answer-close
from: answer
to: close
---Published for community use.
GRAPH.md is a Cromus-defined portable format, published under CC BY 4.0. It is open for reuse and community review without claiming endorsement by an external standards body.