A hypothetical produce distributor builds an offline lot receiving and quarantine reconciliation system with GS1 EPCIS traceability integration. Named system owner: the distributor's quality assurance director. Named proposer: lot receiver at the distribution center. Named independent approver: food safety lead. All targets are hypothetical and illustrative.
Prelaunch fixtures.
ag_cur_1: Produce lot LOT-3001 from Supplier S-10, 500 cases of leafy greens, received at Distribution Center DC-1, receiver captures draft offline with supplier ID, lot ID, quantity, quality visual inspection notes and geolocation
ag_cur_2: Draft lot receiving record synced to central system, compared against authoritative supplier manifest and lot documentation, queued for food safety lead approval
ag_stale_1: Draft referencing lot LOT-3002 with supplier data that has been updated since offline capture (stale offline conflict)
ag_unknown_1: Draft with lot identifier LOT-3003 not found in supplier manifest (unknown lot)
ag_inelig_1: Duplicate draft for LOT-3001 already received and quarantine-resolved (duplicate lot)
ag_unauth_role_1: Warehouse laborer attempting to approve quarantine disposition (requires food safety lead role)
ag_unauth_tenant_1: Staff from DC-2 attempting to access DC-1 lot records without authorization
ag_unavail_1: Central system unreachable during initial receiving (offline scenario with unknown sensor data)
Disjoint held-out setup. 11 synthetic lot records. Positive cohort (5: LOT-P001 through LOT-P005): valid supplier, known lot, complete draft, authorized receiver, qualified food safety lead, QA disposition clear. Negative cohort (6: LOT-N006 through LOT-N011): stale offline data, unknown lot, duplicate, unauthorized role, unauthorized facility, system unavailable with unknown sensor data. The held-out total (11: 5 positive and 6 negative) excludes the named recovery-only revocation fixture (LOT-R101) and private-restore test fixture. Training and tuning data separated from held-out fixtures; held-out cohorts are never used to train or tune system behavior. All hypothetical.
Allowed workflow (ag_1). LOT-P001: receiver at DC-1 captures offline draft for Supplier S-10 lot, 500 cases. Connectivity restores. System compares draft against authoritative supplier manifest at current facility DC-1: lot identity confirmed, quantity matches, supplier documentation complete, valid current facility and supplier manifest and lot and QA status. Food safety lead reviews: QA visual inspection clear, supplier certificates current, lot traceability chain documented. Approves receiving. System independently proves two records: (a) receipt record at exact location DC-1 for lot LOT-P001 with quantities and QA disposition confirmed in inventory, (b) separate EPCIS ObjectEvent (receiving) captured by expected event ID and verified as a distinct event record, not only a physical count or a locally generated message. Independent verification: inventory count at DC-1 confirms 500 cases at expected location (business effect verified independently of EPCIS event). 5 of 5 positive lots received. Test acceptance targets.
Denied: stale offline sync (ag_2a). LOT-N006: offline draft captured supplier data before an update. On sync, system detects supplier manifest revision mismatch. Explicit stale sync: no writes to inventory or EPCIS. Draft deferred for receiver to re-verify against current supplier data. 0 receipts on stale data. Test acceptance target.
Denied: unknown lot (ag_2b). LOT-N007: lot identifier not found in supplier manifest. Cannot verify identity. Quarantined and flagged for investigation. 0 receipts for unverified lots.
Denied: duplicate (ag_2c). LOT-N008: lot already received and dispositioned. Duplicate draft rejected. 0 duplicate receipts.
Denied: unauthorized role (ag_2d). LOT-N009: warehouse laborer attempts disposition approval. Requires food safety lead. 0 unauthorized approvals.
Denied: unauthorized facility (ag_2e). LOT-N010: DC-2 staff accessing DC-1 records. Facility isolation enforced. 0 cross-facility access.
Denied: authority unavailable with unknown sensor (ag_2f). LOT-N011: central system unreachable, sensor calibration data unknown. Sensor unknown: lot quarantined locally, no receipt committed, no EPCIS event generated. 0 receipts without authoritative verification (fail closed). Test acceptance target.
Idempotency and duplicate detection (ag_3). Operation A: receiver drafts LOT-P001, food safety lead approves, key op:ag_A_001. Both effects verified independently after approval: (a) inventory receipt record at DC-1 for LOT-P001 with quantities confirmed (verified by reading inventory by lot ID and location), (b) separate captured EPCIS ObjectEvent for LOT-P001 confirmed by expected event ID (verified by reading EPCIS event store by event ID, not by physical count or generated event). Replay of A with same key op:ag_A_001: rejected, 0 duplicate receipts, 0 duplicate EPCIS events, prior log preserved. Operation B: receiver drafts distinct LOT-P002, food safety lead separately reads fresh supplier/lot/QA and approves, key op:ag_B_002. Inventory receipt for LOT-P002 confirmed (verified independently by reading inventory). EPCIS event for LOT-P002 confirmed (verified independently by reading EPCIS store by event ID). 2 of 3 applied (A and B), acceptance target 0 duplicates, not observed. Test acceptance targets.
Ambiguous first response (ag_3b). Fixture ag_ambig_1: receiver submits LOT-P003, key op:ag_A_003. Sync interruption. Before any repeat: (1) read receipt log for key; (2) independently read inventory at exact location DC-1 for lot LOT-P003 with quantities and lot identity; (3) separately read EPCIS event record by expected event ID (not physical count or generated event); (4) check for pending/inflight receipts in both inventory queue and EPCIS event queue; (5) verify current supplier manifest/lot/QA disposition/facility DC-1 permission before any possible corrective write. Log found, inventory confirmed, EPCIS event present: complete, no repeat. Log found, inventory present but EPCIS missing AND EPCIS not pending AND EPCIS not inflight in EPCIS event queue: do not replay receipt. Pending or inflight partial state never triggers a corrective write. A distinct EPCIS-generation correction requires: EPCIS independently confirmed absent, not pending and not inflight; current scoped receiver with current facility DC-1 permission; current lot/QA versions and physical lot identity verified; independent existing inventory record for this lot confirmed at DC-1 with matching quantities; and the original food safety lead approval (not substituted by QA director). Unknown or pending state: no writes. Preserves committed inventory entry. Log found, EPCIS present but inventory missing AND inventory not pending AND inventory not inflight in inventory queue: do not replay. Pending or inflight partial state never triggers a corrective write. A distinct inventory-only correction requires: inventory independently confirmed absent, not pending and not inflight; current scoped receiver with current facility DC-1 permission; current inventory/manifest version and physical lot identity and QA disposition verified; independent existing EPCIS record for this lot confirmed by event ID; and fresh original food safety lead approval (not substituted). Unknown or pending state: no writes. Preserves committed EPCIS event entry. Log found, inventory missing: STOP. QA director investigates. Log not found, inventory exists (with or without EPCIS): effect without log. Reconcile without replay. Log not found, EPCIS event exists but no inventory: effect without log on event side. Do not repeat. QA director investigates. Log not found, no inventory AND no EPCIS AND no pending/inflight in either queue AND current receiver role/facility DC-1 scope verified AND current supplier manifest/lot/QA disposition confirmed AND food safety lead approves with fresh read: resubmit with identical key. Facility access revoked: fail closed. No replay on inventory-only or event-only state; pending EPCIS event fenced even when no inventory present. 0 duplicates. Test acceptance targets.
Lot logging and access control (ag_4). Write-once log: lot ID, supplier, quantity, QA disposition, food safety lead identity, timestamp, EPCIS event reference. No raw financial terms. Scoped read for food safety and compliance. Retention owner: QA director.
Revoked facility access before reconnect (ag_5a). Fixture ag_revoked_1: receiver queued lot receipt draft for LOT-R101 with key op:ag_R_101 while DC-1 scope was current and food safety lead had approved the draft. Before receipt completed, QA director (named revoker) revoked receiver's DC-1 facility scope. On delayed result/reconnect: system reads current facility scope: DC-1 absent. Queries pending receipt queue: op:ag_R_101 present but not committed. Reads inventory at DC-1: no entry for LOT-R101. Reads EPCIS event store: no event for LOT-R101. Reads committed effects from prior receipts (LOT-P001 through LOT-P003): preserved, no modification. Fail closed: no inventory write, no EPCIS event, no quarantine release, no replay. 0 effects after revoked scope. Test acceptance target.
Staged restore (ag_5b). After connectivity restored: stage the prior stable version privately with no real writes to inventory, EPCIS event store or production receiving queue. Named fixture ag_restore_1: queued lot draft for LOT-P005 at Supplier S-10, DC-1, key op:ag_R_005, QA disposition clear, food safety lead role grant current. In private staging: (a) test authorized route: verify QA director authority accepted, current receiver DC-1 scope valid, food safety lead role grant active, supplier manifest/lot/QA current, and each independently confirmed receipt effect from before the outage (inventory entry at DC-1, EPCIS event record) is still present and consistent; (b) test revoked/denied route: receiver whose DC-1 scope was revoked during outage attempts to submit a queued draft and system denies (zero receipts after revoked scope, revoked access never resurrected). Reconcile exact queued drafts against current supplier data and inventory. Preserve each independently committed effect: already-received lots and EPCIS events from manual fallback preserved. Require two named signoffs: QA director verifies data integrity, food safety lead verifies lot correctness. Both approve before production restore. Named manual fallback during outage: receivers capture paper records with lot ID, supplier, quantity and staff signature; lots quarantined locally; reconciles upon restore. Named fallback owner: QA director; queue reconciliation and two-role restart.
Tablet and keyboard access plan (ag_6). On iPad at 820 by 1180, receiver attempts 3 tasks: (1) capture offline draft (pass: form fits viewport; fail: form truncated; error: form loads but lot-ID field not visible), (2) review synced draft with supplier match and QA disposition status (pass: scrollable with EPCIS event ID visible; fail: data hidden; error: detail opens but QA disposition missing), (3) tap Submit for Food Safety Review (pass: visible, draft not receipt; fail: unreachable; error: submit fires with no feedback). On desktop at 1280 by 800, keyboard-only food safety lead attempts 3 tasks: (1) navigate queue with arrows (pass: focus ring; fail: no indicator; error: focus skips), (2) open detail (pass: focus to panel with lot/QA/EPCIS; fail: nothing; error: panel opens, focus stays), (3) approve or defer with keyboard (pass: accessible, announced; fail: inaccessible; error: approval commits receipt without QA check). Residual risk: if supplier manifest updates during offline capture, the stale-sync indicator on the draft review screen may not distinguish between minor metadata updates and substantive lot identity changes. All outcomes are test acceptance targets. Test plan; results not claimed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.