{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.evidencetoeffect.org/v0.1.0/schemas/run-manifest.schema.json",
  "title": "EvidenceToEffect Run Manifest",
  "description": "Non-normative research artefact schema for an E2E endpoint-validation run.",
  "type": "object",
  "required": [
    "package",
    "version",
    "node",
    "run_id",
    "created_utc",
    "case_summary",
    "scope"
  ],
  "properties": {
    "package": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "node": {
      "type": "string"
    },
    "run_id": {
      "type": "string"
    },
    "created_utc": {
      "type": "string",
      "format": "date-time"
    },
    "case_summary": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "case_id",
          "harness_status"
        ],
        "properties": {
          "case_id": {
            "type": "string"
          },
          "harness_status": {
            "type": "string",
            "enum": [
              "PASS",
              "FAIL",
              "ERROR",
              "INVALIDATED"
            ]
          }
        },
        "additionalProperties": true
      }
    },
    "all_harness_cases_passed": {
      "type": "boolean"
    },
    "scope": {
      "type": "string"
    },
    "package_zip_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "package_fingerprint_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    }
  },
  "additionalProperties": true
}