Baseline test
13 checks
Version beach-butler-grund-03 · Method reetie-capability-1 · Dry run before freezing
Original prompt
Build Beach Butler, a responsive web application for ordering food from restaurants near a beach and having it delivered on foot. Implement a working application with persistent backend data, not only a visual prototype. Use this platform's recommended supported architecture; no programming language, cloud provider or internal schema is mandated. This is a synthetic benchmark. Do not charge real money, contact real customers, use production credentials or activate live business integrations. Use only controlled test accounts. Clearly label simulated capabilities. ROLES AND ACCESS Support three authenticated roles: Customer, Restaurant operator and Runner. Provide a secure setup/invitation flow for two customers, an operator for each of two separate restaurants, and two runners. The tester supplies controlled account addresses. Do not replace authentication with a public role-switching control or shared public administrator password. Customers can access only their own private orders. Each operator can manage only their restaurant, menu, stock and orders. Runners see available jobs with pickup restaurant and approximate delivery zone. Exact customer location and private delivery details are visible only to the assigned runner for the active job and its customer. Authorize these rules on the backend, including direct requests and file access. ORDERING Seed two clearly fictional restaurants. Each has a EUR 9.90 item with stock 4. A cart contains items from one restaurant only. Charge a fixed EUR 3.00 delivery fee and no additional tax calculation in this test. Quantity is a positive integer; totals and available items are validated on the backend. Two items plus delivery total EUR 22.80. Prices and amounts on an order are snapshots, unaffected by later menu edits. For this first round provide an explicitly labelled simulated checkout with success and failure outcomes. Failed payment must not submit an order. Successful checkout submits exactly one order; repeated submission of the same checkout attempt must not duplicate it. Do not describe the simulation as a verified payment integration. WORKFLOW Use these fulfillment states: Pending payment, Submitted, Accepted, Preparing, Ready, Picked up, Delivered, Cancelled and Rejected. Keep payment status distinct from fulfillment status. Successful payment moves Pending payment to Submitted. The owning restaurant can accept Submitted if stock is available; acceptance reserves/decrements the required available stock exactly once. It can then move Accepted to Preparing to Ready. If stock is insufficient, reject the order with a clear reason and do not reduce stock below zero. The customer may cancel only before acceptance. The restaurant may reject a Submitted order. No reverse state transition is required. A runner can claim an unassigned order in Accepted, Preparing or Ready. Exactly one runner may own a job. Claiming does not itself change fulfillment status. Only the assigned runner can move Ready to Picked up, then complete delivery. Delivery requires a photo attachment and the order-specific confirmation code visible to its customer. Use a supplied synthetic photo in tests; camera capture may also be offered. Private proof files must not be publicly readable. LOCATION AND USER EXPERIENCE Provide restaurant, customer and runner views usable at 390-pixel mobile width. Display pickup and drop-off on a map or equivalent clear spatial view, with accessible order status and validation messages. Support a labelled deterministic demo-location mode using WGS84 points: pickup (59.000000, 18.000000), midpoint (59.000500, 18.000500), and drop-off (59.001000, 18.001000). Advance the runner through this fixed sequence without requiring real GPS movement. Do not present simulated position as live GPS. When browser location is unavailable, the user must be able to select the synthetic drop-off. Do not collect real visitors' location in the public benchmark demo. PERSISTENCE AND EVIDENCE Orders, membership, assignment, stock and uploaded proof survive logout and new browser sessions. Record successful business changes with actor, server timestamp, affected order and prior/new state. Users can inspect the history relevant to their own permitted records; ordinary clients cannot rewrite audit events. Return the runnable URL, setup instructions, a list of genuinely implemented features, remaining gaps, and instructions to export the synthetic data and event history. Identify what uses native platform features, external services, generated code and manual setup. Do not claim a production certification or security audit. Use English for all user-facing copy and submitted documentation.
Requirements and expected results
| ID | Requirement | Capability level | Expected result | Evidence |
|---|---|---|---|---|
| A6 | Synthetic location and reset | 1 | The same positions and states appear. The demo remains usable without GPS permission. | Observed result, date, and evidence for the tested artifact |
| A12 | Mobile workflows and export | 1 | The app provides an understandable map or equivalent, accessible forms, a usable synthetic export, and event history. | Screenshots and synthetic export |
| A5 | Backend persistence | 2 | All records persist on the backend across browser sessions. | Observed result, date, and evidence for the tested artifact |
| A1 | Role boundaries | 3 | The backend denies access and leaves the records unchanged. | Observed result, date, and evidence for the tested artifact |
| A2 | Order amounts | 3 | The server recalculates or rejects the input. The original order amount stays the same. | Observed result, date, and evidence for the tested artifact |
| A3 | Order lifecycle | 3 | Attempts to skip a step or use the wrong role are rejected. | Observed result, date, and evidence for the tested artifact |
| A4 | Delivery completion | 3 | The wrong runner, wrong code, and absent photo cannot complete the delivery. The assigned runner can complete it once. The image verifies file handling in this synthetic test. | Observed result, date, and evidence for the tested artifact |
| A7 | Simulated checkout | 3 | Success creates one order. The declined attempt submits no order. A retry creates no duplicate. | Order and payment state for each attempt |
| A8 | Cancellation and rejection | 3 | Allowed outcomes are recorded with the correct actor and inventory impact. | Event history and inventory extract |
| A9 | Inventory rules | 3 | Stock decreases exactly once and stays nonnegative. The failed acceptance has a clear reason. | Inventory before and after, plus order status |
| A10 | Visibility of exact location | 3 | Only the actively assigned runner and customer can see the exact position. | Artifacts for each role and state |
| A11 | Private document and history | 3 | The customer and runner see permitted information. History includes actor, time, and state. Clients cannot alter it. | File and history receipts |
| A13 | Seed data and cart validation | 3 | The fixture is correct, and the server rejects invalid carts and amounts. | Seed data and validation responses |
Change and regression tests
25 checks
Version beach-butler-andring-03 · Method reetie-capability-1 · Dry run before freezing
Original prompt
Extend the existing Beach Butler build without discarding its users, orders, stock, assignments, proof files or audit history. Preserve the original as a separate revision. Add the following advanced behavior and report actual costs and setup steps. Replace simulated checkout with a documented payment-provider sandbox, preferably the same preselected provider for every participating platform. Use only sandbox credentials, controlled accounts and test payment methods. Do not enable live payments or marketplace payouts. Capture the full order amount once at successful checkout. A browser redirect or client-submitted success flag must not prove payment; use authenticated provider state. Cancellation or restaurant rejection before acceptance requires a full refund of any captured amount. Track refund pending, succeeded and failed separately. If payment success arrives after cancellation/rejection, reconcile it and refund once; never resurrect the order. The cancellation-versus-acceptance race must have one valid winning business transition. If acceptance wins, pre-acceptance cancellation is no longer allowed. If cancellation wins, do not reserve stock. Validate webhook authenticity. Handle duplicate deliveries, separate event objects describing the same effect, and out-of-order events. Replaying a checkout, capture, refund, acceptance or delivery operation must not create another monetary or inventory effect. A stale event must not regress confirmed payment/refund state. No specific internal idempotency mechanism is mandated. Make competing runner claims result in exactly one assignment. Make simultaneous acceptance of orders competing for the last item result in at most one stock reservation. Restarting workers or application services during processing must not lose acknowledged work or duplicate business effects. Temporary external failures must become pending/retryable states and reach a correct final state after service recovery, or produce a visible actionable exception. Provide a controlled test harness or documented sandbox procedures for webhook replay, simultaneous claims, insufficient stock, one transient provider failure and restart during processing. These controls must be inaccessible to ordinary public users. Provide export and restore instructions and demonstrate restoration into a clean test environment. Restoration must reconcile external sandbox payment state before any payment operation is retried. Retain deterministic location simulation and all role/tenant protections. Report measured results, unresolved cases and manual interventions. Passing these tests does not establish suitability for every production or mission-critical use. Use English for all user-facing copy and submitted documentation.
Requirements and expected results
| ID | Requirement | Capability level | Expected result | Evidence |
|---|---|---|---|---|
| R-A6 | Synthetic location and reset | 1 | The same positions and states appear. The demo remains usable without GPS permission. | Observed result, date, and evidence for the tested artifact |
| R-A12 | Mobile workflows and export | 1 | The app provides an understandable map or equivalent, accessible forms, a usable synthetic export, and event history. | Screenshots and synthetic export |
| B12 | Baseline data after upgrade | 2 | Accounts, orders, stock, assignments, files, and events are preserved. | Hashed snapshot and observation receipt |
| R-A5 | Backend persistence | 2 | All records persist on the backend across browser sessions. | Observed result, date, and evidence for the tested artifact |
| B1 | Sandbox payment verification | 3 | Only verified payment can mark an order paid. | Observed result, date, and evidence for the tested artifact |
| B3 | Full refund on cancellation | 3 | Exactly one full refund occurs. The refund never exceeds the captured amount. It stays visibly pending until verified. | Observed result, date, and evidence for the tested artifact |
| B4 | Concurrent delivery claims | 3 | One runner wins, the loss is clear to the other, and no duplicate delivery permissions are issued. | Observed result, date, and evidence for the tested artifact |
| B5 | Concurrent acceptance with one item left | 3 | Stock reaches zero and only one order is accepted. The other is rejected and any payment is handled accordingly. | Observed result, date, and evidence for the tested artifact |
| B8 | Concurrent cancellation and acceptance | 3 | Only one valid transition wins. Inventory, payment, and history agree with the winning outcome. | Observed result, date, and evidence for the tested artifact |
| R-A1 | Role boundaries | 3 | The backend denies access and leaves the records unchanged. | Observed result, date, and evidence for the tested artifact |
| R-A2 | Order amounts | 3 | The server recalculates or rejects the input. The original order amount stays the same. | Observed result, date, and evidence for the tested artifact |
| R-A3 | Order lifecycle | 3 | Attempts to skip a step or use the wrong role are rejected. | Observed result, date, and evidence for the tested artifact |
| R-A4 | Delivery completion | 3 | The wrong runner, wrong code, and absent photo cannot complete the delivery. The assigned runner can complete it once. The image verifies file handling in this synthetic test. | Observed result, date, and evidence for the tested artifact |
| R-A7 | Simulated checkout | Not applicable | The change phase uses B1 through B3 in place of simulated checkout. | Order and payment state for each attempt |
| R-A8 | Cancellation and rejection | 3 | Allowed outcomes are recorded with the correct actor and inventory impact. | Event history and inventory extract |
| R-A9 | Inventory rules | 3 | Stock decreases exactly once and stays nonnegative. The failed acceptance has a clear reason. | Inventory before and after, plus order status |
| R-A10 | Visibility of exact location | 3 | Only the actively assigned runner and customer can see the exact position. | Artifacts for each role and state |
| R-A11 | Private document and history | 3 | The customer and runner see permitted information. History includes actor, time, and state. Clients cannot alter it. | File and history receipts |
| R-A13 | Seed data and cart validation | 3 | The fixture is correct, and the server rejects invalid carts and amounts. | Seed data and validation responses |
| B2 | Duplicate and out-of-order events | 4 | Exactly one payment effect occurs. Payment status does not regress and no extra order is created. | Observed result, date, and evidence for the tested artifact |
| B6 | Recover from interrupted processing | 4 | Restart loses no confirmed order and causes no duplicate capture or refund. | Observed result, date, and evidence for the tested artifact |
| B7 | Restore and reconcile | 4 | Document data loss, restore time, and manual steps, with reconciliation evidence. | Observed result, date, and evidence for the tested artifact |
| B9 | Late confirmation after cancellation | 4 | The order never reopens. A full refund occurs at most once. | Sandbox references and durable records |
| B10 | Overlapping provider events | 4 | There is one financial effect and payment state does not regress. | Event IDs and reconciliation receipt |
| B11 | Temporary provider error | 4 | Processing resumes or clearly indicates that action is required, with no duplicate effect. | Journal, final result, and attempt log |