{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://aios.local/schemas/codex-command.schema.json", "title": "AIOS Codex command", "type": "object", "additionalProperties": false, "required": ["schema_version", "command_id", "project_key", "work_unit_id", "contract_commit", "state_version", "execution"], "properties": { "schema_version": {"const": 1}, "command_id": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}, "project_key": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}, "work_unit_id": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}, "contract_commit": {"type": "string", "pattern": "^[0-9a-f]{40}$"}, "state_version": {"type": "integer", "minimum": 0}, "execution": { "type": "object", "additionalProperties": false, "required": ["kind", "input"], "properties": { "kind": {"enum": ["acceptance_probe", "codex"]}, "input": {"type": "string", "maxLength": 65536} } } } }