{
  "fictional": true,
  "amountContract": "Mutually exclusive accepted common-scope order-value records in MU; source-group membership independently established",
  "knownSources": [
    "POS-A",
    "CHANNEL-D",
    "CHANNEL-R"
  ],
  "presentationDate": "2026-11-20",
  "outlets": [
    {
      "id": "OA",
      "currentName": "Harbour Central",
      "entity": "LE1",
      "region": "North",
      "openedOn": "2026-01-01",
      "closedFrom": null
    },
    {
      "id": "OB",
      "currentName": "Garden",
      "entity": "LE1",
      "region": "North",
      "openedOn": "2026-01-01",
      "closedFrom": null
    },
    {
      "id": "OC",
      "currentName": "Quay",
      "entity": "LE1",
      "region": "South",
      "openedOn": "2026-01-01",
      "closedFrom": "2026-11-15"
    },
    {
      "id": "OD",
      "currentName": "Harbour Central",
      "entity": "LE2",
      "region": "South",
      "openedOn": "2026-01-01",
      "closedFrom": null
    }
  ],
  "aliases": [
    {
      "id": "M1",
      "source": "POS-A",
      "code": "A001",
      "label": "Harbour A",
      "outlet": "OA",
      "effectiveFrom": "2026-11-01",
      "effectiveTo": "2026-11-10",
      "evidence": "FICTIONAL-VERIFIED-MAPPING-1"
    },
    {
      "id": "M2",
      "source": "POS-A",
      "code": "A001",
      "label": "Harbour Central",
      "outlet": "OA",
      "effectiveFrom": "2026-11-10",
      "effectiveTo": null,
      "evidence": "FICTIONAL-VERIFIED-MAPPING-2"
    },
    {
      "id": "M3",
      "source": "CHANNEL-D",
      "code": "DL17",
      "label": "Harbour Kitchen",
      "outlet": "OA",
      "effectiveFrom": "2026-11-01",
      "effectiveTo": null,
      "evidence": "FICTIONAL-VERIFIED-MAPPING-3"
    },
    {
      "id": "M4",
      "source": "POS-A",
      "code": "B001",
      "label": "Garden",
      "outlet": "OB",
      "effectiveFrom": "2026-11-01",
      "effectiveTo": null,
      "evidence": "FICTIONAL-VERIFIED-MAPPING-4"
    },
    {
      "id": "M5",
      "source": "CHANNEL-R",
      "code": "BKG",
      "label": "Garden Desk",
      "outlet": "OB",
      "effectiveFrom": "2026-11-01",
      "effectiveTo": null,
      "evidence": "FICTIONAL-VERIFIED-MAPPING-5"
    },
    {
      "id": "M6",
      "source": "POS-A",
      "code": "C001",
      "label": "Quay",
      "outlet": "OC",
      "effectiveFrom": "2026-11-01",
      "effectiveTo": null,
      "evidence": "FICTIONAL-VERIFIED-MAPPING-6"
    },
    {
      "id": "M7",
      "source": "POS-A",
      "code": "D001",
      "label": "Harbour Central",
      "outlet": "OD",
      "effectiveFrom": "2026-11-01",
      "effectiveTo": null,
      "evidence": "FICTIONAL-VERIFIED-MAPPING-7"
    }
  ],
  "transactions": [
    {
      "id": "T1",
      "source": "POS-A",
      "code": "A001",
      "businessDate": "2026-11-05",
      "amountMU": 1000,
      "currency": "MU"
    },
    {
      "id": "T2",
      "source": "CHANNEL-D",
      "code": "DL17",
      "businessDate": "2026-11-05",
      "amountMU": 600,
      "currency": "MU"
    },
    {
      "id": "T3",
      "source": "POS-A",
      "code": "B001",
      "businessDate": "2026-11-05",
      "amountMU": 800,
      "currency": "MU"
    },
    {
      "id": "T4",
      "source": "CHANNEL-R",
      "code": "BKG",
      "businessDate": "2026-11-05",
      "amountMU": 200,
      "currency": "MU"
    },
    {
      "id": "T5",
      "source": "POS-A",
      "code": "C001",
      "businessDate": "2026-11-05",
      "amountMU": 500,
      "currency": "MU"
    },
    {
      "id": "T6",
      "source": "POS-A",
      "code": "D001",
      "businessDate": "2026-11-05",
      "amountMU": 700,
      "currency": "MU"
    },
    {
      "id": "T7",
      "source": "POS-A",
      "code": "NEW",
      "businessDate": "2026-11-05",
      "amountMU": 300,
      "currency": "MU"
    }
  ],
  "verifiedNewAlias": {
    "id": "M8-VERIFIED",
    "source": "POS-A",
    "code": "NEW",
    "label": "New source code",
    "outlet": "OD",
    "effectiveFrom": "2026-11-01",
    "effectiveTo": null,
    "evidence": "FICTIONAL-NEW-TO-OD-SOURCE-AND-LOCATION-CONFIRMATION"
  },
  "expected": {
    "canonicalOutlets": 4,
    "currentActiveOutlets": 3,
    "aliasRows": 7,
    "distinctSourceCodePairs": 6,
    "distinctCurrentNames": 3,
    "groupValueMU": 4100,
    "mappedValueMU": 3800,
    "unallocatedValueMU": 300,
    "mappedRecords": 6,
    "recordCoverage": 0.8571428571428571,
    "valueCoverage": 0.926829268292683,
    "outletValues": {
      "OA": 1600,
      "OB": 1000,
      "OC": 500,
      "OD": 700
    },
    "regionValues": {
      "North": 2600,
      "South": 1200
    },
    "wrongCurrentActiveOnlyMappedValue": 3300,
    "wrongCurrentNameHarbourCentral": 2300
  },
  "afterVerifiedNewMapping": {
    "outletValues": {
      "OA": 1600,
      "OB": 1000,
      "OC": 500,
      "OD": 1000
    },
    "regionValues": {
      "North": 2600,
      "South": 1500
    },
    "mappedValueMU": 4100,
    "unallocatedValueMU": 0
  },
  "scenarios": [
    {
      "change": "SourcePOS-A reusesA001 forOD from1December, closeM2 atthatdate",
      "expected": "5NovemberA001 remainsOA;5DecemberA001 becomesOD; canonicalIDs unchanged"
    },
    {
      "change": "AddCHANNEL-D/A001 alias toOB and100MU event",
      "groupValueMU": 4200,
      "mappedValueMU": 3900,
      "OB": 1100,
      "unallocatedValueMU": 300,
      "expected": "POS-A/A001 stillOA"
    },
    {
      "change": "Postclosure business-datedOC event",
      "expected": "Specific event flagged; do not erase historicalOC rows or infer reopening"
    },
    {
      "change": "Overlapping aliases, unknown canonical target or duplicate transaction identity",
      "expected": "reject configuration/population ambiguity"
    }
  ],
  "sources": [
    {
      "url": "https://ref.gs1.org/standards/gln-allocation/",
      "claim": "Primary illustration of party/location identification and attribute changes; internal codes here are not allocated GLNs or standard conformance"
    },
    {
      "url": "https://www.postgresql.org/docs/current/ddl-constraints.html",
      "claim": "General uniqueness, required-value and relationship mechanisms; not verification of the invented business mapping"
    }
  ]
}