{
  "asset": "Email and SMS attribution windows",
  "inputs_are_worked_examples": true,
  "source_checked": "2026-11-07",
  "model_module": "../engine.mjs",
  "model_sha256": "3ef5d6a0e8dbbee4f9d6352364c01d768d5c88a93fee9f33c580adda952d3657",
  "publisher": "Take Rate",
  "asset_url": "https://takeratehq.com/resources/email-sms-attribution-definitions/",
  "source_references": [
    {
      "title": "Klaviyo, understanding message attribution",
      "url": "https://help.klaviyo.com/hc/en-us/articles/1260804504250",
      "captured": "2026-11-07",
      "scope": "New-account defaults distinguish text clicks from deliveries; account changes can recalculate history. This is not an account inspection."
    }
  ],
  "scope": "The source documents current new-account defaults and editable settings. It does not recover an older account’s setting. Multiple touches, provider filters, delayed events and complete revenue credit are outside this comparison.",
  "cases": [
    {
      "brand_id": "takeratehq",
      "case_id": "worked-initial-case",
      "inputs": {
        "anchor": "2026-11-01T12:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": 120,
        "basis": "Worked assumption"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Inside the declared window",
        "summary": "The conversion is 72.00 hours after the anchor, against a 120-hour window.",
        "records": [
          [
            "Elapsed hours",
            72
          ],
          [
            "Declared window, hours",
            120
          ],
          [
            "Window setting basis",
            "Worked assumption"
          ],
          [
            "Eligibility under this comparison",
            "Within the declared window only"
          ]
        ],
        "note": "This compares one declared anchor with one conversion. It does not reproduce multi-touch attribution, bot filters or a provider’s account history. A historical unknown remains unknown."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "72h-outside24h",
      "inputs": {
        "anchor": "2026-11-01T12:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": 24,
        "basis": "Worked assumption"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Outside the declared window",
        "summary": "The conversion is 72.00 hours after the anchor, against a 24-hour window.",
        "records": [
          [
            "Elapsed hours",
            72
          ],
          [
            "Declared window, hours",
            24
          ],
          [
            "Window setting basis",
            "Worked assumption"
          ],
          [
            "Eligibility under this comparison",
            "Outside the declared window"
          ]
        ],
        "note": "This compares one declared anchor with one conversion. It does not reproduce multi-touch attribution, bot filters or a provider’s account history. A historical unknown remains unknown."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "exact-boundary-unresolved",
      "inputs": {
        "anchor": "2026-11-01T12:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": 72,
        "basis": "Worked assumption"
      },
      "expected_error": null,
      "expected_result": {
        "title": "At the boundary",
        "summary": "Check the provider’s exact boundary rule before assigning credit.",
        "records": [
          [
            "Elapsed hours",
            72
          ],
          [
            "Declared window, hours",
            72
          ],
          [
            "Window setting basis",
            "Worked assumption"
          ],
          [
            "Eligibility under this comparison",
            "Unresolved boundary"
          ]
        ],
        "note": "This compares one declared anchor with one conversion. It does not reproduce multi-touch attribution, bot filters or a provider’s account history. A historical unknown remains unknown."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "unknown-history-not-default",
      "inputs": {
        "anchor": "2026-11-01T12:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": "",
        "basis": "Historical setting unknown"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Historical attribution stays unresolved",
        "summary": "A current default or worked window cannot establish the missing historical account setting.",
        "records": [
          [
            "Setting basis",
            "Historical setting unknown"
          ],
          [
            "Historical eligibility",
            "Unknown"
          ]
        ],
        "note": "Retrieve the actual effective setting before interpreting historical revenue credit."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "empty-hours-not-zero",
      "inputs": {
        "anchor": "2026-11-01T12:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": "",
        "basis": "Worked assumption"
      },
      "expected_error": "Declared lookback window needs a numeric value; blank or non-number inputs are not zero.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "invalid-calendar-date",
      "inputs": {
        "anchor": "2026-02-30T00:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": 120,
        "basis": "Worked assumption"
      },
      "expected_error": "Window anchor has an invalid calendar date.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "missing-time-zone",
      "inputs": {
        "anchor": "2026-11-01T12:00:00",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": 120,
        "basis": "Worked assumption"
      },
      "expected_error": "Window anchor needs an explicit time zone.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "takeratehq",
      "case_id": "whitespace-window-is-not-zero",
      "inputs": {
        "anchor": "2026-11-01T12:00:00Z",
        "purchase": "2026-11-04T12:00:00Z",
        "hours": " ",
        "basis": "Worked assumption"
      },
      "expected_error": "Declared lookback window needs a numeric value; blank or non-number inputs are not zero.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    }
  ]
}
