{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Water Watch source-linked matter v1",
  "type": "object",
  "required": [
    "schema_version",
    "profile",
    "matter_id",
    "source_record_ids",
    "events",
    "connections",
    "quantity_roles",
    "headline_quantities",
    "latest_evidenced_state",
    "unresolved",
    "baseline_comparison",
    "source_refs",
    "annotations",
    "fact_links"
  ],
  "properties": {
    "schema_version": {
      "const": "1.0.0"
    },
    "profile": {
      "const": "source_linked_matter"
    },
    "matter_id": {
      "type": "string"
    },
    "source_record_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "event_date",
          "date_role",
          "title",
          "statement",
          "refs"
        ]
      }
    },
    "source_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "record_id",
          "item_id",
          "json_pointer",
          "source_document_id",
          "physical_pages",
          "evidence",
          "human_url",
          "record_json_url",
          "resolved"
        ],
        "properties": {
          "resolved": {
            "const": true
          },
          "physical_pages": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1
            }
          }
        }
      }
    }
  },
  "description": "Additive referential view, separate from source records and candidate leads. ref-N resolves through source_refs to exact public record items and physical-page evidence. Headlines dereference typed quantities; they do not aggregate repeated requests. Events retain stages; dates describe these sources, not present legal status. annotations retain relocated cross-document reading commentary. The original research proposal remains unchanged in the registered extraction. No global entity index is needed."
}
