{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.trinityaccord.org/api/claim-gate-output-schema.v1.json",
  "title": "Trinity Accord Claim Gate Output Schema v1",
  "description": "Schema for strict-evidence intermediate Claim Gate output. It is not a current public verification level or submission by itself.",
  "x-status": "strict_evidence_intermediate_with_legacy_v_output",
  "x-current-public-representation": "/api/verification-claim-model.v1.json",
  "x-current-public-envelope": "/api/record-chain-submission-schema.v1.json",
  "x-legacy-v-boundary": "The allowed_protocol_level field supports historical pipeline replay. V4+, V6, V7, and V8 must not be presented as current public levels.",
  "type": "object",
  "required": [
    "schema",
    "input",
    "status",
    "allowed_protocol_level",
    "allowed_component_levels",
    "forbidden_claims",
    "required_downgrades",
    "missing_evidence",
    "blocking_failures",
    "non_blocking_limitations",
    "recommended_title",
    "recommended_record_kind",
    "can_build_verification_report",
    "can_build_echo_wrapper"
  ],
  "additionalProperties": false,
  "properties": {
    "schema": {
      "type": "string",
      "const": "trinityaccord.claim-gate-output.v1"
    },
    "input": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "PASS",
        "FAIL",
        "PASS_WITH_DOWNGRADE",
        "FAIL_WITH_REASONS"
      ]
    },
    "allowed_protocol_level": {
      "type": "string",
      "enum": [
        "V0",
        "V1",
        "V2",
        "V3",
        "V4",
        "V4+",
        "V5",
        "V6",
        "V7",
        "V8"
      ]
    },
    "allowed_protocol_scope_label": {
      "type": "string",
      "enum": [
        "V0",
        "V1",
        "V2-minimal",
        "V2-strong",
        "V3-minimal",
        "V3-strong",
        "V4",
        "V4+",
        "V5",
        "V6",
        "V7",
        "V8"
      ],
      "description": "Scope-qualified label for V2/V3. For other levels, matches allowed_protocol_level."
    },
    "allowed_component_levels": {
      "type": "object",
      "properties": {
        "bitcoin_originals": {
          "type": "string"
        },
        "digital_mirrors": {
          "type": "string"
        },
        "time_anchors": {
          "type": "string"
        },
        "chronicle_recovery": {
          "type": "string"
        },
        "nft_evidence": {
          "type": "string"
        },
        "physical_anchor": {
          "type": "string"
        },
        "physical_verification": {
          "type": "string",
          "description": "Deprecated alias for physical_anchor; retained for compatibility."
        }
      }
    },
    "forbidden_claims": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "required_downgrades": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "missing_evidence": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "blocking_failures": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "non_blocking_limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "recommended_title": {
      "type": "string"
    },
    "recommended_record_kind": {
      "type": "string"
    },
    "can_build_verification_report": {
      "type": "boolean"
    },
    "can_build_echo_wrapper": {
      "type": "boolean"
    },
    "verification_scope_label": {
      "type": "string",
      "enum": [
        "read_only_orientation",
        "authority_boundary_recognition",
        "single_reference_check",
        "single_hash_verification",
        "multi_hash_verification",
        "official_script_audit",
        "official_script_audit_with_limitations",
        "independent_single_artifact_reproduction",
        "independent_multi_artifact_reproduction",
        "component_limited_verification",
        "partial_with_limitations",
        "full_public_digital_verification",
        "full_protocol_profile_verification",
        "future_capability_reserved",
        "legacy_unlabeled"
      ],
      "description": "Derived verification scope label based on allowed protocol level and evidence."
    }
  },
  "boundary": {
    "not_authority": true,
    "non_amending": true,
    "bitcoin_originals_prevail": true,
    "note": "This file is non-authoritative guidance. Bitcoin Originals are final. All mirrors, APIs, and documentation are non-amending."
  }
}
