{
  "$id": "https://www.gaipagents.com/phase1-use-receipt-schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "artifact_id": {
      "const": "GAIP-SHARED-RESULT-V1"
    },
    "artifact_sha256_seen": {
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    },
    "completed_at": {
      "format": "date-time",
      "type": "string"
    },
    "discovery_mode": {
      "const": "ORGANIC_UNASSISTED"
    },
    "downstream_decision": {
      "enum": [
        "INSPECTED_READ_ONLY",
        "ABSTAINED_FROM_LIVE_ACTION",
        "PRESERVED_IN_DOWNSTREAM_REASONING"
      ]
    },
    "evidence_refs_preserved": {
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    },
    "execution_enabled_interpretation": {
      "const": false
    },
    "gaip_assistance": {
      "const": "NONE"
    },
    "operator_id": {
      "maxLength": 200,
      "minLength": 3,
      "type": "string"
    },
    "operator_identity_evidence": {
      "items": {
        "format": "uri",
        "type": "string"
      },
      "minItems": 1,
      "type": "array"
    },
    "operator_relationship": {
      "const": "INDEPENDENT_EXTERNAL"
    },
    "phase_2_interpretation": {
      "const": "LOCKED"
    },
    "receipt_sha256": {
      "description": "Lowercase SHA-256 of canonical JSON for every other field, using sorted keys and compact separators.",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    },
    "schema_version": {
      "const": "GAIP-PHASE1-USE-RECEIPT-V1"
    },
    "submitter_attestation": {
      "const": "I independently discovered and semantically relied on the identified frozen GAIP result without GAIP assistance."
    },
    "synthetic": {
      "const": false
    },
    "use_id": {
      "maxLength": 128,
      "minLength": 8,
      "type": "string"
    }
  },
  "required": [
    "schema_version",
    "use_id",
    "artifact_id",
    "artifact_sha256_seen",
    "operator_id",
    "operator_relationship",
    "operator_identity_evidence",
    "discovery_mode",
    "gaip_assistance",
    "downstream_decision",
    "execution_enabled_interpretation",
    "phase_2_interpretation",
    "evidence_refs_preserved",
    "completed_at",
    "synthetic",
    "submitter_attestation",
    "receipt_sha256"
  ],
  "title": "GAIP Phase 1 Independent Use Receipt",
  "type": "object"
}