{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://acdl.cloudinit.dev/schemas/contract.schema.json", "title": "ACDL Consumer Contract", "description": "A consumer contract declares intent: which module to deploy, in which environment, with which inputs. The contract references the central ACDL pipeline via 'uses' and declares the module name (matching a registry key), environment, and inputs. The contract resolver resolves this to a Target Stack instance.", "type": "object", "required": ["uses", "module", "environment", "inputs"], "properties": { "uses": { "type": "string", "description": "Reference to the central ACDL deployment pipeline (e.g. 'acdl/pipelines/deploy.yaml@v1')." }, "module": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "description": "Module name matching a registry key (L1 primitive or L2 composition)." }, "environment": { "type": "string", "enum": ["dev", "qa", "prod", "dr"], "description": "Target environment. dev = autonomous; qa/prod/dr = HITL gates." }, "inputs": { "type": "object", "description": "Module-specific inputs (bucket_name, region, image, port, env, etc.). Validated at resolution time against the module's interface.json or composition.json.", "additionalProperties": {"type": ["string", "number", "boolean", "object", "array"]} } } }