Six listings and a working stock model
I imagined an overseas cat food brand entering Japan. On 2 December, after recording six listings from a Japanese retailer, I tried the first order and shipment with placeholder stock of 12 chicken, eight tuna and three salmon pouches.
A three-pack listed at ¥514.80 cost ¥171.60 per pouch. That was cheaper per pouch than a ¥184.80 single, but the shopper had to spend more up front. I separated cost per pouch, cost per 100 g and the first payment. Where delivery costs were unknown, I left the delivered total blank.
The sample grew to 30 products and 31 listings in v0.2.0, then 36 products and 47 listings in v0.2.1. Separating products from offers let me track the same 55 g tuna pouch at ¥128, ¥129 and ¥180 across three stores. I paused weekly tracking after ten initial observations across four products.
For v0.3.0, I chose three of the six recipes for the trio. Chicken in gravy, tuna in jelly and salmon loaf each weigh 55 g and cost ¥158. The trio costs ¥450, saving ¥24. These fictional prices draw on the retail sample. The study did not measure willingness to pay.
Why shipping an order leaves availability unchanged
Each trio draws one pouch from each flavour. Checkout reserves those pouches. Shipment reduces both the physical stock and the reservation by the same amount, so the shop only deducts availability once.
| Action | On hand | Held | Trios available |
|---|---|---|---|
| Start | 3 | 0 | 3 |
| Add to cart | 3 | 0 | 3 |
| Place order | 3 | 1 | 2 |
| Receive two | 5 | 1 | 4 |
| Ship one | 4 | 0 | 4 |
In v0.4.0, I placed an order in a second tab that left just one salmon pouch. The original tab still requested a trio and a single. Checkout rejected both lines together and kept the cart intact. Removing the single let me order the trio for ¥630 including ¥180 delivery.
In v0.5.0, the store began reserving the earliest eligible lots first. I moved a reserved lot’s expiry to yesterday in the test database. Shipment stopped. The store replaced only the expired reservation when possible and preserved the original allocation and price when replacements ran short.
An offline stocktaking prototype
I built an Android prototype so staff could count stock without a network connection. On 3 December 2026, I tested v0.6.0 on a Pixel 7 emulator running Android 15. The public web demo uses a separate store where visitors save and apply counts in the same browser tab.
Prototype test results and eight stock observations
QA-07 · Restart and retry I counted four salmon pouches in lot C-02 offline. The pending count survived a restart. The first sync updated the store record from two to four. A second sync left the quantity and revision unchanged.
QA-08 · Shipment before sync I saved a second count of four. Before sync, the store shipped one pouch each from C-01 and C-02. The late count left three on record in C-02 and paused reservations for that lot. With C-01 empty, no trios were available until I confirmed three in a recount.
| Event | On hand | Trios | Revision |
|---|---|---|---|
| Initial stock | 2 | 3 | 1 |
| Offline after restart | 2 | 3 | 1 |
| First sync | 4 | 5 | 2 |
| Repeat sync | 4 | 5 | 2 |
| Before shipment | 4 | 5 | 2 |
| After shipment | 3 | 3 | 4 |
| Late count held | 3 | 0 | 5 |
| Recount accepted | 3 | 3 | 6 |
Nine checks passed. Three remain unverified, covering manual entry after camera permission was denied, scanning a printed QR code and enlarged text on a physical device. The log cannot distinguish automatic sync from a manual retry.
From a texture guide to a cancelled order
In v0.7.0, I paired six fictional products with AI-generated packaging and checked names and weights in both languages. In v0.8.0, I separated the shop, cart, orders and store desk. Product dialogs sometimes timed out in parallel tests. All 24 checks passed twice in isolation, so I ran subsequent suites sequentially. The cause remains open.
For v0.9.0, I made bilingual texture guides, four social images and four email drafts. The guide returned shoppers to their chosen texture while keeping the language and cart. I checked the email layouts without sending a campaign.
In v0.10.0, I followed the English email link through the guide and ordered one chicken pouch. Checkout showed ¥338. Analytics counted ¥158 in merchandise, excluding shipping. Dropping the response and retrying recorded the order once. Cancelling brought it back to zero. A separate sample of 1,200 visits is simulated.
Why the cart still let me add another pouch
At checkout, the database already counted the salmon in the sets and singles together. In v0.10.0, the shop and cart still allowed both quantities to increase after I selected two trios and one salmon single.
For v0.11.0, I made the interface expand each trio into its components before adding the singles. Both controls now stop at three salmon pouches and become available again when the single is removed. I also fixed Japanese tab titles on English pages and checked recovery from a failed initial request.

For v0.12.0, I documented the checks and ran a local production build. It passed alongside 26 Node tests and eight Chromium suites. Regenerating the comparison table and web content produced no changes. Browser coverage was limited to Chromium.
Trying a stock count in the browser
I used Next.js and PostgreSQL for the local build. The public web app keeps orders and inventory changes in the current browser tab. No payment or delivery takes place.
In Store desk, save a draft count of two for salmon lot C-02, then receive two more. Applying the earlier count leaves four on record and flags the lot for review. A fresh count of four clears the hold.
On 3 December, I published the store and research, then added the Japanese case study, English research and shared navigation. The public commit history begins with the browser edition. The earlier milestones here come from the original plan, archived builds and test logs.
Checking shared stock in two browsers
I ran eight inventory cases against the static store files, covering reservations, cancellation, shipment, stock counts and expiry. All eight passed in Chromium and Firefox at both 390 and 1280 pixels wide.
The recount test records two quantities. The store has five salmon pouches in total, four of them in lot C-02. Only the pouch in C-01 is available during review. Confirming the four in C-02 makes all five available again.