{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mahastrategies-com/json-schema/mahastrategies-com-audit-result-schema.json",
  "title": "AuditResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mahastrategies-com-free-preflight-api-openapi.yml#/components/schemas/AuditResult",
  "type": "object",
  "required": [
    "mps_version",
    "input_hash",
    "claims"
  ],
  "properties": {
    "mps_version": {
      "type": "string",
      "const": "0.1"
    },
    "input_hash": {
      "type": "string",
      "description": "SHA-256 of the audited passage."
    },
    "claims": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuditClaim"
      }
    }
  },
  "$defs": {
    "AuditClaim": {
      "type": "object",
      "required": [
        "excerpt",
        "tag",
        "rationale",
        "action"
      ],
      "properties": {
        "excerpt": {
          "type": "string",
          "description": "Verbatim excerpt from the passage (6–25 words)."
        },
        "tag": {
          "type": "string",
          "enum": [
            "VERIFIED",
            "SOURCED",
            "BOUNDARY",
            "ILLUSTRATIVE",
            "UNVERIFIED"
          ]
        },
        "rationale": {
          "type": "string",
          "maxLength": 1000
        },
        "action": {
          "type": "string",
          "enum": [
            "none",
            "verify",
            "cite",
            "reword",
            "remove"
          ]
        }
      }
    }
  }
}