{
  "$defs": {
    "acquisition": {
      "additionalProperties": false,
      "properties": {
        "artifactBytes": {
          "minimum": 0,
          "type": "integer"
        },
        "artifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "artifactFormats": {
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "custodyCohort": {
          "enum": [
            "P0",
            "P1",
            "P2",
            null
          ]
        },
        "integrity": {
          "enum": [
            "verified",
            "verified_successes_with_failures",
            "failed",
            "not_applicable"
          ]
        },
        "p0ParserCohort": {
          "type": "boolean"
        },
        "retrievedAt": {
          "items": {
            "format": "date-time",
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "status": {
          "enum": [
            "acquired",
            "custody_verified_quarantined",
            "failed",
            "not_acquired",
            "partial"
          ]
        }
      },
      "required": [
        "status",
        "custodyCohort",
        "p0ParserCohort",
        "artifactCount",
        "artifactBytes",
        "artifactFormats",
        "retrievedAt",
        "integrity"
      ],
      "type": "object"
    },
    "acquisitionCohort": {
      "additionalProperties": false,
      "properties": {
        "artifactBytes": {
          "minimum": 0,
          "type": "integer"
        },
        "artifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "p0ParserCohort": {
          "type": "boolean"
        },
        "purpose": {
          "enum": [
            "locked_parser_input",
            "custody_only"
          ]
        },
        "stateCodes": {
          "items": {
            "pattern": "^[A-Z]{2}$",
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "statesWithArtifacts": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "purpose",
        "p0ParserCohort",
        "stateCodes",
        "statesWithArtifacts",
        "artifactCount",
        "artifactBytes"
      ],
      "type": "object"
    },
    "atlasGrid": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "maximum": 11,
          "minimum": 0,
          "type": "integer"
        },
        "row": {
          "maximum": 7,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "column",
        "row"
      ],
      "type": "object"
    },
    "atlasLayout": {
      "additionalProperties": false,
      "properties": {
        "columns": {
          "const": 12
        },
        "coordinateOrigin": {
          "const": "zero_based_top_left"
        },
        "geographicScale": {
          "const": false
        },
        "kind": {
          "const": "approximate_us_tile_grid"
        },
        "rows": {
          "const": 8
        }
      },
      "required": [
        "kind",
        "coordinateOrigin",
        "geographicScale",
        "columns",
        "rows"
      ],
      "type": "object"
    },
    "comparability": {
      "additionalProperties": false,
      "properties": {
        "caveat": {
          "minLength": 1,
          "type": "string"
        },
        "status": {
          "const": "not_established"
        }
      },
      "required": [
        "status",
        "caveat"
      ],
      "type": "object"
    },
    "exactMichiganIntersection": {
      "additionalProperties": false,
      "properties": {
        "caveat": {
          "minLength": 1,
          "type": "string"
        },
        "comparisonStatuses": {
          "items": {
            "enum": [
              "computed_exact_only",
              "not_computed_incomparable_identity",
              "not_computed_reference_state",
              "not_computed_refused"
            ]
          },
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "eligibleStateRows": {
          "minimum": 0,
          "type": "integer"
        },
        "matchedMichiganRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "matchedStateRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "methodCounts": {
          "additionalProperties": {
            "minimum": 0,
            "type": "integer"
          },
          "type": "object"
        }
      },
      "required": [
        "comparisonStatuses",
        "eligibleStateRows",
        "matchedMichiganRows",
        "matchedStateRows",
        "methodCounts",
        "caveat"
      ],
      "type": "object"
    },
    "globalComparability": {
      "additionalProperties": false,
      "properties": {
        "alignmentRequired": {
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "caveat": {
          "minLength": 1,
          "type": "string"
        },
        "status": {
          "const": "not_established"
        }
      },
      "required": [
        "status",
        "caveat",
        "alignmentRequired"
      ],
      "type": "object"
    },
    "normalizationArtifact": {
      "additionalProperties": false,
      "properties": {
        "adapter": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "minLength": 1,
              "type": "string"
            },
            "version": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id",
            "version"
          ],
          "type": "object"
        },
        "artifactFilename": {
          "minLength": 1,
          "type": "string"
        },
        "artifactSha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "normalizedRows": {
          "minimum": 0,
          "type": "integer"
        },
        "parserGates": {
          "$ref": "#/$defs/parserGates"
        },
        "parserStatus": {
          "enum": [
            "parsed",
            "refused"
          ]
        },
        "refusalReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "sourceFormat": {
          "minLength": 1,
          "type": "string"
        },
        "sourceUrl": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "artifactFilename",
        "artifactSha256",
        "sourceUrl",
        "sourceFormat",
        "adapter",
        "parserStatus",
        "normalizedRows",
        "parserGates",
        "refusalReason"
      ],
      "type": "object"
    },
    "normalizationCohort": {
      "additionalProperties": false,
      "properties": {
        "cohort": {
          "const": "P0"
        },
        "generatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "policy": {
          "minLength": 1,
          "type": "string"
        },
        "states": {
          "items": {
            "$ref": "#/$defs/normalizationState"
          },
          "maxItems": 8,
          "minItems": 8,
          "type": "array"
        },
        "status": {
          "const": "locked"
        },
        "summary": {
          "$ref": "#/$defs/normalizationSummary"
        }
      },
      "required": [
        "cohort",
        "status",
        "generatedAt",
        "policy",
        "summary",
        "states"
      ],
      "type": "object"
    },
    "normalizationState": {
      "additionalProperties": false,
      "properties": {
        "artifactCount": {
          "minimum": 1,
          "type": "integer"
        },
        "artifacts": {
          "items": {
            "$ref": "#/$defs/normalizationArtifact"
          },
          "minItems": 1,
          "type": "array"
        },
        "exactMichiganIntersection": {
          "$ref": "#/$defs/exactMichiganIntersection"
        },
        "identityStatus": {
          "enum": [
            "exact_comparable",
            "incomparable_identity",
            "reference_state",
            "parser_refused"
          ]
        },
        "normalizedRows": {
          "minimum": 0,
          "type": "integer"
        },
        "parsedArtifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "parserStatus": {
          "enum": [
            "accepted",
            "refused"
          ]
        },
        "postalCode": {
          "pattern": "^[A-Z]{2}$",
          "type": "string"
        },
        "state": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "state",
        "postalCode",
        "artifactCount",
        "parsedArtifactCount",
        "parserStatus",
        "normalizedRows",
        "identityStatus",
        "artifacts",
        "exactMichiganIntersection"
      ],
      "type": "object"
    },
    "normalizationSummary": {
      "additionalProperties": false,
      "properties": {
        "attemptedArtifactCount": {
          "const": 10
        },
        "attemptedStateCount": {
          "const": 8
        },
        "exactIdentityEligibleStateRows": {
          "minimum": 0,
          "type": "integer"
        },
        "exactIdentityStateCount": {
          "minimum": 0,
          "type": "integer"
        },
        "normalizedEntryCount": {
          "minimum": 0,
          "type": "integer"
        },
        "parsedArtifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "parsedStateCount": {
          "minimum": 0,
          "type": "integer"
        },
        "refusedArtifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "statesWithExactMichiganIntersection": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "attemptedStateCount",
        "attemptedArtifactCount",
        "parsedStateCount",
        "parsedArtifactCount",
        "refusedArtifactCount",
        "normalizedEntryCount",
        "exactIdentityStateCount",
        "statesWithExactMichiganIntersection",
        "exactIdentityEligibleStateRows"
      ],
      "type": "object"
    },
    "p1AdapterGates": {
      "additionalProperties": false,
      "properties": {
        "failedCount": {
          "minimum": 0,
          "type": "integer"
        },
        "gateCount": {
          "minimum": 1,
          "type": "integer"
        },
        "passedCount": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "gateCount",
        "passedCount",
        "failedCount"
      ],
      "type": "object"
    },
    "p1DecisionCounts": {
      "additionalProperties": false,
      "properties": {
        "approved": {
          "minimum": 0,
          "type": "integer"
        },
        "denied": {
          "minimum": 0,
          "type": "integer"
        },
        "historical_restricted": {
          "minimum": 0,
          "type": "integer"
        },
        "partially_restricted": {
          "minimum": 0,
          "type": "integer"
        },
        "unknown": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "p1DecisionSummaryCounts": {
      "additionalProperties": false,
      "properties": {
        "approved": {
          "minimum": 0,
          "type": "integer"
        },
        "denied": {
          "minimum": 0,
          "type": "integer"
        },
        "historical_restricted": {
          "minimum": 0,
          "type": "integer"
        },
        "partially_restricted": {
          "minimum": 0,
          "type": "integer"
        },
        "unknown": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "approved",
        "denied",
        "historical_restricted",
        "partially_restricted",
        "unknown"
      ],
      "type": "object"
    },
    "p1Eligibility": {
      "additionalProperties": false,
      "properties": {
        "identityRows": {
          "minimum": 0,
          "type": "integer"
        },
        "reviewedDecisionRows": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "reviewedDecisionRows",
        "identityRows"
      ],
      "type": "object"
    },
    "p1ExactMethodCounts": {
      "additionalProperties": false,
      "properties": {
        "exact_isbn13": {
          "minimum": 0,
          "type": "integer"
        },
        "exact_normalized_title_author": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "p1ExactMethodSummary": {
      "additionalProperties": false,
      "properties": {
        "exact_isbn13": {
          "minimum": 0,
          "type": "integer"
        },
        "exact_normalized_title_author": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "exact_isbn13",
        "exact_normalized_title_author"
      ],
      "type": "object"
    },
    "p1ExactMichiganIntersection": {
      "additionalProperties": false,
      "allOf": [
        {
          "else": {
            "properties": {
              "matchedMichiganRows": {
                "const": null
              },
              "matchedStateRows": {
                "const": null
              },
              "methodCounts": {
                "const": null
              }
            }
          },
          "if": {
            "properties": {
              "comparisonStatus": {
                "const": "computed_exact_identity"
              }
            },
            "required": [
              "comparisonStatus"
            ]
          },
          "then": {
            "properties": {
              "matchedMichiganRows": {
                "minimum": 0,
                "type": "integer"
              },
              "matchedStateRows": {
                "minimum": 0,
                "type": "integer"
              },
              "methodCounts": {
                "$ref": "#/$defs/p1ExactMethodCounts"
              }
            }
          }
        }
      ],
      "properties": {
        "comparisonStatus": {
          "enum": [
            "computed_exact_identity",
            "not_computed_identity_unavailable",
            "not_computed_no_reviewed_denial_rows",
            "not_computed_refused",
            "not_computed_unpublished_source_status"
          ]
        },
        "matchedMichiganRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "matchedStateRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "methodCounts": {
          "oneOf": [
            {
              "$ref": "#/$defs/p1ExactMethodCounts"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "comparisonStatus",
        "matchedStateRows",
        "matchedMichiganRows",
        "methodCounts"
      ],
      "type": "object"
    },
    "p1MichiganReference": {
      "additionalProperties": false,
      "properties": {
        "artifactSha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "binding": {
          "const": "exact_sha256_edition_row_count"
        },
        "edition": {
          "const": "2026-01-12"
        }
      },
      "required": [
        "artifactSha256",
        "edition",
        "binding"
      ],
      "type": "object"
    },
    "p1NormalizationArtifact": {
      "additionalProperties": false,
      "properties": {
        "adapterGates": {
          "$ref": "#/$defs/p1AdapterGates"
        },
        "artifactSha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "decisionStatusCounts": {
          "$ref": "#/$defs/p1DecisionCounts"
        },
        "eligibility": {
          "$ref": "#/$defs/p1Eligibility"
        },
        "exactMichiganIntersection": {
          "$ref": "#/$defs/p1ExactMichiganIntersection"
        },
        "normalizedSourceRows": {
          "minimum": 0,
          "type": "integer"
        },
        "parserStatus": {
          "enum": [
            "parsed",
            "refused"
          ]
        },
        "postalCode": {
          "pattern": "^[A-Z]{2}$",
          "type": "string"
        },
        "sourceUrl": {
          "format": "uri",
          "type": "string"
        },
        "state": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "state",
        "postalCode",
        "artifactSha256",
        "sourceUrl",
        "parserStatus",
        "normalizedSourceRows",
        "adapterGates",
        "decisionStatusCounts",
        "eligibility",
        "exactMichiganIntersection"
      ],
      "type": "object"
    },
    "p1NormalizationCohort": {
      "additionalProperties": false,
      "properties": {
        "artifacts": {
          "items": {
            "$ref": "#/$defs/p1NormalizationArtifact"
          },
          "maxItems": 13,
          "minItems": 13,
          "type": "array"
        },
        "caveat": {
          "const": "These are exact identity intersections between historical, differently scoped source artifacts and Michigan's pinned 2026 reference. They are not a contemporaneous statewide-ban overlap, list-size comparison, rate, rank, or measure of relative restrictiveness. Counts use source-artifact rows, not unique publications."
        },
        "cohort": {
          "const": "P1"
        },
        "countingUnit": {
          "const": "source_artifact_rows"
        },
        "generatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "michiganReference": {
          "$ref": "#/$defs/p1MichiganReference"
        },
        "policy": {
          "const": "Only exact ISBN-13 or nonblank exact normalized title-and-author identity is considered. Decision eligibility is pinned by artifact SHA-256 and reviewed raw source semantics."
        },
        "snapshotPolicy": {
          "const": "Every artifact remains a separate source snapshot. Wisconsin's two records must not be deduplicated or summed as unique publications."
        },
        "status": {
          "const": "reviewed"
        },
        "summary": {
          "$ref": "#/$defs/p1NormalizationSummary"
        }
      },
      "required": [
        "cohort",
        "status",
        "generatedAt",
        "countingUnit",
        "policy",
        "caveat",
        "snapshotPolicy",
        "michiganReference",
        "summary",
        "artifacts"
      ],
      "type": "object"
    },
    "p1NormalizationSummary": {
      "additionalProperties": false,
      "properties": {
        "artifactsWithExactMichiganIntersection": {
          "minimum": 0,
          "type": "integer"
        },
        "attemptedArtifactCount": {
          "const": 13
        },
        "attemptedStateCount": {
          "const": 12
        },
        "computedExactIntersectionArtifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "decisionStatusCounts": {
          "$ref": "#/$defs/p1DecisionSummaryCounts"
        },
        "distinctMatchedMichiganRows": {
          "minimum": 0,
          "type": "integer"
        },
        "identityEligibleRows": {
          "minimum": 0,
          "type": "integer"
        },
        "matchedStateRows": {
          "minimum": 0,
          "type": "integer"
        },
        "methodCounts": {
          "$ref": "#/$defs/p1ExactMethodSummary"
        },
        "normalizedSourceRows": {
          "minimum": 0,
          "type": "integer"
        },
        "parsedArtifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "refusedArtifactCount": {
          "minimum": 0,
          "type": "integer"
        },
        "reviewedDecisionEligibleRows": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "attemptedStateCount",
        "attemptedArtifactCount",
        "parsedArtifactCount",
        "refusedArtifactCount",
        "normalizedSourceRows",
        "decisionStatusCounts",
        "reviewedDecisionEligibleRows",
        "identityEligibleRows",
        "computedExactIntersectionArtifactCount",
        "artifactsWithExactMichiganIntersection",
        "matchedStateRows",
        "distinctMatchedMichiganRows",
        "methodCounts"
      ],
      "type": "object"
    },
    "p2AcquisitionCohort": {
      "additionalProperties": false,
      "properties": {
        "acceptedArtifactBytes": {
          "const": 917408
        },
        "acceptedArtifactCount": {
          "const": 5
        },
        "artifactBytes": {
          "const": 20132526
        },
        "artifactCount": {
          "const": 6
        },
        "p0ParserCohort": {
          "const": false
        },
        "purpose": {
          "const": "custody_only"
        },
        "refusedArtifactCount": {
          "const": 1
        },
        "stateCodes": {
          "const": [
            "ID",
            "LA",
            "NE",
            "NH",
            "OH",
            "WY"
          ]
        },
        "statesWithArtifacts": {
          "const": 6
        }
      },
      "required": [
        "purpose",
        "p0ParserCohort",
        "stateCodes",
        "statesWithArtifacts",
        "artifactCount",
        "artifactBytes",
        "acceptedArtifactCount",
        "acceptedArtifactBytes",
        "refusedArtifactCount"
      ],
      "type": "object"
    },
    "p2DecisionCounts": {
      "additionalProperties": false,
      "properties": {
        "approved": {
          "minimum": 0,
          "type": "integer"
        },
        "denied": {
          "minimum": 0,
          "type": "integer"
        },
        "unknown": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "approved",
        "denied",
        "unknown"
      ],
      "type": "object"
    },
    "p2Eligibility": {
      "additionalProperties": false,
      "properties": {
        "identityRows": {
          "minimum": 0,
          "type": "integer"
        },
        "reviewedDecisionRows": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "reviewedDecisionRows",
        "identityRows"
      ],
      "type": "object"
    },
    "p2ExactMethodCounts": {
      "additionalProperties": false,
      "properties": {
        "exact_isbn13": {
          "minimum": 0,
          "type": "integer"
        },
        "exact_normalized_title_author": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "p2ExactMethodSummary": {
      "additionalProperties": false,
      "properties": {
        "exact_normalized_title_author": {
          "const": 6
        }
      },
      "required": [
        "exact_normalized_title_author"
      ],
      "type": "object"
    },
    "p2ExactMichiganIntersection": {
      "additionalProperties": false,
      "allOf": [
        {
          "else": {
            "properties": {
              "matchedMichiganRows": {
                "const": null
              },
              "matchedStateRows": {
                "const": null
              },
              "methodCounts": {
                "const": null
              }
            }
          },
          "if": {
            "properties": {
              "comparisonStatus": {
                "const": "computed_exact_identity"
              }
            },
            "required": [
              "comparisonStatus"
            ]
          },
          "then": {
            "properties": {
              "matchedMichiganRows": {
                "minimum": 0,
                "type": "integer"
              },
              "matchedStateRows": {
                "minimum": 0,
                "type": "integer"
              },
              "methodCounts": {
                "$ref": "#/$defs/p2ExactMethodCounts"
              }
            }
          }
        }
      ],
      "properties": {
        "comparisonStatus": {
          "enum": [
            "computed_exact_identity",
            "not_computed_identity_unavailable",
            "not_computed_no_reviewed_denial_rows",
            "not_computed_privacy_refused"
          ]
        },
        "matchedMichiganRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "matchedStateRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "methodCounts": {
          "oneOf": [
            {
              "$ref": "#/$defs/p2ExactMethodCounts"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "comparisonStatus",
        "matchedStateRows",
        "matchedMichiganRows",
        "methodCounts"
      ],
      "type": "object"
    },
    "p2MichiganReference": {
      "additionalProperties": false,
      "properties": {
        "artifactSha256": {
          "const": "a810776a4822d97766b468aae4cbd7e6acae19519fee537b9d07d2326542ac94"
        },
        "binding": {
          "const": "exact_sha256_edition_row_count"
        },
        "edition": {
          "const": "2026-01-12"
        }
      },
      "required": [
        "artifactSha256",
        "edition",
        "binding"
      ],
      "type": "object"
    },
    "p2NormalizationArtifact": {
      "additionalProperties": false,
      "properties": {
        "acquisitionStatus": {
          "enum": [
            "acquired_validated",
            "custody_verified_quarantined"
          ]
        },
        "artifactId": {
          "pattern": "^p2-[a-z]{2}-[0-9a-f]{12}$",
          "type": "string"
        },
        "artifactSha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "postalCode": {
          "enum": [
            "ID",
            "LA",
            "NE",
            "NH",
            "OH",
            "WY"
          ]
        },
        "sourceFormat": {
          "enum": [
            "DOCX",
            "PDF",
            "XLS"
          ]
        },
        "sourceScopes": {
          "items": {
            "$ref": "#/$defs/p2SourceScope"
          },
          "maxItems": 10,
          "minItems": 1,
          "type": "array"
        },
        "sourceUrl": {
          "format": "uri",
          "type": "string"
        },
        "stages": {
          "items": {
            "$ref": "#/$defs/p2Stage"
          },
          "maxItems": 6,
          "minItems": 6,
          "type": "array"
        },
        "state": {
          "minLength": 1,
          "type": "string"
        },
        "vintage": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "state",
        "postalCode",
        "artifactId",
        "artifactSha256",
        "sourceUrl",
        "sourceFormat",
        "vintage",
        "acquisitionStatus",
        "stages",
        "sourceScopes"
      ],
      "type": "object"
    },
    "p2NormalizationCohort": {
      "additionalProperties": false,
      "properties": {
        "artifacts": {
          "items": {
            "$ref": "#/$defs/p2NormalizationArtifact"
          },
          "maxItems": 6,
          "minItems": 6,
          "type": "array"
        },
        "caveat": {
          "const": "Counts are source-scope rows from differently scoped and dated records; they do not establish a comparative score or unique-publication total."
        },
        "cohort": {
          "const": "P2"
        },
        "countingUnit": {
          "const": "source_scope_rows"
        },
        "generatedAt": {
          "const": "2026-07-22T18:59:22.026Z"
        },
        "michiganReference": {
          "$ref": "#/$defs/p2MichiganReference"
        },
        "policy": {
          "const": "Only exact ISBN-13 or nonblank exact normalized title-and-author identity may produce an intersection; title-only and fuzzy matching are excluded."
        },
        "snapshotPolicy": {
          "const": "All six artifacts remain separate, and Nebraska's ten ordered worksheet scopes remain ten branches without cross-sheet deduplication."
        },
        "status": {
          "const": "reviewed"
        },
        "summary": {
          "$ref": "#/$defs/p2NormalizationSummary"
        }
      },
      "required": [
        "cohort",
        "status",
        "generatedAt",
        "countingUnit",
        "policy",
        "caveat",
        "snapshotPolicy",
        "michiganReference",
        "summary",
        "artifacts"
      ],
      "type": "object"
    },
    "p2NormalizationSummary": {
      "additionalProperties": false,
      "properties": {
        "artifactsWithExactMichiganIntersection": {
          "const": 2
        },
        "attemptedArtifactCount": {
          "const": 6
        },
        "attemptedStateCount": {
          "const": 6
        },
        "computedExactIntersectionArtifactCount": {
          "const": 3
        },
        "custodyVerifiedArtifactCount": {
          "const": 6
        },
        "decisionStatusCounts": {
          "$ref": "#/$defs/p2DecisionCounts"
        },
        "distinctMatchedMichiganRows": {
          "const": 5
        },
        "identityEligibleRows": {
          "const": 1968
        },
        "matchedStateRows": {
          "const": 6
        },
        "methodCounts": {
          "$ref": "#/$defs/p2ExactMethodSummary"
        },
        "normalizedSourceRows": {
          "const": 5090
        },
        "parsedArtifactCount": {
          "const": 5
        },
        "privacyClearedArtifactCount": {
          "const": 5
        },
        "privacyRefusedArtifactCount": {
          "const": 1
        },
        "reviewedDecisionEligibleRows": {
          "const": 4063
        }
      },
      "required": [
        "attemptedStateCount",
        "attemptedArtifactCount",
        "custodyVerifiedArtifactCount",
        "privacyClearedArtifactCount",
        "privacyRefusedArtifactCount",
        "parsedArtifactCount",
        "normalizedSourceRows",
        "decisionStatusCounts",
        "reviewedDecisionEligibleRows",
        "identityEligibleRows",
        "computedExactIntersectionArtifactCount",
        "artifactsWithExactMichiganIntersection",
        "matchedStateRows",
        "distinctMatchedMichiganRows",
        "methodCounts"
      ],
      "type": "object"
    },
    "p2SourceScope": {
      "additionalProperties": false,
      "properties": {
        "artifactId": {
          "pattern": "^p2-[a-z]{2}-[0-9a-f]{12}$",
          "type": "string"
        },
        "decisionStatusCounts": {
          "oneOf": [
            {
              "$ref": "#/$defs/p2DecisionCounts"
            },
            {
              "type": "null"
            }
          ]
        },
        "eligibility": {
          "oneOf": [
            {
              "$ref": "#/$defs/p2Eligibility"
            },
            {
              "type": "null"
            }
          ]
        },
        "exactMichiganIntersection": {
          "$ref": "#/$defs/p2ExactMichiganIntersection"
        },
        "id": {
          "pattern": "^p2-[a-z]{2}-s[0-9]{2}$",
          "type": "string"
        },
        "label": {
          "minLength": 1,
          "type": "string"
        },
        "normalizedSourceRows": {
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "artifactId",
        "label",
        "normalizedSourceRows",
        "decisionStatusCounts",
        "eligibility",
        "exactMichiganIntersection"
      ],
      "type": "object"
    },
    "p2Stage": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "enum": [
            "custody",
            "privacy",
            "parser",
            "decision",
            "identity",
            "intersection"
          ]
        },
        "status": {
          "enum": [
            "cleared",
            "not-reached",
            "stopped"
          ]
        }
      },
      "required": [
        "id",
        "status"
      ],
      "type": "object"
    },
    "parserGates": {
      "additionalProperties": false,
      "properties": {
        "failedCount": {
          "minimum": 0,
          "type": "integer"
        },
        "failedGateIds": {
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "type": "array",
          "uniqueItems": true
        },
        "gateIds": {
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "passedCount": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "gateIds",
        "passedCount",
        "failedCount",
        "failedGateIds"
      ],
      "type": "object"
    },
    "sha256Document": {
      "additionalProperties": false,
      "properties": {
        "sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        }
      },
      "required": [
        "sha256"
      ],
      "type": "object"
    },
    "sourceDocument": {
      "additionalProperties": false,
      "properties": {
        "generatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "schemaVersion": {
          "minLength": 1,
          "type": "string"
        },
        "sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        }
      },
      "required": [
        "schemaVersion",
        "sha256"
      ],
      "type": "object"
    },
    "sources": {
      "additionalProperties": false,
      "properties": {
        "acquisitionManifests": {
          "additionalProperties": false,
          "properties": {
            "P0": {
              "$ref": "#/$defs/sourceDocument"
            },
            "P1": {
              "$ref": "#/$defs/sourceDocument"
            },
            "P2": {
              "$ref": "#/$defs/sourceDocument"
            }
          },
          "required": [
            "P0",
            "P1",
            "P2"
          ],
          "type": "object"
        },
        "ledger": {
          "$ref": "#/$defs/sourceDocument"
        },
        "normalizationReport": {
          "$ref": "#/$defs/sourceDocument"
        },
        "p1NormalizationReport": {
          "$ref": "#/$defs/sourceDocument"
        },
        "p2NebraskaFidelity": {
          "$ref": "#/$defs/sourceDocument"
        },
        "p2PreAcquisitionValidationReport": {
          "$ref": "#/$defs/sourceDocument"
        },
        "p2PrivacyReview": {
          "$ref": "#/$defs/sha256Document"
        },
        "p2PrivateIngestReport": {
          "$ref": "#/$defs/sourceDocument"
        },
        "p2ValidationReport": {
          "$ref": "#/$defs/sourceDocument"
        }
      },
      "required": [
        "ledger",
        "acquisitionManifests",
        "normalizationReport",
        "p1NormalizationReport",
        "p2ValidationReport",
        "p2PrivacyReview",
        "p2PreAcquisitionValidationReport",
        "p2NebraskaFidelity",
        "p2PrivateIngestReport"
      ],
      "type": "object"
    },
    "state": {
      "additionalProperties": false,
      "properties": {
        "acquisition": {
          "$ref": "#/$defs/acquisition"
        },
        "atlasGrid": {
          "$ref": "#/$defs/atlasGrid"
        },
        "comparability": {
          "$ref": "#/$defs/comparability"
        },
        "postalCode": {
          "pattern": "^[A-Z]{2}$",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/stateSource"
        },
        "state": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "state",
        "postalCode",
        "atlasGrid",
        "source",
        "acquisition",
        "comparability"
      ],
      "type": "object"
    },
    "stateSource": {
      "additionalProperties": false,
      "properties": {
        "formats": {
          "items": {
            "minLength": 1,
            "type": "string"
          },
          "minItems": 1,
          "type": "array",
          "uniqueItems": true
        },
        "primary": {
          "additionalProperties": false,
          "properties": {
            "availability": {
              "minLength": 1,
              "type": "string"
            },
            "format": {
              "minLength": 1,
              "type": "string"
            },
            "role": {
              "minLength": 1,
              "type": "string"
            },
            "url": {
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "role",
            "url",
            "format"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "priority": {
          "enum": [
            "P0",
            "P1",
            "P2",
            "P3"
          ]
        },
        "scope": {
          "minLength": 1,
          "type": "string"
        },
        "status": {
          "enum": [
            "blocked",
            "excluded",
            "ready",
            "validate_first"
          ]
        },
        "tier": {
          "enum": [
            "V0",
            "V1",
            "V2",
            "V3"
          ]
        },
        "vintage": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "tier",
        "priority",
        "status",
        "formats",
        "vintage",
        "scope",
        "primary"
      ],
      "type": "object"
    },
    "summary": {
      "additionalProperties": false,
      "properties": {
        "acquisitionCohorts": {
          "additionalProperties": false,
          "properties": {
            "P0": {
              "$ref": "#/$defs/acquisitionCohort"
            },
            "P1": {
              "$ref": "#/$defs/acquisitionCohort"
            },
            "P2": {
              "$ref": "#/$defs/p2AcquisitionCohort"
            }
          },
          "required": [
            "P0",
            "P1",
            "P2"
          ],
          "type": "object"
        },
        "acquisitionStatusCounts": {
          "type": "object"
        },
        "artifactIntegrity": {
          "const": "verified"
        },
        "priorityCounts": {
          "type": "object"
        },
        "sourceStatusCounts": {
          "type": "object"
        },
        "stateCount": {
          "const": 29
        },
        "statesWithArtifacts": {
          "minimum": 0,
          "type": "integer"
        },
        "statesWithoutArtifacts": {
          "minimum": 0,
          "type": "integer"
        },
        "tierCounts": {
          "type": "object"
        },
        "totalArtifactBytes": {
          "minimum": 0,
          "type": "integer"
        },
        "totalArtifactCount": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "stateCount",
        "tierCounts",
        "priorityCounts",
        "sourceStatusCounts",
        "acquisitionStatusCounts",
        "acquisitionCohorts",
        "statesWithArtifacts",
        "statesWithoutArtifacts",
        "totalArtifactCount",
        "totalArtifactBytes",
        "artifactIntegrity"
      ],
      "type": "object"
    }
  },
  "$id": "https://peoplenotnumbers.org/schemas/state-publication-source-provenance.v2.2.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Disclosure-source provenance only. The contract intentionally contains no state list-size, overlap, or restrictiveness ranking fields.",
  "properties": {
    "atlasLayout": {
      "$ref": "#/$defs/atlasLayout"
    },
    "checkedAt": {
      "format": "date",
      "type": "string"
    },
    "comparability": {
      "$ref": "#/$defs/globalComparability"
    },
    "kind": {
      "const": "state_publication_source_provenance"
    },
    "normalizationCohort": {
      "$ref": "#/$defs/normalizationCohort"
    },
    "p1NormalizationCohort": {
      "$ref": "#/$defs/p1NormalizationCohort"
    },
    "p2NormalizationCohort": {
      "$ref": "#/$defs/p2NormalizationCohort"
    },
    "schemaVersion": {
      "const": "2.2.0"
    },
    "scope": {
      "minLength": 1,
      "type": "string"
    },
    "sources": {
      "$ref": "#/$defs/sources"
    },
    "states": {
      "items": {
        "$ref": "#/$defs/state"
      },
      "maxItems": 29,
      "minItems": 29,
      "type": "array"
    },
    "summary": {
      "$ref": "#/$defs/summary"
    }
  },
  "required": [
    "schemaVersion",
    "kind",
    "checkedAt",
    "scope",
    "sources",
    "comparability",
    "atlasLayout",
    "summary",
    "normalizationCohort",
    "p1NormalizationCohort",
    "p2NormalizationCohort",
    "states"
  ],
  "title": "State publication-source provenance",
  "type": "object"
}
