Relax protein to 1.7 g/kg; add rational-portion guard + weekly protein floor

- diet.protein_per_kg 2 -> 1.7 g/kg (evidence ceiling for trained/resistance-adapted adults)
  daily target 190-200 -> 165-175 g/day, ~80-90 g/meal
- weekly non-whey protein floor 1330 -> 1190 g (170 g/day x 7), still excl whey
- SKILL.md: RATIONAL PORTIONS hard rule (per-item max_per_meal caps, no single-ingredient
  overload, honest shortfall reporting); WEEKLY PROTEIN FLOOR (>=3 sources, none >50%)
- inventory.json: per-item max_per_meal caps + rational_portions defaults table
- scripts/verify_portions.py: regression probe for overload/cap violations
- README + references synced to 1.7 g/kg; .idea/.agentbridge gitignored
This commit is contained in:
hermes
2026-08-29 07:50:16 +01:00
parent fb80f6a3dd
commit 33b7e17ef9
6 changed files with 229 additions and 16 deletions

View File

@ -1,7 +1,7 @@
# Meal Suggestion — Kitchen Inventory + High-Protein Meals
An automated, research-grounded meal system for a single user (jp): a recovering
burns victim on a **high-protein diet (~190200 g/day)** who is also losing fat,
burns victim on a **high-protein diet (~165175 g/day)** who is also losing fat,
and who wants to **avoid buying red meat**. It does two things on a schedule:
1. **Daily meal suggestions** — two meals (lunch + dinner) built only from what
@ -66,7 +66,7 @@ meal-suggestion/
│ ├── email-template.md # HTML email scaffold (inline CSS, mobile-friendly)
│ ├── food-health.md # Healing + 46yo health + easy/tasty meal research
│ ├── protein-sources.md # Allowed proteins + example pairings
│ ├── protein-targets.md # Protein math (2 g/kg)
│ ├── protein-targets.md # Protein math (1.7 g/kg)
│ ├── meal-history.md # 7-day logger spec + reconcile-from-inventory logic
│ └── eastbourne-shops.md # Shop price table (Lidl preferred)
├── scripts/
@ -86,7 +86,7 @@ is a synced mirror under `~/IdeaProjects/meal-suggestion/`. The two stay in step
## Core rules
- **High-protein target:** ~190200 g/day (≈2 g/kg at ~95100 kg, for burns
- **High-protein target:** ~165175 g/day (≈1.7 g/kg at ~95100 kg, for burns
recovery + lean-mass preservation during ~15 kg fat loss). Aim ~90100 g per
meal and **state the per-meal and daily protein totals** in the email.
- **Weight-loss framing:** mild calorie deficit via bulking with veg and going
@ -202,7 +202,7 @@ creds from `~/.hermes/.env`). Both HTML (inline CSS, mobile-friendly, dark-on-li
and a plain-text alternative are produced so the plan survives HTML-stripping
clients.
- **Daily:** header (date + `high-protein · ~190200g/day · no red meat bought`),
- **Daily:** header (date + `high-protein · ~165175g/day · no red meat bought`),
two meal cards (name, ingredients, 23 step method, protein total, short
"health boost" note), footer (`Reply to tell me what you used and I'll update
the inventory`).