{
  "topic_id": "TP-027",
  "synthetic": true,
  "real_customer_data": false,
  "purpose": "Allocation sums by event and invoice",
  "input": {
    "bank": {
      "B1": 100,
      "B2": 50
    },
    "allocations": [
      [
        "B1",
        "I1",
        60
      ],
      [
        "B1",
        "I2",
        40
      ],
      [
        "B2",
        "I3",
        50
      ]
    ],
    "bad_allocations": [
      [
        "B1",
        "I1",
        90
      ],
      [
        "B2",
        "I3",
        60
      ]
    ]
  },
  "expected_review": {
    "by_event": {
      "B1": 100,
      "B2": 50
    },
    "I1": 60,
    "bad_residuals": {
      "B1": 10,
      "B2": -10
    },
    "bad_grand_total_still_agrees": true
  },
  "scope": "One bank amount per actual event. Invoice face amount is not assumed equal to allocation. Python grouping, not SUMIFS/Power Query execution.",
  "verification": "Python reference model only. Vendor UI, accounting operations, real bank compatibility and authenticated imports NOT_VERIFIED."
}
