Files
codex-mmo/profiles/codex-harness-team/contracts/review.json
T
2026-08-24 08:11:59 -07:00

45 lines
1.7 KiB
JSON

{
"title": "Fresh-context integrated diff review",
"type": "object",
"additionalProperties": false,
"properties": {
"verdict": {"type": "string", "enum": ["pass", "concerns", "fail", "blocked"]},
"findings": {
"type": "array",
"maxItems": 50,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"severity": {"type": "string", "enum": ["critical", "high", "medium", "low", "note"]},
"location": {"type": "string", "minLength": 1},
"claim": {"type": "string", "minLength": 1},
"evidence": {"type": "string", "minLength": 1},
"correction": {"type": "string", "minLength": 1}
},
"required": ["severity", "location", "claim", "evidence", "correction"]
}
},
"commands": {
"type": "array",
"maxItems": 20,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"command": {"type": "string", "minLength": 1},
"exit_code": {"type": "integer"},
"observation": {"type": "string", "minLength": 1}
},
"required": ["command", "exit_code", "observation"]
}
},
"blockers": {"type": "array", "items": {"type": "string"}, "maxItems": 20}
},
"required": ["verdict", "findings", "commands", "blockers"],
"allOf": [
{"if": {"properties": {"verdict": {"const": "pass"}}, "required": ["verdict"]}, "then": {"properties": {"findings": {"maxItems": 0}, "blockers": {"maxItems": 0}}}},
{"if": {"properties": {"verdict": {"const": "blocked"}}, "required": ["verdict"]}, "then": {"properties": {"blockers": {"minItems": 1}}}}
]
}