Files

71 lines
2.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "council_plan.schema.json",
"type": "object",
"additionalProperties": false,
"required": [
"summary",
"phases",
"risks",
"edge_cases",
"tests",
"assumptions"
],
"properties": {
"summary": { "type": "string", "minLength": 1 },
"phases": {
"type": "array",
"minItems": 1,
"items": { "$ref": "#/$defs/phase" }
},
"risks": { "type": "array", "items": { "type": "string" } },
"edge_cases": { "type": "array", "items": { "type": "string" } },
"tests": { "type": "array", "items": { "type": "string" } },
"assumptions": { "type": "array", "items": { "type": "string" } },
"rollback": { "type": "array", "items": { "type": "string" } },
"open_questions": { "type": "array", "items": { "type": "string" } }
},
"$defs": {
"phase": {
"type": "object",
"additionalProperties": false,
"required": ["name", "goal", "tasks"],
"properties": {
"name": { "type": "string", "minLength": 1 },
"goal": { "type": "string", "minLength": 1 },
"tasks": {
"type": "array",
"minItems": 1,
"items": { "$ref": "#/$defs/task" }
}
}
},
"task": {
"type": "object",
"additionalProperties": false,
"required": [
"title",
"description",
"steps",
"inputs",
"outputs",
"dependencies",
"complexity",
"acceptance_criteria"
],
"properties": {
"title": { "type": "string", "minLength": 1 },
"description": { "type": "string", "minLength": 1 },
"steps": { "type": "array", "minItems": 1, "items": { "type": "string" } },
"inputs": { "type": "array", "items": { "type": "string" } },
"outputs": { "type": "array", "items": { "type": "string" } },
"dependencies": { "type": "array", "items": { "type": "string" } },
"complexity": { "type": "integer", "minimum": 1, "maximum": 10 },
"acceptance_criteria": { "type": "array", "items": { "type": "string" } },
"locations": { "type": "array", "items": { "type": "string" } },
"estimated_tokens": { "type": "integer", "minimum": 1 }
}
}
}
}