code wiki / meal
topic: meal
13 modules sharing the meal name family (derived from the tree's prefix discipline).
The 'meal' topic family in the Nishi sovereign ecosystem manages the lifecycle of meal data, from capturing origin recipes to rendering them as sovereign pages. nx_meal_capture preserves recipe pages into the WARC, while nx_meal_cost bridges pantry and price data to calculate costs. nx_meal_page composes all provenance, pantry, price, and plan data into a zero-JS surface, ensuring idempotent rendering and end-to-end reliability.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| nx_meal_capture.nx | MAIN: preserve ONE origin recipe page into the sovereign WARC, correctly. | 185 | 4 |
| nx_meal_cost.nx | LIB: the PANTRY x PRICE bridge. nx_pantry knows what a unit already HAS; nx_price knows | 195 | 14 |
| nx_meal_cost_gate.nx | proves the pantry x price bridge on per-run /tmp fixtures (never its own history). | 148 | 1 |
| nx_meal_effort.nx | LIB: OPPORTUNITY COST. "Is cooking this actually the right use of my evening?" | 490 | 36 |
| nx_meal_effort_gate.nx | proves the opportunity-cost engine on per-run /tmp fixtures. | 162 | 1 |
| nx_meal_emit.nx | MAIN: SEED the meal stores and RENDER the page. Idempotent end to end (rule 10): every | 187 | 5 |
| nx_meal_page.nx | THE SURFACE. Composes provenance + pantry + price + plan into one sovereign, zero-JS, | 391 | 6 |
| nx_meal_page_gate.nx | proves the SHIPPED surface. Until this existed, kitchen.html was the one live artifact | 157 | 2 |
| nx_meal_plan.nx | LIB: the RECIPE + UNIT spine of the meal planner. | 380 | 28 |
| nx_meal_plan_gate.nx | proves the recipe/unit spine on per-run /tmp fixtures. The BITE cell guards the | 122 | 1 |
| nx_meal_skills_page.nx | the SKILLS surface: what a dish actually asks of you, what it would cost to skip, | 299 | 6 |
| nx_meal_source.nx | LIB: the LINK-ROT-PROOF provenance spine of the meal planner. Every recipe rendered | 239 | 20 |
| nx_meal_source_gate.nx | proves the meal planner's LINK-ROT defence is real rather than promised, on the | 110 | 1 |