Overview
Contracts make AI behavior explicit, validated, and inspectable. They are JSON Schema documents attached to skill versions (variablesSchema, outputSchema) and tool versions (inputSchema, outputSchema).
Why contracts matter
- They define what inputs are allowed and what outputs are expected.
- They power runtime validation and surface errors early.
- They show up in run detail so you can explain failures.
Skill versions also track outputContractState (declared / undeclared) to indicate whether an output schema is formally declared.