Order Lifecycle Connectivity Acceptance Suite

Proves the complete live chain: Customer Rork → Base44 checkout/payment → Merchant Rork → Dispatch → Driver Rork → Customer tracking → Delivery. Every executable gate runs a real production path — no simulated or mocked tests.

Test Run: run_1792436372608_523lrz

Environment
EnvironmentProduction
Backend Build2026-10-19
Merchant App—
Customer App—
Driver App—

Execute Full Acceptance Suite

Runs all 15 executable gates in sequence · stops on first failure · preserves all evidence

⚠ Select a test fixture before running the full suite.

Release Verdict

0 / 23 gates
Menu—
Checkout—
Merchant—
Customer—
Dispatch—
Driver—
Chat—
Security—
Cleanup—

Overall

0 / 23

AWAITING GATES

Blocking Gates

None

Evidence Summary

Assertion counts across 0 executed gates — Client API asserts ≠ UI render proof · Rork UI column is 0 until render instrumentation is active

0

of 319 total

0/23 gates
0DB assertionsPhysical record checksof 93
0Backend API assertsFunction response validationof 70
0Client API assertsAPI contract per Rork clientof 68
0Rork UI assertionsActual render events (0 — not yet instrumented)of 0
0Negative testsUnauthorized request rejectionsof 41
0Latency checksAPI round-trip timingof 47
Run gates to see assertion counts accumulate.

Full Order Lifecycle Connectivity: BLOCKED

0/23 gates proven — select a test fixture to begin

BLOCKED0/23 passed

Menu Connectivity

BLOCKED
🪪G1Merchant & Store Identity BLOCKED
📖G2Menu Read Connectivity BLOCKED
✏️G3Menu Write & Synchronization BLOCKED
🛒G4Availability & Checkout Enforcement BLOCKED

Customer ↔ Merchant

BLOCKED
💳G5Customer Checkout & Paid Order BLOCKED
📬G6AMerchant Receipt & Notification BLOCKED
🧾G6BMerchant Order Rendering & Earnings BLOCKED
✅G7Merchant Acceptance BLOCKED
👨‍🍳G8Merchant Preparation Lifecycle BLOCKED
💬G9Customer ↔ Merchant Chat BLOCKED
🚫G10Out-of-Stock & Replacement Preferences BLOCKED
💰G11Replacement & Financial Adjustment BLOCKED

Merchant ↔ Driver

BLOCKED
📡G12Dispatch Eligibility & Driver Offer BLOCKED
🚗G13Driver Acceptance & Assignment BLOCKED
📦G14Driver Arrival & Pickup BLOCKED
🏁G16Driver Delivery Lifecycle BLOCKED

Driver ↔ Customer

BLOCKED
🗨️G15Customer ↔ Driver Chat BLOCKED
❌G17Merchant Cancellation BLOCKED
🙋G18Customer Cancellation BLOCKED
🔁G19Full Order State Synchronization BLOCKED
🔄G20Connectivity, Retry & Idempotency BLOCKED
🔒G21Authorization Negatives BLOCKED
🧹G22Final Integrity & Cleanup BLOCKED

Live Order Lifecycle Pipeline

Run gates to light up the pipeline

🧑

Customer Cart

📋

Quote

💳

Stripe Paid

📬

Merchant Received

✅

Accepted

👨‍🍳

Preparing

🔔

Ready

📡

Driver Offer

🚗

Driver Assigned

📦

Pickup

🛣️

En Route

🏁

Delivered

Pending
Running
Pass
Fail

🧪 Test Fixture

Domain A — Menu & Checkout Connectivity — Gates 1–4

🪪

Gate 1 — Merchant & Store Identity

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Proves that Base44 and the fixture agree on all identity dimensions — merchant, store, menu, scope_key, and migration record — before any mutation is permitted.

Store A has no store-owned menu. Select a fixture with an initialized store menu to run this gate.
📖

