Product design · Behavior verification

PriceWise

A grocery comparison prototype across three Australian chains, running on demo data — and the four classes of defect that a passing build, a clean type-check and a green test suite could not see.

When an AI writes the code, a green build stops being evidence. The interface renders, types check, tests pass — and none of that tells you whether the feature actually runs.

A deployed comparison prototype on demo data, covering Coles, Woolworths and Aldi across 65 products, and a verification habit that separates 'looks finished' from 'actually runs' with scripts anyone can re-run.

Product direction, interaction design and technical direction; I wrote the specs, reviewed the code and verified the behaviour. Codex and Claude Code wrote the implementation

The PriceWise home screen
The problem

When an AI writes the code, a green build stops being evidence.

The interface rendered. The type-check was clean. 307 unit tests passed. None of those three facts tells you whether a feature actually executes — and in this codebase, four classes of defect satisfied all three. That is the real problem this case is about: not what to build, but how to confirm what was built is real.

How they were found

Stop reading the code. Call the endpoint and read what comes back.

Probe the live endpoint

Semantic search never used a vector — the product object dropped its vector field at the data-mapping layer and every query silently fell back to keyword matching. Keyword matching returns results too, so nothing looked wrong.

Open the thing it created

Lists built from a template were always empty: the items the front end sent were silently stripped by back-end validation. The catch branch also showed a success message, so a dropped network still reported good news.

Query the database directly

Six declared tables had never been created. Nothing read or wrote them, so 'relation does not exist' had never been triggered. Reading code during a migration also turned up cron auth that did not fail closed when its key was unset.

They all pass build, type-check and tests. What is broken is whether the feature runs at all, and no automatic gate is watching for that.

— The property all four classes share
The system idea

'Renders correctly' and 'executes correctly' are different claims.

Only one of them has automatic gates behind it. A build proves the code compiles; a test proves the path the test walks; a screenshot proves pixels. None of them proves that a query used the index it was supposed to, that a write landed, or that a declared table exists. The verification pass in this project is simply the habit of asking the second question out loud, on every feature, with the deployed system rather than the source.

Feature bloat cycle
  • AI predictions & social layers before real users
Scope cut & script check
  • Pinned deterministic 65-item checks
The decision I am least comfortable with · How the scope grew

One more defect was mine: a regression from my own fix to search. Passing a missing field through serialized a 1,536-dimension vector into the API response and pushed three search results to 89 KB. I found it by calling the real endpoint and reading the response, not by reviewing my own diff. It stays in the case because a check that only catches the AI is not really a check. It also shows the method's limit: nothing prevented the defect, something caught it afterwards.

Looking back, I judge that the feature list was AI-generated planning, derived from what a complete product ought to have rather than from anyone's need; that is my later reading, not something the repo records. Phases 2 through 6 all landed across two days, 9–10 January 2026. On 1 March a single commit added 5,884 lines: a v1 API, AI function calling, bilingual text, price prediction, and a social layer of friends, DMs, feeds, household groups and challenges that made up about a quarter of it. On 2 March I stopped, and did not touch it for five months. The scope never came back down: in August the v1 routes moved to unversioned paths rather than being removed, and the social routes are still in the app. Looking back, a comparison app on simulated data with no registered users should not have kept growing.

The module everything depends on

Receipt matching is the product: a receipt prints MLK FC 2L, the catalog says Full Cream Milk 2L, and if those do not meet, nothing else can happen. That module was written in one pass of 175 lines in the second commit and never modified, with 13 tests using 'milk', 'eggs', 'sourdough bread' — not one input resembling printed receipt text. Against 20 constructed receipt-format inputs it matched 15; after a fix that only adds points and never subtracts, 19. All 15 originally-correct inputs held. 311 tests green.

What this case produced
Outcome & scope

4classes of defect passing build, types and tests

receipt-format inputs matched
15 → 19 of 20
registered users
0

A deployed comparison prototype on demo data, covering Coles, Woolworths and Aldi across 65 products — and, more usefully, a verification habit with scripts anyone can re-run. Evidence status: zero registered users. Every verification ran on data I created, and what a real crumpled receipt does to recognition accuracy is unknown to me. The verification is also manual: it should be a build gate, and it is not one yet.

Reflection

One mismatch was left unfixed on purpose. 'MLK FC 2L' moved from no-match to matching Oat Milk — a change in kind, and for the worse. A no-match lands in the unmatched list where the user can see it; a wrong match sends a wrong price silently into the comparison and the user never finds out. Fixing it means either an abbreviation dictionary, which becomes an endless maintenance list, or admitting two-letter tokens, which reinstates the mis-matches just suppressed. The correct handling is to send it back to no-match, which is a confidence-threshold problem rather than an abbreviation problem. It is pinned by a test so that if it changes, someone knows.

THREE GATES · ALL GREENBUILDTYPESTESTS01search never used a vector02template lists came out empty03auth failed open without its key04six tables were never created05my fix's regression: a bloated response4+1GOT THROUGHFOUND BY: CALLING THE REAL ENDPOINT · READING THE RESPONSE · QUERYING THE DBrenders correctly is not runs correctly109 API routes · 36 page routes · 311 testsno gate was asking whether the feature executed
Concept schematic · build evidence and honest limits follow below.
Open the demo build

