AgentSystem
Stability: beta -- This resource kind ships with
orloj.dev/v1and is suitable for production use, but its schema may evolve with migration guidance in future minor releases.
spec
agents([]string): participating agent names.graph(map[string]GraphEdge): per-node routing.
GraphEdge fields:
next(string): legacy single-hop route.edges([]GraphRoute): fan-out routes.to(string)labels(map[string]string)policy(map[string]string)
join(GraphJoin): fan-in behavior.mode:wait_for_allorquorumquorum_count(int, >= 0)quorum_percent(int, 0-100)on_failure:deadletter,skip,continue_partial
Defaults and Validation
graph[*].nextandgraph[*].edges[].toare trimmed.- Route targets are normalized/deduplicated for execution.
joinnormalization defaults:mode->wait_for_allon_failure->deadletterquorum_percentclamped to0..100- invalid values are coerced to safe defaults in graph normalization.
- Runtime task validation additionally checks:
- graph nodes/edges must reference agents in
spec.agents - cyclic graphs require
Task.spec.max_turns > 0 - non-cyclic graphs require at least one entrypoint (zero indegree node)
- graph nodes/edges must reference agents in
status
phase,lastError,observedGeneration
Example: examples/resources/agent-systems/
See also: Agent system concept