{
  "label": "Completed fictional evidence packet; not a provider case",
  "model": "PH-CLOSE-1",
  "inputs": {
    "caseId": "PH-CLOSE-1-FICTIONAL",
    "currency": "GBP",
    "originalGross": 3000,
    "correctedGross": 3300,
    "originalDeductions": 600,
    "correctedDeductions": 684,
    "employerDelta": 60,
    "availableFunding": 360,
    "receivedCorrection": 216,
    "paymentReversed": false,
    "commercialOpen": true,
    "fictional": true,
    "gates": {
      "scope": {
        "state": "verified",
        "reference": "SCOPE-01"
      },
      "owner": {
        "state": "verified",
        "reference": "OWNER-01"
      },
      "calculation": {
        "state": "verified",
        "reference": "E02"
      },
      "funding": {
        "state": "verified",
        "reference": "E04"
      },
      "payment": {
        "state": "verified",
        "reference": "PAY-216 / RCPT-216"
      },
      "record": {
        "state": "verified",
        "reference": "PS-02 / FPS-02 / LEDGER-02"
      },
      "explanation": {
        "state": "verified",
        "reference": "MSG-01"
      },
      "followup": {
        "state": "verified",
        "reference": "NEXT-01"
      },
      "dispute": {
        "state": "verified",
        "reference": "DISPUTE-01"
      }
    }
  },
  "calculation": "(3300-684)-(3000-600)=216; 300+60=360; max(0,360-360)=0",
  "sequence": [
    {
      "stage": "scope",
      "reference": "SCOPE-01",
      "synthetic": true
    },
    {
      "stage": "owner",
      "reference": "OWNER-01",
      "synthetic": true
    },
    {
      "stage": "calculation",
      "reference": "E02",
      "synthetic": true
    },
    {
      "stage": "funding",
      "reference": "E04",
      "synthetic": true
    },
    {
      "stage": "payment",
      "reference": "PAY-216 / RCPT-216",
      "synthetic": true
    },
    {
      "stage": "record",
      "reference": "PS-02 / FPS-02 / LEDGER-02",
      "synthetic": true
    },
    {
      "stage": "explanation",
      "reference": "MSG-01",
      "synthetic": true
    },
    {
      "stage": "followup",
      "reference": "NEXT-01",
      "synthetic": true
    },
    {
      "stage": "dispute",
      "reference": "DISPUTE-01",
      "synthetic": true
    }
  ],
  "records": [
    {
      "id": "SCOPE-01",
      "kind": "synthetic scoped case",
      "facts": {
        "country": "UK",
        "product": "EOR",
        "employer": "Fictional UK legal employer",
        "case": "approved taxable allowance omitted",
        "route": "authorised positive underpayment correction"
      }
    },
    {
      "id": "OWNER-01",
      "kind": "synthetic responsibility record",
      "facts": {
        "owner": "Fictional case coordinator",
        "backup": "Fictional backup coordinator",
        "payroll_approver": "Fictional employer payroll approver",
        "payment_authority": "Fictional payment operations approver"
      }
    },
    {
      "id": "APP-01",
      "kind": "synthetic approval",
      "facts": {
        "gross_allowance": 300,
        "currency": "GBP",
        "period": "model period P1",
        "approved": true
      }
    },
    {
      "id": "IN-01",
      "kind": "synthetic received input",
      "facts": {
        "approval": "APP-01",
        "received_before_agreed_cutoff": true
      }
    },
    {
      "id": "E01",
      "kind": "synthetic intake",
      "facts": {
        "inputs": [
          "APP-01",
          "IN-01"
        ],
        "original_gross": 3000,
        "allowance_omitted": true
      }
    },
    {
      "id": "E02",
      "kind": "synthetic calculation",
      "facts": {
        "originalGross": 3000,
        "correctedGross": 3300,
        "originalDeductions": 600,
        "correctedDeductions": 684,
        "employerDelta": 60
      },
      "derived": {
        "gross_delta": 300,
        "deduction_delta": 84,
        "net_delta": 216,
        "employment_obligation": 360
      },
      "not_a_tax_calculation": true
    },
    {
      "id": "E03",
      "kind": "synthetic authority",
      "facts": {
        "calculation": "E02",
        "authorised_net": 216,
        "authorised_by": "Fictional employer payroll approver"
      }
    },
    {
      "id": "E04",
      "kind": "synthetic allocated funding",
      "facts": {
        "total_funding_allocated_including_used": 360,
        "employee": 216,
        "deductions": 84,
        "employer": 60,
        "funding_plan_shortfall": 0
      }
    },
    {
      "id": "PAY-216",
      "kind": "synthetic payment",
      "facts": {
        "amount": 216,
        "currency": "GBP",
        "status": "settled",
        "reversal_outstanding": false
      }
    },
    {
      "id": "RCPT-216",
      "kind": "synthetic receipt",
      "facts": {
        "payment": "PAY-216",
        "amount_received": 216
      }
    },
    {
      "id": "PS-02",
      "kind": "synthetic corrected payslip",
      "facts": {
        "gross": 3300,
        "deductions": 684,
        "net": 2616,
        "already_received": 2400,
        "correction_received": 216
      }
    },
    {
      "id": "FPS-02",
      "kind": "synthetic reporting receipt",
      "facts": {
        "correction": "E02",
        "additional_FPS": "modelled as submitted on or before correction payment",
        "statutory_approval_claimed": false
      }
    },
    {
      "id": "LEDGER-02",
      "kind": "synthetic reconciliation",
      "facts": {
        "employee_paid": 216,
        "deduction_obligation": 84,
        "employer_obligation": 60,
        "obligations_reconciled": true,
        "outstanding_balance": 0
      }
    },
    {
      "id": "E05",
      "kind": "synthetic stage linkage",
      "records": [
        "PAY-216",
        "RCPT-216"
      ]
    },
    {
      "id": "E06",
      "kind": "synthetic stage linkage",
      "records": [
        "PS-02",
        "FPS-02",
        "LEDGER-02"
      ]
    },
    {
      "id": "MSG-01",
      "kind": "synthetic delivered explanation",
      "text": "The approved GBP300 gross allowance was omitted. Corrected deductions increase GBP84; GBP216 correction received under RCPT-216. PS-02 total net GBP2616 includes the original GBP2400. NEXT-01 confirms no duplicate. Use the secure case route to challenge a discrepancy.",
      "delivered": true
    },
    {
      "id": "E07",
      "kind": "synthetic stage linkage",
      "records": [
        "MSG-01"
      ]
    },
    {
      "id": "NEXT-01",
      "kind": "synthetic next-cycle check",
      "facts": {
        "old_allowance_duplicated": false,
        "mapping_fixed": true,
        "residual_adjustment": 0
      }
    },
    {
      "id": "E08",
      "kind": "synthetic stage linkage",
      "records": [
        "NEXT-01"
      ]
    },
    {
      "id": "DISPUTE-01",
      "kind": "synthetic current case status",
      "facts": {
        "unresolved_employee_discrepancy": false,
        "employee_rights_waived": false
      }
    },
    {
      "id": "FEE-01",
      "kind": "synthetic commercial case",
      "facts": {
        "proposed_fee": 40,
        "currency": "GBP",
        "status": "disputed and open",
        "separate_from_completed_pay_case": true
      }
    },
    {
      "id": "E09",
      "kind": "synthetic stage linkage",
      "records": [
        "FEE-01"
      ]
    }
  ]
}