{
  "asset": "Shopify cart permalink test cases",
  "inputs_are_worked_examples": true,
  "source_checked": "2026-11-09",
  "model_module": "../engine.mjs",
  "model_sha256": "c704a723ff54a4d3c3a65a44b30f585d9478e78fc4d0f54458a95e8d0443e1fe",
  "publisher": "You Left Something",
  "asset_url": "https://youleftsomething.com/resources/shopify-recovery-link-cases/",
  "source_references": [
    {
      "title": "Shopify, cart permalinks",
      "url": "https://shopify.dev/docs/agents/carts-and-checkout/permalinks",
      "captured": "2026-11-07",
      "scope": "UCP endpoint/version and repeated-field behavior are defined. Opening a link creates no order. No live store or cart tried."
    },
    {
      "title": "Shopify, abandoned-checkout email automation",
      "url": "https://help.shopify.com/en/manual/promoting-marketing/create-marketing/migrate-abandoned-checkout",
      "captured": "2026-11-09",
      "scope": "Context for documented email conditions and recovered status, not the local syntax engine or actual store/message eligibility. Email scope does not establish SMS/iMessage permission."
    }
  ],
  "scope": "These checks do not validate every UCP extension schema, the store’s endpoint or capability declaration. They do not confirm stock, a discount, a checkout total or an order. Keep customer-specific recovery links and personal data outside public fixtures.",
  "cases": [
    {
      "brand_id": "youleftsomething",
      "case_id": "worked-initial-case",
      "inputs": {
        "family": "ucp",
        "url": "https://shop.example.com/buy/123:1?ucp/version=2026-08-25&discounts/codes/0=HELLO",
        "capability": "yes"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Fixture passes the local checks",
        "summary": "The dummy URL meets the declared local syntax and field checks.",
        "records": [
          [
            "Link family",
            "ucp"
          ],
          [
            "Items in fixture",
            "123:1"
          ],
          [
            "Version",
            "2026-08-25"
          ],
          [
            "Field names",
            "ucp/version, discounts/codes/0"
          ],
          [
            "Local findings",
            0
          ]
        ],
        "note": "Local syntax is not store support, product availability, accepted discounts, a cart total or a completed order. No link is opened. Full GIDs and arbitrary extension schemas are outside this numeric-ID fixture."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "youleftsomething",
      "case_id": "duplicate-buyer-field",
      "inputs": {
        "family": "ucp",
        "url": "https://shop.example.com/buy/123:1?ucp/version=2026-08-25&discounts/codes/0=HELLO&buyer/email=a%40example.com&buyer/email=b%40example.com",
        "capability": "yes"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Revise this fixture",
        "summary": "Repeated fields: Shopify documents that buyer/cart details are ignored, leaving only items.",
        "records": [
          [
            "Link family",
            "ucp"
          ],
          [
            "Items in fixture",
            "123:1"
          ],
          [
            "Version",
            "2026-08-25"
          ],
          [
            "Field names",
            "ucp/version, discounts/codes/0, buyer/email, buyer/email"
          ],
          [
            "Local findings",
            1
          ]
        ],
        "note": "Local syntax is not store support, product availability, accepted discounts, a cart total or a completed order. No link is opened. Full GIDs and arbitrary extension schemas are outside this numeric-ID fixture."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "youleftsomething",
      "case_id": "undeclared-capability",
      "inputs": {
        "family": "ucp",
        "url": "https://shop.example.com/buy/123:1?ucp/version=2026-08-25&discounts/codes/0=HELLO",
        "capability": "unknown"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Revise this fixture",
        "summary": "Permalink capability has not been declared. Do not infer store support.",
        "records": [
          [
            "Link family",
            "ucp"
          ],
          [
            "Items in fixture",
            "123:1"
          ],
          [
            "Version",
            "2026-08-25"
          ],
          [
            "Field names",
            "ucp/version, discounts/codes/0"
          ],
          [
            "Local findings",
            1
          ]
        ],
        "note": "Local syntax is not store support, product availability, accepted discounts, a cart total or a completed order. No link is opened. Full GIDs and arbitrary extension schemas are outside this numeric-ID fixture."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "youleftsomething",
      "case_id": "unversioned-link",
      "inputs": {
        "family": "ucp",
        "url": "https://shop.example.com/buy/123:1",
        "capability": "yes"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Revise this fixture",
        "summary": "No UCP version is pinned; the provider default can change.",
        "records": [
          [
            "Link family",
            "ucp"
          ],
          [
            "Items in fixture",
            "123:1"
          ],
          [
            "Version",
            "Not supplied"
          ],
          [
            "Field names",
            "None"
          ],
          [
            "Local findings",
            1
          ]
        ],
        "note": "Local syntax is not store support, product availability, accepted discounts, a cart total or a completed order. No link is opened. Full GIDs and arbitrary extension schemas are outside this numeric-ID fixture."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "youleftsomething",
      "case_id": "zero-quantity",
      "inputs": {
        "family": "ucp",
        "url": "https://shop.example.com/buy/123:0?ucp/version=2026-08-25&discounts/codes/0=HELLO",
        "capability": "yes"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Revise this fixture",
        "summary": "This numeric-ID fixture requires comma-separated variant:positive-quantity pairs.",
        "records": [
          [
            "Link family",
            "ucp"
          ],
          [
            "Items in fixture",
            "123:0"
          ],
          [
            "Version",
            "2026-08-25"
          ],
          [
            "Field names",
            "ucp/version, discounts/codes/0"
          ],
          [
            "Local findings",
            1
          ]
        ],
        "note": "Local syntax is not store support, product availability, accepted discounts, a cart total or a completed order. No link is opened. Full GIDs and arbitrary extension schemas are outside this numeric-ID fixture."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "youleftsomething",
      "case_id": "non-dummy-host",
      "inputs": {
        "family": "ucp",
        "url": "https://real-store.invalid/buy/123:1",
        "capability": "yes"
      },
      "expected_error": "Use a reserved example.com, example.org or example.net host. This fixture tool accepts dummy URLs only.",
      "expected_result": null,
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    },
    {
      "brand_id": "youleftsomething",
      "case_id": "customer-specific-recovery-not-publicfixture",
      "inputs": {
        "family": "customer-recovery",
        "url": "https://shop.example.com/buy/123:1?ucp/version=2026-08-25&discounts/codes/0=HELLO",
        "capability": "yes"
      },
      "expected_error": null,
      "expected_result": {
        "title": "Keep this link out of the fixture pack",
        "summary": "A customer-specific recovery URL is not a reusable cart permalink. Use dummy cart inputs for public tests.",
        "records": [
          [
            "Family",
            "Customer-specific recovery"
          ]
        ],
        "note": "No URL has been opened, fetched or validated against a store."
      },
      "scope": "Worked model inputs and expected declared-model behavior, not provider or merchant outcomes."
    }
  ]
}
