feat(food-prices): add PriceCatcher basket-survey staples with per-item dates #10927
All Vouch review confidence checks passed
Residual risk 0.39 = Change Risk (0.52) × (1 − Review Confidence (0.25)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 32% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #10927"
general
weight: 0.35
chatgpt-codex-connector[bot]
Summary
Follow-up to #10922, which is merged. This adds the food-security staples #10922 left out: packaged rice, cooking oil, sugar, flour and meat, plus coconut and fruit. KPDN quotes these 19 items only on irregular basket-survey days: 2, 5 and 16 November in the publisher's 2026-11 file, with 9 November skipped around the holiday. Each item therefore reports its latest survey day, compared with its most recent survey at least seven days earlier.
Items. Each item's exact lookup name and unit are pinned and validated, as in #10922. Every item has at least 81 premises on each of the three November survey days.
Adapter (
pricecatcher.mjs)dailyorbasket. The 39 daily staples keep #10922's rule unchanged: the latest completed day on which every one reported, compared with exactly seven days earlier.refreshedReportsare now scoped by{date, item}. A basket survey on a daily item's baseline day therefore can't erase that day's daily rows in history, and the reverse holds too.kg,30 pieces,10 kg,5 kgandpiece.API (
food-prices.ts). A new opt-in registry flag,latestPerSeries, is set only forpricecatcher. With the flag on, each series shows its own latest observation, compared with that series' most recent observation on or before seven days earlier. Every other source keeps one shared latest date and the exact seven-day rule; a test asserts both paths.Card. A row whose date differs from the source report date now shows
Report date: <date>. This reuses the existing label, so no locale files change. The source attribution, in both registry copies, explains the two cadences.Type of change
Affected areas
/api/*):GetFoodPricesreturns a date per series for PriceCatcher onlyseed-food-prices-pricecatcher)Checklist
npm run typecheck)Verification
All checks below were run locally. The test suite and typecheck were rerun on head bcc88f9dd, after rebasing onto
mainwith #10922 merged.Live publisher file (2026-11, fetched 2026-11-17):
Tests
Checks
npm run test:related: 533/533.npm run typecheck,npm run typecheck:api,npm run lint:boundaries, e2etscandgit diff --checkall pass.Unverified
e2e/food-prices.spec.tsassertions: 58 rows, 39 against 11-09 and 19 against 11-05. As noted in #10922, that spec already fails onmainbefore it reaches this table. I checked the same assertions with a manual drive instead.mergeHistoryalready supports{date, item}.Documentation Alignment Checklist
N/A. Only the source attribution text changes.
Screenshots
These come from a manual drive with the
verify-worldmonitorharness. I added the panel through the command palette, andget-food-pricesreturned a controlled response.To show the mixed-date state the new row date exists for, I built that response with "now" set to 2026-11-18:
Results:
scrollWidthexceeds itsclientWidthby 5 px, the same as onmain.The screenshots were captured locally but not uploaded: this session has no
ghCLI forgh pr edit --attach, so the upload is still pending.Bundle budget provenance
N/A
---
_Generated by Claude Code_