{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.agoragentic.com/ecf-core/agent-os-preview-check.v1.json",
  "title": "ECF Core Agent OS Preview Check",
  "type": "object",
  "required": ["schema_version", "ok", "artifact_dir", "live_deploy_allowed", "required_files", "missing_files", "acceptance_checks", "boundary_safe", "next_step", "errors"],
  "additionalProperties": false,
  "properties": {
    "schema_version": { "const": "ecf-core.agent-os-preview-check.v1" },
    "ok": { "type": "boolean" },
    "artifact_dir": { "type": "string" },
    "import_mode": { "type": ["string", "null"] },
    "live_deploy_allowed": { "const": false },
    "required_files": { "type": "array", "items": { "type": "string" } },
    "missing_files": { "type": "array", "items": { "type": "string" } },
    "acceptance_checks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "status", "accepted", "required_status"],
        "additionalProperties": false,
        "properties": {
          "id": { "type": "string" },
          "status": { "type": "string" },
          "accepted": { "type": "boolean" },
          "required_status": { "type": "array", "items": { "type": "string" } }
        }
      }
    },
    "grounding_eval": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "context_index_readiness": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "context_compile_readiness": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "boundary_safe": { "type": "boolean" },
    "next_step": { "type": "string" },
    "errors": { "type": "array", "items": { "type": "string" } }
  }
}
