{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.agoragentic.com/ecf-core/agent-os-harness.v1.json",
  "title": "ECF Core Agent OS Harness Export",
  "type": "object",
  "required": ["schema_version", "generated_by", "context_layer", "artifacts", "boundary", "readiness"],
  "additionalProperties": false,
  "properties": {
    "schema_version": { "const": "ecf-core.agent-os-harness.v1" },
    "generated_by": { "const": "ecf-core" },
    "context_layer": { "const": "ecf_core" },
    "artifacts": {
      "type": "object",
      "required": ["context_packet", "source_map", "policy_summary", "deployment_preview"],
      "additionalProperties": false,
      "properties": {
        "context_packet": { "type": "string" },
        "source_map": { "type": "string" },
        "source_manifest": { "type": ["string", "null"] },
        "policy_summary": { "type": "string" },
        "evidence_units": { "type": "string" },
        "context_evidence_units": { "type": "string" },
        "context_compaction_report": { "type": "string" },
        "page_index": { "type": ["string", "null"] },
        "tree_index": { "type": ["string", "null"] },
        "retrieval_plan": { "type": ["string", "null"] },
        "code_index": { "type": ["string", "null"] },
        "context_router": { "type": ["string", "null"] },
        "deployment_preview": { "type": "string" },
        "grounding_eval": { "type": ["string", "null"] }
      }
    },
    "boundary": { "type": "object", "additionalProperties": true },
    "readiness": { "type": "object", "additionalProperties": true },
    "context_compile_readiness": { "type": ["object", "null"], "additionalProperties": true },
    "context_index_readiness": { "type": ["object", "null"], "additionalProperties": true },
    "agent_os_preview": { "type": "object", "additionalProperties": true }
  }
}
