From f478795b5d30dba8cb9a07e921b8e1a9ba83709b Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 20 Mar 2026 12:42:23 -0400 Subject: [PATCH] added t1.16 to cleanup review process --- pm/tasks.org | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/pm/tasks.org b/pm/tasks.org index b78f43b..6b32bee 100644 --- a/pm/tasks.org +++ b/pm/tasks.org @@ -677,6 +677,47 @@ replace the old observed/canonical workflow with a review-first pipeline that us - Existing auto-generated catalog rows are no longer carried forward by default; only deliberate catalog entries survive. That keeps the new `catalog.csv` conservative, but it also means prior observed-based auto-links do not migrate into the new model. - Live rerun after the refactor produced `627` purchase rows, `387` review-queue rows, `407` distinct normalized items, `0` linked normalized items, and `0` unresolved rows missing from the review queue. +* [ ] t1.16: cleanup review process and format + +** acceptance criteria +1. Add intro text explaining: + 1. catalog name: unique product including variant but not packaging, eg "whole milk", "sharp cheddar cheese" + 2. product type: general product you would like to compare to, eg "milk", "cheese" + 3. category: eg "dairy" +2. Reformat input per item + 1. Change matched item field display order + 2. Add count of distinct normalized_item_ids and total purchase rows already linked to the catalog item + 3. Add option to select catalog suggestion directly + #+begin_comment + Review 7/22: MIXED PEPPER 6-PK + 2 matched items: + - MIXED PEPPER 6-PK | costco | 2026-03-12 | 7.49 | [img_url] + - [raw_name] | [retailer] | [YYYY-mm-dd] | [price] | [img_url] + 2 catalog suggestions found: + [1] bell pepper, pepper, produce (42 items) + [2] ground pepper, spice, baking (1 item) + [#] link to suggestion [n]ew [s]kip e[x]clude [q]uit > + #+end_comment +3. When creating new, ask for input in catalog_name, product_type, category order + 1. enter to accept blank value +4. Each reviewed item is saved after user input, not at the end of the script. + 1. on new creation, create entry in catalog.csv and create entry in product_links.csv + 2. on link existing, create entry in product_links.csv + 3. update review_queue.csv status for item immediately after action +5. linking operates at normalized_item_id level, not per normalized_row_id +6. ensure catalog.csv and product_links.csv are human-editable and consistent so manual correction is possible without tooling + + +** evidence +- commit: +- tests: +- date: + +** notes + + +#+END_* + * [ ] 1t.10: add optional llm-assisted suggestion workflow for unresolved normalized retailer items (2-4 commits) ** acceptance criteria