A hypothetical multi-location retailer builds a returns reconciliation system integrating POS, OMS and WMS. Named system owner: the operations director. Named independent approver: the finance controller. All targets are hypothetical and illustrative.
Prelaunch fixtures.
rt_cur_1: Return scanned at Store A POS matching original OMS order with correct SKU, location and version
rt_cur_2: Exception triaged by authorized returns coordinator, assigned to investigation queue
rt_stale_1: Return references an order version that has since been amended (original SKU swapped)
rt_unknown_1: Return scanned with a GTIN not matching any active SKU in the catalog
rt_inelig_1: Return attempted outside the return window defined by the original order terms
rt_unauth_role_1: Store associate attempting to approve a high-value return exception (approval requires returns coordinator role)
rt_unauth_tenant_1: Staff from Store B attempting to view Store A return records without cross-location authorization
rt_unavail_1: OMS temporarily unreachable for order verification
Disjoint held-out setup. 12 synthetic return records divided into two disjoint cohorts. Positive cohort (5 returns: RET-001 through RET-005): matching SKU/location/version against OMS order, authorized returns coordinator, qualified finance controller, valid return window. Negative cohort (7 returns: RET-006 through RET-012): each tests one denial condition (amended order version, unknown GTIN, expired return window, wrong role, wrong location scope, OMS outage, duplicate return submission). Each negative fixture has a distinct ID and measurable no unauthorized effect.
Allowed workflow (rt_1). Positive cohort RET-001 scanned at Store A. System reads current OMS order state (version, SKU, location, return eligibility). Returns coordinator verifies: SKU matches, location matches, version current, return window valid. Finance controller approves the return. System writes named return receipt with return ID, OMS order version, receipt location, coordinator identity, finance controller approval and timestamp. WMS inventory updated with return receipt (external business effect verified independently by reading WMS stock state at the return location). Payment and refund processing are separate and not part of this workflow. 5 of 5 positive returns processed with complete audit trail, confirmed WMS receipts and named return receipt records.
Denied: stale order version (rt_2a). Fixture rt_stale_1 / negative RET-006: return references an amended order (original SKU swapped). Coordinator verifies against current OMS order. Return deferred. 0 returns processed against outdated order versions.
Denied: unknown GTIN (rt_2b). Fixture rt_unknown_1 / negative RET-007: scanned GTIN not in catalog. System cannot match to authoritative product record. Queued for investigation. 0 returns without verified product identity.
Denied: unauthorized role (rt_2c). Fixture rt_unauth_role_1 / negative RET-008: store associate attempts to approve exception. System enforces role check. 0 approvals by unauthorized roles.
Denied: unauthorized location (rt_2d). Fixture rt_unauth_tenant_1 / negative RET-010: Store B staff accessing Store A records. System enforces location isolation. 0 cross-location access.
Denied: expired return window (rt_2e). Fixture rt_inelig_1 / negative RET-009: return outside window. System flags during verification. 0 returns processed outside valid window.
Denied: authority unavailable (rt_2f). Fixture rt_unavail_1 / negative RET-011: OMS unreachable. Returns queued, not processed. 0 decisions without authoritative OMS data.
Denied: duplicate return (rt_2g). Negative RET-012: duplicate return submission for the same order line. System detects prior processed return. 0 duplicate returns.
Idempotency and duplicate detection (rt_3). Operation A: coordinator prepares return verification draft for target RET-001, finance controller approves draft, key op:rt_A_001. Only after approval: named return receipt written (receipt ID, OMS version, receipt location) and separately WMS inventory updated with return stock movement (two distinct business effects, each verified independently). Replayed operation A with same key: rejected, 0 duplicate receipts, 0 duplicate WMS movements, prior log entry preserved. Operation B: coordinator prepares return verification draft for distinct target RET-002, finance controller approves, key op:rt_B_002. Receipt written, WMS updated after approval. Logged. 2 of 3 proposals applied (A and B), 0 duplicate business effects. Synthetic targets RET-001 through RET-005 used. Payment and refund processing are separate from this workflow.
Ambiguous first response (rt_3b). Coordinator submits return for RET-003, key op:rt_A_003. Network interruption before acknowledgment. Before any possible repeat: check exact operation key op:rt_A_003 in durable decision log. Independently check for already committed named return receipt matching RET-003. Separately read current WMS stock at the return location for a committed return stock movement. Read current OMS order state (version, SKU, location, pending operations). Log found, receipt exists, WMS movement exists: both effects confirmed, no repeat. Log found, receipt exists but WMS movement missing: one of two effects already committed. Do not repeat the whole operation. Record partial state; operations director (named manual reconciliation owner) investigates, inspects the contemporaneous committed receipt and authoritative OMS version, and coordinates independently verified repair of the missing WMS movement only. Before the corrective write, the person executing the correction must still hold the applicable return-location scoped role and permission, current authoritative OMS and WMS versions must be confirmed, and no replay of the original request occurs. Finance controller gives final approval for the separately authorized correction, preserving the already committed receipt. No write if scope, authority or version is stale, revoked or unknown. Log found, receipt missing, WMS movement exists: partial commit in opposite direction. Do not repeat. Operations director investigates, inspects the contemporaneous WMS movement and authoritative OMS version, and coordinates independently verified repair of the missing receipt. Before the corrective write, the person executing must still hold the return-location scoped role and permission and current authoritative versions must be confirmed. Finance controller gives final approval for the correction. No write if scope, authority or version is stale, revoked or unknown. Log found, neither effect present or either pending: STOP. Durable record indicates attempted but authoritative recipients disagree or show pending. Do not repeat. Operations director investigates and reconciles. Log not found, receipt or WMS movement exists: effect exists without log. Do not repeat. Reconcile log without repeating. Log not found, receipt and WMS unambiguously confirm no effects AND no pending AND no inflight: only then may coordinator verify current role, location scope, OMS order version and return eligibility, then resubmit with identical stable key op:rt_A_003 only after finance controller approval. Revoked permission: if coordinator's location scope or role was revoked after initial submission, fail closed, no repeat regardless of receipt/WMS state; escalate to current authorized coordinator. If OMS, WMS or current authority is unavailable, unknown or stale: no attempt, hold for reconciliation by operations director. 0 duplicate returns, 0 duplicate WMS entries, 0 duplicate payments or refunds.
Decision logging and access control (rt_4). Minimized write-once log: return ID, SKU, coordinator identity, finance controller approval, decision, timestamp, OMS order version, receipt location. No customer payment or personal data. Role-bound append-only access; retention owner is the operations director; retention per organization policy.
Staged restore (rt_5). After OMS connectivity restored: reconcile authoritative OMS order state and WMS stock at each location, plus any pending return operations, against current OMS version before restart. Prior stable version staged in truly private preview. Location boundaries, permissions and committed log entries preserved. Already-committed WMS receipts from manual fallback preserved and reconciled against system records. Operations director verifies data integrity. Finance controller verifies return workflow correctness against current OMS state. Both approve before production restore. If OMS remains unavailable after restoration attempt: capture minimal return metadata securely (return ID, SKU, location, timestamp), hold all WMS commits, do not promise writes to unavailable OMS. Named manual fallback during OMS outage: coordinators record return verifications on paper forms with return ID, SKU, location, OMS order number, coordinator signature and date, stored securely in the store office; holds all WMS and OMS commits; reconciles against OMS and WMS records upon restore.
Tablet and keyboard access plan (rt_6). On iPad 10th gen at 820 by 1180, returns coordinator attempts 4 tasks: (1) review return queue (expected: queue fits portrait viewport, 0 horizontal overflow), (2) open return detail with OMS order verification and SKU/location match (expected: verification panel scrollable with all data visible), (3) scan GTIN and verify match (expected: scan result compared to OMS data inline), (4) tap Submit for Finance Approval (expected: button visible without scrolling past verification panel). Expected errors if broken: SKU comparison truncated, submit button unreachable, mismatch status not announced. On desktop at 1280 by 800, keyboard-only finance controller attempts 3 tasks: (1) navigate return approval list with arrow keys (expected: visible focus ring on each row), (2) open return detail with Enter (expected: focus moves to detail panel with OMS/WMS data), (3) approve or defer with keyboard (expected: decision controls accessible, status announced). Partial failure: if WMS receipt acknowledgment is delayed after OMS verification, the return should show a pending-receipt indicator rather than claiming WMS confirmation; what remains uncertain is whether the pending-receipt state renders correctly on both form factors. Test plan; results not claimed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.