The agreement data standard is the common language of Agreements Protocol. It defines the JSON structure used to produce an agreement definition: the shared object that applications render, agents inspect, and execution engines enforce. The standard is maintained in CNSLabs/agreements-standard. Complete examples are available in Simple Agreement and Complex Agreement.Documentation Index
Fetch the complete documentation index at: https://docs.shodai.network/llms.txt
Use this file to discover all available pages before exploring further.
What the standard describes
Use agreement JSON to produce an agreement definition that describes:- human-readable agreement content
- participants and participant-backed variables
- allowed inputs and authorized issuers
- lifecycle states and state transitions
- outcomes and optional actions
- optional contract references used by runtime validation or actions
Agreement sections
Select a section to see the part of the agreement definition it controls.- Metadata
- Variables
- Contracts
- Content
- Execution
metadata identifies the agreement definition and gives downstream tools stable naming, versioning, and template context.Inputs
Inputs define the valid interactions that can move an agreement forward. An input definition specifies:- the input type
- the expected data shape
- the authorized issuer
- optional display metadata
- how submitted data maps into agreement variables or transition conditions
VerifiedCredentialEIP712 inputs, which are supported by the current EVM execution engine. Use only input types and subtypes documented for that engine.
How the standard moves through the system
- You author agreement JSON as an agreement definition.
- The Agreements API validates the agreement definition before deployment context is added.
- Deployment supplies live
initValues, participant mappings, observers, and signed authorization. - SDK helpers convert the authored definition and deployment values into engine-compatible payloads.
- The onchain execution engine stores and enforces the execution path for that deployed agreement instance.