{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iarpg.com/country-context-review-submission-private.schema.json",
  "title": "Country Context Review Private Submission",
  "description": "2.0.27-wip synthetic reviewer-workspace record contract.",
  "type": "object",
  "required": [
    "$schema",
    "record_type",
    "schema_version",
    "release",
    "version",
    "synthetic_fixture",
    "non_evidentiary",
    "truth_boundary",
    "submission_id",
    "fixture_state",
    "country_slug",
    "proposal_id",
    "audit_id",
    "claim_id",
    "identity_state",
    "reviewer_private",
    "qualification_and_relationship",
    "language_and_translation",
    "conflicts_and_funding",
    "consent",
    "claim_response",
    "history",
    "publication_gate",
    "one_reviewer_scope_limit",
    "source_verification_id",
    "adjudication_handoff_id",
    "extensions"
  ],
  "properties": {
    "$schema": {
      "const": "https://iarpg.com/country-context-review-submission-private.schema.json"
    },
    "record_type": {
      "const": "iarpg-country-context-review-submission-private"
    },
    "schema_version": {
      "const": "1.0"
    },
    "release": {
      "const": "IARPG-OPS-2"
    },
    "version": {
      "const": "2.0.27-wip"
    },
    "synthetic_fixture": {
      "const": true
    },
    "non_evidentiary": {
      "const": true
    },
    "truth_boundary": {
      "type": "string",
      "minLength": 40
    },
    "submission_id": {
      "type": "string"
    },
    "fixture_state": {
      "enum": [
        "attributable",
        "pseudonymous",
        "confidential",
        "non-public",
        "incomplete-consent",
        "withdrawn",
        "corrected",
        "appealed"
      ]
    },
    "country_slug": {
      "const": "senegal"
    },
    "proposal_id": {
      "const": "country-context-senegal-2026-07-22"
    },
    "audit_id": {
      "const": "country-context-audit-senegal-2026-07-23"
    },
    "claim_id": {
      "const": "claim-senegal-01"
    },
    "identity_state": {
      "enum": [
        "attributable",
        "pseudonymous",
        "confidential",
        "non-public",
        "withdrawn"
      ]
    },
    "reviewer_private": {
      "type": "object",
      "required": [
        "legal_name",
        "consented_public_label",
        "contact_email",
        "contact_phone",
        "precise_location",
        "employer_details",
        "immigration_status",
        "protected_characteristics",
        "identity_verification"
      ],
      "properties": {
        "legal_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "consented_public_label": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_email": {
          "type": [
            "string",
            "null"
          ]
        },
        "contact_phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "precise_location": {
          "type": [
            "string",
            "null"
          ]
        },
        "employer_details": {
          "type": [
            "string",
            "null"
          ]
        },
        "immigration_status": {
          "type": [
            "string",
            "null"
          ]
        },
        "protected_characteristics": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "identity_verification": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "qualification_and_relationship": {
      "type": "object"
    },
    "language_and_translation": {
      "type": "object"
    },
    "conflicts_and_funding": {
      "type": "object"
    },
    "consent": {
      "type": "object",
      "required": [
        "participation",
        "quotation",
        "paraphrase",
        "attribution",
        "private_retention",
        "anonymization",
        "publication",
        "withdrawal_contact",
        "deletion_request_handling"
      ],
      "properties": {
        "participation": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "quotation": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "paraphrase": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "attribution": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "private_retention": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "anonymization": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "publication": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "withdrawal_contact": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        },
        "deletion_request_handling": {
          "enum": [
            "allow",
            "deny",
            "unanswered",
            "withdrawn",
            "not-applicable"
          ]
        }
      },
      "additionalProperties": false
    },
    "claim_response": {
      "type": "object"
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "publication_gate": {
      "type": "object",
      "required": [
        "state",
        "publishable",
        "blockers"
      ],
      "properties": {
        "state": {
          "enum": [
            "blocked",
            "candidate-only",
            "withdrawn"
          ]
        },
        "publishable": {
          "const": false
        },
        "blockers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        }
      },
      "additionalProperties": false
    },
    "one_reviewer_scope_limit": {
      "const": "One synthetic record cannot represent Senegal, any institution, language community, affected community, or public opinion."
    },
    "source_verification_id": {
      "type": "string"
    },
    "adjudication_handoff_id": {
      "type": "string"
    },
    "extensions": {
      "type": "object"
    }
  },
  "additionalProperties": false
}