The deployed prototype, in the page. Browse the 65-product catalogue and compare across the three chains without signing in. Prices come from simulated data, and the database has no registered users.

Open in a new tab ↗
The running app

Captured from the live deployment, not mocked up. Amounts shown come from demo data, not from anyone's real bill — the database has zero registered users.

The receipt scanning screen, with an upload area and the list of recognized items
The core interaction bottleneck: receipts print cryptic abbreviations like MLK FC 2L while catalogs store Full Cream Milk 2L.
The comparison view, with the cheapest chain marked in green for each item
Three chains, item by item. The green marker is the only claim this screen makes, and it is only as good as the match behind it.
The product browser, each card listing the price at all three supermarkets
65 products across Coles, Woolworths and Aldi. This is the page whose semantic search silently fell back to keyword matching on every query.

Outcome limits

Zero registered users. Every verification ran on data I created.

The case proves a verification method, not that the product is useful. What a crumpled receipt does to recognition accuracy is unknown to me.

Next validation Five people, their own receipts, and a record of how recognition fails rather than how often.

The verification is manual and lives in my hands.

A check that depends on someone remembering to run it is not a gate. These defects existed precisely because no automatic check was asking whether features executed.

Next validation Wire the endpoint probes into the build pipeline so that 'does it actually run' fails CI rather than waiting for a person.

The catalogue is 65 products across three chains, priced from simulated data.

Prices shown in the case are demo data, not anyone's real bill, and the comparison logic has never met real pricing volatility.

Next validation A live pricing source for a small product set, and a check on how stale a price can get before the comparison misleads.

For interviewers

Methods, evidence, process and hard questions. Collapsed by default.

Methods and evidence

Methods

  • spec-first delivery
  • live endpoint probing
  • direct database inspection
  • regression test authoring

Evidence collected

  • 109 API routes and 36 page routes in a deployed app, against 311 Vitest tests
  • four classes of defect that passed build, type-check and test, plus a regression from my own fix that only the live endpoint showed
  • a 96-commit history (to 13 August 2026): 5,884 lines in one commit on 1 March 2026, about a quarter of them social features, then five months with no commits

What I would do next

I would put it in front of five people using their own receipts, and turn the manual verification into a build gate.

Before and after

Process scrubber · Silent fallback vs explicit state

Expose silent matching failures instead of faking certainty

Inspect why raw receipt abbreviations forced an explicit 'unmatched' UI tier rather than letting keyword fallback masquerade as semantic search.

Before · Silent Fallback Mock
BEFORE: SILENT FALLBACK WITHOUT CONFIDENCE STATEMLK FC 2L → Auto-marked green: $3.10BREAD WHT → Silent mismatch: Rye loaf $4.50CHKN BRST → Missing unit check (kg vs pack)Risk: UI looks confident even when semantic search failedRisk: Missing explicit 'Unmatched' fallback state
After · Verified Live UI
The live PriceWise home screen showing explicit matching and comparison entry points
Interview pack

Questions interviewers ask

An AI wrote the code and everything passes. What is left for you to check?

Whether the feature executes at all. I go feature by feature calling the deployed endpoint, reading the response body and querying the database directly, and I read the code during a migration. Four classes of defect had passed build, type-check and the full suite: semantic search that never used a vector, template lists created empty, cron auth that did not fail closed without its secret, and six declared tables that were never created.

Jump to The decision I am least comfortable with ↓It is manual and slow, and it finds nothing most of the time. Turning it into a build gate is the obvious next step and it has not happened yet.
Were any of those your own?

One, a regression from my own fix to search. Passing the missing field through serialized a 1,536-dimension vector into the API response and pushed three search results to 89 KB. I found it by calling the real endpoint and reading what came back, not by reviewing my own diff. I keep it in the case because a check that only catches the AI is not really a check.

Jump to How they were found ↓It also shows the method is reactive: nothing prevented the defect, something caught it afterwards.
The scope grew from a feature plan you now judge to be AI-generated, and never came back down. What would you check before accepting a plan like that again?

What the plan was derived from. This one came from what a complete product should have, not from anyone's need, and the build followed it. On 1 March 2026 a single commit added 5,884 lines, about a quarter of them social features. Commits stopped the next day for five months, and the scope never came back down: the v1 routes were later moved to unversioned paths, not removed. Looking back, a comparison app on simulated data with no registered users should not have kept growing.

Jump to The module everything depends on ↓This is a judgement made afterwards. It does not show that I would catch the next plan early.
It is live but has zero users. Why does it belong in a portfolio?

Because the transferable part is the verification habit, and that is visible without users: reproducible scripts, defects documented with how they were found, and one known mismatch deliberately left unfixed because a wrong match is worse for the user than no match. The case says plainly that whether the product is useful to anyone is untested.

Jump to Outcome limits ↓Zero registered users means recognition accuracy on a real crumpled receipt is unknown to me.
PriceWise | Lewis Dong