{
  "edition": "2026-10-08",
  "source_type": "synthetic-worked-examples",
  "observed_product_output": false,
  "instructions": "An answer key for synthetic examples. Record actual product output separately. Deliberately incorrect extraction values are manufactured teaching inputs.",
  "math_cases": [
    {
      "id": "decimal",
      "invoice_id": "LAB-101",
      "pdf": "lab-101-decimal.pdf",
      "lines": [
        {
          "description": "Equipment service kits",
          "quantity": "5",
          "unit_price": "250.00"
        }
      ],
      "discount": "0.00",
      "charges": "0.00",
      "tax_rate": "10.00",
      "source_totals": {
        "subtotal": "1250.00",
        "tax": "125.00",
        "total": "1375.00"
      },
      "example_extraction": {
        "subtotal": "125.00",
        "tax": "125.00",
        "total": "250.00"
      }
    },
    {
      "id": "line-extension",
      "invoice_id": "LAB-102",
      "pdf": "lab-102-line-extension.pdf",
      "lines": [
        {
          "description": "Replacement fittings",
          "quantity": "12",
          "unit_price": "8.50"
        },
        {
          "description": "Service packs",
          "quantity": "3",
          "unit_price": "25.00"
        }
      ],
      "discount": "0.00",
      "charges": "0.00",
      "tax_rate": "10.00",
      "source_totals": {
        "subtotal": "177.00",
        "tax": "17.70",
        "total": "194.70"
      },
      "example_extraction": {
        "subtotal": "195.00",
        "tax": "19.50",
        "total": "214.50"
      }
    },
    {
      "id": "tax",
      "invoice_id": "LAB-103",
      "pdf": "lab-103-tax.pdf",
      "lines": [
        {
          "description": "Scheduled servicing",
          "quantity": "4",
          "unit_price": "200.00"
        }
      ],
      "discount": "0.00",
      "charges": "0.00",
      "tax_rate": "7.50",
      "source_totals": {
        "subtotal": "800.00",
        "tax": "60.00",
        "total": "860.00"
      },
      "example_extraction": {
        "subtotal": "800.00",
        "tax": "80.00",
        "total": "880.00"
      }
    },
    {
      "id": "discount",
      "invoice_id": "LAB-104",
      "pdf": "lab-104-discount.pdf",
      "lines": [
        {
          "description": "Repair component sets",
          "quantity": "10",
          "unit_price": "40.00"
        }
      ],
      "discount": "40.00",
      "charges": "0.00",
      "tax_rate": "8.00",
      "source_totals": {
        "subtotal": "400.00",
        "tax": "28.80",
        "total": "388.80"
      },
      "example_extraction": {
        "subtotal": "400.00",
        "tax": "32.00",
        "total": "392.00"
      }
    },
    {
      "id": "charges",
      "invoice_id": "LAB-105",
      "pdf": "lab-105-charges.pdf",
      "lines": [
        {
          "description": "Packed supply boxes",
          "quantity": "8",
          "unit_price": "25.00"
        }
      ],
      "discount": "0.00",
      "charges": "12.00",
      "tax_rate": "10.00",
      "source_totals": {
        "subtotal": "200.00",
        "tax": "21.20",
        "total": "233.20"
      },
      "example_extraction": {
        "subtotal": "200.00",
        "tax": "20.00",
        "total": "220.00"
      }
    },
    {
      "id": "rounding",
      "invoice_id": "LAB-106",
      "pdf": "lab-106-rounding.pdf",
      "lines": [
        {
          "description": "Precision hand tools",
          "quantity": "3",
          "unit_price": "19.99"
        }
      ],
      "discount": "0.00",
      "charges": "0.00",
      "tax_rate": "8.25",
      "source_totals": {
        "subtotal": "59.97",
        "tax": "4.95",
        "total": "64.92"
      },
      "example_extraction": {
        "subtotal": "59.97",
        "tax": "4.94",
        "total": "64.91"
      }
    }
  ],
  "scanned_variant": {
    "pdf": "lab-101-scanned.pdf",
    "same_source_as": "lab-101-decimal.pdf",
    "invoice_id": "LAB-101"
  },
  "mixed_pdf": {
    "id": "mixed-pdf",
    "title": "Four pages become two invoices and one credit note",
    "pdf": "mixed-vendor-bundle.pdf",
    "documents": [
      {
        "invoice_id": "LAB-107",
        "vendor": "Summit Office Supply",
        "kind": "invoice",
        "pages": [
          1
        ],
        "pdf": "lab-107-office-invoice.pdf",
        "lines": [
          {
            "description": "Storage units",
            "quantity": "6",
            "unit_price": "80.00"
          }
        ],
        "total": "480.00"
      },
      {
        "invoice_id": "LAB-108",
        "vendor": "Westbridge Logistics",
        "kind": "invoice",
        "pages": [
          2,
          3
        ],
        "pdf": "lab-108-multi-page-freight.pdf",
        "lines": [
          {
            "description": "Regional freight",
            "quantity": "1",
            "unit_price": "160.00"
          },
          {
            "description": "Site transfer",
            "quantity": "1",
            "unit_price": "70.00"
          },
          {
            "description": "Loading service",
            "quantity": "1",
            "unit_price": "35.00"
          },
          {
            "description": "Final-mile delivery",
            "quantity": "1",
            "unit_price": "60.00"
          },
          {
            "description": "Handling service",
            "quantity": "1",
            "unit_price": "23.00"
          }
        ],
        "total": "348.00"
      },
      {
        "invoice_id": "LAB-109",
        "vendor": "Summit Office Supply",
        "kind": "credit_note",
        "pages": [
          4
        ],
        "pdf": "lab-109-credit-note.pdf",
        "invoice_reference": "LAB-107",
        "lines": [
          {
            "description": "Credit for returned supplies",
            "quantity": "1",
            "unit_price": "48.00"
          }
        ],
        "total": "48.00",
        "signed_accounting_amount": "-48.00"
      }
    ]
  },
  "coding_memory": {
    "id": "coding-memory",
    "title": "The same vendor belongs to two different client treatments",
    "vendor": "Westbridge Logistics",
    "clients": [
      {
        "id": "014",
        "name": "Harbor Retail",
        "invoice_id": "LAB-111",
        "account": "Delivery expense",
        "pdf": "lab-111-client-014-freight.pdf"
      },
      {
        "id": "042",
        "name": "Pinehill Manufacturing",
        "invoice_id": "LAB-112",
        "account": "Cost of goods sold",
        "pdf": "lab-112-client-042-freight.pdf"
      }
    ],
    "amount": "500.00"
  },
  "matching": {
    "id": "stateful-matching",
    "title": "Receipts and earlier bills change the next invoice decision",
    "vendor": "Quarry Supply Works",
    "purchase_order": "PO-4101",
    "po_quantity": "500",
    "unit_price": "8.00",
    "receipts": [
      {
        "id": "GRN-4102",
        "quantity": "300"
      },
      {
        "id": "GRN-4129",
        "quantity": "150"
      }
    ],
    "receipt_correction": "-20",
    "previously_invoiced": "250",
    "current_invoice_quantity": "200",
    "invoice_id": "LAB-110",
    "invoice_pdf": "lab-110-po-invoice.pdf",
    "evidence_pdf": "stateful-matching-evidence.pdf",
    "tolerance": "0",
    "expected": {
      "received_quantity": 430,
      "cumulative_invoice_quantity": 450,
      "unsupported_quantity": 20,
      "remaining_order_quantity": 50,
      "action": "hold_for_receipt_or_invoice_resolution",
      "approval": "separate_required_step"
    }
  },
  "email_collaboration": {
    "id": "email-reply",
    "title": "A client answer returns to its invoice",
    "invoice_id": "LAB-113",
    "vendor": "Westbridge Logistics",
    "client": "Harbor Retail",
    "amount": "240.00",
    "pdf": "lab-113-email-clarification.pdf",
    "question": "Which project should this freight bill use?",
    "reply": "Use the North site project.",
    "participant_seat_required": false,
    "example_next_state": "Answer received; reviewer can continue",
    "approval": "Configured review and approval still apply"
  }
}
