{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peoplescourt-ai/json-schema/peoplescourt-ai-canonical-remedy-input-schema.json",
  "title": "CanonicalRemedyInput",
  "description": "Post-Award requests retain the applicable seven-day period after service despite an appeal waiver or completed execution. Existing appellate material-specific deadlines remain controlling. An exact sourceSupplement target opens only that supplement’s correction window, without renewing the deadline for unrelated original material.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peoplescourt-ai-openapi.json#/components/schemas/CanonicalRemedyInput",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "expectedRevision": {
          "type": "integer",
          "minimum": 0
        },
        "notice": {
          "type": "string"
        },
        "claimedErrors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "outcomeEffect": {
          "type": "string"
        },
        "response": {
          "type": "string"
        },
        "crossErrors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requestedDisposition": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "correction",
            "additional_award"
          ]
        },
        "request": {
          "type": "string"
        },
        "pleadedReliefIndex": {
          "type": "integer",
          "minimum": 0
        },
        "sourceSupplement": false,
        "correctionTarget": {
          "description": "Required for correction after a Rules 1.0 modification, substitution, or vacatur. Vacatur permits only appellate_text. Unchanged funds instructions retain the original request deadline.",
          "oneOf": [
            {
              "type": "object",
              "required": [
                "kind"
              ],
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "appellate_text"
                }
              }
            },
            {
              "type": "object",
              "required": [
                "kind",
                "index"
              ],
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "funds_instruction"
                },
                "index": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          ]
        },
        "action": {
          "type": "string",
          "enum": [
            "file",
            "respond"
          ]
        },
        "requestId": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "expectedRevision": {
          "type": "integer",
          "minimum": 0
        },
        "notice": {
          "type": "string"
        },
        "claimedErrors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "outcomeEffect": {
          "type": "string"
        },
        "response": {
          "type": "string"
        },
        "crossErrors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requestedDisposition": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "const": "correction"
        },
        "request": {
          "type": "string"
        },
        "pleadedReliefIndex": {
          "type": "integer",
          "minimum": 0
        },
        "sourceSupplement": {
          "$ref": "#/$defs/PostExecutionSupplementTarget"
        },
        "correctionTarget": {
          "description": "Required for correction after a Rules 1.0 modification, substitution, or vacatur. Vacatur permits only appellate_text. Unchanged funds instructions retain the original request deadline.",
          "oneOf": [
            {
              "type": "object",
              "required": [
                "kind"
              ],
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "appellate_text"
                }
              }
            },
            {
              "type": "object",
              "required": [
                "kind",
                "index"
              ],
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "funds_instruction"
                },
                "index": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          ]
        },
        "action": {
          "type": "string",
          "enum": [
            "file",
            "respond"
          ]
        },
        "requestId": {
          "type": "string"
        }
      },
      "required": [
        "sourceSupplement",
        "kind"
      ]
    }
  ],
  "$defs": {
    "PostExecutionSupplementTarget": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "sha256"
      ],
      "description": "Exact signed supplement coordinate. A correction request may target only a verified supplement in this case that has no correction successor when the request is filed. Its seven-day period runs from its service. Omit sourceSupplement to target the original Award; unrelated original deadlines are never renewed.",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      }
    }
  }
}