103 lines
1.8 KiB
JSON
103 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "AIOS Orchestrator Event",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"schema_version",
|
|
"project_key",
|
|
"contract_commit",
|
|
"event_id",
|
|
"source_agent",
|
|
"event_type",
|
|
"work_unit_id",
|
|
"status",
|
|
"state_version",
|
|
"implementation_commit",
|
|
"result_commit",
|
|
"blocker",
|
|
"evidence_refs",
|
|
"payload"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": 1
|
|
},
|
|
"project_key": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 128
|
|
},
|
|
"contract_commit": {
|
|
"type": "string",
|
|
"pattern": "^[0-9a-f]{40}$"
|
|
},
|
|
"event_id": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 128
|
|
},
|
|
"source_agent": {
|
|
"enum": [
|
|
"openclaw",
|
|
"codex",
|
|
"gitea",
|
|
"system",
|
|
"workspace-agent"
|
|
]
|
|
},
|
|
"event_type": {
|
|
"type": "string"
|
|
},
|
|
"work_unit_id": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"READY",
|
|
"RUNNING",
|
|
"PASS",
|
|
"BLOCKED",
|
|
"FAIL",
|
|
"TIMEOUT",
|
|
"NOT_EXECUTED"
|
|
]
|
|
},
|
|
"state_version": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"implementation_commit": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"pattern": "^[0-9a-f]{40}$"
|
|
},
|
|
"result_commit": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"pattern": "^[0-9a-f]{40}$"
|
|
},
|
|
"blocker": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"maxLength": 512
|
|
},
|
|
"evidence_refs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"maxItems": 64
|
|
},
|
|
"payload": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|