estate-sale-planner-sold-comps
ARCHIVED"the confidence and price ranges are wildly optimistic." "I like the lookup step, but would want to think through how to reduce the initial cost." "what if the image is of three separate items? what if the user needs to split out the image or adjust what we've determined is the subject of the image?" "I want to be able to submit a chat message within each listing page - to adjust the data on that page only. Like entering 'this is actually a vintage Hermes - adjust pricing'" "I also want slightly more granular bands - in a garage sale $1 and $5 are really big buckets" — Katy, 2026-10-27 (phone testing round 05a, the model-call review, the round-02 board, then design review)
STAGES
- proposal11-11
- requirements11-11
- design11-11
- tasks11-11
- build—
- archived11-11
CAPABILITIES — 3 IN ONE CHANGE
- esp-app-header1 requirement
- item-correction5 requirements
- sold-comps-lookup7 requirements
OUTCOMES — AND HOW EACH IS MEASURED
- ✓1.1After a walkthrough, each photo is kept on the phone at up to 1600 px, and every item knows which photo it came from — `photos.test.ts`; Playwright run loaded the original on the source photo screen (2026-10-27)not stated
- ✓1.2When phone storage runs short, the oldest sale loses its original photos first. Its items keep their pictures and every correction — `photos.test.ts` (eviction plan + IndexedDB)not stated
- ✓1.3An item whose original is gone still opens and can be renamed, re-priced, moved or removed. The photo actions say the photo is no longer on this device — 2026-11-11, code read: `SourcePhoto.tsx` shows "Photo no longer on this device" when `crops.ts` finds no original, and `ItemDetail` keeps rename, price, destination and Remove, which don't read the original; no dedicated testnot stated
- ✓1.4User opens an item's source photo and sees the whole photo, with this item outlined and the other items from that photo shown faintly — `assets/built-source-view-480.png`, `-1024.png`not stated
- ✓1.5When the model gave no box, the whole photo is the subject, and the user can draw a box — 2026-11-11, code read: `SourcePhoto.tsx` shows the whole photo with "The model didn't place this one" when `item.box` is empty, and draw mode sets a box; no dedicated testnot stated
- ✓1.6User drags the box onto the clock instead of the table. The picture becomes the clock, and the name, price and reason update — reducer + route covered (`correction.test.ts`, `refine-route.test.ts`); **live re-read needs a key and a phone** — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), keyed, steps 3 and 7not stated
- ✓1.7If the re-read fails after an adjustment, the new box and picture stay, the old name and price stay, and the item says it hasn't been re-read yet — `correction.test.ts`not stated
- ✓1.8User splits "three vases" into three items, each with its own picture and read — reducer tested; Playwright drew 2 boxes, Save enabled (`assets/built-source-split-480.png`); live read needs a key — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), step 3not stated
- ✓1.9User draws a box around a lamp the model missed. A new item appears with that picture, marked as added by you, and is read — reducer tested; UI built, not driven — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), step 3not stated
- ✓1.10User merges a lamp and its shade into one item, framed around both, and it is read — reducer tested; UI built, not driven — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), step 3not stated
- ✓1.11User marks six Pyrex bowls as one lot. It is named and priced as a set and can be split back — reducer tested; naming as a set needs a keyed read — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), step 3not stated
- ✓1.12User sends "this is actually a vintage Hermes - adjust pricing". That item's name, price and reason update and it shows what changed — `correction.test.ts`, `refine.test.ts`; live message needs a key — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), step 4not stated
- ✓1.13A message changes only the item it was sent on — `correction.test.ts`not stated
- ✓1.14User taps Undo on a change a message made, and the previous name, price and reason come back — `correction.test.ts`not stated
- ✓1.15If the call fails after a message, the item is unchanged and the message stays in the box to send again — 2026-11-11, code read: `ItemDetail.tsx` clears the message only when `onMessage` returns ok, so a failed send keeps it; no dedicated testnot stated
- ~1.16~~User taps Looks right and the item shows as confirmed~~ — superseded, 2026-10-31, review queue #60: no confirmed state (founder: "Its in the app or its not."); Looks right removed. Was: — Playwright (`assets/built-item-confirmed-480.png`)not stated
- ~1.17~~Any correction (adjust, split, merge, lot, add, message) confirms every resulting item without a separate tap~~ — superseded, 2026-10-31, review queue #60: no confirmed state (founder: "Its in the app or its not."). Was: — `correction.test.ts`not stated
- ~1.18~~An unconfirmed item headed to Sell at a high price keeps the model's price, and no lookup runs~~ — superseded, 2026-10-31, review queue #60: no confirmed state (founder: "Its in the app or its not.")not stated
- ✓1.19A Sell item at $100 or more (the profile threshold) gets one search query and one lookup — `comps-lookup.test.ts` (fake provider); in the app, opening an ungated-yet-unlooked-up $250+ Sell item POSTed `/api/comps` once (2026-11-02)not stated
- ✓1.20Keep, Donate, undecided or under-threshold items get no query and no lookup, and show the model's price with no comps line — `comps-lookup.test.ts`, `comps-route.test.ts` (server gate, tampered threshold), `comps-item.test.ts` (no band line)not stated
- ~1.21A Sell lot over the threshold is looked up as a set ("set of 6 Pyrex mixing bowls") — lot count reaches the query step and the fixture query (`comps-lookup.test.ts`); the model's set wording needs a keyed callnot stated
- ✓1.22When a message or photo correction changes what a gated item is, a new query runs (and reuses a fresh saved result) — `comps-item.test.ts` (lookups key on the subject: name, mark, lot size; not the band); store reuse in `comps-lookup.test.ts`not stated
- ✓1.23The first lookup for a query calls the provider once and saves the results — `comps-lookup.test.ts`not stated
- ✓1.24The same query within 90 days, from any sale, uses the saved results with no provider call — `comps-lookup.test.ts`not stated
- ✓1.25Saved results older than 90 days are fetched again and replaced — `comps-lookup.test.ts`, `comps-parts.test.ts` (freshness)not stated
- ✓1.26With 3 or more matching sales, the price is set from them and shows "Based on N sold" with links to some of them — band math and citations tested (`comps-lookup.test.ts`, `comps-item.test.ts`); the line renders from a seeded result (`assets/built-comps-line-428.jpg`, 2026-11-02); first keyed call 2026-11-03 returned 50 real sales and the parser read all 50 (`comps-parts.test.ts`, real body); keyed run 2026-11-03 (local, `pnpm dev`): via the route, "Lodge No. 8 cast iron skillet" → 50 found, 3 matched (vintage No. 8s only; lids and new stock dropped), $50–$100 from $59–$71, 3 links. **In the app the same item came back too-few:** the query step wrote "… 8 inch", missed the saved result, and the matching pass kept 0 of 50 similar listings. Same item, different answers — see the 2026-11-03 finding under 3.19; **fixed by D22 (3.27): the line shows live in the app, the same in a second sale** (`assets/built-comps-line-live-375.jpg`)not stated
- ✓1.27With fewer than 3 matches, the model's price stays and no comps line shows — `comps-lookup.test.ts`, `comps-item.test.ts`not stated
- ✓1.28When the family sets the price by hand, their price stays, and the comps stay visible for reference — `comps-item.test.ts` ("Set by you · Based on N sold")not stated
- ✓1.29Each walkthrough records one cost row with the model, tokens and estimated cents — wired in `/api/flag` with `saleId`, row shape in `costs.test.ts`; migration 019 applied 2026-11-02; **confirm on the first real walkthrough in prod** — 2026-11-11: Katy walked it on a phone and signed off ("the estate sale planner walkthroughs worked great"), step 8 (cost rows in Supabase)not stated
- ✓1.30A provider lookup records its price; an answer from saved results records a zero-cost cache hit — `comps-lookup.test.ts`, `costs.test.ts`; live 2026-11-03: first lookup wrote lookup 0.18¢ + query 0.012¢ + comps 0.038¢ (0.23¢); the repeat wrote a `cache_hit` lookup row at 0¢ plus the two model rows (0.048¢)not stated
- ✓1.31If the cost table can't be written, the walkthrough, re-read or lookup still works and the failure is logged — `costs.test.ts`; seen live 2026-11-02: the dev server's Supabase key was unresolved, the log said `couldn't record a lookup row` and the lookup still answerednot stated
- ✓1.32With no provider key, a gated item keeps the model's price, shows no comps line, and the cost row says lookups aren't configured — `comps-route.test.ts`, `comps-lookup.test.ts`; in the app (2026-11-02) the item stored `not-configured` and kept $250–$500not stated
- ✓1.33When the provider errors, times out or is out of quota, the item keeps the model's price, the failure is recorded, and the next visit tries again — `comps-lookup.test.ts`, `comps-parts.test.ts` (429/`quota_reached`, 401, timeout), `comps-item.test.ts` (`retryDue`)not stated
WHAT HAPPENED
- ARCHIVED
proposal and specs and design and tasks and archive landed
2026-11-11 · 1 pull request- #589docs(openspec): archive the estate sale planner's first push
History read from a manifest built at 2026-12-02 (4cf8a06).
1 pull request, found by commits touching the change folder