Schema System
Versioned, reusable, composable JSON Schema definitions for agent inputs and outputs. Every agent in a pipeline produces typed artifacts validated against a schema. Schemas are versioned independently from agents, so updating a schema can affect multiple agents at once.
Each schema stores:
- Field definitions with types, constraints, and defaults
- Output shape: the expected structure of the artifact an agent produces
- Validation rules: JSON Schema constraints enforced at runtime
Schemas are referenced by agents via the schema field in the agent configuration. If an agent’s output does not match its assigned schema, the pipeline run fails with a validation error. Manual nodes also validate human-submitted output against the node’s output schema.
See PRD §8.3 for full specification.