feat(product_search_hub): store every photo of an AI food and keep them on its estimate (#763) #889
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 219 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · 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.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #889"
general
weight: 0.35
claude[bot]
Slice 2 of #763 (Refs #763; S3 and S4 follow).
What changed
FoodEstimateController.savePhotosnow starts one for every photo, in parallel and in the user's order, throughsavePrivateFrontPhotoand so through the lasting upload queue of #849.SavedFoodEstimate.photoUrls(JSONphoto_urls, required key, as the no-compat rule asks; S1 never shipped in a release) keeps all their Storage addresses. The first photo stays the item's image.InventoryItem.withFoodPhotos(next towithoutAiEstimate) sets both;ManualProductAiSearchResult.withItemkeeps the AI page under the 300-line limit.Future.waitover their uploads).Gates
test/features/product_search_hub,test/features/inventory,test/architecture: passed (new: two photos land on the estimate; the JSON round trip carriesphoto_urls)flutter analyze,tool/ci_changed_file_lints.sh origin/master: no new issuesfood_estimate_vorrat_flow_testadds no photos)Open review findings, not changed
imageUrltoday.buildFoodEstimateItemwould dropphotoUrls; S3 (level chip) must keep them.No visible UI change, so no phone-test step.
🤖 Generated with Claude Code