Gate 2 — Menu Read Connectivity

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Proves the merchant's store-owned menu travels correctly: Physical DB → getMerchantMenu API → getRorkMenu. Compares item counts, content hashes, and produces item-level diffs (missing IDs, price, availability, modifier mismatches).

Requires a fixture with an initialized store menu.
✏️

Gate 3 — Menu Write & Synchronization

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Creates CONNECTIVITY_ITEM_<timestamp>, validates it propagates through physical DB → getMerchantMenu → getRorkMenu, confirms Store B is isolated, then removes it.

Requires an initialized store menu fixture.
🛒

Gate 4 — Availability & Checkout Enforcement

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Race condition proof: customer adds available item → merchant disables item → customer submits stale cart → backend rejects it → no order or PaymentIntent created. Also cycles the item back to available and confirms all layers (DB, getRorkMenu, checkout) agree.

Requires a fixture with an initialized store menu.

Domain B — Customer Order Creation & Payment — Gates 5

💳

Gate 5 — Controlled Paid Order Fixture Creation

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Creates a suite-owned order fixture: quote pricing → DB construction → field integrity → isolation. Stripe/webhook path NOT proven here — this is a controlled fixture, not a customer checkout proof. This order anchors all subsequent lifecycle gates.

⚠ Requires a fixture with merchant, store, and an initialized store menu.

Domain C — Merchant Order Intake & Handling — Gates 6A, 6B, 7–8

📬

Gate 6A — Merchant Receipt and Notification

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Proves the controlled order reaches the merchant via the real DB filter and backend API paths. Tests merchant isolation and foreign-store isolation. Prerequisite for Gate 6B (Merchant Order Rendering & Earnings).

⚠ Requires Gate 5 to pass and produce a controlled order_id.
🧾

Gate 6B — Merchant Order Rendering & Earnings

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Canonical merchant financial proof gate. Reconciles item names, quantities, modifier groups, selected modifiers, modifier quantities, notes/special instructions, merchant unit prices, modifier line totals, and merchandise subtotal across four layers: Physical Order Snapshot → Merchant Backend API → Merchant Rork State → UI (instrumentation stub). Hard-fails if customer-facing charges (markup, service fee, delivery fee, Stripe fee, taxes, platform revenue, loyalty discount, promo discount, or customer total) leak into any merchant-facing layer. The merchant merchandise subtotal established by this gate is immutable for reconciliation purposes. Subsequent gates (Out-of-Stock, Financial Adjustment, Cancellation, Final Integrity) must reconcile against this Subsequent gates must reconcile their resulting merchant financial state against the baseline established by Gate 6B rather than recalculating merchant earnings independently. This gate establishes the merchant financial baseline for Gates 7, 10, 11, and 22.

Requires Gate 5 (Controlled Order) to have run first.
✅

Gate 7 — Merchant Acceptance

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Calls the real acceptOrder backend function (same path as Rork merchant). Verifies DB state transition, field population, idempotency, and foreign merchant rejection.

⚠ Gate 6B (Merchant Order Rendering & Earnings) must pass first.
👨‍🍳

Gate 8 — Merchant Preparation Lifecycle

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Drives the order through merchant_accepted → preparing → ready_for_pickup via updateOrderStatus. Tests idempotency of duplicate taps and timestamp monotonicity.

⚠ Gate 7 (Merchant Acceptance) must pass first.

Domain D — Merchant/Customer Communication & Adjustments — Gates 9–11

💬

Gate 9 — Customer ↔ Merchant In-App Chat

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Calls the real orderChat function in both directions on the controlled order. Verifies physical DB presence, sender roles, conversation isolation, and foreign-order rejection. 📵 Phone communication: NOT TESTED.

⚠ Gate 5 (Controlled Order) must pass and produce a live order_id.
🚫

Gate 10 — Out-of-Stock & Replacement Preferences

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Merchant marks an item unavailable on the controlled order. Proves the customer notification pathway, replacement preference persistence, and audit trail integrity.

