{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-partner-authenticity-challenge-schema.json",
  "title": "PartnerAuthenticityChallenge",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-case-record-api-openapi.yml#/components/schemas/PartnerAuthenticityChallenge",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "caseId",
    "evidenceId",
    "challenge",
    "recordEffect",
    "resolutionAuthority"
  ],
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "partner-authenticity-challenge-v2"
    },
    "caseId": {
      "type": "string"
    },
    "evidenceId": {
      "type": "string"
    },
    "challenge": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "byParty",
        "ground",
        "raisedAt",
        "status"
      ],
      "properties": {
        "byParty": {
          "type": "string",
          "enum": [
            "claimant",
            "respondent"
          ]
        },
        "ground": {
          "type": "string"
        },
        "raisedAt": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "enum": [
            "raised",
            "sustained",
            "overruled"
          ]
        },
        "resolvedAt": {
          "type": "string",
          "format": "date-time"
        },
        "resolvedBy": {
          "type": "string"
        }
      }
    },
    "recordEffect": {
      "type": "string",
      "const": "contested_weight_only"
    },
    "resolutionAuthority": {
      "type": "string",
      "enum": [
        "assigned_reviewer_only",
        "assigned_tribunal"
      ],
      "description": "Current Rules use the assigned AI Tribunal; historical cases retain their pinned assigned-reviewer authority."
    }
  }
}