Disjoint held-out setup. 12 synthetic return request records in two cohorts. Positive (4: RET-001 through RET-004): authenticated session, order within return window, eligible item category, item not previously returned, reason provided. Negative (8: RET-005 through RET-012): order outside return window, final sale item, item already returned, unauthenticated session, duplicate request for same order/item, unknown customer, commerce platform API unavailable, revoked customer account. Held-out excludes revocation (RET-R101), restore (RET-R201), dropped-response recovery (RET-R301) and stale (dtc_R_STALE_901). Training/tuning disjoint. All hypothetical.
Allowed workflow (dtc_1, operation A). Fixture RET-001: customer CUS-9900 authenticates, views order ORD-2200 (placed 2026-11-01, within 30-day return window), selects item SKU-TSHIRT-BLK-M for return with reason "wrong size", submits with key op:dtc_A_001 scoped to store/customer CUS-9900/order ORD-2200/item SKU-TSHIRT-BLK-M/session SES-DTC-001. Customer experience director independently reads: (a) customer CUS-9900 status (active); (b) session SES-DTC-001 validity (current); (c) order ORD-2200 within return window (30 days, placed 2026-11-01); (d) SKU-TSHIRT-BLK-M eligible category (not final sale); (e) item not previously returned. Approves the exact return request for customer CUS-9900, order ORD-2200, item SKU-TSHIRT-BLK-M under the configured return policy. Returns coordinator (authorized executor) submits ReturnRequest via Shopify Admin GraphQL API. Expected business receipt: ReturnRequest at Shopify commerce authority with reference RET-REF-4401 in REQUESTED state (read Shopify independently, confirm present with correct customer, order, item and reason). Evidence: return log at audit authority (read independently, confirm present for op:dtc_A_001). Acceptance target: 4 of 4 positive records produce return request receipts at commerce authority.
Replay of A. Key op:dtc_A_001 already committed at commerce authority. Exact replay returns existing receipt RET-REF-4401 and REQUESTED status. 0 new return requests created. 0 duplicate submissions.
Independently approved B (dtc_1b, operation B). Fixture RET-002: different customer CUS-9901, different order ORD-2201, different item SKU-HOODIE-GRY-L, reason "defective zipper", key op:dtc_B_002, session SES-DTC-002. Customer experience director independently reads CUS-9901 status (active), session current, order within window, item eligible, not previously returned. Freshly approves for this distinct action. Returns coordinator submits. Expected business receipt: ReturnRequest at commerce authority with reference RET-REF-4402 in REQUESTED state (read independently, confirm present). Evidence: return log at audit authority (read independently, confirm present). Expected from three submissions (A, replay A, B): 2 new return requests (RET-REF-4401 and RET-REF-4402), 0 from replay. Acceptance target: 2 of 3 submissions produce new return requests; 0 duplicate effects.
Denied: outside window (dtc_2a). RET-005: order placed beyond return window. 0 return requests for expired orders. Denied: final sale (dtc_2b). RET-006: item category marked final sale. 0 return requests for non-returnable items. Denied: already returned (dtc_2c). RET-007: item previously returned. 0 duplicate returns. Denied: unauthenticated (dtc_2d). RET-008: no authenticated session. 0 return requests without authentication. Denied: duplicate request (dtc_2e). RET-009: return request already exists for same order/item. Flagged for customer review. 0 duplicate requests. Denied: unknown customer (dtc_2f). RET-010: CUS-ABSENT not in system. 0 return requests from unknown customers. Denied: API unavailable (dtc_2g). RET-011: Shopify Admin API unreachable. Return request queued locally with notification. 0 returns confirmed without commerce authority verification. Denied: revoked account (dtc_2h). RET-012: customer account suspended. 0 return requests from suspended accounts.
Revocation and non-dispatchable parking (dtc_4, RET-R101). Fixture RET-R101 with key op:dtc_R_101: customer CUS-9900 queues a return request for ORD-2200 while account is still active. Before dispatch, CUS-9900 account is suspended at authoritative version v2. Device detects suspended status and parks queued request non-dispatchable; app prevents retry. Commerce platform independently rejects against account status v2 if stale submission arrives. The approver authorizes dispatch of the return request only; merchant approval, refund and inventory processing are separate downstream decisions by the merchant in Shopify admin. Read Shopify before: RET-REF-4401 from op:dtc_A_001 in REQUESTED state present, RET-REF-4402 from op:dtc_B_002 present, no return request for op:dtc_R_101, no pending/in-flight. Check existing return/refund/order effects for ORD-2200: only RET-REF-4401 present, no duplicate return or refund initiated. Read after: RET-REF-4401 and RET-REF-4402 unchanged, no request for op:dtc_R_101. No server-side API credentials stored on the customer's device. 0 new return requests from suspended customer.
Dropped response recovery (dtc_4b, RET-R301). Distinct recovery-only fixture: customer CUS-9902 submits return request RET-R301 for ORD-2202/SKU-JACKET-NVY-S with key op:dtc_R_301, response dropped. Independently check: (1) CUS-9902 active at current account version; (2) session SES-DTC-003 current; (3) ORD-2202 within return window; (4) SKU-JACKET-NVY-S eligible and not previously returned; (5) no existing return/refund for this order-line; (6) durable log for op:dtc_R_301; (7) Shopify receipt for op:dtc_R_301; (8) audit log; (9) pending at commerce authority; (10) in-flight. Receipt present with missing local log: reconcile without resend. All present, consistent, no pending/in-flight: complete. Any pending or in-flight: hold for commerce director. Durable log committed but Shopify receipt absent, or durable/audit/receipt in contradictory states: hold for commerce director; no silent replay or extra write. Conclusively uncommitted: no log, Shopify absent, audit absent, pending/in-flight clear, session current, order still eligible, item not returned; customer experience director freshly approves dispatch; returns coordinator resubmits same key op:dtc_R_301 same payload via server-side Admin API. Any unknown, pending, expired session, item returned, window closed or API unreachable: hold for commerce director. 0 duplicate submissions.
Staged restore (dtc_5). Stage privately with no production return submissions. Read Shopify before: RET-REF-4401 from op:dtc_A_001 in REQUESTED state present, RET-REF-4402 from op:dtc_B_002 present, op:dtc_R_101 no request (revoked). Read audit: entries for op:dtc_A_001 and op:dtc_B_002 present, none for op:dtc_R_101. Pending/in-flight: zero. Authorized route: returns coordinator with current scope, customer experience director accepted. Revoked route: customer CUS-9900 (suspended at dtc_4 account v2) denied. Private fixture RET-R201 with key op:dtc_R_201: read Shopify and audit before restore (no request, no entry), read after (unchanged, no production writes). Verify: RET-REF-4401 and RET-REF-4402 unchanged, no request for RET-R101 or RET-R201. 0 production effects. Named fallback: commerce director; returns revert to email/phone with current Shopify state. Queue reconciliation: commerce director reviews pending returns against Shopify receipts. Two named roles sign off: customer experience director and returns coordinator approve before production restore.
Stale-submission recovery. Customer starts return request, app goes to background. Returns later. Re-check order still within return window, item not returned in interim. If window expired or item returned, customer notified with updated status. 0 stale return requests for ineligible items.
Operations logging and access control (dtc_6). Restricted audit: customer identity, order, item, return reason, operation key, decision and timestamp per brand privacy policy. General log: opaque reference, role, timestamp, decision outcome. No customer PII, order details or financial data in general logs, analytics, crash reports or push notification bodies. Retention per brand retention policy. Training/tuning disjoint from held-out. All hypothetical.
Concrete native accessibility targets. On iPhone SE 3rd generation (iOS 17) with VoiceOver enabled, customer submits return request: (1) select order and return item (target: order number, item name and eligibility announced); (2) choose return reason and add notes (target: reason picker announced, notes field labeled, validation errors announced); (3) submit return and view receipt (target: return reference and REQUESTED status announced; no silent commit). No mandatory custom gesture. On Samsung Galaxy A14 (Android 14) with TalkBack, same 3 return tasks completable. On iPad 10th generation with hardware keyboard, returns coordinator navigates return queue: Tab moves visible focus between rows; Enter opens detail. Dynamic Type/system font scaling to 200% does not clip product names or return details. Low-end device (Galaxy A14, 3 GB RAM): app load within 4 seconds on 3G; return form renders without truncation. Weak network: return request queued locally with offline indicator; completes on reconnect. Failed reconnect after 3 retries: held safely with pending indicator. Residual risk: Shopify API outage prevents confirmation; app shows pending status. Target: 4 of 4 positive held-out return request workflows complete with screen reader active and no sighted assistance. Test plan with stated targets; no claim tests have been executed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.