{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://anthonyveltri.github.io/durable-governance/schemas/practitioner-claim-v1.schema.json",
  "title": "Practitioner Claim Record (Edition 1.0) by Anthony Veltri",
  "description": "Draft 2020-12 JSON Schema for bounded Practitioner Claim Records, developed by Anthony Veltri (https://orcid.org/0009-0009-8697-6103). Blueprint documentation: https://anthonyveltri.github.io/durable-governance/blueprint/#practitioner-claim-record. Canonical concept overview: https://anthonyveltri.com/concepts/what-is-a-practitioner-archive/. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Defines 26 fields: 6 required core fields (claim_statement, direct_experience, evidence_items, breaks_when, uncertainty, prohibited_claims) and 20 optional fields for thin-context, high-consequence work.",
  "$comment": "Author: Anthony Veltri (https://anthonyveltri.com#person, ORCID 0009-0009-8697-6103). Edition: 1.0. License: CC BY 4.0. Exact 6 required + 20 optional = 26 top-level properties. Commercial or promotional fields such as related_offer are excluded. Human reviewers evaluate whether cited sources support statements and whether AI workflows respected boundaries. Technical interoperability recommendation: if you publish a modified validation schema, use a distinct $id URI in a namespace you control alongside CC BY 4.0 modification notices so validators do not confuse adapted rules with the canonical schema.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "claim_statement",
    "direct_experience",
    "evidence_items",
    "breaks_when",
    "uncertainty",
    "prohibited_claims"
  ],
  "properties": {
    "schema_id": {
      "const": "https://anthonyveltri.github.io/durable-governance/schemas/practitioner-claim-v1.schema.json",
      "description": "Optional canonical JSON Schema URI for Practitioner Claim Record v1.0."
    },
    "claim_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9-]{2,80}$",
      "description": "Optional stable, never-reused identifier for the bounded claim record (for example, 'CLM-2026-021')."
    },
    "version": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional version identifier of this claim record (for example, '1.0.0')."
    },
    "author": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional author identifier or canonical Person JSON-LD @id (such as 'https://anthonyveltri.com#person')."
    },
    "license": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional license governing reuse of the claim record (such as 'CC BY 4.0')."
    },
    "last_updated": {
      "type": "string",
      "format": "date",
      "description": "Optional ISO 8601 date of last substantive revision."
    },
    "domain_type": {
      "type": "string",
      "enum": [
        "architecture_and_interfaces",
        "decision_tempo_and_governance",
        "portfolio_and_alignment",
        "leadership_and_human_systems",
        "resilience_and_operations",
        "scientific_infrastructure_stewardship",
        "enterprise_ai_and_data_governance"
      ],
      "description": "Optional domain classification for archive indexing."
    },
    "diagnostic_pattern": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional named failure or governance pattern associated with the claim."
    },
    "claim_statement": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Required core field 1 of 6: single falsifiable sentence stating the bounded practitioner claim."
    },
    "claim_body": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional extended explanation of the claim."
    },
    "direct_experience": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Required core field 2 of 6: firsthand operational experience grounding the claim (or explicit statement when synthesizing external records only)."
    },
    "evidence_items": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/evidenceItem"
      },
      "description": "Required core field 3 of 6: non-empty array of typed lines of supporting evidence."
    },
    "truth_anchors": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "fact",
          "citation"
        ],
        "properties": {
          "fact": {
            "$ref": "#/$defs/nonEmptyString"
          },
          "citation": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "description": "Optional externally verifiable facts paired with public URIs or DOIs."
    },
    "mechanism": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional operational or institutional reason why the claim holds."
    },
    "applies_when": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional conditions under which the claim holds."
    },
    "breaks_when": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Required core field 4 of 6: conditions under which the claim fails, adds counterproductive friction, or reverses."
    },
    "counterexample": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional case where the claim did not hold, or explicit token 'none_identified'."
    },
    "edge_case": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional boundary condition where applicability shifts across transitions."
    },
    "positive_examples": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional concrete case showing how proportionate structure operates in practice."
    },
    "failure_modes": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional description of how misapplying the claim causes operational harm."
    },
    "signals": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional early observable indicators that the pattern or failure mode is active."
    },
    "tests": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional checks another person can run to test whether the claim holds in their context."
    },
    "decision_implications": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Optional statement of what a decision maker changes in practice if the claim holds."
    },
    "uncertainty": {
      "$ref": "#/$defs/nonEmptyString",
      "description": "Required core field 5 of 6: mandatory guardrail stating what the evidence does not establish."
    },
    "prohibited_claims": {
      "oneOf": [
        {
          "$ref": "#/$defs/nonEmptyString"
        },
        {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/nonEmptyString"
          }
        }
      ],
      "description": "Required core field 6 of 6: mandatory guardrail (string or non-empty array of strings) naming inferences or generalizations that must not be drawn from this record."
    },
    "source_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Optional list of canonical source URIs."
    }
  },
  "$defs": {
    "nonEmptyString": {
      "type": "string",
      "minLength": 1,
      "pattern": "\\S"
    },
    "evidenceItem": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "statement",
        "evidence_basis"
      ],
      "properties": {
        "statement": {
          "$ref": "#/$defs/nonEmptyString"
        },
        "evidence_basis": {
          "type": "string",
          "enum": [
            "observed",
            "reported",
            "archival",
            "inferred",
            "illustrative"
          ],
          "description": "Assertion-level evidence basis. 'reported' and 'archival' entries require source_locator; 'observed' allows optional source_locator."
        },
        "source_locator": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Public URI, DOI, fixture anchor, or restricted/redacted source descriptor. Required when evidence_basis is 'reported' or 'archival'."
        },
        "verification_visibility": {
          "type": "string",
          "enum": [
            "public",
            "redacted",
            "restricted",
            "fixture"
          ],
          "description": "Optional indicator of whether an outside reader can inspect the underlying source directly."
        },
        "verification_limit_note": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Required when verification_visibility is 'redacted' or 'restricted' so outsiders know the boundary of public verification."
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "evidence_basis": {
                "enum": [
                  "reported",
                  "archival"
                ]
              }
            },
            "required": [
              "evidence_basis"
            ]
          },
          "then": {
            "required": [
              "source_locator"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "verification_visibility": {
                "enum": [
                  "redacted",
                  "restricted"
                ]
              }
            },
            "required": [
              "verification_visibility"
            ]
          },
          "then": {
            "required": [
              "verification_limit_note"
            ]
          }
        }
      ]
    }
  }
}
