{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hsimc.tech/rd/t736/ecosystem/evidence/schemas/continue-capability-event.v1.schema.json",
  "title": "HSIMC Continue: scoped capability evidence + canonical acceptance anchor",
  "description": "One accepted and attributable evidence event. IDs and hashes reference private HSA/Localhost records; does not expose their bodies or grant tool authority.",
  "type": "object",
  "required": [
    "schema",
    "event_id",
    "artifact",
    "capability_ref",
    "stage",
    "gate",
    "title_en",
    "title_zh",
    "evidence_class",
    "state",
    "observed_at_utc",
    "observed_at_hkt",
    "hardware",
    "protocol",
    "model",
    "metrics",
    "acceptance_scope",
    "not_verified",
    "operation_ids",
    "hardware_receipt_sha256",
    "private_source_receipt_sha256",
    "hsa",
    "public_evidence_url",
    "publication_status",
    "public_record_body",
    "verification_procedure"
  ],
  "properties": {
    "schema": {
      "const": "hsimc.continue.capability-evidence.v1"
    },
    "event_id": {
      "type": "string",
      "pattern": "^CE-[A-Z0-9]+-[0-9]{3}$"
    },
    "artifact": {
      "type": "string",
      "minLength": 3
    },
    "capability_ref": {
      "type": "string",
      "minLength": 3
    },
    "stage": {
      "type": "string",
      "enum": [
        "M3",
        "G1",
        "G1R"
      ]
    },
    "gate": {
      "enum": [
        "01_COMPUTE",
        "02_GOLDEN_AND_CONTINUITY"
      ]
    },
    "title_en": {
      "type": "string",
      "minLength": 4
    },
    "title_zh": {
      "type": "string",
      "minLength": 4
    },
    "evidence_class": {
      "type": "string",
      "minLength": 8
    },
    "state": {
      "const": "SCOPED_ACCEPTED"
    },
    "observed_at_utc": {
      "type": "string",
      "format": "date-time"
    },
    "observed_at_hkt": {
      "type": "string",
      "minLength": 23
    },
    "hardware": {
      "type": "object",
      "required": [
        "name",
        "kernel",
        "npu_id"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "kernel": {
          "type": "string"
        },
        "npu_id": {
          "type": "string"
        }
      }
    },
    "protocol": {
      "type": "object",
      "required": [
        "name",
        "version",
        "transport",
        "tool_count",
        "resource_count",
        "public_server_endpoint"
      ],
      "properties": {
        "name": {
          "const": "MCP"
        },
        "version": {
          "type": "string"
        },
        "transport": {
          "type": "string"
        },
        "tool_count": {
          "type": "integer",
          "minimum": 1
        },
        "resource_count": {
          "type": "integer",
          "minimum": 1
        },
        "public_server_endpoint": {
          "const": "NOT_DEPLOYED"
        }
      }
    },
    "model": {
      "type": "object"
    },
    "metrics": {
      "type": "object"
    },
    "acceptance_scope": {
      "type": "string",
      "minLength": 15
    },
    "not_verified": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 4
      }
    },
    "operation_ids": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 5
      }
    },
    "hardware_receipt_sha256": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "pattern": "^[0-9a-f]{64}$"
      }
    },
    "private_source_receipt_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "hsa": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "source",
        "state",
        "package",
        "turn_id",
        "turn_complete_id",
        "turn_complete_sha256",
        "turn_complete_seq",
        "final_mirror_id",
        "final_sha256",
        "accepted_at_utc",
        "accepted_at_hkt",
        "accepted_transaction_sha256",
        "exact_record_readback",
        "public_record_bodies",
        "public_record_links"
      ],
      "properties": {
        "source": {
          "type": "string",
          "minLength": 1
        },
        "state": {
          "const": "TURN_ACCEPTED"
        },
        "package": {
          "const": "15/15"
        },
        "turn_id": {
          "type": "string",
          "minLength": 12
        },
        "turn_complete_id": {
          "type": "string",
          "pattern": "^e_[0-9a-f]{28,40}$"
        },
        "turn_complete_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "turn_complete_seq": {
          "type": "integer",
          "minimum": 1
        },
        "final_mirror_id": {
          "type": "string",
          "pattern": "^e_[0-9a-f]{28,40}$"
        },
        "final_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "accepted_at_utc": {
          "type": "string",
          "format": "date-time"
        },
        "accepted_at_hkt": {
          "type": "string",
          "minLength": 23
        },
        "accepted_transaction_sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "exact_record_readback": {
          "const": true
        },
        "public_record_bodies": {
          "const": "NOT_PUBLISHED"
        },
        "public_record_links": {
          "const": "NONE_PRIVATE_LOCALHOST"
        }
      }
    },
    "public_evidence_url": {
      "type": "string",
      "format": "uri"
    },
    "publication_status": {
      "enum": [
        "PUBLIC_C0_002",
        "CORROBORATED_BY_C0_003",
        "PUBLIC_C0_003"
      ]
    },
    "public_record_body": {
      "const": "NONE"
    },
    "verification_procedure": {
      "type": "string",
      "minLength": 12
    }
  }
}
