{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://sneakoscope.dev/schemas/research/implementation-blueprint.schema.json",
  "title": "SKS Research Implementation Blueprint",
  "type": "object",
  "required": ["schema", "generated_at", "prompt", "implementation_allowed_in_research", "handoff_route", "repository_aware", "existing_files", "test_commands", "rollback_steps", "parallel_work_decomposition", "sections"],
  "properties": {
    "schema": { "const": "sks.research-implementation-blueprint.v1" },
    "generated_at": { "type": "string" },
    "prompt": { "type": "string" },
    "implementation_allowed_in_research": { "type": "boolean" },
    "handoff_route": { "type": "string" },
    "repository_aware": { "type": "boolean" },
    "existing_files": { "type": "array", "minItems": 3, "items": { "type": "string" } },
    "test_commands": { "type": "array", "minItems": 3, "items": { "type": "string" } },
    "rollback_steps": { "type": "array", "minItems": 2, "items": { "type": "string" } },
    "parallel_work_decomposition": { "type": "array", "minItems": 4, "items": { "type": "string" } },
    "sections": {
      "type": "array",
      "minItems": 8,
      "items": {
        "type": "object",
        "required": ["id", "title", "detail", "acceptance_checks"],
        "properties": {
          "id": { "type": "string" },
          "title": { "type": "string" },
          "detail": { "type": "string" },
          "acceptance_checks": { "type": "array", "items": { "type": "string" } }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