⚠ Gate 9 (Merchant Preparation) must pass and produce a live order_id.
💰

Gate 11 — Replacement & Financial Adjustment

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Processes a financial adjustment (item removal/refund) on the controlled order. Verifies total delta, idempotency on duplicate key, and audit trail entry.

⚠ Gate 10 (Out-of-Stock) must pass first.

Domain E — Dispatch & Driver Connectivity — Gates 12–14

📡

Gate 12 — Dispatch Eligibility and Driver Offer

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Triggers the real autoDispatchOnAccept path. Verifies order transitions to driver-searching state, DispatchTask records are created, and duplicate triggers are idempotent.

⚠ Gate 8 (ready_for_pickup) must pass first.
🚗

Gate 13 — Driver Acceptance and Assignment

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Calls driverAssignmentAPI to atomically assign a driver. Verifies DB state, timestamp population, idempotency, and foreign rejection. ⚠ No fixture driver — add a driver to the fixture for full proof.

⚠ Gate 12 (Dispatch Eligibility) must pass first.
📦

Gate 14 — Driver Arrival and Pickup

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Drives driver_assigned → arrived_at_store → picked_up. Reads back from physical DB and getOrderTracking (customer-facing) after each step.

⚠ Gate 13 (Driver Assignment) must pass first.

Domain F — Driver/Customer Communication — Gates 15

🗨️

Gate 15 — Customer ↔ Driver In-App Chat

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Tests the driver conversation thread (separate from merchant chat). Verifies both directions, physical DB, conversation isolation, and foreign driver rejection. 📵 Phone: NOT TESTED.

⚠ Gate 13 (Driver Assignment) must pass first.

Domain G — Delivery Completion — Gates 16

🏁

Gate 16 — Driver Delivery Lifecycle

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Drives picked_up → en_route → delivered via completeDelivery. Reads back from physical DB and getOrderTracking after each step. Verifies terminal immutability.

⚠ Gate 14 (Driver Pickup) must pass first.

Domain H — Cancellation Branches — Gates 17–18

❌

Gate 17 — Merchant Cancellation

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Cancels the controlled order as merchant. Verifies status transition, timestamp population, dispatch cleanup, foreign merchant rejection, and idempotent re-cancellation.

⚠ Gate 7 (Merchant Acceptance) must pass. Separate test orders needed per cancellation stage.
🙋

Gate 18 — Customer Cancellation

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Customer cancels their order. Backend enforces policy by state — the client must not decide eligibility. Tests foreign customer rejection, policy enforcement at current boundary, and idempotent re-cancellation.

⚠ Gate 7 (Merchant Acceptance) must pass. Requires a customer fixture.

Domain I — Cross-Client State Synchronization — Gates 19

🔁

Gate 19 — Cross-Client State Consistency

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Compares Physical DB · Merchant Backend API · Customer Tracking · getOrderStatus — all must agree. Verifies timestamp monotonicity and terminal state immutability.

⚠ Gate 16 (Delivery Completion) must pass first for the happy path.

Domain J — Reliability & Security — Gates 20–22

🔄

Gate 20 — Connectivity, Retry & Idempotency

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Validates production resilience: double accept, double dispatch, double pickup, duplicate chat, stale CAS conflict detection. Every duplicate must either return the original result or a typed idempotent response — never duplicate records.

⚠ Gates 5–16 (happy path) must pass first.
🔒

Gate 21 — Authorization Negatives

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Uses real backend endpoints to prove every cross-entity, cross-role, and tampered-payload attack is rejected. Verifies no DB mutation occurs from rejected calls.

⚠ Gates 5–19 must pass first. Requires a live controlled order.
🧹

Gate 22 — Final Integrity & Cleanup

IMPLEMENTED
EXECUTED
PROVEN
PENDING

Proves the suite leaves the environment clean: no menu artifacts, no orphan dispatch tasks, no injected chat, Store B unchanged, controlled order terminal, migration records intact.

⚠ All gates 1–21 must complete (pass or terminal fail).