A hypothetical multi-location retailer builds a customer app and associate app. Named system owner: the retailer's VP of digital. Named proposer: the e-commerce director. Named independent approver: the operations director. All targets are hypothetical and illustrative.
Prelaunch fixtures.
ret_cur_1: Customer CUS-4400 opens app, authenticated, browses store LOC-01 inventory for product SKU-JACKET-BLK-M (black jacket, size M). App reads Shopify inventory at LOC-01: available 3, committed 0, reserved 0. Freshness timestamp 2026-11-16T10:00:00Z. Expected receipt and evidence: (1) session log, (2) inventory display log with SKU, location, available quantity and timestamp
ret_cur_2: Customer CUS-4400 adds SKU-JACKET-BLK-M to cart with BOPIS at LOC-01, proceeds to checkout, key op:ret_A_001. Operations director reviews BOPIS policy configuration (hold timeout, preparation SLA). E-commerce director submits within approved policy. On order placement: committed quantity increases (unfulfilled placed order), available quantity decreases accordingly. Expected receipt and evidence: (1) order at commerce authority with reference ORD-REF-8801, BOPIS location LOC-01, committed inventory quantity reflecting the placed order, verified by reading commerce authority independently; (2) order log at audit authority with operation key, SKU, location, customer and timestamp, verified independently. Fulfillment is a separate workflow triggered by store staff at pickup.
ret_cur_3: Customer CUS-4401 adds SKU-SCARF-RED to cart with BOPIS at LOC-02, proceeds to checkout, key op:ret_B_002. Distinct customer, distinct SKU, distinct location. Operations director reviews and approves BOPIS policy for LOC-02. On order placement: committed increases, available decreases at LOC-02. Expected receipt and evidence verified independently at commerce authority and audit authority, same structure as ret_cur_2, with reference ORD-REF-8802
ret_stale_inventory_1: BOPIS checkout referencing inventory data older than staleness threshold
ret_oversell_1: BOPIS hold for SKU-JACKET-BLK-M at LOC-01 when available quantity is 0
ret_wrong_location_1: BOPIS order placed for LOC-01 but hold attempted at LOC-02
ret_expired_session_1: Checkout after session timeout
ret_unauth_role_1: Customer attempting to access associate-level customer lookup
ret_hold_timeout_1: BOPIS hold expiring without payment completion
ret_unknown_sku_1: Inventory query for SKU-ABSENT not in catalog
ret_inventory_outage_1: BOPIS checkout during inventory API outage
App store data declarations. Apple App Privacy Details requires developers to declare data collected (transmitted off the device and accessible to the developer or its partners beyond what is needed to service the request in real time), its uses, linkage to identity, tracking status, partner SDK practices and applicable exceptions. OS permission alone does not substitute for an accurate data-type disclosure. Google Play Data Safety has its own definitions of collection and sharing, SDK disclosure requirements and exemptions; ephemeral off-device processing may be answerable on the form and omittable from the visible section only when Google's stated criteria hold. Both declarations must accurately reflect purchase data transmitted to the retailer's commerce system, loyalty data, location data and the behavior of any integrated third-party analytics or crash reporting SDKs. No order details or customer loyalty tier in analytics or crash payloads.
Shopify inventory scope. Shopify inventory management defines available (sellable), committed (unfulfilled placed orders and inventory reserved on draft orders or configured transfers), reserved (temporary unavailable) and on-hand (aggregate physical count). The app reads inventory and submits orders through the Shopify Admin or Storefront API. Fulfillment is an order-level workflow, not an inventory API state. For non-Shopify retailers, the equivalent inventory API is used. The retailer's system is authoritative.
Disjoint held-out setup. 12 synthetic BOPIS records in two cohorts. Positive (4: BOP-001 through BOP-004): current session, stock available, correct location, within policy. Negative (8: BOP-005 through BOP-012): stale inventory, zero stock, wrong location, expired session, unauthorized role, hold timeout, unknown SKU, inventory API outage. Held-out excludes revocation (BOP-R101), restore (BOP-R201) and stale-submission (ret_R_STALE_901). Training/tuning disjoint. All hypothetical.
Allowed workflow (ret_1, operation A). Fixture BOP-001: customer CUS-4400 places BOPIS order for SKU-JACKET-BLK-M at LOC-01, key op:ret_A_001. Operations director reads: (a) inventory available (3, sufficient); (b) session current; (c) location correct; (d) no conflicting holds; (e) BOPIS policy within parameters. Approves. E-commerce director submits. Expected business receipt: order at commerce authority with ORD-REF-8801 (read independently). Evidence: audit log (read independently). Acceptance target: 4 of 4 positive records produce confirmed orders at commerce authority.
Replay of A. Key op:ret_A_001 replayed. Log committed. Rejected, 0 duplicate orders.
Independently approved B (ret_1b, operation B). Fixture BOP-002: different customer CUS-4401, different SKU SKU-SCARF-RED, different location LOC-02, key op:ret_B_002, session SES-RET-002. Operations director independently reads CUS-4401 session (current), SKU available at LOC-02 (sufficient), location correct, no conflicting holds. Freshly approves. E-commerce director submits. Expected business receipt: order at commerce authority with ORD-REF-8802 (read independently, confirm present). Evidence: audit log (read independently, confirm present). Expected from three submissions (A, replay A, B): 2 new BOPIS orders committed (A for ORD-REF-8801 and B for ORD-REF-8802), 0 from replay. Acceptance target: 2 of 3 produce new orders; 0 duplicate effects.
Denied fixtures. BOP-005: stale inventory. BOP-006: zero stock oversell attempt. BOP-007: wrong location. BOP-008: expired session. BOP-009: customer accessing associate tools. BOP-010: hold timeout (inventory released back to available). BOP-011: unknown SKU. BOP-012: inventory API outage. Each 0 unauthorized effects.
Stale-submission recovery. Customer starts checkout, goes offline, key op:ret_R_STALE_901. Reconnects after staleness. Re-check inventory freshness. If stock changed (now 0), checkout blocked. If still available, customer re-confirms. 0 stale submissions.
Revoked authority (ret_3c). Fixture BOP-R101: e-commerce director queued BOPIS order for SKU-BOOT-BRN at LOC-03 with key op:ret_R_101, approval version APV-RET-5; operations director had freshly approved exact customer, SKU, location. Before commerce authority confirmed order, VP of digital (named revoker) revoked e-commerce director's order submission authority (APV-RET-6). Device reads APV-RET-6, authority absent. op:ret_R_101 marked quarantined and non-dispatchable in local ledger. Backend reads APV-RET-6, refuses order. Independently read commerce authority: no order for BOP-R101. Independently read audit log: no entry for this key. Independently read pending order queue: zero pending for this key. Committed orders from prior operations (ORD-REF-8801 from op:ret_A_001, ORD-REF-8802 from op:ret_B_002): present and unchanged at commerce authority. Inventory at LOC-01 and LOC-02: unchanged from committed orders. Before revocation (APV-RET-5): order queued. After revocation (APV-RET-6): no commerce entry, no inventory change, no charge. Acceptance target: 0 effects after revocation. No duplicate decrement or charge.
Dropped first response (ret_3b). Fixture BOP-003: customer CUS-4402 places BOPIS order for SKU-BELT-TAN at LOC-01, key op:ret_A_003, session SES-RET-003, approval APV-RET-5. Connection interrupted. Pre-retry reconciliation:
- Read durable order log for key
op:ret_A_003: present (committed) / absent / error.
- Read commerce authority for order matching customer CUS-4402, SKU-BELT-TAN, LOC-01, key: confirmed present (with order reference) / confirmed absent / pending or in-flight.
- Read audit log for this key: confirmed present / confirmed absent / pending.
- Read session SES-RET-003: current / expired.
- Read customer CUS-4402 status: active / suspended.
- Read inventory at LOC-01 for SKU-BELT-TAN: available quantity / zero.
- Read hold status for this SKU at LOC-01: held for this key / held for other / none.
- Read current e-commerce director authority: APV-RET-5 current / revoked.
- Read payment authority for any charge against this key: charged / not charged / pending.
- Check pending order queue and in-flight submissions for this key: zero / nonzero.
Committed, consistent. Durable log committed AND commerce order confirmed AND audit log present, no pending, payment confirmed: complete. No repeat. No duplicate charge or inventory decrement.
Committed order, audit absent. Commerce order present (business receipt committed), audit absent and not pending/in-flight. Reconcile: order exists, no repeat. If audit correction supported, operations director freshly approves scoped evidence-only write under new key op:ret_C_003. Independently verify after correction: commerce order, inventory hold/decrement and payment charge all unchanged by the audit write. No business write repeated.
Committed log, order absent. Durable log committed but commerce authority confirms no order, nothing pending: HOLD for VP of digital. Check payment authority: if payment was charged but no order exists, escalate immediately for refund investigation.
Committed log, any effect pending or in-flight. STOP. VP of digital investigates.
No log, effects exist. Reconcile existing order without replay.
Conclusively uncommitted. No durable log, commerce conclusively no order, audit conclusively absent, pending and in-flight clear at commerce authority, no existing hold for this SKU/location/key, no authorization/capture/pending/in-flight at payment authority for this key, no inventory increment or decrement for this key at exact location, session current, inventory available at LOC-01 for SKU-BELT-TAN (current object version), e-commerce director authority at APV-RET-5 verified, operations director freshly approves exact same BOPIS payload: resubmit same key op:ret_A_003. No automatic retry.
Fails closed. Unknown read, pending or in-flight at any authority, expired session, zero stock, revoked authority, existing hold conflict, existing charge or payment pending, stale inventory version: hold for VP of digital. Acceptance target: 0 duplicate orders, 0 duplicate charges, 0 duplicate inventory decrements.
Operations logging (ret_4). Restricted retail audit record (proposed; scoped by retailer): customer context, SKU, location, order reference, payment reference, operation key, decision and timestamp, stored with access controls per retailer policy. General operational log: opaque operation reference (no customer identity, order specifics, loyalty data or payment details), operation key, role, timestamp and outcome. No customer details in general logs, analytics or crash payloads. Retention per retailer policy and applicable regulations. Project log retention per owner policy. Native input validation errors are acceptance targets. Training/tuning disjoint.
Staged restore (ret_5). After system recovery: stage privately with no production order or inventory writes. Read authoritative versions before restore: commerce authority (ORD-REF-8801 from op:ret_A_001 present at LOC-01, ORD-REF-8802 from op:ret_B_002 present at LOC-02, no order for BOP-R101), inventory at each location (decremented for committed orders, unchanged for revoked), payment authority (charges for committed orders confirmed, no charge for revoked), pending order queue (state). Authorized route: e-commerce director with current scope (APV-RET-5 if not revoked), operations director accepted. Revoked route: e-commerce director at APV-RET-6 denied. Private restore fixture BOP-R201 with key op:ret_R_201 (distinct from BOP-R101 and outside held-out): read commerce authority and inventory (both absent for R201 before restore and after restore, no production writes, no charge). 0 production effects. Named fallback: VP of digital; BOPIS reverts to in-store-only purchase after operations director review. Queue reconciliation: VP of digital reviews pending order queue. Two named roles sign off: operations director verifies inventory and order data, e-commerce director verifies BOPIS workflows. Both approve before production restore.
VoiceOver and TalkBack accessibility plan (ret_6). On iPhone SE with VoiceOver, customer attempts: (1) search product by barcode scan (target: scan result announced with name and price); (2) complete BOPIS checkout (target: location, availability and payment steps announced); (3) view loyalty points balance (target: points and tier announced). On Samsung Galaxy A14 with TalkBack: (1) browse category (target: products navigable); (2) add to wishlist (target: confirmation announced); (3) view order status (target: status and pickup time announced). On iPad with keyboard, associate attempts: (1) scan loyalty QR (target: customer info displayed); (2) search cross-location inventory (target: results with location and quantity); (3) process mobile POS transaction (target: steps and confirmation announced). Desktop with keyboard, operations director: policy navigation, review and approval. Low-end device: 4 seconds on 3G. Text scale: 200%. Test plan; results not claimed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.