{
  "version": "2026-04-01",
  "deliveryPath": "batch_csv_portfolio_audit",
  "inputContract": {
    "requiredFields": [
      "address_line_1",
      "postcode"
    ],
    "optionalFields": [
      "property_reference",
      "address_line_2",
      "town_or_city",
      "uprn",
      "workflow_notes"
    ],
    "acceptedFileRules": [
      "Start with one UTF-8 CSV export containing one row per property.",
      "Use the starter template directly or map existing headers to the canonical field names below.",
      "Keep the first batch representative rather than sending the full portfolio before the first review is proven."
    ],
    "headerMappings": {
      "address_line_1": [
        "address1",
        "address_1",
        "property_address",
        "address_line1",
        "building_number"
      ],
      "postcode": [
        "zip",
        "postal_code",
        "post_code"
      ],
      "property_reference": [
        "property_id",
        "reference",
        "asset_id"
      ],
      "address_line_2": [
        "address2",
        "unit",
        "flat"
      ],
      "town_or_city": [
        "town",
        "city",
        "locality"
      ],
      "uprn": [
        "uprn_number",
        "unique_property_reference_number"
      ],
      "workflow_notes": [
        "notes",
        "comment",
        "branch_notes"
      ]
    }
  },
  "reviewedBatchOutput": [
    "property_reference",
    "matched_address",
    "postcode",
    "council_name",
    "council_code",
    "licensing_decision",
    "scheme_name",
    "scheme_type",
    "fee_context",
    "evidence_url",
    "last_verified_at",
    "review_context",
    "soft_flag"
  ]
}
