feat: add context-aware meal fit engine

This commit is contained in:
OpenClaw Bot
2026-05-23 12:45:25 +02:00
parent 0bbbc1d154
commit 3ac82e65fe
5 changed files with 481 additions and 0 deletions
+6
View File
@@ -65,6 +65,12 @@ Meal planning should be a native Oikos kitchen workflow, not a chatbot shortcut.
- [x] Structural E2E asserts Studio plans expose modulator labels and active signal types, so planning context is not hidden in opaque AI text.
- [x] Playwright artifacts are opt-in to reduce credential leak risk.
### Context-aware family logistics engine
- [x] Added deterministic meal-fit service for the next planning slice: day context, energy, guests, cleanup, interruption tolerance, concrete inventory/leftover use, preferences/allergies, recency, and grocery delta all affect ranking before AI gets involved.
- [x] Added `/api/v1/meal-planning/suggestions` as a thin native API boundary returning ranked suggestions plus optional generated grocery output.
- [x] Added `test:meal-fit` acceptance coverage proving busy/low-energy days, guest days, allergy blocks, dislike/repetition, concrete inventory matching, and grocery dedupe change outputs materially.
## Remaining Combined Plan
### P0 — Upstream/Core polish before PR