{
  "scenario": "sap-margin",
  "synthetic": true,
  "provenance": "Captured live run on generated SAP-shaped exports; no SAP system connected",
  "dataDigest": "eaec0b10b407baa1a8c348956e03ea5077432e54db13e45afcea5d48712263c2",
  "dataset": {
    "billingItems": 200000,
    "pricingRows": 200000,
    "costRows": 200000,
    "totalRows": 600000,
    "bytes": 91267000,
    "files": {
      "billing-items.jsonl": {
        "rows": 200000,
        "bytes": 36132200
      },
      "pricing.jsonl": {
        "rows": 200000,
        "bytes": 29730000
      },
      "costs.jsonl": {
        "rows": 200000,
        "bytes": 25404800
      }
    }
  },
  "summary": {
    "dataDigest": "eaec0b10b407baa1a8c348956e03ea5077432e54db13e45afcea5d48712263c2",
    "counts": {
      "billingItems": 200000,
      "pricingRows": 200000,
      "costRows": 200000,
      "totalRows": 600000,
      "materials": 1000
    },
    "totals": {
      "baseline": {
        "quantity": 1000000,
        "grossCents": 10000000000,
        "discountCents": 500000000,
        "revenueCents": 9500000000,
        "cogsCents": 6000000000,
        "items": 100000,
        "grossProfitCents": 3500000000,
        "marginRatePct": 36.84210526315789
      },
      "current": {
        "quantity": 1100000,
        "grossCents": 11000000000,
        "discountCents": 715000000,
        "revenueCents": 10285000000,
        "cogsCents": 6930000000,
        "items": 100000,
        "grossProfitCents": 3355000000,
        "marginRatePct": 32.62032085561498
      }
    },
    "revenueChangeCents": 785000000,
    "grossProfitChangeCents": -145000000,
    "marginRateChangePp": -4.221784407542913,
    "bridge": {
      "volumeMixCents": 350000000,
      "listPriceCents": 0,
      "discountCents": -165000000,
      "costCents": -330000000
    },
    "roundingResidualCents": 0
  },
  "draft": {
    "interpretation": "The code-calculated summary shows revenue increased while gross profit and margin rate declined. The bridge identifies higher volume and mix as a positive contributor, offset by higher costs and discounts; list price contributed no change. These are descriptive contributors, not verified underlying causes. The selected evidence provides examples only and is not exhaustive.",
    "drivers": [
      {
        "topic": "costs",
        "itemIds": [
          "9000000000/000010",
          "9000001000/000010",
          "9000100000/000010",
          "9000101000/000010",
          "9000000001/000010",
          "9000001001/000010",
          "9000100001/000010",
          "9000101001/000010"
        ]
      },
      {
        "topic": "discounts",
        "itemIds": [
          "9000000100/000010",
          "9000001100/000010",
          "9000100100/000010",
          "9000101100/000010",
          "9000000101/000010",
          "9000001101/000010",
          "9000100101/000010",
          "9000101101/000010"
        ]
      }
    ],
    "unknowns": [
      "The evidence does not establish why costs or discounts changed or whether either change was planned, approved, or correctly applied.",
      "The selected samples do not establish whether the examples represent all affected billed items or materials.",
      "The summary does not explain the underlying drivers of the volume and mix contribution."
    ],
    "reviewActions": [
      "Validate current-period cost changes against supplier invoices, cost records, and approved cost updates.",
      "Check current-period discounts against contracts, approvals, and billing rules for the affected materials.",
      "Review the full affected item populations and investigate any exceptions before attributing causes."
    ]
  },
  "metrics": {
    "totalWorkflowCostUsd": null,
    "costReason": "Authenticated LLM per-run cost unavailable; Jev-only API costs are reported separately",
    "generationMs": 525,
    "processingMs": 2478,
    "memoryRssBytes": 305418240,
    "draftPromptBytes": 6210,
    "jevRequestBytes": [
      1483,
      1410
    ],
    "jevApiCostUsd": 0.000052374,
    "draftUsage": {
      "input_tokens": 15632,
      "cached_input_tokens": 0,
      "cache_write_input_tokens": 0,
      "output_tokens": 437,
      "reasoning_output_tokens": 96
    },
    "endToEndMs": 15245
  },
  "evidence": [
    {
      "topic": "costs",
      "contributionCents": -330000000,
      "affectedMaterials": 100,
      "coveredBillingItems": 20000,
      "sampleNote": "At most two materials and two billed positions per period; examples are not exhaustive.",
      "samples": [
        {
          "id": "9000000000/000010",
          "material": "MAT0000",
          "period": "baseline",
          "quantity": 8,
          "grossCents": 72800,
          "discountCents": 3640,
          "revenueCents": 69160,
          "cogsCents": 43680,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L1",
            "input/pricing.jsonl#L1",
            "input/costs.jsonl#L1"
          ]
        },
        {
          "id": "9000001000/000010",
          "material": "MAT0000",
          "period": "baseline",
          "quantity": 9,
          "grossCents": 81900,
          "discountCents": 4095,
          "revenueCents": 77805,
          "cogsCents": 49140,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L1001",
            "input/pricing.jsonl#L1001",
            "input/costs.jsonl#L1001"
          ]
        },
        {
          "id": "9000100000/000010",
          "material": "MAT0000",
          "period": "current",
          "quantity": 9,
          "grossCents": 81900,
          "discountCents": 4095,
          "revenueCents": 77805,
          "cogsCents": 76140,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L100001",
            "input/pricing.jsonl#L100001",
            "input/costs.jsonl#L100001"
          ]
        },
        {
          "id": "9000101000/000010",
          "material": "MAT0000",
          "period": "current",
          "quantity": 10,
          "grossCents": 91000,
          "discountCents": 4550,
          "revenueCents": 86450,
          "cogsCents": 84600,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L101001",
            "input/pricing.jsonl#L101001",
            "input/costs.jsonl#L101001"
          ]
        },
        {
          "id": "9000000001/000010",
          "material": "MAT0001",
          "period": "baseline",
          "quantity": 8,
          "grossCents": 74400,
          "discountCents": 3720,
          "revenueCents": 70680,
          "cogsCents": 44640,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L2",
            "input/pricing.jsonl#L2",
            "input/costs.jsonl#L2"
          ]
        },
        {
          "id": "9000001001/000010",
          "material": "MAT0001",
          "period": "baseline",
          "quantity": 9,
          "grossCents": 83700,
          "discountCents": 4185,
          "revenueCents": 79515,
          "cogsCents": 50220,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L1002",
            "input/pricing.jsonl#L1002",
            "input/costs.jsonl#L1002"
          ]
        },
        {
          "id": "9000100001/000010",
          "material": "MAT0001",
          "period": "current",
          "quantity": 9,
          "grossCents": 83700,
          "discountCents": 4185,
          "revenueCents": 79515,
          "cogsCents": 77220,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L100002",
            "input/pricing.jsonl#L100002",
            "input/costs.jsonl#L100002"
          ]
        },
        {
          "id": "9000101001/000010",
          "material": "MAT0001",
          "period": "current",
          "quantity": 10,
          "grossCents": 93000,
          "discountCents": 4650,
          "revenueCents": 88350,
          "cogsCents": 85800,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L101002",
            "input/pricing.jsonl#L101002",
            "input/costs.jsonl#L101002"
          ]
        }
      ]
    },
    {
      "topic": "discounts",
      "contributionCents": -165000000,
      "affectedMaterials": 100,
      "coveredBillingItems": 20000,
      "sampleNote": "At most two materials and two billed positions per period; examples are not exhaustive.",
      "samples": [
        {
          "id": "9000000100/000010",
          "material": "MAT0100",
          "period": "baseline",
          "quantity": 8,
          "grossCents": 72800,
          "discountCents": 3640,
          "revenueCents": 69160,
          "cogsCents": 43680,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L101",
            "input/pricing.jsonl#L101",
            "input/costs.jsonl#L101"
          ]
        },
        {
          "id": "9000001100/000010",
          "material": "MAT0100",
          "period": "baseline",
          "quantity": 9,
          "grossCents": 81900,
          "discountCents": 4095,
          "revenueCents": 77805,
          "cogsCents": 49140,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L1101",
            "input/pricing.jsonl#L1101",
            "input/costs.jsonl#L1101"
          ]
        },
        {
          "id": "9000100100/000010",
          "material": "MAT0100",
          "period": "current",
          "quantity": 9,
          "grossCents": 81900,
          "discountCents": 17595,
          "revenueCents": 64305,
          "cogsCents": 49140,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L100101",
            "input/pricing.jsonl#L100101",
            "input/costs.jsonl#L100101"
          ]
        },
        {
          "id": "9000101100/000010",
          "material": "MAT0100",
          "period": "current",
          "quantity": 10,
          "grossCents": 91000,
          "discountCents": 19550,
          "revenueCents": 71450,
          "cogsCents": 54600,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L101101",
            "input/pricing.jsonl#L101101",
            "input/costs.jsonl#L101101"
          ]
        },
        {
          "id": "9000000101/000010",
          "material": "MAT0101",
          "period": "baseline",
          "quantity": 8,
          "grossCents": 74400,
          "discountCents": 3720,
          "revenueCents": 70680,
          "cogsCents": 44640,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L102",
            "input/pricing.jsonl#L102",
            "input/costs.jsonl#L102"
          ]
        },
        {
          "id": "9000001101/000010",
          "material": "MAT0101",
          "period": "baseline",
          "quantity": 9,
          "grossCents": 83700,
          "discountCents": 4185,
          "revenueCents": 79515,
          "cogsCents": 50220,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L1102",
            "input/pricing.jsonl#L1102",
            "input/costs.jsonl#L1102"
          ]
        },
        {
          "id": "9000100101/000010",
          "material": "MAT0101",
          "period": "current",
          "quantity": 9,
          "grossCents": 83700,
          "discountCents": 17685,
          "revenueCents": 66015,
          "cogsCents": 50220,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L100102",
            "input/pricing.jsonl#L100102",
            "input/costs.jsonl#L100102"
          ]
        },
        {
          "id": "9000101101/000010",
          "material": "MAT0101",
          "period": "current",
          "quantity": 10,
          "grossCents": 93000,
          "discountCents": 19650,
          "revenueCents": 73350,
          "cogsCents": 55800,
          "items": 1,
          "sources": [
            "input/billing-items.jsonl#L101102",
            "input/pricing.jsonl#L101102",
            "input/costs.jsonl#L101102"
          ]
        }
      ]
    }
  ],
  "scale": {
    "environment": {
      "node": "v24.18.1",
      "platform": "linux",
      "architecture": "x64",
      "cpu": "AMD Ryzen 5 6600HS Creator Edition",
      "logicalCpus": 12
    },
    "method": "Three sequential isolated Node processes per size. Includes JSONL parsing, join, validation and aggregation; excludes model calls and source generation. Filesystem caching is not controlled. RSS is sampled at analysis completion, not peak memory.",
    "summaries": [
      {
        "billingItems": 20000,
        "totalRows": 60000,
        "repeats": 3,
        "bytes": 9126700,
        "meanProcessingMs": 278.3333333333333,
        "minProcessingMs": 269,
        "maxProcessingMs": 287,
        "maxMemoryRssBytes": 114454528
      },
      {
        "billingItems": 100000,
        "totalRows": 300000,
        "repeats": 3,
        "bytes": 45633500,
        "meanProcessingMs": 1235.6666666666667,
        "minProcessingMs": 1220,
        "maxProcessingMs": 1255,
        "maxMemoryRssBytes": 244420608
      },
      {
        "billingItems": 200000,
        "totalRows": 600000,
        "repeats": 3,
        "bytes": 91267000,
        "meanProcessingMs": 2544.6666666666665,
        "minProcessingMs": 2459,
        "maxProcessingMs": 2606,
        "maxMemoryRssBytes": 302522368
      }
    ]
  },
  "holdout": {
    "samples": 6,
    "rulesCorrect": 6,
    "jevRawCorrect": 6,
    "jevEffectiveCorrect": 6,
    "failures": 0,
    "wrongHighConfidenceBranches": 0,
    "reviewRate": 0.3333333333333333,
    "totalJevCostUsd": 0.00015539999999999998
  },
  "review": "Human approval pending; local draft only",
  "accountingAssumptions": "EUR; all generated billing is fully recognized in its labelled period; no tax, returns, currency conversion or entry/exit. Pricing and allocated-cost exports are custom demo projections, not SAP API payloads."
}
