{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://ultimate-pi.local/.pi/harness/specs/plan-validation-turn.schema.json",
	"title": "PlanValidationTurn",
	"type": "object",
	"additionalProperties": false,
	"required": [
		"schema_version",
		"round_index",
		"debate_round_focus",
		"checks",
		"overall_ready"
	],
	"properties": {
		"schema_version": { "type": "string", "const": "1.0.0" },
		"round_index": { "type": "integer", "minimum": 1, "maximum": 4 },
		"debate_round_focus": {
			"type": "string",
			"enum": ["spec", "wbs", "schedule", "quality"]
		},
		"checks": {
			"type": "array",
			"items": {
				"type": "object",
				"required": ["id", "status", "evidence"],
				"properties": {
					"id": { "type": "string" },
					"status": { "type": "string", "enum": ["pass", "warn", "fail"] },
					"evidence": { "type": "string" },
					"work_item_id": { "type": "string" },
					"phase_id": { "type": "string" }
				}
			}
		},
		"mitigations": {
			"type": "array",
			"items": { "type": "string", "minLength": 1 }
		},
		"overall_ready": { "type": "boolean" },
		"human_summary": { "type": "string" }
	}
}
