{
  "@context": "http://www.w3.org/ns/csvw",
  "tables": [
    {
      "url": "actions.csv",
      "tableSchema": {
        "columns": [
          {
            "name": "action_id",
            "titles": "Action ID",
            "datatype": "string",
            "description": "{plan_slug}#{action_number} — stable identity, derived from what the plan states, never from where text sits on a page"
          },
          {
            "name": "public_body_id",
            "titles": "Public Body ID",
            "datatype": "integer",
            "description": "Canonical id of the body that published the plan"
          },
          {
            "name": "plan_slug",
            "titles": "Plan Slug",
            "datatype": "string",
            "description": "doc_slug of the plan declaring this action; also the provenance of its original deadline"
          },
          {
            "name": "plan_title",
            "titles": "Plan Title",
            "datatype": "string"
          },
          {
            "name": "source_url",
            "titles": "Source URL",
            "datatype": "uri"
          },
          {
            "name": "action_number",
            "titles": "Action Number",
            "datatype": "string",
            "description": "The reference the plan itself gives the action, flags removed: an ordinal (12) or a coded reference (EL/23/6/A); unique only within a plan"
          },
          {
            "name": "action_text",
            "titles": "Action Text",
            "datatype": "string",
            "description": "The action as published, with its leading ordinal and bullet artifacts stripped"
          },
          {
            "name": "original_deadline_raw",
            "titles": "Original Deadline (raw)",
            "datatype": "string"
          },
          {
            "name": "original_deadline_start",
            "titles": "Original Deadline Start",
            "datatype": "date",
            "required": false
          },
          {
            "name": "original_deadline_end",
            "titles": "Original Deadline End",
            "datatype": "date",
            "required": false
          },
          {
            "name": "original_deadline_precision",
            "titles": "Original Deadline Precision",
            "datatype": "string",
            "description": "day, month, quarter, year, range, annual or ongoing (annual/ongoing carry no start or end date)"
          },
          {
            "name": "original_deadline_confidence",
            "titles": "Original Deadline Confidence",
            "datatype": "string",
            "description": "stated (a single unambiguous deadline, transcribed, including Annual/Ongoing) or interpreted (derived by the latest-milestone rule); null exactly when no precision was resolved."
          },
          {
            "name": "original_timeline_raw",
            "titles": "Original Timeline (raw)",
            "datatype": "string",
            "description": "The plan's full timeline cell verbatim, preserving milestone structure the single deadline collapses"
          },
          {
            "name": "lead",
            "titles": "Lead",
            "datatype": "string"
          },
          {
            "name": "support",
            "titles": "Support",
            "datatype": "string"
          },
          {
            "name": "output",
            "titles": "Output",
            "datatype": "string"
          },
          {
            "name": "source_page",
            "titles": "Source Page",
            "datatype": "integer"
          },
          {
            "name": "source_ref",
            "titles": "Source Reference",
            "datatype": "string",
            "description": "Positional reference in the source PDF, for provenance only — never an identity"
          },
          {
            "name": "action_text_clean",
            "titles": "Action Text Clean",
            "datatype": "string",
            "description": "Action text with confirmed PDF-extraction artefacts repaired; the display field. `action_text` remains the untouched extraction."
          },
          {
            "name": "original_deadline_label",
            "titles": "Original Deadline Label",
            "datatype": "string",
            "required": false,
            "description": "Short, display-ready final deadline (`2023`, `Q4 2027`, `Annual`, `Ongoing`). Use this as the heading. Where no date can be parsed it is the Timeline text as printed (`Q1 and Q3`, `Q4`). Null where the plan prints no deadline (a `-` or empty Timeline)."
          },
          {
            "name": "original_deadline_milestones",
            "titles": "Original Deadline Milestones",
            "datatype": "string",
            "description": "Milestone prose preserved from the plan's timeline or interim-milestones cell; empty for a single-date action."
          },
          {
            "name": "action_reference_printed",
            "titles": "Action Reference (as printed)",
            "datatype": "string",
            "description": "The reference exactly as printed in the source, flags included"
          },
          {
            "name": "action_flags",
            "titles": "Action Flags",
            "datatype": "string",
            "separator": ";",
            "required": false,
            "description": "Flags printed against the reference and stripped from identity, ';'-separated: non_reportable, duplicate, taskforce. Empty when none."
          }
        ],
        "primaryKey": "action_id",
        "aboutUrl": "{action_id}"
      }
    },
    {
      "url": "action-status-observations.csv",
      "tableSchema": {
        "columns": [
          {
            "name": "action_id",
            "titles": "Action ID",
            "datatype": "string"
          },
          {
            "name": "report_slug",
            "titles": "Report Slug",
            "datatype": "string"
          },
          {
            "name": "report_title",
            "titles": "Report Title",
            "datatype": "string"
          },
          {
            "name": "as_of",
            "titles": "As Of",
            "datatype": "date",
            "description": "The report's own publication date; never inferred from document content"
          },
          {
            "name": "status",
            "titles": "Status",
            "datatype": "string",
            "description": "A notation from the action-status vocabulary"
          },
          {
            "name": "reported_deadline_raw",
            "titles": "Reported Deadline (raw)",
            "datatype": "string"
          },
          {
            "name": "reported_deadline_start",
            "titles": "Reported Deadline Start",
            "datatype": "date",
            "required": false
          },
          {
            "name": "reported_deadline_end",
            "titles": "Reported Deadline End",
            "datatype": "date",
            "required": false
          },
          {
            "name": "reported_deadline_precision",
            "titles": "Reported Deadline Precision",
            "datatype": "string",
            "description": "day, month, quarter, year, range, annual or ongoing (annual/ongoing carry no start or end date)"
          },
          {
            "name": "progress_text",
            "titles": "Progress Text",
            "datatype": "string"
          },
          {
            "name": "asi",
            "titles": "ASI",
            "datatype": "string",
            "description": "Avoid / Shift / Improve classification; published only by the Year One and Year Two reports, empty for the others"
          },
          {
            "name": "source_page",
            "titles": "Source Page",
            "datatype": "integer"
          },
          {
            "name": "source_ref",
            "titles": "Source Reference",
            "datatype": "string"
          },
          {
            "name": "progress_text_clean",
            "titles": "Progress Text Clean",
            "datatype": "string",
            "description": "Progress narrative with confirmed PDF-extraction artefacts repaired; the display field."
          }
        ],
        "primaryKey": [
          "action_id",
          "report_slug"
        ],
        "foreignKeys": [
          {
            "columnReference": "action_id",
            "reference": {
              "resource": "actions.csv",
              "columnReference": "action_id"
            }
          }
        ]
      }
    },
    {
      "url": "action-relationships.csv",
      "tableSchema": {
        "columns": [
          {
            "name": "from_action_id",
            "titles": "From Action ID",
            "datatype": "string"
          },
          {
            "name": "to_action_id",
            "titles": "To Action ID",
            "datatype": "string",
            "required": false,
            "description": "Empty when the target plan is not in the corpus — a first-class state, not an error"
          },
          {
            "name": "to_plan_hint",
            "titles": "To Plan (as written)",
            "datatype": "string",
            "description": "The target plan exactly as the source document names it"
          },
          {
            "name": "to_action_number",
            "titles": "To Action Number (as written)",
            "datatype": "string",
            "required": false,
            "description": "Empty for a plan-level edge, where the source document names a plan but no action number"
          },
          {
            "name": "relationship",
            "titles": "Relationship",
            "datatype": "string",
            "description": "A notation from the action-relationship vocabulary"
          },
          {
            "name": "family",
            "titles": "Family",
            "datatype": "string",
            "description": "lineage or reference. Only lineage edges are valid for reconstructing an action's history across plan editions"
          },
          {
            "name": "method",
            "titles": "Method",
            "datatype": "string",
            "description": "extracted, declared or curated"
          },
          {
            "name": "asserted_in",
            "titles": "Asserted In",
            "datatype": "string"
          },
          {
            "name": "evidence",
            "titles": "Evidence",
            "datatype": "string",
            "description": "Verbatim source text for the assertion"
          }
        ],
        "foreignKeys": [
          {
            "columnReference": "from_action_id",
            "reference": {
              "resource": "actions.csv",
              "columnReference": "action_id"
            }
          }
        ]
      }
    },
    {
      "url": "action-milestones.csv",
      "tableSchema": {
        "columns": [
          {
            "name": "milestone_id",
            "titles": "Milestone ID",
            "datatype": "string",
            "description": "<action_id>/m<ordinal>"
          },
          {
            "name": "action_id",
            "titles": "Action ID",
            "datatype": "string",
            "description": "Joins to actions.csv.action_id"
          },
          {
            "name": "ordinal",
            "titles": "Ordinal",
            "datatype": "integer",
            "description": "1-based position within the action's milestones, in document order"
          },
          {
            "name": "due_label",
            "titles": "Due Label",
            "datatype": "string",
            "description": "Canonical date label such as Q1 2029 or 2027; empty when the plan states no date for this milestone",
            "required": false
          },
          {
            "name": "due_start",
            "titles": "Due Start",
            "datatype": "date",
            "required": false,
            "description": "Empty when undated"
          },
          {
            "name": "due_end",
            "titles": "Due End",
            "datatype": "date",
            "required": false,
            "description": "Empty when undated"
          },
          {
            "name": "due_precision",
            "titles": "Due Precision",
            "datatype": "string",
            "description": "quarter or year; empty when undated",
            "required": false
          },
          {
            "name": "milestone_text",
            "titles": "Milestone Text",
            "datatype": "string",
            "description": "The milestone with its date marker removed; may be empty for date-only lists",
            "required": false
          }
        ],
        "primaryKey": "milestone_id",
        "foreignKeys": [
          {
            "columnReference": "action_id",
            "reference": {
              "resource": "actions.csv",
              "columnReference": "action_id"
            }
          }
        ]
      }
    }
  ]
}
