diff --git a/.changeset/kitchen-mise-en-place-schedules.md b/.changeset/kitchen-mise-en-place-schedules.md new file mode 100644 index 00000000..4c3350bb --- /dev/null +++ b/.changeset/kitchen-mise-en-place-schedules.md @@ -0,0 +1,10 @@ +--- +"@gram-lang/kitchen": minor +--- + +**Kitchen**: Recipes now know when each part of the mise en place should happen: + +- Each section reports how long its own preparation takes (new `miseEnPlace` field) +- Two complete timelines are provided: preparation right before each section (`schedules.perSection`) or all of it at the start (`schedules.upfront`) +- The compiled recipe now says which version produced it (new `generator` field) +- Step `timings`, `backgroundTasks` and the `metrics` time breakdowns are deprecated and will be removed in 2.0.0 — read `schedules` instead diff --git a/conformance/README.md b/conformance/README.md index 69a0464c..64fd529c 100644 --- a/conformance/README.md +++ b/conformance/README.md @@ -171,3 +171,7 @@ suitable for CI. sibling `.gram` files inside the same case directory. `ast.json` still documents `getAST(input.gram)` alone (unresolved `imports`); `compiled.json` / `analyzed.json` reflect the fully composed, spliced document. + +## The `generator` field + +Compiled and analyzed results carry a `generator` field (`@gram-lang/kitchen@`). The runner drops it before writing or comparing `compiled.json` / `analyzed.json`, since it changes on every release. Every other field is compared as usual. diff --git a/conformance/cases/001-minimal/analyzed.json b/conformance/cases/001-minimal/analyzed.json index 16befd63..16239e21 100644 --- a/conformance/cases/001-minimal/analyzed.json +++ b/conformance/cases/001-minimal/analyzed.json @@ -122,5 +122,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/001-minimal/compiled.json b/conformance/cases/001-minimal/compiled.json index c6b53810..564c5ed3 100644 --- a/conformance/cases/001-minimal/compiled.json +++ b/conformance/cases/001-minimal/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/002-basic-ingredients/analyzed.json b/conformance/cases/002-basic-ingredients/analyzed.json index 60473913..9dd02415 100644 --- a/conformance/cases/002-basic-ingredients/analyzed.json +++ b/conformance/cases/002-basic-ingredients/analyzed.json @@ -243,5 +243,65 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + } + ] + } } } diff --git a/conformance/cases/002-basic-ingredients/compiled.json b/conformance/cases/002-basic-ingredients/compiled.json index 338c5c15..f4a508aa 100644 --- a/conformance/cases/002-basic-ingredients/compiled.json +++ b/conformance/cases/002-basic-ingredients/compiled.json @@ -181,5 +181,65 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + } + ] + } } } diff --git a/conformance/cases/003-quantity-forms/analyzed.json b/conformance/cases/003-quantity-forms/analyzed.json index 2f900ae2..8e4e4a74 100644 --- a/conformance/cases/003-quantity-forms/analyzed.json +++ b/conformance/cases/003-quantity-forms/analyzed.json @@ -280,5 +280,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 4, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + } + ] + } } } diff --git a/conformance/cases/003-quantity-forms/compiled.json b/conformance/cases/003-quantity-forms/compiled.json index dcc33d36..f58360c1 100644 --- a/conformance/cases/003-quantity-forms/compiled.json +++ b/conformance/cases/003-quantity-forms/compiled.json @@ -217,5 +217,59 @@ "duration": 4 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 4, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + } + ] + } } } diff --git a/conformance/cases/004-composite-ingredient/analyzed.json b/conformance/cases/004-composite-ingredient/analyzed.json index b9a4a7ed..343e2a21 100644 --- a/conformance/cases/004-composite-ingredient/analyzed.json +++ b/conformance/cases/004-composite-ingredient/analyzed.json @@ -132,5 +132,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/004-composite-ingredient/compiled.json b/conformance/cases/004-composite-ingredient/compiled.json index 3f533427..0c04c3a1 100644 --- a/conformance/cases/004-composite-ingredient/compiled.json +++ b/conformance/cases/004-composite-ingredient/compiled.json @@ -99,5 +99,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/005-alternative-ingredients/analyzed.json b/conformance/cases/005-alternative-ingredients/analyzed.json index 9ec8acc5..cd375060 100644 --- a/conformance/cases/005-alternative-ingredients/analyzed.json +++ b/conformance/cases/005-alternative-ingredients/analyzed.json @@ -147,5 +147,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/005-alternative-ingredients/compiled.json b/conformance/cases/005-alternative-ingredients/compiled.json index a2db34c5..32b5d2ce 100644 --- a/conformance/cases/005-alternative-ingredients/compiled.json +++ b/conformance/cases/005-alternative-ingredients/compiled.json @@ -114,5 +114,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/006-modifiers/analyzed.json b/conformance/cases/006-modifiers/analyzed.json index c11bc681..3a93ac76 100644 --- a/conformance/cases/006-modifiers/analyzed.json +++ b/conformance/cases/006-modifiers/analyzed.json @@ -331,5 +331,73 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 5, + "duration": 5 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + } + ] + } } } diff --git a/conformance/cases/006-modifiers/compiled.json b/conformance/cases/006-modifiers/compiled.json index e3a2fc0b..99015a01 100644 --- a/conformance/cases/006-modifiers/compiled.json +++ b/conformance/cases/006-modifiers/compiled.json @@ -255,5 +255,73 @@ "duration": 5 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 5, + "duration": 5 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + } + ] + } } } diff --git a/conformance/cases/007-cookware-timer-temperature/analyzed.json b/conformance/cases/007-cookware-timer-temperature/analyzed.json index 6d4a15ff..b724eeba 100644 --- a/conformance/cases/007-cookware-timer-temperature/analyzed.json +++ b/conformance/cases/007-cookware-timer-temperature/analyzed.json @@ -166,5 +166,81 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 4, + "items": [ + { + "kind": "gather", + "target": "cookware", + "count": 2, + "duration": 2 + }, + { + "kind": "prepare", + "ref": { + "type": "cookware", + "id": "big-pot" + }, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 39, + "idleTime": 30, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 9 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 9, + "end": 39 + } + ] + }, + "upfront": { + "totalTime": 39, + "idleTime": 30, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 9 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 9, + "end": 39 + } + ] + } } } diff --git a/conformance/cases/007-cookware-timer-temperature/compiled.json b/conformance/cases/007-cookware-timer-temperature/compiled.json index 8d942ab1..36154572 100644 --- a/conformance/cases/007-cookware-timer-temperature/compiled.json +++ b/conformance/cases/007-cookware-timer-temperature/compiled.json @@ -148,5 +148,81 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 4, + "items": [ + { + "kind": "gather", + "target": "cookware", + "count": 2, + "duration": 2 + }, + { + "kind": "prepare", + "ref": { + "type": "cookware", + "id": "big-pot" + }, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 39, + "idleTime": 30, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 9 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 9, + "end": 39 + } + ] + }, + "upfront": { + "totalTime": 39, + "idleTime": 30, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 9 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 9, + "end": 39 + } + ] + } } } diff --git a/conformance/cases/008-intermediates-and-references/analyzed.json b/conformance/cases/008-intermediates-and-references/analyzed.json index 7ec35c43..dc790014 100644 --- a/conformance/cases/008-intermediates-and-references/analyzed.json +++ b/conformance/cases/008-intermediates-and-references/analyzed.json @@ -239,5 +239,97 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + }, + "upfront": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + } } } diff --git a/conformance/cases/008-intermediates-and-references/compiled.json b/conformance/cases/008-intermediates-and-references/compiled.json index f676cce7..60e9893b 100644 --- a/conformance/cases/008-intermediates-and-references/compiled.json +++ b/conformance/cases/008-intermediates-and-references/compiled.json @@ -184,5 +184,97 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + }, + "upfront": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + } } } diff --git a/conformance/cases/009-comments/analyzed.json b/conformance/cases/009-comments/analyzed.json index 0a7f3acc..3488fcc2 100644 --- a/conformance/cases/009-comments/analyzed.json +++ b/conformance/cases/009-comments/analyzed.json @@ -142,5 +142,73 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/009-comments/compiled.json b/conformance/cases/009-comments/compiled.json index 1a710995..f90c0b26 100644 --- a/conformance/cases/009-comments/compiled.json +++ b/conformance/cases/009-comments/compiled.json @@ -104,5 +104,73 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/010-relative-quantity/analyzed.json b/conformance/cases/010-relative-quantity/analyzed.json index dcddcea9..c212f28b 100644 --- a/conformance/cases/010-relative-quantity/analyzed.json +++ b/conformance/cases/010-relative-quantity/analyzed.json @@ -189,5 +189,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/010-relative-quantity/compiled.json b/conformance/cases/010-relative-quantity/compiled.json index 768392cd..0de3a333 100644 --- a/conformance/cases/010-relative-quantity/compiled.json +++ b/conformance/cases/010-relative-quantity/compiled.json @@ -146,5 +146,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/011-full-frontmatter/analyzed.json b/conformance/cases/011-full-frontmatter/analyzed.json index 1b1b3739..49ba3f05 100644 --- a/conformance/cases/011-full-frontmatter/analyzed.json +++ b/conformance/cases/011-full-frontmatter/analyzed.json @@ -184,5 +184,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/011-full-frontmatter/compiled.json b/conformance/cases/011-full-frontmatter/compiled.json index b827f955..e551f932 100644 --- a/conformance/cases/011-full-frontmatter/compiled.json +++ b/conformance/cases/011-full-frontmatter/compiled.json @@ -129,5 +129,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/012-scale-factor-basic/analyzed.json b/conformance/cases/012-scale-factor-basic/analyzed.json index 490d7ab5..74e59fe1 100644 --- a/conformance/cases/012-scale-factor-basic/analyzed.json +++ b/conformance/cases/012-scale-factor-basic/analyzed.json @@ -195,5 +195,59 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/012-scale-factor-basic/compiled.json b/conformance/cases/012-scale-factor-basic/compiled.json index c9f708a7..6015cfa9 100644 --- a/conformance/cases/012-scale-factor-basic/compiled.json +++ b/conformance/cases/012-scale-factor-basic/compiled.json @@ -135,5 +135,59 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/013-scale-fixed-ingredient-not-scaled/analyzed.json b/conformance/cases/013-scale-fixed-ingredient-not-scaled/analyzed.json index 5ab3d27b..1f31f400 100644 --- a/conformance/cases/013-scale-fixed-ingredient-not-scaled/analyzed.json +++ b/conformance/cases/013-scale-fixed-ingredient-not-scaled/analyzed.json @@ -170,5 +170,59 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 3 } diff --git a/conformance/cases/013-scale-fixed-ingredient-not-scaled/compiled.json b/conformance/cases/013-scale-fixed-ingredient-not-scaled/compiled.json index 3cb2e33f..0b5bdd16 100644 --- a/conformance/cases/013-scale-fixed-ingredient-not-scaled/compiled.json +++ b/conformance/cases/013-scale-fixed-ingredient-not-scaled/compiled.json @@ -115,5 +115,59 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 3 } diff --git a/conformance/cases/014-scale-portions/analyzed.json b/conformance/cases/014-scale-portions/analyzed.json index 9ca05368..f009518c 100644 --- a/conformance/cases/014-scale-portions/analyzed.json +++ b/conformance/cases/014-scale-portions/analyzed.json @@ -166,5 +166,59 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/014-scale-portions/compiled.json b/conformance/cases/014-scale-portions/compiled.json index 02edc8e5..ed54f2f1 100644 --- a/conformance/cases/014-scale-portions/compiled.json +++ b/conformance/cases/014-scale-portions/compiled.json @@ -109,5 +109,59 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/015-scale-target-basic/analyzed.json b/conformance/cases/015-scale-target-basic/analyzed.json index 0e886630..104813e2 100644 --- a/conformance/cases/015-scale-target-basic/analyzed.json +++ b/conformance/cases/015-scale-target-basic/analyzed.json @@ -162,5 +162,59 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/015-scale-target-basic/compiled.json b/conformance/cases/015-scale-target-basic/compiled.json index fc291c11..a5cb1bc4 100644 --- a/conformance/cases/015-scale-target-basic/compiled.json +++ b/conformance/cases/015-scale-target-basic/compiled.json @@ -112,5 +112,59 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/016-scale-composite-parent-target/analyzed.json b/conformance/cases/016-scale-composite-parent-target/analyzed.json index 65117ed3..4ae3986a 100644 --- a/conformance/cases/016-scale-composite-parent-target/analyzed.json +++ b/conformance/cases/016-scale-composite-parent-target/analyzed.json @@ -133,5 +133,59 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/016-scale-composite-parent-target/compiled.json b/conformance/cases/016-scale-composite-parent-target/compiled.json index 3cd8df9d..c5d9381b 100644 --- a/conformance/cases/016-scale-composite-parent-target/compiled.json +++ b/conformance/cases/016-scale-composite-parent-target/compiled.json @@ -100,5 +100,59 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "scaleFactor": 2 } diff --git a/conformance/cases/017-shopping-list-cross-section-aggregation/analyzed.json b/conformance/cases/017-shopping-list-cross-section-aggregation/analyzed.json index f9dc3eb0..0fef5be8 100644 --- a/conformance/cases/017-shopping-list-cross-section-aggregation/analyzed.json +++ b/conformance/cases/017-shopping-list-cross-section-aggregation/analyzed.json @@ -213,5 +213,73 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } } } diff --git a/conformance/cases/017-shopping-list-cross-section-aggregation/compiled.json b/conformance/cases/017-shopping-list-cross-section-aggregation/compiled.json index 2b2fcad8..706941d9 100644 --- a/conformance/cases/017-shopping-list-cross-section-aggregation/compiled.json +++ b/conformance/cases/017-shopping-list-cross-section-aggregation/compiled.json @@ -152,5 +152,73 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } } } diff --git a/conformance/cases/018-shopping-list-composite-across-sections/analyzed.json b/conformance/cases/018-shopping-list-composite-across-sections/analyzed.json index c4e3a7e0..ac405a47 100644 --- a/conformance/cases/018-shopping-list-composite-across-sections/analyzed.json +++ b/conformance/cases/018-shopping-list-composite-across-sections/analyzed.json @@ -263,5 +263,111 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + } } } diff --git a/conformance/cases/018-shopping-list-composite-across-sections/compiled.json b/conformance/cases/018-shopping-list-composite-across-sections/compiled.json index fd134049..5f1d5b5c 100644 --- a/conformance/cases/018-shopping-list-composite-across-sections/compiled.json +++ b/conformance/cases/018-shopping-list-composite-across-sections/compiled.json @@ -198,5 +198,111 @@ "duration": 3 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + } } } diff --git a/conformance/cases/019-shopping-list-multiunit-across-sections/analyzed.json b/conformance/cases/019-shopping-list-multiunit-across-sections/analyzed.json index eeb991de..f2288db3 100644 --- a/conformance/cases/019-shopping-list-multiunit-across-sections/analyzed.json +++ b/conformance/cases/019-shopping-list-multiunit-across-sections/analyzed.json @@ -190,5 +190,73 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/019-shopping-list-multiunit-across-sections/compiled.json b/conformance/cases/019-shopping-list-multiunit-across-sections/compiled.json index d4f7ef14..db0de1ef 100644 --- a/conformance/cases/019-shopping-list-multiunit-across-sections/compiled.json +++ b/conformance/cases/019-shopping-list-multiunit-across-sections/compiled.json @@ -135,5 +135,73 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/020-section-retro-planning-valid/analyzed.json b/conformance/cases/020-section-retro-planning-valid/analyzed.json index fe4028ca..ce08433f 100644 --- a/conformance/cases/020-section-retro-planning-valid/analyzed.json +++ b/conformance/cases/020-section-retro-planning-valid/analyzed.json @@ -249,5 +249,97 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 2884, + "idleTime": 2877, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 2881, + "end": 2882 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2882, + "end": 2884 + } + ] + }, + "upfront": { + "totalTime": 2885, + "idleTime": 2878, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2883, + "end": 2885 + } + ] + } } } diff --git a/conformance/cases/020-section-retro-planning-valid/compiled.json b/conformance/cases/020-section-retro-planning-valid/compiled.json index b778787d..484d62be 100644 --- a/conformance/cases/020-section-retro-planning-valid/compiled.json +++ b/conformance/cases/020-section-retro-planning-valid/compiled.json @@ -172,5 +172,97 @@ "duration": 3 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 2884, + "idleTime": 2877, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 2881, + "end": 2882 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2882, + "end": 2884 + } + ] + }, + "upfront": { + "totalTime": 2885, + "idleTime": 2878, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2883, + "end": 2885 + } + ] + } } } diff --git a/conformance/cases/021-section-retro-planning-invalid-free-text/analyzed.json b/conformance/cases/021-section-retro-planning-invalid-free-text/analyzed.json index 6cd717c2..43983593 100644 --- a/conformance/cases/021-section-retro-planning-invalid-free-text/analyzed.json +++ b/conformance/cases/021-section-retro-planning-invalid-free-text/analyzed.json @@ -178,5 +178,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/021-section-retro-planning-invalid-free-text/compiled.json b/conformance/cases/021-section-retro-planning-invalid-free-text/compiled.json index 9c6a7bf8..93ae5ddf 100644 --- a/conformance/cases/021-section-retro-planning-invalid-free-text/compiled.json +++ b/conformance/cases/021-section-retro-planning-invalid-free-text/compiled.json @@ -124,5 +124,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/022-section-retro-planning-unsigned-rejected/analyzed.json b/conformance/cases/022-section-retro-planning-unsigned-rejected/analyzed.json index 1026b7f6..ad068336 100644 --- a/conformance/cases/022-section-retro-planning-unsigned-rejected/analyzed.json +++ b/conformance/cases/022-section-retro-planning-unsigned-rejected/analyzed.json @@ -178,5 +178,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/022-section-retro-planning-unsigned-rejected/compiled.json b/conformance/cases/022-section-retro-planning-unsigned-rejected/compiled.json index 7be9ccfe..3af89c8a 100644 --- a/conformance/cases/022-section-retro-planning-unsigned-rejected/compiled.json +++ b/conformance/cases/022-section-retro-planning-unsigned-rejected/compiled.json @@ -124,5 +124,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/023-composite-bare-child/analyzed.json b/conformance/cases/023-composite-bare-child/analyzed.json index 16ad1e67..13d6aca7 100644 --- a/conformance/cases/023-composite-bare-child/analyzed.json +++ b/conformance/cases/023-composite-bare-child/analyzed.json @@ -126,5 +126,59 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/023-composite-bare-child/compiled.json b/conformance/cases/023-composite-bare-child/compiled.json index 69692a8a..050a8df9 100644 --- a/conformance/cases/023-composite-bare-child/compiled.json +++ b/conformance/cases/023-composite-bare-child/compiled.json @@ -104,5 +104,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/024-composite-parent-preparation/analyzed.json b/conformance/cases/024-composite-parent-preparation/analyzed.json index 5d289e1a..6d2978a6 100644 --- a/conformance/cases/024-composite-parent-preparation/analyzed.json +++ b/conformance/cases/024-composite-parent-preparation/analyzed.json @@ -134,5 +134,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/024-composite-parent-preparation/compiled.json b/conformance/cases/024-composite-parent-preparation/compiled.json index 8c2f0b55..7948ab64 100644 --- a/conformance/cases/024-composite-parent-preparation/compiled.json +++ b/conformance/cases/024-composite-parent-preparation/compiled.json @@ -101,5 +101,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/025-fraction-decimal-numerator/analyzed.json b/conformance/cases/025-fraction-decimal-numerator/analyzed.json index 0e994550..30baf0ed 100644 --- a/conformance/cases/025-fraction-decimal-numerator/analyzed.json +++ b/conformance/cases/025-fraction-decimal-numerator/analyzed.json @@ -129,5 +129,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/025-fraction-decimal-numerator/compiled.json b/conformance/cases/025-fraction-decimal-numerator/compiled.json index d0f560a9..4acd11c5 100644 --- a/conformance/cases/025-fraction-decimal-numerator/compiled.json +++ b/conformance/cases/025-fraction-decimal-numerator/compiled.json @@ -96,5 +96,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/026-fraction-zero-denominator/analyzed.json b/conformance/cases/026-fraction-zero-denominator/analyzed.json index 02a9ccab..f09f44fd 100644 --- a/conformance/cases/026-fraction-zero-denominator/analyzed.json +++ b/conformance/cases/026-fraction-zero-denominator/analyzed.json @@ -102,5 +102,59 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/026-fraction-zero-denominator/compiled.json b/conformance/cases/026-fraction-zero-denominator/compiled.json index 41570944..b5d7fe8b 100644 --- a/conformance/cases/026-fraction-zero-denominator/compiled.json +++ b/conformance/cases/026-fraction-zero-denominator/compiled.json @@ -80,5 +80,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/027-empty-section-scheduling/analyzed.json b/conformance/cases/027-empty-section-scheduling/analyzed.json index fd956bff..05b5a83e 100644 --- a/conformance/cases/027-empty-section-scheduling/analyzed.json +++ b/conformance/cases/027-empty-section-scheduling/analyzed.json @@ -120,5 +120,48 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + }, + "upfront": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + } } } diff --git a/conformance/cases/027-empty-section-scheduling/compiled.json b/conformance/cases/027-empty-section-scheduling/compiled.json index 308dfd6f..a1d60922 100644 --- a/conformance/cases/027-empty-section-scheduling/compiled.json +++ b/conformance/cases/027-empty-section-scheduling/compiled.json @@ -92,5 +92,48 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + }, + "upfront": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + } } } diff --git a/conformance/cases/028-comment-only-section-scheduling/analyzed.json b/conformance/cases/028-comment-only-section-scheduling/analyzed.json index d08e15f0..fc4caccb 100644 --- a/conformance/cases/028-comment-only-section-scheduling/analyzed.json +++ b/conformance/cases/028-comment-only-section-scheduling/analyzed.json @@ -126,5 +126,48 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + }, + "upfront": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + } } } diff --git a/conformance/cases/028-comment-only-section-scheduling/compiled.json b/conformance/cases/028-comment-only-section-scheduling/compiled.json index c101def9..49e4c1f6 100644 --- a/conformance/cases/028-comment-only-section-scheduling/compiled.json +++ b/conformance/cases/028-comment-only-section-scheduling/compiled.json @@ -98,5 +98,48 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + }, + "upfront": { + "totalTime": 62, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 60 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 60, + "end": 62 + } + ] + } } } diff --git a/conformance/cases/029-frontmatter-proto-key-inert/analyzed.json b/conformance/cases/029-frontmatter-proto-key-inert/analyzed.json index 9f4080ba..782b69a9 100644 --- a/conformance/cases/029-frontmatter-proto-key-inert/analyzed.json +++ b/conformance/cases/029-frontmatter-proto-key-inert/analyzed.json @@ -122,5 +122,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/029-frontmatter-proto-key-inert/compiled.json b/conformance/cases/029-frontmatter-proto-key-inert/compiled.json index f5a2f52e..46dcd5a3 100644 --- a/conformance/cases/029-frontmatter-proto-key-inert/compiled.json +++ b/conformance/cases/029-frontmatter-proto-key-inert/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/030-composite-parent-already-introduced/analyzed.json b/conformance/cases/030-composite-parent-already-introduced/analyzed.json index 5a2b99d4..36d13acb 100644 --- a/conformance/cases/030-composite-parent-already-introduced/analyzed.json +++ b/conformance/cases/030-composite-parent-already-introduced/analyzed.json @@ -165,5 +165,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/030-composite-parent-already-introduced/compiled.json b/conformance/cases/030-composite-parent-already-introduced/compiled.json index 99096076..e0c44066 100644 --- a/conformance/cases/030-composite-parent-already-introduced/compiled.json +++ b/conformance/cases/030-composite-parent-already-introduced/compiled.json @@ -122,5 +122,59 @@ "duration": 3 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/031-unit-abbreviations/analyzed.json b/conformance/cases/031-unit-abbreviations/analyzed.json index 40413bfb..2e694468 100644 --- a/conformance/cases/031-unit-abbreviations/analyzed.json +++ b/conformance/cases/031-unit-abbreviations/analyzed.json @@ -333,5 +333,87 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 6, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 6, + "duration": 6 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 12, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 8, + "end": 10 + }, + { + "kind": "step", + "section": 0, + "step": 2, + "start": 10, + "end": 12 + } + ] + }, + "upfront": { + "totalTime": 12, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 8, + "end": 10 + }, + { + "kind": "step", + "section": 0, + "step": 2, + "start": 10, + "end": 12 + } + ] + } } } diff --git a/conformance/cases/031-unit-abbreviations/compiled.json b/conformance/cases/031-unit-abbreviations/compiled.json index 8245ca11..fa78c28e 100644 --- a/conformance/cases/031-unit-abbreviations/compiled.json +++ b/conformance/cases/031-unit-abbreviations/compiled.json @@ -250,5 +250,87 @@ "duration": 6 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 6, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 6, + "duration": 6 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 12, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 8, + "end": 10 + }, + { + "kind": "step", + "section": 0, + "step": 2, + "start": 10, + "end": 12 + } + ] + }, + "upfront": { + "totalTime": 12, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 8, + "end": 10 + }, + { + "kind": "step", + "section": 0, + "step": 2, + "start": 10, + "end": 12 + } + ] + } } } diff --git a/conformance/cases/032-mise-en-place-per-section/analyzed.json b/conformance/cases/032-mise-en-place-per-section/analyzed.json new file mode 100644 index 00000000..b76d42c2 --- /dev/null +++ b/conformance/cases/032-mise-en-place-per-section/analyzed.json @@ -0,0 +1,660 @@ +{ + "title": "Mise en place per section", + "slug": "mise-en-place-per-section", + "meta": { + "title": "Mise en place per section" + }, + "registry": { + "ingredients": { + "dough": { + "id": "dough", + "name": "dough", + "is_intermediate": true + }, + "flour": { + "id": "flour", + "name": "flour", + "default_unit": "g" + }, + "water": { + "id": "water", + "name": "water", + "default_unit": "ml" + }, + "yeast": { + "id": "yeast", + "name": "yeast", + "default_unit": "g" + }, + "filling": { + "id": "filling", + "name": "filling", + "is_intermediate": true + }, + "onions": { + "id": "onions", + "name": "onions", + "default_unit": "g" + }, + "butter": { + "id": "butter", + "name": "butter", + "default_unit": "g" + } + }, + "cookware": { + "bowl": { + "id": "bowl", + "name": "bowl" + }, + "pan": { + "id": "pan", + "name": "pan" + } + } + }, + "shopping_list": [ + { + "id": "flour", + "name": "flour", + "_usageIds": [ + "1" + ], + "qty": 500, + "unit": "g", + "normalizedMass": 500, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "water", + "name": "water", + "_usageIds": [ + "2" + ], + "qty": 300, + "unit": "ml" + }, + { + "id": "yeast", + "name": "yeast", + "_usageIds": [ + "3" + ], + "qty": 5, + "unit": "g", + "normalizedMass": 5, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "onions", + "name": "onions", + "_usageIds": [ + "5" + ], + "qty": 200, + "unit": "g", + "normalizedMass": 200, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "butter", + "name": "butter", + "_usageIds": [ + "6" + ], + "qty": 30, + "unit": "g", + "normalizedMass": 30, + "isEstimate": false, + "conversionMethod": "physical" + } + ], + "cookware": [ + { + "id": "bowl", + "_usageId": "4", + "fixed": false + }, + { + "id": "pan", + "_usageId": "7", + "fixed": false + } + ], + "sections": [ + { + "title": "Dough", + "ingredients": [ + { + "id": "flour", + "_usageId": "1", + "qty": 500, + "unit": "g", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 500 + }, + { + "id": "water", + "_usageId": "2", + "qty": 300, + "unit": "ml" + }, + { + "id": "yeast", + "_usageId": "3", + "qty": 5, + "unit": "g", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 5 + } + ], + "cookware": [ + { + "id": "bowl", + "_usageId": "4", + "fixed": false + } + ], + "steps": [ + { + "type": "step", + "content": [ + "Mix ", + { + "id": "flour", + "_usageId": "1", + "qty": 500, + "unit": "g", + "normalizedMass": 500, + "conversionMethod": "physical", + "isEstimate": false + }, + ", ", + { + "id": "water", + "_usageId": "2", + "qty": 300, + "unit": "ml" + }, + "and ", + { + "id": "yeast", + "_usageId": "3", + "qty": 5, + "unit": "g", + "normalizedMass": 5, + "conversionMethod": "physical", + "isEstimate": false + }, + "in a ", + { + "id": "bowl", + "_usageId": "4", + "fixed": false + }, + "." + ], + "timings": { + "start": 0, + "end": 2, + "activeDuration": 2 + } + }, + { + "type": "step", + "content": [ + "Let the dough rest ", + { + "type": "timer", + "isPassive": true, + "quantity": { + "type": "single", + "value": 2, + "text": "2" + }, + "unit": "h" + }, + "." + ], + "timings": { + "start": 2, + "end": 2, + "activeDuration": 0 + }, + "backgroundTasks": [ + { + "duration": 120, + "startOffset": 0 + } + ], + "action": "Rest" + } + ], + "intermediate_preparation": "dough", + "metrics": { + "totalMass": 505, + "massStatus": "incomplete", + "missingMassIngredients": [ + "water" + ] + } + }, + { + "title": "Filling", + "ingredients": [ + { + "id": "onions", + "_usageId": "5", + "qty": 200, + "unit": "g", + "preparation": "finely sliced", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 200 + }, + { + "id": "butter", + "_usageId": "6", + "qty": 30, + "unit": "g", + "preparation": "cut into cubes", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 30 + } + ], + "cookware": [ + { + "id": "pan", + "_usageId": "7", + "fixed": false + } + ], + "steps": [ + { + "type": "step", + "content": [ + "Cook ", + { + "id": "onions", + "_usageId": "5", + "qty": 200, + "unit": "g", + "preparation": "finely sliced", + "normalizedMass": 200, + "conversionMethod": "physical", + "isEstimate": false + }, + "with ", + { + "id": "butter", + "_usageId": "6", + "qty": 30, + "unit": "g", + "preparation": "cut into cubes", + "normalizedMass": 30, + "conversionMethod": "physical", + "isEstimate": false + }, + "in a ", + { + "id": "pan", + "_usageId": "7", + "fixed": false + }, + "." + ], + "timings": { + "start": 120, + "end": 122, + "activeDuration": 2 + } + } + ], + "intermediate_preparation": "filling", + "metrics": { + "totalMass": 230, + "massStatus": "precise", + "missingMassIngredients": [] + } + }, + { + "title": "Assembly", + "ingredients": [ + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + { + "type": "reference", + "id": "dough", + "name": "dough", + "_usageId": "9" + } + ], + "cookware": [], + "steps": [ + { + "type": "step", + "content": [ + "Spread ", + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + "over ", + { + "type": "reference", + "id": "dough", + "name": "dough", + "_usageId": "9" + }, + ", then bake for ", + { + "type": "timer", + "quantity": { + "type": "single", + "value": 25, + "text": "25" + }, + "unit": "min" + }, + "." + ], + "timings": { + "start": 122, + "end": 147, + "activeDuration": 25 + } + } + ], + "metrics": { + "totalMass": 0, + "massStatus": "incomplete", + "missingMassIngredients": [] + } + } + ], + "warnings": [ + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "UNKNOWN_MASS", + "message": "Cannot calculate mass for \"water\" — omitted from nutritional totals." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"yeast\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"onions\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"butter\" not found in database — nutritional metrics and density conversions unavailable." + } + ], + "metrics": { + "totalTime": 160, + "totalBreakdown": [ + { + "label": "section_active:Dough", + "duration": 2 + }, + { + "label": "timer_passive", + "duration": 120 + }, + { + "label": "section_active:Assembly", + "duration": 25 + } + ], + "idleTime": 118, + "activeTime": 29, + "activeBreakdown": [ + { + "label": "section_active:Dough", + "duration": 2 + }, + { + "label": "section_active:Filling", + "duration": 2 + }, + { + "label": "section_active:Assembly", + "duration": 25 + } + ], + "preparationTime": 13, + "prepBreakdown": [ + { + "label": "ingredients_overhead", + "duration": 7 + }, + { + "label": "cookware_overhead", + "duration": 2 + }, + { + "label": "prep_onions", + "duration": 2 + }, + { + "label": "prep_butter", + "duration": 2 + } + ], + "totalMass": 735, + "massStatus": "incomplete", + "missingMassIngredients": [ + "water" + ], + "nutrition": { + "total": { + "calories": 0, + "fat": 0, + "carbs": 0, + "protein": 0 + }, + "isEstimate": false, + "coverage": 0, + "warnings": [ + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "UNKNOWN_MASS", + "message": "Cannot calculate mass for \"water\" — omitted from nutritional totals." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"yeast\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"onions\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"butter\" not found in database — nutritional metrics and density conversions unavailable." + } + ] + } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 1, + "duration": 8, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "onions" + }, + "duration": 2 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "butter" + }, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 152, + "idleTime": 110, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 7, + "end": 7 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 7, + "end": 127 + }, + { + "kind": "prep", + "section": 1, + "start": 117, + "end": 125 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 125, + "end": 127 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 127, + "end": 152 + } + ] + }, + "upfront": { + "totalTime": 160, + "idleTime": 118, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 13 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 13, + "end": 15 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 15, + "end": 15 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 15, + "end": 135 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 133, + "end": 135 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 135, + "end": 160 + } + ] + } + } +} diff --git a/conformance/cases/032-mise-en-place-per-section/ast.json b/conformance/cases/032-mise-en-place-per-section/ast.json new file mode 100644 index 00000000..e0b3968f --- /dev/null +++ b/conformance/cases/032-mise-en-place-per-section/ast.json @@ -0,0 +1,451 @@ +{ + "type": "Recipe", + "meta": { + "title": "Mise en place per section" + }, + "imports": [], + "children": [ + { + "type": "Section", + "title": "Dough", + "retroPlanning": null, + "intermediateDecl": { + "type": "IntermediateDecl", + "name": "dough", + "loc": { + "start": 51, + "end": 59 + } + }, + "children": [ + { + "type": "Step", + "action": null, + "children": [ + { + "type": "Text", + "value": "Mix ", + "loc": { + "start": 61, + "end": 65 + } + }, + { + "type": "Ingredient", + "name": "flour", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 500, + "text": "500" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 72, + "end": 76 + } + }, + "alias": null, + "preparation": null, + "composite": null, + "loc": { + "start": 65, + "end": 77 + } + }, + { + "type": "Text", + "value": ", ", + "loc": { + "start": 77, + "end": 79 + } + }, + { + "type": "Ingredient", + "name": "water", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 300, + "text": "300" + }, + "unit": "ml", + "fixed": false, + "loc": { + "start": 86, + "end": 91 + } + }, + "alias": null, + "preparation": null, + "composite": null, + "loc": { + "start": 79, + "end": 92 + } + }, + { + "type": "Text", + "value": "and ", + "loc": { + "start": 93, + "end": 97 + } + }, + { + "type": "Ingredient", + "name": "yeast", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 5, + "text": "5" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 104, + "end": 106 + } + }, + "alias": null, + "preparation": null, + "composite": null, + "loc": { + "start": 97, + "end": 107 + } + }, + { + "type": "Text", + "value": "in a ", + "loc": { + "start": 108, + "end": 113 + } + }, + { + "type": "Cookware", + "name": "bowl", + "modifiers": [], + "alias": null, + "quantity": { + "type": "Quantity", + "fixed": false, + "loc": { + "start": 113, + "end": 118 + } + }, + "preparation": null, + "loc": { + "start": 113, + "end": 118 + } + }, + { + "type": "Text", + "value": ".", + "loc": { + "start": 118, + "end": 119 + } + } + ], + "loc": { + "start": 61, + "end": 121 + } + }, + { + "type": "Step", + "action": "Rest", + "children": [ + { + "type": "Text", + "value": "Let the dough rest ", + "loc": { + "start": 128, + "end": 147 + } + }, + { + "type": "Timer", + "name": null, + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 2, + "text": "2" + }, + "unit": "h", + "fixed": false, + "loc": { + "start": 150, + "end": 152 + } + }, + "isPassive": true, + "loc": { + "start": 147, + "end": 153 + } + }, + { + "type": "Text", + "value": ".", + "loc": { + "start": 153, + "end": 154 + } + } + ], + "loc": { + "start": 121, + "end": 156 + } + } + ], + "loc": { + "start": 42, + "end": 156 + } + }, + { + "type": "Section", + "title": "Filling", + "retroPlanning": null, + "intermediateDecl": { + "type": "IntermediateDecl", + "name": "filling", + "loc": { + "start": 167, + "end": 177 + } + }, + "children": [ + { + "type": "Step", + "action": null, + "children": [ + { + "type": "Text", + "value": "Cook ", + "loc": { + "start": 179, + "end": 184 + } + }, + { + "type": "Ingredient", + "name": "onions", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 200, + "text": "200" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 192, + "end": 196 + } + }, + "alias": null, + "preparation": "finely sliced", + "composite": null, + "loc": { + "start": 184, + "end": 212 + } + }, + { + "type": "Text", + "value": "with ", + "loc": { + "start": 213, + "end": 218 + } + }, + { + "type": "Ingredient", + "name": "butter", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 30, + "text": "30" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 226, + "end": 229 + } + }, + "alias": null, + "preparation": "cut into cubes", + "composite": null, + "loc": { + "start": 218, + "end": 246 + } + }, + { + "type": "Text", + "value": "in a ", + "loc": { + "start": 247, + "end": 252 + } + }, + { + "type": "Cookware", + "name": "pan", + "modifiers": [], + "alias": null, + "quantity": { + "type": "Quantity", + "fixed": false, + "loc": { + "start": 252, + "end": 256 + } + }, + "preparation": null, + "loc": { + "start": 252, + "end": 256 + } + }, + { + "type": "Text", + "value": ".", + "loc": { + "start": 256, + "end": 257 + } + } + ], + "loc": { + "start": 179, + "end": 259 + } + } + ], + "loc": { + "start": 156, + "end": 259 + } + }, + { + "type": "Section", + "title": "Assembly", + "retroPlanning": null, + "intermediateDecl": null, + "children": [ + { + "type": "Step", + "action": null, + "children": [ + { + "type": "Text", + "value": "Spread ", + "loc": { + "start": 272, + "end": 279 + } + }, + { + "type": "Reference", + "name": "filling", + "quantity": null, + "loc": { + "start": 279, + "end": 287 + } + }, + { + "type": "Text", + "value": "over ", + "loc": { + "start": 288, + "end": 293 + } + }, + { + "type": "Reference", + "name": "dough", + "quantity": null, + "loc": { + "start": 293, + "end": 299 + } + }, + { + "type": "Text", + "value": ", then bake for ", + "loc": { + "start": 299, + "end": 315 + } + }, + { + "type": "Timer", + "name": null, + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 25, + "text": "25" + }, + "unit": "min", + "fixed": false, + "loc": { + "start": 317, + "end": 322 + } + }, + "isPassive": false, + "loc": { + "start": 315, + "end": 323 + } + }, + { + "type": "Text", + "value": ".", + "loc": { + "start": 323, + "end": 324 + } + } + ], + "loc": { + "start": 272, + "end": 325 + } + } + ], + "loc": { + "start": 259, + "end": 325 + } + } + ] +} diff --git a/conformance/cases/032-mise-en-place-per-section/compiled.json b/conformance/cases/032-mise-en-place-per-section/compiled.json new file mode 100644 index 00000000..0165168f --- /dev/null +++ b/conformance/cases/032-mise-en-place-per-section/compiled.json @@ -0,0 +1,549 @@ +{ + "title": "Mise en place per section", + "slug": "mise-en-place-per-section", + "meta": { + "title": "Mise en place per section" + }, + "registry": { + "ingredients": { + "dough": { + "id": "dough", + "name": "dough", + "is_intermediate": true + }, + "flour": { + "id": "flour", + "name": "flour", + "default_unit": "g" + }, + "water": { + "id": "water", + "name": "water", + "default_unit": "ml" + }, + "yeast": { + "id": "yeast", + "name": "yeast", + "default_unit": "g" + }, + "filling": { + "id": "filling", + "name": "filling", + "is_intermediate": true + }, + "onions": { + "id": "onions", + "name": "onions", + "default_unit": "g" + }, + "butter": { + "id": "butter", + "name": "butter", + "default_unit": "g" + } + }, + "cookware": { + "bowl": { + "id": "bowl", + "name": "bowl" + }, + "pan": { + "id": "pan", + "name": "pan" + } + } + }, + "shopping_list": [ + { + "id": "flour", + "name": "flour", + "_usageIds": [ + "1" + ], + "qty": 500, + "unit": "g" + }, + { + "id": "water", + "name": "water", + "_usageIds": [ + "2" + ], + "qty": 300, + "unit": "ml" + }, + { + "id": "yeast", + "name": "yeast", + "_usageIds": [ + "3" + ], + "qty": 5, + "unit": "g" + }, + { + "id": "onions", + "name": "onions", + "_usageIds": [ + "5" + ], + "qty": 200, + "unit": "g" + }, + { + "id": "butter", + "name": "butter", + "_usageIds": [ + "6" + ], + "qty": 30, + "unit": "g" + } + ], + "cookware": [ + { + "id": "bowl", + "_usageId": "4", + "fixed": false + }, + { + "id": "pan", + "_usageId": "7", + "fixed": false + } + ], + "sections": [ + { + "title": "Dough", + "ingredients": [ + { + "id": "flour", + "_usageId": "1", + "qty": 500, + "unit": "g" + }, + { + "id": "water", + "_usageId": "2", + "qty": 300, + "unit": "ml" + }, + { + "id": "yeast", + "_usageId": "3", + "qty": 5, + "unit": "g" + } + ], + "cookware": [ + { + "id": "bowl", + "_usageId": "4", + "fixed": false + } + ], + "steps": [ + { + "type": "step", + "content": [ + "Mix ", + { + "id": "flour", + "_usageId": "1", + "qty": 500, + "unit": "g" + }, + ", ", + { + "id": "water", + "_usageId": "2", + "qty": 300, + "unit": "ml" + }, + "and ", + { + "id": "yeast", + "_usageId": "3", + "qty": 5, + "unit": "g" + }, + "in a ", + { + "id": "bowl", + "_usageId": "4", + "fixed": false + }, + "." + ], + "timings": { + "start": 0, + "end": 2, + "activeDuration": 2 + } + }, + { + "type": "step", + "content": [ + "Let the dough rest ", + { + "type": "timer", + "isPassive": true, + "quantity": { + "type": "single", + "value": 2, + "text": "2" + }, + "unit": "h" + }, + "." + ], + "timings": { + "start": 2, + "end": 2, + "activeDuration": 0 + }, + "backgroundTasks": [ + { + "duration": 120, + "startOffset": 0 + } + ], + "action": "Rest" + } + ], + "intermediate_preparation": "dough" + }, + { + "title": "Filling", + "ingredients": [ + { + "id": "onions", + "_usageId": "5", + "qty": 200, + "unit": "g", + "preparation": "finely sliced" + }, + { + "id": "butter", + "_usageId": "6", + "qty": 30, + "unit": "g", + "preparation": "cut into cubes" + } + ], + "cookware": [ + { + "id": "pan", + "_usageId": "7", + "fixed": false + } + ], + "steps": [ + { + "type": "step", + "content": [ + "Cook ", + { + "id": "onions", + "_usageId": "5", + "qty": 200, + "unit": "g", + "preparation": "finely sliced" + }, + "with ", + { + "id": "butter", + "_usageId": "6", + "qty": 30, + "unit": "g", + "preparation": "cut into cubes" + }, + "in a ", + { + "id": "pan", + "_usageId": "7", + "fixed": false + }, + "." + ], + "timings": { + "start": 120, + "end": 122, + "activeDuration": 2 + } + } + ], + "intermediate_preparation": "filling" + }, + { + "title": "Assembly", + "ingredients": [ + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + { + "type": "reference", + "id": "dough", + "name": "dough", + "_usageId": "9" + } + ], + "cookware": [], + "steps": [ + { + "type": "step", + "content": [ + "Spread ", + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + "over ", + { + "type": "reference", + "id": "dough", + "name": "dough", + "_usageId": "9" + }, + ", then bake for ", + { + "type": "timer", + "quantity": { + "type": "single", + "value": 25, + "text": "25" + }, + "unit": "min" + }, + "." + ], + "timings": { + "start": 122, + "end": 147, + "activeDuration": 25 + } + } + ] + } + ], + "warnings": [], + "metrics": { + "totalTime": 160, + "totalBreakdown": [ + { + "label": "section_active:Dough", + "duration": 2 + }, + { + "label": "timer_passive", + "duration": 120 + }, + { + "label": "section_active:Assembly", + "duration": 25 + } + ], + "idleTime": 118, + "activeTime": 29, + "activeBreakdown": [ + { + "label": "section_active:Dough", + "duration": 2 + }, + { + "label": "section_active:Filling", + "duration": 2 + }, + { + "label": "section_active:Assembly", + "duration": 25 + } + ], + "preparationTime": 13, + "prepBreakdown": [ + { + "label": "ingredients_overhead", + "duration": 7 + }, + { + "label": "cookware_overhead", + "duration": 2 + }, + { + "label": "prep_onions", + "duration": 2 + }, + { + "label": "prep_butter", + "duration": 2 + } + ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 1, + "duration": 8, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "onions" + }, + "duration": 2 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "butter" + }, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 152, + "idleTime": 110, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 7, + "end": 7 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 7, + "end": 127 + }, + { + "kind": "prep", + "section": 1, + "start": 117, + "end": 125 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 125, + "end": 127 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 127, + "end": 152 + } + ] + }, + "upfront": { + "totalTime": 160, + "idleTime": 118, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 13 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 13, + "end": 15 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 15, + "end": 15 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 15, + "end": 135 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 133, + "end": 135 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 135, + "end": 160 + } + ] + } + } +} diff --git a/conformance/cases/032-mise-en-place-per-section/input.gram b/conformance/cases/032-mise-en-place-per-section/input.gram new file mode 100644 index 00000000..7a7b892c --- /dev/null +++ b/conformance/cases/032-mise-en-place-per-section/input.gram @@ -0,0 +1,17 @@ +--- +title: Mise en place per section +--- + +## Dough ->&dough + +Mix @flour{500g}, @water{300ml} and @yeast{5g} in a #bowl. + +[Rest] Let the dough rest ~_{2h}. + +## Filling ->&filling + +Cook @onions{200g}(finely sliced) with @butter{30g}(cut into cubes) in a #pan. + +## Assembly + +Spread &filling over &dough, then bake for ~{25min}. diff --git a/conformance/cases/db-001-mass-standardization-basic/analyzed.json b/conformance/cases/db-001-mass-standardization-basic/analyzed.json index 6ce557e3..34e0ac8e 100644 --- a/conformance/cases/db-001-mass-standardization-basic/analyzed.json +++ b/conformance/cases/db-001-mass-standardization-basic/analyzed.json @@ -122,5 +122,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-001-mass-standardization-basic/compiled.json b/conformance/cases/db-001-mass-standardization-basic/compiled.json index 1ed153f9..2c6a8483 100644 --- a/conformance/cases/db-001-mass-standardization-basic/compiled.json +++ b/conformance/cases/db-001-mass-standardization-basic/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-002-nutrition-full-macros/analyzed.json b/conformance/cases/db-002-nutrition-full-macros/analyzed.json index 7a34c4e3..ca1f6ad7 100644 --- a/conformance/cases/db-002-nutrition-full-macros/analyzed.json +++ b/conformance/cases/db-002-nutrition-full-macros/analyzed.json @@ -157,5 +157,59 @@ "massStatus": "precise" } } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/db-002-nutrition-full-macros/compiled.json b/conformance/cases/db-002-nutrition-full-macros/compiled.json index 023ab604..89edd3b8 100644 --- a/conformance/cases/db-002-nutrition-full-macros/compiled.json +++ b/conformance/cases/db-002-nutrition-full-macros/compiled.json @@ -111,5 +111,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/db-003-nutrition-partial-coverage/analyzed.json b/conformance/cases/db-003-nutrition-partial-coverage/analyzed.json index cb7118f7..aae3014f 100644 --- a/conformance/cases/db-003-nutrition-partial-coverage/analyzed.json +++ b/conformance/cases/db-003-nutrition-partial-coverage/analyzed.json @@ -168,5 +168,59 @@ "massStatus": "precise" } } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/db-003-nutrition-partial-coverage/compiled.json b/conformance/cases/db-003-nutrition-partial-coverage/compiled.json index 96cd5574..ff72d9ed 100644 --- a/conformance/cases/db-003-nutrition-partial-coverage/compiled.json +++ b/conformance/cases/db-003-nutrition-partial-coverage/compiled.json @@ -111,5 +111,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/db-004-yield-and-unit-weight/analyzed.json b/conformance/cases/db-004-yield-and-unit-weight/analyzed.json index 0c591eea..d09e4428 100644 --- a/conformance/cases/db-004-yield-and-unit-weight/analyzed.json +++ b/conformance/cases/db-004-yield-and-unit-weight/analyzed.json @@ -121,5 +121,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-004-yield-and-unit-weight/compiled.json b/conformance/cases/db-004-yield-and-unit-weight/compiled.json index 3a13a6ae..eb8ffff1 100644 --- a/conformance/cases/db-004-yield-and-unit-weight/compiled.json +++ b/conformance/cases/db-004-yield-and-unit-weight/compiled.json @@ -80,5 +80,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-005-alias-resolution/analyzed.json b/conformance/cases/db-005-alias-resolution/analyzed.json index 7e5c81f1..137f6b7f 100644 --- a/conformance/cases/db-005-alias-resolution/analyzed.json +++ b/conformance/cases/db-005-alias-resolution/analyzed.json @@ -121,5 +121,59 @@ "massStatus": "precise" } } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-005-alias-resolution/compiled.json b/conformance/cases/db-005-alias-resolution/compiled.json index 741bacce..f1553aec 100644 --- a/conformance/cases/db-005-alias-resolution/compiled.json +++ b/conformance/cases/db-005-alias-resolution/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-006-shopping-aggregation-with-real-data/analyzed.json b/conformance/cases/db-006-shopping-aggregation-with-real-data/analyzed.json index 9c02edf1..ac3a85ac 100644 --- a/conformance/cases/db-006-shopping-aggregation-with-real-data/analyzed.json +++ b/conformance/cases/db-006-shopping-aggregation-with-real-data/analyzed.json @@ -172,5 +172,73 @@ "massStatus": "estimated" } } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/db-006-shopping-aggregation-with-real-data/compiled.json b/conformance/cases/db-006-shopping-aggregation-with-real-data/compiled.json index eb1b28f1..13e3c56c 100644 --- a/conformance/cases/db-006-shopping-aggregation-with-real-data/compiled.json +++ b/conformance/cases/db-006-shopping-aggregation-with-real-data/compiled.json @@ -135,5 +135,73 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + }, + "upfront": { + "totalTime": 5, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 3, + "end": 5 + } + ] + } } } diff --git a/conformance/cases/db-007-non-canonical-db-key/analyzed.json b/conformance/cases/db-007-non-canonical-db-key/analyzed.json index 1bd38e89..780420c7 100644 --- a/conformance/cases/db-007-non-canonical-db-key/analyzed.json +++ b/conformance/cases/db-007-non-canonical-db-key/analyzed.json @@ -121,5 +121,59 @@ "massStatus": "estimated" } } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/db-007-non-canonical-db-key/compiled.json b/conformance/cases/db-007-non-canonical-db-key/compiled.json index 5f0f146f..b3cf4a80 100644 --- a/conformance/cases/db-007-non-canonical-db-key/compiled.json +++ b/conformance/cases/db-007-non-canonical-db-key/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/mod-001-basic-default-import/analyzed.json b/conformance/cases/mod-001-basic-default-import/analyzed.json index 141cbe79..7c65c181 100644 --- a/conformance/cases/mod-001-basic-default-import/analyzed.json +++ b/conformance/cases/mod-001-basic-default-import/analyzed.json @@ -235,6 +235,74 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-001-basic-default-import/compiled.json b/conformance/cases/mod-001-basic-default-import/compiled.json index 0443c1b4..3788ce4d 100644 --- a/conformance/cases/mod-001-basic-default-import/compiled.json +++ b/conformance/cases/mod-001-basic-default-import/compiled.json @@ -169,6 +169,74 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-002-destructured-bindings/analyzed.json b/conformance/cases/mod-002-destructured-bindings/analyzed.json index 70d89228..e9c0bef6 100644 --- a/conformance/cases/mod-002-destructured-bindings/analyzed.json +++ b/conformance/cases/mod-002-destructured-bindings/analyzed.json @@ -321,6 +321,136 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 2, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "prep", + "section": 2, + "start": 7, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "prep", + "section": 2, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-002-destructured-bindings/compiled.json b/conformance/cases/mod-002-destructured-bindings/compiled.json index 72a0925b..6d977ff3 100644 --- a/conformance/cases/mod-002-destructured-bindings/compiled.json +++ b/conformance/cases/mod-002-destructured-bindings/compiled.json @@ -238,6 +238,136 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 2, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "prep", + "section": 2, + "start": 7, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "prep", + "section": 2, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-003-section-barrier/analyzed.json b/conformance/cases/mod-003-section-barrier/analyzed.json index 3ed1d722..2978b9cf 100644 --- a/conformance/cases/mod-003-section-barrier/analyzed.json +++ b/conformance/cases/mod-003-section-barrier/analyzed.json @@ -283,6 +283,102 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 11, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + } + ] + }, + "upfront": { + "totalTime": 11, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-003-section-barrier/compiled.json b/conformance/cases/mod-003-section-barrier/compiled.json index 5655a68d..59c36178 100644 --- a/conformance/cases/mod-003-section-barrier/compiled.json +++ b/conformance/cases/mod-003-section-barrier/compiled.json @@ -230,6 +230,102 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 11, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + } + ] + }, + "upfront": { + "totalTime": 11, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-004-cross-section-no-false-cycle/analyzed.json b/conformance/cases/mod-004-cross-section-no-false-cycle/analyzed.json index b7f765ad..230702cb 100644 --- a/conformance/cases/mod-004-cross-section-no-false-cycle/analyzed.json +++ b/conformance/cases/mod-004-cross-section-no-false-cycle/analyzed.json @@ -343,6 +343,116 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 13, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + }, + { + "kind": "step", + "section": 1, + "step": 2, + "start": 11, + "end": 13 + } + ] + }, + "upfront": { + "totalTime": 13, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + }, + { + "kind": "step", + "section": 1, + "step": 2, + "start": 11, + "end": 13 + } + ] + } + }, "modules": [ { "binding": "base", diff --git a/conformance/cases/mod-004-cross-section-no-false-cycle/compiled.json b/conformance/cases/mod-004-cross-section-no-false-cycle/compiled.json index 6e3d0036..bbdd96d6 100644 --- a/conformance/cases/mod-004-cross-section-no-false-cycle/compiled.json +++ b/conformance/cases/mod-004-cross-section-no-false-cycle/compiled.json @@ -320,6 +320,116 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 13, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + }, + { + "kind": "step", + "section": 1, + "step": 2, + "start": 11, + "end": 13 + } + ] + }, + "upfront": { + "totalTime": 13, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 9, + "end": 11 + }, + { + "kind": "step", + "section": 1, + "step": 2, + "start": 11, + "end": 13 + } + ] + } + }, "modules": [ { "binding": "base", diff --git a/conformance/cases/mod-005-yield-per-export/analyzed.json b/conformance/cases/mod-005-yield-per-export/analyzed.json index 63151b6d..550256f7 100644 --- a/conformance/cases/mod-005-yield-per-export/analyzed.json +++ b/conformance/cases/mod-005-yield-per-export/analyzed.json @@ -258,6 +258,112 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-005-yield-per-export/compiled.json b/conformance/cases/mod-005-yield-per-export/compiled.json index 8c28e168..c9eb64d1 100644 --- a/conformance/cases/mod-005-yield-per-export/compiled.json +++ b/conformance/cases/mod-005-yield-per-export/compiled.json @@ -199,6 +199,112 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-006-surplus-across-exports/analyzed.json b/conformance/cases/mod-006-surplus-across-exports/analyzed.json index d6e701b8..f3d94b78 100644 --- a/conformance/cases/mod-006-surplus-across-exports/analyzed.json +++ b/conformance/cases/mod-006-surplus-across-exports/analyzed.json @@ -281,6 +281,112 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-006-surplus-across-exports/compiled.json b/conformance/cases/mod-006-surplus-across-exports/compiled.json index a14a8eee..a3abbe27 100644 --- a/conformance/cases/mod-006-surplus-across-exports/compiled.json +++ b/conformance/cases/mod-006-surplus-across-exports/compiled.json @@ -216,6 +216,112 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-007-recursive-referenced-mass/analyzed.json b/conformance/cases/mod-007-recursive-referenced-mass/analyzed.json index 4433710a..58117701 100644 --- a/conformance/cases/mod-007-recursive-referenced-mass/analyzed.json +++ b/conformance/cases/mod-007-recursive-referenced-mass/analyzed.json @@ -287,6 +287,112 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "meringue", diff --git a/conformance/cases/mod-007-recursive-referenced-mass/compiled.json b/conformance/cases/mod-007-recursive-referenced-mass/compiled.json index ccb6a1c7..1102e075 100644 --- a/conformance/cases/mod-007-recursive-referenced-mass/compiled.json +++ b/conformance/cases/mod-007-recursive-referenced-mass/compiled.json @@ -223,6 +223,112 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "meringue", diff --git a/conformance/cases/mod-008-module-not-found/analyzed.json b/conformance/cases/mod-008-module-not-found/analyzed.json index fffafa3f..63d4d4a3 100644 --- a/conformance/cases/mod-008-module-not-found/analyzed.json +++ b/conformance/cases/mod-008-module-not-found/analyzed.json @@ -107,5 +107,59 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/mod-008-module-not-found/compiled.json b/conformance/cases/mod-008-module-not-found/compiled.json index b75a6cdb..cf409922 100644 --- a/conformance/cases/mod-008-module-not-found/compiled.json +++ b/conformance/cases/mod-008-module-not-found/compiled.json @@ -83,5 +83,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/mod-009-cycle/analyzed.json b/conformance/cases/mod-009-cycle/analyzed.json index dd981f30..3fcb6251 100644 --- a/conformance/cases/mod-009-cycle/analyzed.json +++ b/conformance/cases/mod-009-cycle/analyzed.json @@ -274,6 +274,88 @@ "coverage": 0 } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 6, + "end": 8 + } + ] + }, + "upfront": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 6, + "end": 8 + } + ] + } + }, "modules": [ { "binding": "b", diff --git a/conformance/cases/mod-009-cycle/compiled.json b/conformance/cases/mod-009-cycle/compiled.json index 959c2f03..32299e61 100644 --- a/conformance/cases/mod-009-cycle/compiled.json +++ b/conformance/cases/mod-009-cycle/compiled.json @@ -246,6 +246,88 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 6, + "end": 8 + } + ] + }, + "upfront": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 6, + "end": 8 + } + ] + } + }, "modules": [ { "binding": "b", diff --git a/conformance/cases/mod-010-scope-conflict/analyzed.json b/conformance/cases/mod-010-scope-conflict/analyzed.json index bacffa09..3788797e 100644 --- a/conformance/cases/mod-010-scope-conflict/analyzed.json +++ b/conformance/cases/mod-010-scope-conflict/analyzed.json @@ -225,6 +225,98 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-010-scope-conflict/compiled.json b/conformance/cases/mod-010-scope-conflict/compiled.json index 04439aa9..b0134c5b 100644 --- a/conformance/cases/mod-010-scope-conflict/compiled.json +++ b/conformance/cases/mod-010-scope-conflict/compiled.json @@ -166,6 +166,98 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-011-export-not-found/analyzed.json b/conformance/cases/mod-011-export-not-found/analyzed.json index ccae557e..461e6224 100644 --- a/conformance/cases/mod-011-export-not-found/analyzed.json +++ b/conformance/cases/mod-011-export-not-found/analyzed.json @@ -96,5 +96,34 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/mod-011-export-not-found/compiled.json b/conformance/cases/mod-011-export-not-found/compiled.json index 1565f9f7..cd27fbce 100644 --- a/conformance/cases/mod-011-export-not-found/compiled.json +++ b/conformance/cases/mod-011-export-not-found/compiled.json @@ -78,5 +78,34 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/mod-012-diamond-dependency/analyzed.json b/conformance/cases/mod-012-diamond-dependency/analyzed.json index 9054ceca..d3aa2809 100644 --- a/conformance/cases/mod-012-diamond-dependency/analyzed.json +++ b/conformance/cases/mod-012-diamond-dependency/analyzed.json @@ -391,6 +391,188 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 2, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 3, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 15, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "prep", + "section": 2, + "start": 7, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + }, + { + "kind": "prep", + "section": 3, + "start": 10, + "end": 11 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 11, + "end": 13 + }, + { + "kind": "step", + "section": 4, + "step": 0, + "start": 13, + "end": 15 + } + ] + }, + "upfront": { + "totalTime": 15, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "prep", + "section": 2, + "start": 3, + "end": 4 + }, + { + "kind": "prep", + "section": 3, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 9, + "end": 11 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 11, + "end": 13 + }, + { + "kind": "step", + "section": 4, + "step": 0, + "start": 13, + "end": 15 + } + ] + } + }, "modules": [ { "binding": "d", diff --git a/conformance/cases/mod-012-diamond-dependency/compiled.json b/conformance/cases/mod-012-diamond-dependency/compiled.json index 05527b6e..faa290d4 100644 --- a/conformance/cases/mod-012-diamond-dependency/compiled.json +++ b/conformance/cases/mod-012-diamond-dependency/compiled.json @@ -328,6 +328,188 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 2, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 3, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 15, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "prep", + "section": 2, + "start": 7, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + }, + { + "kind": "prep", + "section": 3, + "start": 10, + "end": 11 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 11, + "end": 13 + }, + { + "kind": "step", + "section": 4, + "step": 0, + "start": 13, + "end": 15 + } + ] + }, + "upfront": { + "totalTime": 15, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "prep", + "section": 2, + "start": 3, + "end": 4 + }, + { + "kind": "prep", + "section": 3, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 7, + "end": 9 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 9, + "end": 11 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 11, + "end": 13 + }, + { + "kind": "step", + "section": 4, + "step": 0, + "start": 13, + "end": 15 + } + ] + } + }, "modules": [ { "binding": "d", diff --git a/conformance/cases/mod-013-project-root-import/analyzed.json b/conformance/cases/mod-013-project-root-import/analyzed.json index ddc4f5b9..0faf027e 100644 --- a/conformance/cases/mod-013-project-root-import/analyzed.json +++ b/conformance/cases/mod-013-project-root-import/analyzed.json @@ -303,6 +303,112 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-013-project-root-import/compiled.json b/conformance/cases/mod-013-project-root-import/compiled.json index 67b728cf..388cbb69 100644 --- a/conformance/cases/mod-013-project-root-import/compiled.json +++ b/conformance/cases/mod-013-project-root-import/compiled.json @@ -226,6 +226,112 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-014-stocked-import/analyzed.json b/conformance/cases/mod-014-stocked-import/analyzed.json index 0eba3949..6fb682ec 100644 --- a/conformance/cases/mod-014-stocked-import/analyzed.json +++ b/conformance/cases/mod-014-stocked-import/analyzed.json @@ -127,6 +127,60 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-014-stocked-import/compiled.json b/conformance/cases/mod-014-stocked-import/compiled.json index 71fe6dfd..5b114f99 100644 --- a/conformance/cases/mod-014-stocked-import/compiled.json +++ b/conformance/cases/mod-014-stocked-import/compiled.json @@ -90,6 +90,60 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-015-use-level-retro-planning-multi-section/analyzed.json b/conformance/cases/mod-015-use-level-retro-planning-multi-section/analyzed.json index 2ce59016..84f0f6a6 100644 --- a/conformance/cases/mod-015-use-level-retro-planning-multi-section/analyzed.json +++ b/conformance/cases/mod-015-use-level-retro-planning-multi-section/analyzed.json @@ -322,6 +322,126 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 1459, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 18 + }, + { + "kind": "prep", + "section": 1, + "start": 18, + "end": 19 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 19, + "end": 19 + }, + { + "kind": "passive", + "section": 1, + "step": 0, + "start": 19, + "end": 79 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1457, + "end": 1459 + } + ] + }, + "upfront": { + "totalTime": 1459, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 19 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 19, + "end": 19 + }, + { + "kind": "passive", + "section": 1, + "step": 0, + "start": 19, + "end": 79 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1457, + "end": 1459 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-015-use-level-retro-planning-multi-section/compiled.json b/conformance/cases/mod-015-use-level-retro-planning-multi-section/compiled.json index 03ab1006..d188bee5 100644 --- a/conformance/cases/mod-015-use-level-retro-planning-multi-section/compiled.json +++ b/conformance/cases/mod-015-use-level-retro-planning-multi-section/compiled.json @@ -251,6 +251,126 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 1459, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 18 + }, + { + "kind": "prep", + "section": 1, + "start": 18, + "end": 19 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 19, + "end": 19 + }, + { + "kind": "passive", + "section": 1, + "step": 0, + "start": 19, + "end": 79 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1457, + "end": 1459 + } + ] + }, + "upfront": { + "totalTime": 1459, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 19 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 19, + "end": 19 + }, + { + "kind": "passive", + "section": 1, + "step": 0, + "start": 19, + "end": 79 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1457, + "end": 1459 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-016-retro-planning-override-shadowed/analyzed.json b/conformance/cases/mod-016-retro-planning-override-shadowed/analyzed.json index 9dca03d5..8edf2d0e 100644 --- a/conformance/cases/mod-016-retro-planning-override-shadowed/analyzed.json +++ b/conformance/cases/mod-016-retro-planning-override-shadowed/analyzed.json @@ -262,6 +262,88 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 2883, + "idleTime": 2878, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 3 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 3, + "end": 1443 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2881, + "end": 2883 + } + ] + }, + "upfront": { + "totalTime": 2883, + "idleTime": 2878, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 3 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 3, + "end": 1443 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2881, + "end": 2883 + } + ] + } + }, "modules": [ { "binding": "levain", diff --git a/conformance/cases/mod-016-retro-planning-override-shadowed/compiled.json b/conformance/cases/mod-016-retro-planning-override-shadowed/compiled.json index d995c94a..7fd7d5c6 100644 --- a/conformance/cases/mod-016-retro-planning-override-shadowed/compiled.json +++ b/conformance/cases/mod-016-retro-planning-override-shadowed/compiled.json @@ -197,6 +197,88 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 2883, + "idleTime": 2878, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 3 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 3, + "end": 1443 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2881, + "end": 2883 + } + ] + }, + "upfront": { + "totalTime": 2883, + "idleTime": 2878, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 3 + }, + { + "kind": "passive", + "section": 0, + "step": 0, + "start": 3, + "end": 1443 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 2881, + "end": 2883 + } + ] + } + }, "modules": [ { "binding": "levain", diff --git a/conformance/cases/mod-017-stocked-retro-planning-ignored/analyzed.json b/conformance/cases/mod-017-stocked-retro-planning-ignored/analyzed.json index 7eaf56b8..393b7c2f 100644 --- a/conformance/cases/mod-017-stocked-retro-planning-ignored/analyzed.json +++ b/conformance/cases/mod-017-stocked-retro-planning-ignored/analyzed.json @@ -136,6 +136,60 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-017-stocked-retro-planning-ignored/compiled.json b/conformance/cases/mod-017-stocked-retro-planning-ignored/compiled.json index c82df3ec..49bc923f 100644 --- a/conformance/cases/mod-017-stocked-retro-planning-ignored/compiled.json +++ b/conformance/cases/mod-017-stocked-retro-planning-ignored/compiled.json @@ -99,6 +99,60 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-018-module-binding-shadows-ingredient/analyzed.json b/conformance/cases/mod-018-module-binding-shadows-ingredient/analyzed.json index 4dad16fa..3780e412 100644 --- a/conformance/cases/mod-018-module-binding-shadows-ingredient/analyzed.json +++ b/conformance/cases/mod-018-module-binding-shadows-ingredient/analyzed.json @@ -136,6 +136,60 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-018-module-binding-shadows-ingredient/compiled.json b/conformance/cases/mod-018-module-binding-shadows-ingredient/compiled.json index f380edfb..492ea171 100644 --- a/conformance/cases/mod-018-module-binding-shadows-ingredient/compiled.json +++ b/conformance/cases/mod-018-module-binding-shadows-ingredient/compiled.json @@ -99,6 +99,60 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-019-transitive-stock/analyzed.json b/conformance/cases/mod-019-transitive-stock/analyzed.json index e9736b62..4fd6a7e3 100644 --- a/conformance/cases/mod-019-transitive-stock/analyzed.json +++ b/conformance/cases/mod-019-transitive-stock/analyzed.json @@ -229,6 +229,74 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } + }, "modules": [ { "binding": "b", diff --git a/conformance/cases/mod-019-transitive-stock/compiled.json b/conformance/cases/mod-019-transitive-stock/compiled.json index 54e83277..5224a77c 100644 --- a/conformance/cases/mod-019-transitive-stock/compiled.json +++ b/conformance/cases/mod-019-transitive-stock/compiled.json @@ -172,6 +172,74 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } + }, "modules": [ { "binding": "b", diff --git a/conformance/cases/mod-020-stocked-bare-quantity/analyzed.json b/conformance/cases/mod-020-stocked-bare-quantity/analyzed.json index 334ee0bb..63dfdc58 100644 --- a/conformance/cases/mod-020-stocked-bare-quantity/analyzed.json +++ b/conformance/cases/mod-020-stocked-bare-quantity/analyzed.json @@ -133,6 +133,60 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-020-stocked-bare-quantity/compiled.json b/conformance/cases/mod-020-stocked-bare-quantity/compiled.json index 5b62256e..4246e009 100644 --- a/conformance/cases/mod-020-stocked-bare-quantity/compiled.json +++ b/conformance/cases/mod-020-stocked-bare-quantity/compiled.json @@ -96,6 +96,60 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-021-stocked-destructured-nutrition-blended/analyzed.json b/conformance/cases/mod-021-stocked-destructured-nutrition-blended/analyzed.json index c3b2dce0..8a1ea1fe 100644 --- a/conformance/cases/mod-021-stocked-destructured-nutrition-blended/analyzed.json +++ b/conformance/cases/mod-021-stocked-destructured-nutrition-blended/analyzed.json @@ -175,6 +175,60 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-021-stocked-destructured-nutrition-blended/compiled.json b/conformance/cases/mod-021-stocked-destructured-nutrition-blended/compiled.json index 14935226..931b426b 100644 --- a/conformance/cases/mod-021-stocked-destructured-nutrition-blended/compiled.json +++ b/conformance/cases/mod-021-stocked-destructured-nutrition-blended/compiled.json @@ -129,6 +129,60 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } + }, "modules": [ { "binding": "blancs", diff --git a/conformance/cases/mod-022-density-override-shadowed/analyzed.json b/conformance/cases/mod-022-density-override-shadowed/analyzed.json index c9380e93..41fdc1e0 100644 --- a/conformance/cases/mod-022-density-override-shadowed/analyzed.json +++ b/conformance/cases/mod-022-density-override-shadowed/analyzed.json @@ -201,6 +201,74 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } + }, "modules": [ { "binding": "glaze", diff --git a/conformance/cases/mod-022-density-override-shadowed/compiled.json b/conformance/cases/mod-022-density-override-shadowed/compiled.json index ee7113b6..f9ba7b66 100644 --- a/conformance/cases/mod-022-density-override-shadowed/compiled.json +++ b/conformance/cases/mod-022-density-override-shadowed/compiled.json @@ -153,6 +153,74 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } + }, "modules": [ { "binding": "glaze", diff --git a/conformance/cases/mod-023-imported-bakers-dropped/analyzed.json b/conformance/cases/mod-023-imported-bakers-dropped/analyzed.json index 58c51483..1a681c92 100644 --- a/conformance/cases/mod-023-imported-bakers-dropped/analyzed.json +++ b/conformance/cases/mod-023-imported-bakers-dropped/analyzed.json @@ -269,6 +269,112 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-023-imported-bakers-dropped/compiled.json b/conformance/cases/mod-023-imported-bakers-dropped/compiled.json index a9585749..cfd0570e 100644 --- a/conformance/cases/mod-023-imported-bakers-dropped/compiled.json +++ b/conformance/cases/mod-023-imported-bakers-dropped/compiled.json @@ -197,6 +197,112 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-024-estimated-module-yield/analyzed.json b/conformance/cases/mod-024-estimated-module-yield/analyzed.json index 2161ebf5..e528e0ee 100644 --- a/conformance/cases/mod-024-estimated-module-yield/analyzed.json +++ b/conformance/cases/mod-024-estimated-module-yield/analyzed.json @@ -198,6 +198,74 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } + }, "modules": [ { "binding": "batter", diff --git a/conformance/cases/mod-024-estimated-module-yield/compiled.json b/conformance/cases/mod-024-estimated-module-yield/compiled.json index 462e9899..11358401 100644 --- a/conformance/cases/mod-024-estimated-module-yield/compiled.json +++ b/conformance/cases/mod-024-estimated-module-yield/compiled.json @@ -150,6 +150,74 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } + }, "modules": [ { "binding": "batter", diff --git a/conformance/cases/mod-025-unresolved-module-yield/analyzed.json b/conformance/cases/mod-025-unresolved-module-yield/analyzed.json index 41a78f57..52ba14f4 100644 --- a/conformance/cases/mod-025-unresolved-module-yield/analyzed.json +++ b/conformance/cases/mod-025-unresolved-module-yield/analyzed.json @@ -193,6 +193,74 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } + }, "modules": [ { "binding": "batter", diff --git a/conformance/cases/mod-025-unresolved-module-yield/compiled.json b/conformance/cases/mod-025-unresolved-module-yield/compiled.json index bd710337..d89b0005 100644 --- a/conformance/cases/mod-025-unresolved-module-yield/compiled.json +++ b/conformance/cases/mod-025-unresolved-module-yield/compiled.json @@ -150,6 +150,74 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + }, + "upfront": { + "totalTime": 6, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 4, + "end": 6 + } + ] + } + }, "modules": [ { "binding": "batter", diff --git a/conformance/cases/mod-026-deep-transitive-chain/analyzed.json b/conformance/cases/mod-026-deep-transitive-chain/analyzed.json index 6d6b799c..d2fc859c 100644 --- a/conformance/cases/mod-026-deep-transitive-chain/analyzed.json +++ b/conformance/cases/mod-026-deep-transitive-chain/analyzed.json @@ -449,6 +449,150 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 2, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 1466, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 12 + }, + { + "kind": "prep", + "section": 1, + "start": 12, + "end": 14 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 14, + "end": 19 + }, + { + "kind": "prep", + "section": 2, + "start": 19, + "end": 21 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 21, + "end": 26 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1464, + "end": 1466 + } + ] + }, + "upfront": { + "totalTime": 1466, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 2, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 16 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 16, + "end": 21 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 21, + "end": 26 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1464, + "end": 1466 + } + ] + } + }, "modules": [ { "binding": "d", diff --git a/conformance/cases/mod-026-deep-transitive-chain/compiled.json b/conformance/cases/mod-026-deep-transitive-chain/compiled.json index 1f7e2ca6..c6a9774a 100644 --- a/conformance/cases/mod-026-deep-transitive-chain/compiled.json +++ b/conformance/cases/mod-026-deep-transitive-chain/compiled.json @@ -344,6 +344,150 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 2, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 1466, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 12 + }, + { + "kind": "prep", + "section": 1, + "start": 12, + "end": 14 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 14, + "end": 19 + }, + { + "kind": "prep", + "section": 2, + "start": 19, + "end": 21 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 21, + "end": 26 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1464, + "end": 1466 + } + ] + }, + "upfront": { + "totalTime": 1466, + "idleTime": 1438, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 2, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 16 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 16, + "end": 21 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 21, + "end": 26 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1464, + "end": 1466 + } + ] + } + }, "modules": [ { "binding": "d", diff --git a/conformance/cases/mod-027-diamond-mixed-stock-inline/analyzed.json b/conformance/cases/mod-027-diamond-mixed-stock-inline/analyzed.json index cd2cc545..c2b48f1f 100644 --- a/conformance/cases/mod-027-diamond-mixed-stock-inline/analyzed.json +++ b/conformance/cases/mod-027-diamond-mixed-stock-inline/analyzed.json @@ -302,6 +302,136 @@ } } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 2, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "prep", + "section": 2, + "start": 7, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "prep", + "section": 2, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "d", diff --git a/conformance/cases/mod-027-diamond-mixed-stock-inline/compiled.json b/conformance/cases/mod-027-diamond-mixed-stock-inline/compiled.json index 873b93e9..5f5428d8 100644 --- a/conformance/cases/mod-027-diamond-mixed-stock-inline/compiled.json +++ b/conformance/cases/mod-027-diamond-mixed-stock-inline/compiled.json @@ -246,6 +246,136 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + }, + { + "section": 2, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "prep", + "section": 2, + "start": 7, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + }, + "upfront": { + "totalTime": 10, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "prep", + "section": 2, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 8, + "end": 10 + } + ] + } + }, "modules": [ { "binding": "d", diff --git a/conformance/cases/mod-028-relative-quantities-cross-module/analyzed.json b/conformance/cases/mod-028-relative-quantities-cross-module/analyzed.json index e7e495dd..d939895f 100644 --- a/conformance/cases/mod-028-relative-quantities-cross-module/analyzed.json +++ b/conformance/cases/mod-028-relative-quantities-cross-module/analyzed.json @@ -267,6 +267,112 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-028-relative-quantities-cross-module/compiled.json b/conformance/cases/mod-028-relative-quantities-cross-module/compiled.json index a551e577..a23891d4 100644 --- a/conformance/cases/mod-028-relative-quantities-cross-module/compiled.json +++ b/conformance/cases/mod-028-relative-quantities-cross-module/compiled.json @@ -213,6 +213,112 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + }, + "upfront": { + "totalTime": 9, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 1, + "step": 1, + "start": 7, + "end": 9 + } + ] + } + }, "modules": [ { "binding": "pate", diff --git a/conformance/cases/mod-029-private-intermediate-display-name/analyzed.json b/conformance/cases/mod-029-private-intermediate-display-name/analyzed.json index c5dce1a4..195ecc22 100644 --- a/conformance/cases/mod-029-private-intermediate-display-name/analyzed.json +++ b/conformance/cases/mod-029-private-intermediate-display-name/analyzed.json @@ -302,6 +302,126 @@ ] } }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 1447, + "idleTime": 1436, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1443, + "end": 1445 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1445, + "end": 1447 + } + ] + }, + "upfront": { + "totalTime": 1447, + "idleTime": 1436, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1443, + "end": 1445 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1445, + "end": 1447 + } + ] + } + }, "modules": [ { "binding": "marinated", diff --git a/conformance/cases/mod-029-private-intermediate-display-name/compiled.json b/conformance/cases/mod-029-private-intermediate-display-name/compiled.json index dd81b60b..526ffaa5 100644 --- a/conformance/cases/mod-029-private-intermediate-display-name/compiled.json +++ b/conformance/cases/mod-029-private-intermediate-display-name/compiled.json @@ -249,6 +249,126 @@ } ] }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 1447, + "idleTime": 1436, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1443, + "end": 1445 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1445, + "end": 1447 + } + ] + }, + "upfront": { + "totalTime": 1447, + "idleTime": 1436, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 1443, + "end": 1445 + }, + { + "kind": "step", + "section": 3, + "step": 0, + "start": 1445, + "end": 1447 + } + ] + } + }, "modules": [ { "binding": "marinated", diff --git a/conformance/cases/mod-030-mise-en-place-across-module/analyzed.json b/conformance/cases/mod-030-mise-en-place-across-module/analyzed.json new file mode 100644 index 00000000..3e312b98 --- /dev/null +++ b/conformance/cases/mod-030-mise-en-place-across-module/analyzed.json @@ -0,0 +1,715 @@ +{ + "title": "Mise en place across a module", + "slug": "mise-en-place-across-a-module", + "meta": { + "title": "Mise en place across a module" + }, + "registry": { + "ingredients": { + "pate": { + "id": "pate", + "name": "pate", + "is_intermediate": true + }, + "flour": { + "id": "flour", + "name": "flour", + "default_unit": "g" + }, + "butter": { + "id": "butter", + "name": "butter", + "default_unit": "g" + }, + "salt": { + "id": "salt", + "name": "salt", + "default_unit": "g" + }, + "filling": { + "id": "filling", + "name": "filling", + "is_intermediate": true + }, + "onions": { + "id": "onions", + "name": "onions", + "default_unit": "g" + }, + "egg": { + "id": "egg", + "name": "egg" + } + }, + "cookware": { + "pan": { + "id": "pan", + "name": "pan" + } + } + }, + "shopping_list": [ + { + "id": "flour", + "name": "flour", + "_usageIds": [ + "1" + ], + "qty": 331.13, + "unit": "g", + "normalizedMass": 331.13, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "butter", + "name": "butter", + "_usageIds": [ + "2", + "5" + ], + "qty": 185.56, + "unit": "g", + "normalizedMass": 185.56, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "salt", + "name": "salt", + "_usageIds": [ + "3" + ], + "qty": 3.31, + "unit": "g", + "normalizedMass": 3.31, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "onions", + "name": "onions", + "_usageIds": [ + "4" + ], + "qty": 300, + "unit": "g", + "normalizedMass": 300, + "isEstimate": false, + "conversionMethod": "physical" + }, + { + "id": "egg", + "name": "egg", + "_usageIds": [ + "9" + ], + "qty": 1 + } + ], + "cookware": [ + { + "id": "pan", + "_usageId": "6", + "fixed": false + } + ], + "sections": [ + { + "title": "Pate", + "ingredients": [ + { + "id": "flour", + "_usageId": "1", + "qty": 331.13, + "unit": "g", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 331.13 + }, + { + "id": "butter", + "_usageId": "2", + "qty": 165.56, + "unit": "g", + "preparation": "cold, cubed", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 165.56 + }, + { + "id": "salt", + "_usageId": "3", + "qty": 3.31, + "unit": "g", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 3.31 + } + ], + "cookware": [], + "steps": [ + { + "type": "step", + "content": [ + "Mix ", + { + "id": "flour", + "_usageId": "1", + "qty": 331.13, + "unit": "g", + "normalizedMass": 331.13, + "conversionMethod": "physical", + "isEstimate": false + }, + "with ", + { + "id": "butter", + "_usageId": "2", + "qty": 165.56, + "unit": "g", + "preparation": "cold, cubed", + "normalizedMass": 165.56, + "conversionMethod": "physical", + "isEstimate": false + }, + "and ", + { + "id": "salt", + "_usageId": "3", + "qty": 3.31, + "unit": "g", + "normalizedMass": 3.31, + "conversionMethod": "physical", + "isEstimate": false + }, + "." + ], + "timings": { + "start": 0, + "end": 2, + "activeDuration": 2 + } + }, + { + "type": "step", + "content": [ + "Let it rest ", + { + "type": "timer", + "isPassive": true, + "quantity": { + "type": "single", + "value": 1, + "text": "1" + }, + "unit": "h" + }, + "." + ], + "timings": { + "start": 2, + "end": 2, + "activeDuration": 0 + }, + "backgroundTasks": [ + { + "duration": 60, + "startOffset": 0 + } + ], + "action": "Rest" + } + ], + "intermediate_preparation": "pate", + "module": { + "binding": "pate", + "uri": "bases/pate.gram", + "title": "Pate", + "mode": "inline" + }, + "metrics": { + "totalMass": 500, + "massStatus": "precise", + "missingMassIngredients": [] + } + }, + { + "title": "Filling", + "ingredients": [ + { + "id": "onions", + "_usageId": "4", + "qty": 300, + "unit": "g", + "preparation": "finely sliced", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 300 + }, + { + "id": "butter", + "_usageId": "5", + "qty": 20, + "unit": "g", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 20 + } + ], + "cookware": [ + { + "id": "pan", + "_usageId": "6", + "fixed": false + } + ], + "steps": [ + { + "type": "step", + "content": [ + "Cook ", + { + "id": "onions", + "_usageId": "4", + "qty": 300, + "unit": "g", + "preparation": "finely sliced", + "normalizedMass": 300, + "conversionMethod": "physical", + "isEstimate": false + }, + "with ", + { + "id": "butter", + "_usageId": "5", + "qty": 20, + "unit": "g", + "normalizedMass": 20, + "conversionMethod": "physical", + "isEstimate": false + }, + "in a ", + { + "id": "pan", + "_usageId": "6", + "fixed": false + }, + "." + ], + "timings": { + "start": 60, + "end": 62, + "activeDuration": 2 + } + } + ], + "intermediate_preparation": "filling", + "metrics": { + "totalMass": 320, + "massStatus": "precise", + "missingMassIngredients": [] + } + }, + { + "title": "Assembly", + "ingredients": [ + { + "type": "reference", + "id": "pate", + "name": "pate", + "_usageId": "7", + "qty": 500, + "unit": "g", + "conversionMethod": "physical", + "isEstimate": false, + "normalizedMass": 500 + }, + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + { + "id": "egg", + "_usageId": "9", + "qty": 1, + "preparation": "beaten" + } + ], + "cookware": [], + "steps": [ + { + "type": "step", + "content": [ + "Fill ", + { + "type": "reference", + "id": "pate", + "name": "pate", + "_usageId": "7", + "qty": 500, + "unit": "g", + "normalizedMass": 500, + "conversionMethod": "physical", + "isEstimate": false + }, + "with ", + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + ", brush with ", + { + "id": "egg", + "_usageId": "9", + "qty": 1, + "preparation": "beaten" + }, + "and bake for ", + { + "type": "timer", + "quantity": { + "type": "single", + "value": 30, + "text": "30" + }, + "unit": "min" + }, + "." + ], + "timings": { + "start": 62, + "end": 92, + "activeDuration": 30 + } + } + ], + "metrics": { + "totalMass": 500, + "massStatus": "incomplete", + "missingMassIngredients": [ + "egg" + ] + } + } + ], + "warnings": [ + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"butter\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"salt\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"onions\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "UNKNOWN_MASS", + "message": "Cannot calculate mass for \"egg\" — omitted from nutritional totals." + } + ], + "metrics": { + "totalTime": 106, + "totalBreakdown": [ + { + "label": "section_active:Pate", + "duration": 2 + }, + { + "label": "timer_passive", + "duration": 60 + }, + { + "label": "section_active:Assembly", + "duration": 30 + } + ], + "idleTime": 58, + "activeTime": 34, + "activeBreakdown": [ + { + "label": "section_active:Pate", + "duration": 2 + }, + { + "label": "section_active:Filling", + "duration": 2 + }, + { + "label": "section_active:Assembly", + "duration": 30 + } + ], + "preparationTime": 14, + "prepBreakdown": [ + { + "label": "ingredients_overhead", + "duration": 7 + }, + { + "label": "cookware_overhead", + "duration": 1 + }, + { + "label": "prep_butter", + "duration": 2 + }, + { + "label": "prep_onions", + "duration": 2 + }, + { + "label": "prep_egg", + "duration": 2 + } + ], + "totalMass": 820, + "massStatus": "incomplete", + "missingMassIngredients": [ + "egg" + ], + "nutrition": { + "total": { + "calories": 0, + "fat": 0, + "carbs": 0, + "protein": 0 + }, + "isEstimate": false, + "coverage": 0, + "warnings": [ + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"butter\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"salt\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "MISSING_INGREDIENT", + "message": "Ingredient \"onions\" not found in database — nutritional metrics and density conversions unavailable." + }, + { + "code": "UNKNOWN_MASS", + "message": "Cannot calculate mass for \"egg\" — omitted from nutritional totals." + } + ] + } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 6, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "butter" + }, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "onions" + }, + "duration": 2 + } + ] + }, + { + "section": 2, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "egg" + }, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 98, + "idleTime": 50, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 8, + "end": 8 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 8, + "end": 68 + }, + { + "kind": "prep", + "section": 1, + "start": 58, + "end": 63 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 63, + "end": 65 + }, + { + "kind": "prep", + "section": 2, + "start": 65, + "end": 68 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 68, + "end": 98 + } + ] + }, + "upfront": { + "totalTime": 106, + "idleTime": 58, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "prep", + "section": 1, + "start": 6, + "end": 11 + }, + { + "kind": "prep", + "section": 2, + "start": 11, + "end": 14 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 14, + "end": 16 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 16, + "end": 16 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 16, + "end": 76 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 74, + "end": 76 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 76, + "end": 106 + } + ] + } + }, + "modules": [ + { + "binding": "pate", + "uri": "bases/pate.gram", + "title": "Pate", + "meta": { + "title": "Pate" + }, + "scaleFactor": 1.6556291390728477, + "mode": "inline" + } + ] +} diff --git a/conformance/cases/mod-030-mise-en-place-across-module/ast.json b/conformance/cases/mod-030-mise-en-place-across-module/ast.json new file mode 100644 index 00000000..54015548 --- /dev/null +++ b/conformance/cases/mod-030-mise-en-place-across-module/ast.json @@ -0,0 +1,303 @@ +{ + "type": "Recipe", + "meta": { + "title": "Mise en place across a module" + }, + "imports": [ + { + "type": "ImportDecl", + "specifier": "./bases/pate.gram", + "bindings": [ + { + "exported": "default", + "local": "pate", + "loc": { + "start": 74, + "end": 79 + } + } + ], + "retroPlanning": null, + "loc": { + "start": 46, + "end": 80 + } + } + ], + "children": [ + { + "type": "Section", + "title": "Filling", + "retroPlanning": null, + "intermediateDecl": { + "type": "IntermediateDecl", + "name": "filling", + "loc": { + "start": 92, + "end": 102 + } + }, + "children": [ + { + "type": "Step", + "action": null, + "children": [ + { + "type": "Text", + "value": "Cook ", + "loc": { + "start": 104, + "end": 109 + } + }, + { + "type": "Ingredient", + "name": "onions", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 300, + "text": "300" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 117, + "end": 121 + } + }, + "alias": null, + "preparation": "finely sliced", + "composite": null, + "loc": { + "start": 109, + "end": 137 + } + }, + { + "type": "Text", + "value": "with ", + "loc": { + "start": 138, + "end": 143 + } + }, + { + "type": "Ingredient", + "name": "butter", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 20, + "text": "20" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 151, + "end": 154 + } + }, + "alias": null, + "preparation": null, + "composite": null, + "loc": { + "start": 143, + "end": 155 + } + }, + { + "type": "Text", + "value": "in a ", + "loc": { + "start": 156, + "end": 161 + } + }, + { + "type": "Cookware", + "name": "pan", + "modifiers": [], + "alias": null, + "quantity": { + "type": "Quantity", + "fixed": false, + "loc": { + "start": 161, + "end": 165 + } + }, + "preparation": null, + "loc": { + "start": 161, + "end": 165 + } + }, + { + "type": "Text", + "value": ".", + "loc": { + "start": 165, + "end": 166 + } + } + ], + "loc": { + "start": 104, + "end": 168 + } + } + ], + "loc": { + "start": 81, + "end": 168 + } + }, + { + "type": "Section", + "title": "Assembly", + "retroPlanning": null, + "intermediateDecl": null, + "children": [ + { + "type": "Step", + "action": null, + "children": [ + { + "type": "Text", + "value": "Fill ", + "loc": { + "start": 181, + "end": 186 + } + }, + { + "type": "Reference", + "name": "pate", + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 500, + "text": "500" + }, + "unit": "g", + "fixed": false, + "loc": { + "start": 192, + "end": 196 + } + }, + "loc": { + "start": 186, + "end": 197 + } + }, + { + "type": "Text", + "value": "with ", + "loc": { + "start": 198, + "end": 203 + } + }, + { + "type": "Reference", + "name": "filling", + "quantity": null, + "loc": { + "start": 203, + "end": 211 + } + }, + { + "type": "Text", + "value": ", brush with ", + "loc": { + "start": 211, + "end": 224 + } + }, + { + "type": "Ingredient", + "name": "egg", + "modifiers": [], + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 1, + "text": "1" + }, + "unit": null, + "fixed": false, + "loc": { + "start": 229, + "end": 230 + } + }, + "alias": null, + "preparation": "beaten", + "composite": null, + "loc": { + "start": 224, + "end": 239 + } + }, + { + "type": "Text", + "value": "and bake for ", + "loc": { + "start": 240, + "end": 253 + } + }, + { + "type": "Timer", + "name": null, + "quantity": { + "type": "Quantity", + "value": { + "type": "single", + "value": 30, + "text": "30" + }, + "unit": "min", + "fixed": false, + "loc": { + "start": 255, + "end": 260 + } + }, + "isPassive": false, + "loc": { + "start": 253, + "end": 261 + } + }, + { + "type": "Text", + "value": ".", + "loc": { + "start": 261, + "end": 262 + } + } + ], + "loc": { + "start": 181, + "end": 263 + } + } + ], + "loc": { + "start": 168, + "end": 263 + } + } + ] +} diff --git a/conformance/cases/mod-030-mise-en-place-across-module/bases/pate.gram b/conformance/cases/mod-030-mise-en-place-across-module/bases/pate.gram new file mode 100644 index 00000000..faa1b3f1 --- /dev/null +++ b/conformance/cases/mod-030-mise-en-place-across-module/bases/pate.gram @@ -0,0 +1,9 @@ +--- +title: Pate +--- + +## Pate ->&pate + +Mix @flour{200g} with @butter{100g}(cold, cubed) and @salt{2g}. + +[Rest] Let it rest ~_{1h}. diff --git a/conformance/cases/mod-030-mise-en-place-across-module/compiled.json b/conformance/cases/mod-030-mise-en-place-across-module/compiled.json new file mode 100644 index 00000000..84e6a772 --- /dev/null +++ b/conformance/cases/mod-030-mise-en-place-across-module/compiled.json @@ -0,0 +1,592 @@ +{ + "title": "Mise en place across a module", + "slug": "mise-en-place-across-a-module", + "meta": { + "title": "Mise en place across a module" + }, + "registry": { + "ingredients": { + "pate": { + "id": "pate", + "name": "pate", + "is_intermediate": true + }, + "flour": { + "id": "flour", + "name": "flour", + "default_unit": "g" + }, + "butter": { + "id": "butter", + "name": "butter", + "default_unit": "g" + }, + "salt": { + "id": "salt", + "name": "salt", + "default_unit": "g" + }, + "filling": { + "id": "filling", + "name": "filling", + "is_intermediate": true + }, + "onions": { + "id": "onions", + "name": "onions", + "default_unit": "g" + }, + "egg": { + "id": "egg", + "name": "egg" + } + }, + "cookware": { + "pan": { + "id": "pan", + "name": "pan" + } + } + }, + "shopping_list": [ + { + "id": "flour", + "name": "flour", + "_usageIds": [ + "1" + ], + "qty": 331.13, + "unit": "g" + }, + { + "id": "butter", + "name": "butter", + "_usageIds": [ + "2", + "5" + ], + "qty": 185.56, + "unit": "g" + }, + { + "id": "salt", + "name": "salt", + "_usageIds": [ + "3" + ], + "qty": 3.31, + "unit": "g" + }, + { + "id": "onions", + "name": "onions", + "_usageIds": [ + "4" + ], + "qty": 300, + "unit": "g" + }, + { + "id": "egg", + "name": "egg", + "_usageIds": [ + "9" + ], + "qty": 1 + } + ], + "cookware": [ + { + "id": "pan", + "_usageId": "6", + "fixed": false + } + ], + "sections": [ + { + "title": "Pate", + "ingredients": [ + { + "id": "flour", + "_usageId": "1", + "qty": 331.13, + "unit": "g" + }, + { + "id": "butter", + "_usageId": "2", + "qty": 165.56, + "unit": "g", + "preparation": "cold, cubed" + }, + { + "id": "salt", + "_usageId": "3", + "qty": 3.31, + "unit": "g" + } + ], + "cookware": [], + "steps": [ + { + "type": "step", + "content": [ + "Mix ", + { + "id": "flour", + "_usageId": "1", + "qty": 331.13, + "unit": "g" + }, + "with ", + { + "id": "butter", + "_usageId": "2", + "qty": 165.56, + "unit": "g", + "preparation": "cold, cubed" + }, + "and ", + { + "id": "salt", + "_usageId": "3", + "qty": 3.31, + "unit": "g" + }, + "." + ], + "timings": { + "start": 0, + "end": 2, + "activeDuration": 2 + } + }, + { + "type": "step", + "content": [ + "Let it rest ", + { + "type": "timer", + "isPassive": true, + "quantity": { + "type": "single", + "value": 1, + "text": "1" + }, + "unit": "h" + }, + "." + ], + "timings": { + "start": 2, + "end": 2, + "activeDuration": 0 + }, + "backgroundTasks": [ + { + "duration": 60, + "startOffset": 0 + } + ], + "action": "Rest" + } + ], + "intermediate_preparation": "pate", + "module": { + "binding": "pate", + "uri": "bases/pate.gram", + "title": "Pate", + "mode": "inline" + } + }, + { + "title": "Filling", + "ingredients": [ + { + "id": "onions", + "_usageId": "4", + "qty": 300, + "unit": "g", + "preparation": "finely sliced" + }, + { + "id": "butter", + "_usageId": "5", + "qty": 20, + "unit": "g" + } + ], + "cookware": [ + { + "id": "pan", + "_usageId": "6", + "fixed": false + } + ], + "steps": [ + { + "type": "step", + "content": [ + "Cook ", + { + "id": "onions", + "_usageId": "4", + "qty": 300, + "unit": "g", + "preparation": "finely sliced" + }, + "with ", + { + "id": "butter", + "_usageId": "5", + "qty": 20, + "unit": "g" + }, + "in a ", + { + "id": "pan", + "_usageId": "6", + "fixed": false + }, + "." + ], + "timings": { + "start": 60, + "end": 62, + "activeDuration": 2 + } + } + ], + "intermediate_preparation": "filling" + }, + { + "title": "Assembly", + "ingredients": [ + { + "type": "reference", + "id": "pate", + "name": "pate", + "_usageId": "7", + "qty": 500, + "unit": "g" + }, + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + { + "id": "egg", + "_usageId": "9", + "qty": 1, + "preparation": "beaten" + } + ], + "cookware": [], + "steps": [ + { + "type": "step", + "content": [ + "Fill ", + { + "type": "reference", + "id": "pate", + "name": "pate", + "_usageId": "7", + "qty": 500, + "unit": "g" + }, + "with ", + { + "type": "reference", + "id": "filling", + "name": "filling", + "_usageId": "8" + }, + ", brush with ", + { + "id": "egg", + "_usageId": "9", + "qty": 1, + "preparation": "beaten" + }, + "and bake for ", + { + "type": "timer", + "quantity": { + "type": "single", + "value": 30, + "text": "30" + }, + "unit": "min" + }, + "." + ], + "timings": { + "start": 62, + "end": 92, + "activeDuration": 30 + } + } + ] + } + ], + "warnings": [], + "metrics": { + "totalTime": 106, + "totalBreakdown": [ + { + "label": "section_active:Pate", + "duration": 2 + }, + { + "label": "timer_passive", + "duration": 60 + }, + { + "label": "section_active:Assembly", + "duration": 30 + } + ], + "idleTime": 58, + "activeTime": 34, + "activeBreakdown": [ + { + "label": "section_active:Pate", + "duration": 2 + }, + { + "label": "section_active:Filling", + "duration": 2 + }, + { + "label": "section_active:Assembly", + "duration": 30 + } + ], + "preparationTime": 14, + "prepBreakdown": [ + { + "label": "ingredients_overhead", + "duration": 7 + }, + { + "label": "cookware_overhead", + "duration": 1 + }, + { + "label": "prep_butter", + "duration": 2 + }, + { + "label": "prep_onions", + "duration": 2 + }, + { + "label": "prep_egg", + "duration": 2 + } + ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 6, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 4, + "duration": 4 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "butter" + }, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 5, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + }, + { + "kind": "gather", + "target": "cookware", + "count": 1, + "duration": 1 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "onions" + }, + "duration": 2 + } + ] + }, + { + "section": 2, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + }, + { + "kind": "prepare", + "ref": { + "type": "ingredient", + "id": "egg" + }, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 98, + "idleTime": 50, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 6, + "end": 8 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 8, + "end": 8 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 8, + "end": 68 + }, + { + "kind": "prep", + "section": 1, + "start": 58, + "end": 63 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 63, + "end": 65 + }, + { + "kind": "prep", + "section": 2, + "start": 65, + "end": 68 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 68, + "end": 98 + } + ] + }, + "upfront": { + "totalTime": 106, + "idleTime": 58, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 6 + }, + { + "kind": "prep", + "section": 1, + "start": 6, + "end": 11 + }, + { + "kind": "prep", + "section": 2, + "start": 11, + "end": 14 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 14, + "end": 16 + }, + { + "kind": "step", + "section": 0, + "step": 1, + "start": 16, + "end": 16 + }, + { + "kind": "passive", + "section": 0, + "step": 1, + "start": 16, + "end": 76 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 74, + "end": 76 + }, + { + "kind": "step", + "section": 2, + "step": 0, + "start": 76, + "end": 106 + } + ] + } + }, + "modules": [ + { + "binding": "pate", + "uri": "bases/pate.gram", + "title": "Pate", + "meta": { + "title": "Pate" + }, + "scaleFactor": 1.6556291390728477, + "mode": "inline" + } + ] +} diff --git a/conformance/cases/mod-030-mise-en-place-across-module/input.gram b/conformance/cases/mod-030-mise-en-place-across-module/input.gram new file mode 100644 index 00000000..f440be1f --- /dev/null +++ b/conformance/cases/mod-030-mise-en-place-across-module/input.gram @@ -0,0 +1,13 @@ +--- +title: Mise en place across a module +--- + +@use "./bases/pate.gram" as &pate + +## Filling ->&filling + +Cook @onions{300g}(finely sliced) with @butter{20g} in a #pan. + +## Assembly + +Fill &pate{500g} with &filling, brush with @egg{1}(beaten) and bake for ~{30min}. diff --git a/conformance/cases/warn-001-variable-not-found/analyzed.json b/conformance/cases/warn-001-variable-not-found/analyzed.json index 1739db38..7a608072 100644 --- a/conformance/cases/warn-001-variable-not-found/analyzed.json +++ b/conformance/cases/warn-001-variable-not-found/analyzed.json @@ -156,5 +156,59 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-001-variable-not-found/compiled.json b/conformance/cases/warn-001-variable-not-found/compiled.json index 7754e226..5acc1b21 100644 --- a/conformance/cases/warn-001-variable-not-found/compiled.json +++ b/conformance/cases/warn-001-variable-not-found/compiled.json @@ -134,5 +134,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-002-relative-quantity-unresolved/analyzed.json b/conformance/cases/warn-002-relative-quantity-unresolved/analyzed.json index 203ed1bd..c8042287 100644 --- a/conformance/cases/warn-002-relative-quantity-unresolved/analyzed.json +++ b/conformance/cases/warn-002-relative-quantity-unresolved/analyzed.json @@ -156,5 +156,59 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-002-relative-quantity-unresolved/compiled.json b/conformance/cases/warn-002-relative-quantity-unresolved/compiled.json index cb897754..cf0cfa0f 100644 --- a/conformance/cases/warn-002-relative-quantity-unresolved/compiled.json +++ b/conformance/cases/warn-002-relative-quantity-unresolved/compiled.json @@ -134,5 +134,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-003-circular-reference/analyzed.json b/conformance/cases/warn-003-circular-reference/analyzed.json index 81ba7667..7489c4ea 100644 --- a/conformance/cases/warn-003-circular-reference/analyzed.json +++ b/conformance/cases/warn-003-circular-reference/analyzed.json @@ -180,5 +180,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-003-circular-reference/compiled.json b/conformance/cases/warn-003-circular-reference/compiled.json index a072004c..385702de 100644 --- a/conformance/cases/warn-003-circular-reference/compiled.json +++ b/conformance/cases/warn-003-circular-reference/compiled.json @@ -162,5 +162,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-004-undefined-reference/analyzed.json b/conformance/cases/warn-004-undefined-reference/analyzed.json index d2a2dc91..37dd2253 100644 --- a/conformance/cases/warn-004-undefined-reference/analyzed.json +++ b/conformance/cases/warn-004-undefined-reference/analyzed.json @@ -90,5 +90,34 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-004-undefined-reference/compiled.json b/conformance/cases/warn-004-undefined-reference/compiled.json index 0fc02ca6..1d991567 100644 --- a/conformance/cases/warn-004-undefined-reference/compiled.json +++ b/conformance/cases/warn-004-undefined-reference/compiled.json @@ -72,5 +72,34 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-005-missing-unit/analyzed.json b/conformance/cases/warn-005-missing-unit/analyzed.json index cbb66009..781a2cea 100644 --- a/conformance/cases/warn-005-missing-unit/analyzed.json +++ b/conformance/cases/warn-005-missing-unit/analyzed.json @@ -81,5 +81,34 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-005-missing-unit/compiled.json b/conformance/cases/warn-005-missing-unit/compiled.json index ef187180..74a289ea 100644 --- a/conformance/cases/warn-005-missing-unit/compiled.json +++ b/conformance/cases/warn-005-missing-unit/compiled.json @@ -63,5 +63,34 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-006-invalid-unit/analyzed.json b/conformance/cases/warn-006-invalid-unit/analyzed.json index b6875280..d25862fd 100644 --- a/conformance/cases/warn-006-invalid-unit/analyzed.json +++ b/conformance/cases/warn-006-invalid-unit/analyzed.json @@ -85,5 +85,34 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-006-invalid-unit/compiled.json b/conformance/cases/warn-006-invalid-unit/compiled.json index 5d29c841..d4d12f13 100644 --- a/conformance/cases/warn-006-invalid-unit/compiled.json +++ b/conformance/cases/warn-006-invalid-unit/compiled.json @@ -67,5 +67,34 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-007-scope-conflict/analyzed.json b/conformance/cases/warn-007-scope-conflict/analyzed.json index 226abb8e..c4942868 100644 --- a/conformance/cases/warn-007-scope-conflict/analyzed.json +++ b/conformance/cases/warn-007-scope-conflict/analyzed.json @@ -209,5 +209,97 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } } } diff --git a/conformance/cases/warn-007-scope-conflict/compiled.json b/conformance/cases/warn-007-scope-conflict/compiled.json index 098cecee..fdf88faf 100644 --- a/conformance/cases/warn-007-scope-conflict/compiled.json +++ b/conformance/cases/warn-007-scope-conflict/compiled.json @@ -155,5 +155,97 @@ "duration": 3 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + }, + { + "kind": "prep", + "section": 1, + "start": 4, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + }, + "upfront": { + "totalTime": 7, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "prep", + "section": 1, + "start": 2, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 5, + "end": 7 + } + ] + } } } diff --git a/conformance/cases/warn-008-invalid-modifier-combination/analyzed.json b/conformance/cases/warn-008-invalid-modifier-combination/analyzed.json index ee48379d..93681fb6 100644 --- a/conformance/cases/warn-008-invalid-modifier-combination/analyzed.json +++ b/conformance/cases/warn-008-invalid-modifier-combination/analyzed.json @@ -136,5 +136,59 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-008-invalid-modifier-combination/compiled.json b/conformance/cases/warn-008-invalid-modifier-combination/compiled.json index 315aec15..9fd16ced 100644 --- a/conformance/cases/warn-008-invalid-modifier-combination/compiled.json +++ b/conformance/cases/warn-008-invalid-modifier-combination/compiled.json @@ -106,5 +106,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-009-relative-quantity-unknown-mass/analyzed.json b/conformance/cases/warn-009-relative-quantity-unknown-mass/analyzed.json index e19f51fa..22481bc3 100644 --- a/conformance/cases/warn-009-relative-quantity-unknown-mass/analyzed.json +++ b/conformance/cases/warn-009-relative-quantity-unknown-mass/analyzed.json @@ -186,5 +186,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/warn-009-relative-quantity-unknown-mass/compiled.json b/conformance/cases/warn-009-relative-quantity-unknown-mass/compiled.json index 6914256c..1c4e1590 100644 --- a/conformance/cases/warn-009-relative-quantity-unknown-mass/compiled.json +++ b/conformance/cases/warn-009-relative-quantity-unknown-mass/compiled.json @@ -152,5 +152,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/warn-010-invalid-bakers-reference/analyzed.json b/conformance/cases/warn-010-invalid-bakers-reference/analyzed.json index a726fac7..f965a3fb 100644 --- a/conformance/cases/warn-010-invalid-bakers-reference/analyzed.json +++ b/conformance/cases/warn-010-invalid-bakers-reference/analyzed.json @@ -203,5 +203,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/warn-010-invalid-bakers-reference/compiled.json b/conformance/cases/warn-010-invalid-bakers-reference/compiled.json index e7cfd8dd..26c15777 100644 --- a/conformance/cases/warn-010-invalid-bakers-reference/compiled.json +++ b/conformance/cases/warn-010-invalid-bakers-reference/compiled.json @@ -161,5 +161,59 @@ "duration": 2 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 2, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 2, + "duration": 2 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + }, + "upfront": { + "totalTime": 4, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 2 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 2, + "end": 4 + } + ] + } } } diff --git a/conformance/cases/warn-011-no-bakers-reference/analyzed.json b/conformance/cases/warn-011-no-bakers-reference/analyzed.json index 4f6819f1..112be24d 100644 --- a/conformance/cases/warn-011-no-bakers-reference/analyzed.json +++ b/conformance/cases/warn-011-no-bakers-reference/analyzed.json @@ -126,5 +126,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-011-no-bakers-reference/compiled.json b/conformance/cases/warn-011-no-bakers-reference/compiled.json index 0ae4b2f4..1a5e5e80 100644 --- a/conformance/cases/warn-011-no-bakers-reference/compiled.json +++ b/conformance/cases/warn-011-no-bakers-reference/compiled.json @@ -89,5 +89,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-012-missing-ingredient/analyzed.json b/conformance/cases/warn-012-missing-ingredient/analyzed.json index 65801f90..bf1154ba 100644 --- a/conformance/cases/warn-012-missing-ingredient/analyzed.json +++ b/conformance/cases/warn-012-missing-ingredient/analyzed.json @@ -122,5 +122,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-012-missing-ingredient/compiled.json b/conformance/cases/warn-012-missing-ingredient/compiled.json index 6d1062b2..3f485e2e 100644 --- a/conformance/cases/warn-012-missing-ingredient/compiled.json +++ b/conformance/cases/warn-012-missing-ingredient/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-013-missing-macros/analyzed.json b/conformance/cases/warn-013-missing-macros/analyzed.json index b74283e4..8d60f1a4 100644 --- a/conformance/cases/warn-013-missing-macros/analyzed.json +++ b/conformance/cases/warn-013-missing-macros/analyzed.json @@ -122,5 +122,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-013-missing-macros/compiled.json b/conformance/cases/warn-013-missing-macros/compiled.json index 339ef7ea..8e4d3347 100644 --- a/conformance/cases/warn-013-missing-macros/compiled.json +++ b/conformance/cases/warn-013-missing-macros/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-014-unknown-mass/analyzed.json b/conformance/cases/warn-014-unknown-mass/analyzed.json index a2d8656d..77568fa3 100644 --- a/conformance/cases/warn-014-unknown-mass/analyzed.json +++ b/conformance/cases/warn-014-unknown-mass/analyzed.json @@ -117,5 +117,59 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-014-unknown-mass/compiled.json b/conformance/cases/warn-014-unknown-mass/compiled.json index 7b1c24eb..5749d3df 100644 --- a/conformance/cases/warn-014-unknown-mass/compiled.json +++ b/conformance/cases/warn-014-unknown-mass/compiled.json @@ -84,5 +84,59 @@ "duration": 1 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + }, + "upfront": { + "totalTime": 3, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 1 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 1, + "end": 3 + } + ] + } } } diff --git a/conformance/cases/warn-015-invalid-timer-unit/analyzed.json b/conformance/cases/warn-015-invalid-timer-unit/analyzed.json index 52feba36..d81f0661 100644 --- a/conformance/cases/warn-015-invalid-timer-unit/analyzed.json +++ b/conformance/cases/warn-015-invalid-timer-unit/analyzed.json @@ -79,5 +79,34 @@ "isEstimate": false, "coverage": 0 } + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-015-invalid-timer-unit/compiled.json b/conformance/cases/warn-015-invalid-timer-unit/compiled.json index d1819538..f169d6c7 100644 --- a/conformance/cases/warn-015-invalid-timer-unit/compiled.json +++ b/conformance/cases/warn-015-invalid-timer-unit/compiled.json @@ -61,5 +61,34 @@ } ], "preparationTime": 0 + }, + "miseEnPlace": [], + "schedules": { + "perSection": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + }, + "upfront": { + "totalTime": 2, + "idleTime": 0, + "blocks": [ + { + "kind": "step", + "section": 0, + "step": 0, + "start": 0, + "end": 2 + } + ] + } } } diff --git a/conformance/cases/warn-016-circular-reference-indirect-intermediates/analyzed.json b/conformance/cases/warn-016-circular-reference-indirect-intermediates/analyzed.json index ad375f85..03acc162 100644 --- a/conformance/cases/warn-016-circular-reference-indirect-intermediates/analyzed.json +++ b/conformance/cases/warn-016-circular-reference-indirect-intermediates/analyzed.json @@ -263,5 +263,97 @@ } ] } + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + }, + "upfront": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + } } } diff --git a/conformance/cases/warn-016-circular-reference-indirect-intermediates/compiled.json b/conformance/cases/warn-016-circular-reference-indirect-intermediates/compiled.json index 231f396c..a08cd459 100644 --- a/conformance/cases/warn-016-circular-reference-indirect-intermediates/compiled.json +++ b/conformance/cases/warn-016-circular-reference-indirect-intermediates/compiled.json @@ -204,5 +204,97 @@ "duration": 4 } ] + }, + "miseEnPlace": [ + { + "section": 0, + "duration": 3, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 3, + "duration": 3 + } + ] + }, + { + "section": 1, + "duration": 1, + "items": [ + { + "kind": "gather", + "target": "ingredient", + "count": 1, + "duration": 1 + } + ] + } + ], + "schedules": { + "perSection": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 3, + "end": 5 + }, + { + "kind": "prep", + "section": 1, + "start": 5, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + }, + "upfront": { + "totalTime": 8, + "idleTime": 0, + "blocks": [ + { + "kind": "prep", + "section": 0, + "start": 0, + "end": 3 + }, + { + "kind": "prep", + "section": 1, + "start": 3, + "end": 4 + }, + { + "kind": "step", + "section": 0, + "step": 0, + "start": 4, + "end": 6 + }, + { + "kind": "step", + "section": 1, + "step": 0, + "start": 6, + "end": 8 + } + ] + } } } diff --git a/conformance/mise-en-place.test.ts b/conformance/mise-en-place.test.ts index 61f5a8d9..2717783f 100644 --- a/conformance/mise-en-place.test.ts +++ b/conformance/mise-en-place.test.ts @@ -8,7 +8,9 @@ import { type CompilerOptions, compile, computeMiseEnPlace, + type ProcessedStep, type Registry, + type Schedule, } from "@gram-lang/kitchen"; import { composeRecipe, @@ -81,6 +83,7 @@ function toRegistry(compiled: CompilationResult): Registry { } function checkInvariants(compiled: CompilationResult): void { + checkSchedules(compiled); const registry = toRegistry(compiled); const mise = computeMiseEnPlace(compiled.sections, registry); @@ -134,6 +137,95 @@ function checkInvariants(compiled: CompilationResult): void { } } +const overlaps = ( + a: { start: number; end: number }, + b: { start: number; end: number }, +) => a.start < b.end && b.start < a.end; + +function checkSchedules(compiled: CompilationResult): void { + const { miseEnPlace, schedules, metrics, sections } = compiled; + const preparation = metrics.preparationTime; + + // The compiled field is the same fact computeMiseEnPlace derives. + expect(miseEnPlace).toEqual( + computeMiseEnPlace(sections, toRegistry(compiled)), + ); + + for (const [mode, schedule] of Object.entries(schedules) as Array< + [string, Schedule] + >) { + // Invariant 3: a prep block per mise en place entry, of the right length. + const prep = schedule.blocks.filter((b) => b.kind === "prep"); + expect(prep.map((b) => b.section).sort((a, b) => a - b)).toEqual( + miseEnPlace.map((m) => m.section), + ); + for (const b of prep) { + const entry = miseEnPlace.find((m) => m.section === b.section); + expect(b.end - b.start).toBe(entry?.duration); + } + + // Invariant 4: the three times add up, and nothing is negative. + expect(schedule.idleTime).toBeGreaterThanOrEqual(0); + expect(schedule.totalTime).toBe( + preparation + metrics.activeTime + schedule.idleTime, + ); + expect(schedule.totalTime).toBe( + schedule.blocks.reduce((max, b) => Math.max(max, b.end), 0), + ); + + // Blocks are sorted by start, then end. + for (let i = 1; i < schedule.blocks.length; i++) { + const [a, b] = [schedule.blocks[i - 1], schedule.blocks[i]]; + expect(a.start < b.start || (a.start === b.start && a.end <= b.end)).toBe( + true, + ); + } + + // Every step block points at a real, non-comment step. + for (const b of schedule.blocks) { + if (b.kind === "prep") continue; + expect(sections[b.section].steps[b.step]?.type).toBe("step"); + } + expect(mode).toMatch(/perSection|upfront/); + } + + // Invariant 5: upfront is the legacy timeline pushed back by the preparation. + const upfront = schedules.upfront; + expect(upfront.totalTime).toBe(metrics.totalTime); + for (const b of upfront.blocks) { + if (b.kind !== "step") continue; + const step = sections[b.section].steps[b.step] as ProcessedStep; + expect(b.start).toBe(step.timings.start + preparation); + expect(b.end).toBe(step.timings.end + preparation); + } + const expectedPassives: number[] = []; + for (const sec of sections) { + for (const st of sec.steps) { + if (st.type !== "step") continue; + for (const bg of st.backgroundTasks ?? []) { + expectedPassives.push(st.timings.start + bg.startOffset + preparation); + } + } + } + expect( + upfront.blocks + .filter((b) => b.kind === "passive") + .map((b) => b.start) + .sort((a, b) => a - b), + ).toEqual(expectedPassives.sort((a, b) => a - b)); + + // Invariant 6: with one cook, a preparation never overlaps a step, and the + // steps add up to the active time. + const perSection = schedules.perSection; + const steps = perSection.blocks.filter((b) => b.kind === "step"); + for (const p of perSection.blocks.filter((b) => b.kind === "prep")) { + for (const st of steps) expect(overlaps(p, st)).toBe(false); + } + expect(steps.reduce((sum, b) => sum + (b.end - b.start), 0)).toBe( + metrics.activeTime, + ); +} + describe("mise en place per section", () => { const cases = readdirSync(CASES_DIR).filter((n) => existsSync(join(CASES_DIR, n, ENTRY_URI)), diff --git a/conformance/run.ts b/conformance/run.ts index 97bab3fb..2d54e853 100644 --- a/conformance/run.ts +++ b/conformance/run.ts @@ -58,6 +58,19 @@ function toJSON(value: unknown): string { return `${JSON.stringify(value, null, 2)}\n`; } +/** + * Drops the `generator` field (`@gram-lang/kitchen@`) from a + * compiled/analyzed result before it is written or compared: it changes on + * every release, and a golden that embedded it would fail on each one for no + * behavioral reason. Every other field stays locked in. + */ +function withoutGenerator(result: T): Omit { + const { generator: _generator, ...rest } = result as T & { + generator?: string; + }; + return rest; +} + interface CaseOptions { compilerOptions?: CompilerOptions; scaleTarget?: { id: string; qty: number; unit?: string | null }; @@ -207,13 +220,13 @@ async function runCase( writeOrCompare(join(caseDir, "ast.json"), toJSON(ast), diffs, "ast.json"); writeOrCompare( join(caseDir, "compiled.json"), - toJSON(compiled), + toJSON(withoutGenerator(compiled)), diffs, "compiled.json", ); writeOrCompare( join(caseDir, "analyzed.json"), - toJSON(analyzed), + toJSON(withoutGenerator(analyzed)), diffs, "analyzed.json", ); diff --git a/packages/kitchen/package.json b/packages/kitchen/package.json index 8ef07859..ceeb90b1 100644 --- a/packages/kitchen/package.json +++ b/packages/kitchen/package.json @@ -29,6 +29,7 @@ "access": "public" }, "scripts": { + "prebuild": "node scripts/build-version.cjs", "build": "tsup src/index.ts --format esm --dts --tsconfig ../../tsconfig.build.json", "typecheck": "tsc --noEmit", "test": "bun test --only-failures", diff --git a/packages/kitchen/scripts/build-version.cjs b/packages/kitchen/scripts/build-version.cjs new file mode 100644 index 00000000..acfa9d06 --- /dev/null +++ b/packages/kitchen/scripts/build-version.cjs @@ -0,0 +1,15 @@ +const fs = require('fs'); +const path = require('path'); + +const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8')); +const tsFile = path.join(__dirname, '../src/version.ts'); + +// The `generator` field of the compiled JSON reads this — bundlers and tests +// alike can import it without reaching outside `src/`. +const output = `// AUTO-GENERATED FILE. DO NOT EDIT.\nexport const KITCHEN_VERSION = ${JSON.stringify(pkg.version)};\n`; + +// Only rewrite on change so a no-op build doesn't dirty the tree. +if (!fs.existsSync(tsFile) || fs.readFileSync(tsFile, 'utf-8') !== output) { + fs.writeFileSync(tsFile, output); + console.log('✅ src/version.ts generated'); +} diff --git a/packages/kitchen/src/core.ts b/packages/kitchen/src/core.ts index 0fa158c2..f5b69d14 100644 --- a/packages/kitchen/src/core.ts +++ b/packages/kitchen/src/core.ts @@ -2,7 +2,7 @@ import { slugify, cleanObject } from "./utils"; import { applyScale } from "./scale"; import { processSections } from "./processor"; import { generateShoppingList } from "./shopping"; -import { calculatePreparationTime } from "./metrics"; +import { KITCHEN_VERSION } from "./version"; import { RecipeRegistry } from "./registry"; import type { RecipeAST } from "@gram-lang/parser"; import type { CompilationResult, Usage } from "./types"; @@ -62,6 +62,7 @@ export function compile( const title = typeof titleValue === "string" ? titleValue : null; const result: CompilationResult = { + generator: `@gram-lang/kitchen@${KITCHEN_VERSION}`, title, slug: title ? slugify(title) : null, // Cloned defensively: compile() must never mutate the caller's AST, @@ -73,7 +74,7 @@ export function compile( sections, warnings: registry.warnings, metrics: (() => { - const prepRes = calculatePreparationTime(sections, registry); + const prepRes = resultPayload.preparation; return { totalTime: prepRes.total + @@ -87,6 +88,8 @@ export function compile( prepBreakdown: prepRes.breakdown, }; })(), + miseEnPlace: resultPayload.miseEnPlace, + schedules: resultPayload.schedules, }; const scaled = diff --git a/packages/kitchen/src/metrics.ts b/packages/kitchen/src/metrics.ts index 8d4adbc1..9bc181d0 100644 --- a/packages/kitchen/src/metrics.ts +++ b/packages/kitchen/src/metrics.ts @@ -1,33 +1,14 @@ import type { + MiseEnPlaceItem, ProcessedSection, Registry, + SectionMiseEnPlace, StepToken, TimeBreakdownItem, Usage, } from "./types"; import { addToBreakdown, slugify } from "./utils"; -/** One line of a section's mise en place cost. */ -export type MiseEnPlaceItem = - | { - kind: "gather"; - target: "ingredient" | "cookware"; - count: number; - duration: number; - } - | { - kind: "prepare"; - ref: { type: "ingredient" | "cookware"; id: string }; - duration: number; - }; - -/** What preparing section `section` costs. Only sections with a cost appear. */ -export interface SectionMiseEnPlace { - section: number; // index into the sections array - duration: number; // == sum of items[].duration - items: MiseEnPlaceItem[]; -} - // Tracks the ingredient's stable `id` rather than a display name — the label is // resolved to a name via the registry at render time, the same way every other // ingredient reference in the compiled output is (shopping list, section lists). diff --git a/packages/kitchen/src/processor.ts b/packages/kitchen/src/processor.ts index bd7de5f5..186727b5 100644 --- a/packages/kitchen/src/processor.ts +++ b/packages/kitchen/src/processor.ts @@ -33,6 +33,8 @@ import type { RetroPlanning, TimeBreakdownItem, DeferredImport, + Schedule, + SectionMiseEnPlace, } from "./types"; import type { CompilerOptions } from "./core"; import type { RecipeRegistry } from "./registry"; @@ -42,9 +44,14 @@ import { detectIntermediateCycles } from "./graph"; import { scheduleALAP, serializeTracks, - rebaseAndCommit, + computeTimeline, + commitTimeline, + cloneSchedules, + buildPerSectionSchedule, + buildUpfrontSchedule, type StepSchedule, } from "./schedule"; +import { calculatePreparationTime, computeMiseEnPlace } from "./metrics"; export interface ProcessorContext extends Context { options?: CompilerOptions; @@ -657,6 +664,9 @@ export function processSections( activeBreakdown: TimeBreakdownItem[]; totalBreakdown: TimeBreakdownItem[]; }; + preparation: { total: number; breakdown: TimeBreakdownItem[] }; + miseEnPlace: SectionMiseEnPlace[]; + schedules: { perSection: Schedule; upfront: Schedule }; } { const ctx: ProcessorContext = { warnings: registry.warnings, @@ -900,6 +910,12 @@ export function processSections( // commit) live in ./schedule — extracted so each is independently // unit-testable on synthetic StepSchedule arrays, without going through // the parser (audit 2026-07-22, kitchen finding F-004/P-001). + // + // The schedules are cloned *before* the legacy pass: scheduleALAP pushes + // into `produced` and rebaseAndCommit writes onto the compiled steps, and + // the per-section pass below must start from the untouched records. + const pristineSchedules = cloneSchedules(globalSchedules); + scheduleALAP(globalSchedules, sections, sectionASTs, registry.warnings); const scheduledPassiveTasks = serializeTracks( globalSchedules, @@ -907,12 +923,49 @@ export function processSections( sectionASTs, registry.warnings, ); - const metrics = rebaseAndCommit( + const legacyTimeline = computeTimeline( globalSchedules, scheduledPassiveTasks, sections, + ); + const metrics = commitTimeline(legacyTimeline, globalActiveTime); + + // Mise en place: one cost per section, then the two complete timelines. + const preparation = calculatePreparationTime(sections, registry); + const miseEnPlace = computeMiseEnPlace(sections, registry); + const upfront = buildUpfrontSchedule( + legacyTimeline, + miseEnPlace, + preparation.total, + globalActiveTime, + ); + const perSection = buildPerSectionSchedule( + pristineSchedules, + miseEnPlace, + sections, + sectionASTs, + preparation.total, globalActiveTime, ); - return { sections, metrics }; + // A contention that only exists in the default (per-section) timeline must + // not be hidden: add its warnings to the official ones, skipping any the + // legacy pass already raised (same code + message). + for (const w of perSection.warnings) { + if ( + !registry.warnings.some( + (o) => o.code === w.code && o.message === w.message, + ) + ) { + registry.warnings.push(w); + } + } + + return { + sections, + metrics, + preparation, + miseEnPlace, + schedules: { perSection: perSection.schedule, upfront }, + }; } diff --git a/packages/kitchen/src/schedule/alap.ts b/packages/kitchen/src/schedule/alap.ts index 7833d68c..da909cda 100644 --- a/packages/kitchen/src/schedule/alap.ts +++ b/packages/kitchen/src/schedule/alap.ts @@ -96,6 +96,8 @@ export function scheduleALAP( // binding win, exactly like today's `Math.max` over all // background-task ends used to before this refactor. for (const step of sectionSteps) { + // A synthetic mise en place entry produces nothing. + if (step.isPrep) continue; if (!step.produced.includes(section.intermediate_preparation)) { step.produced.push(section.intermediate_preparation); } diff --git a/packages/kitchen/src/schedule/build.ts b/packages/kitchen/src/schedule/build.ts new file mode 100644 index 00000000..90b1240a --- /dev/null +++ b/packages/kitchen/src/schedule/build.ts @@ -0,0 +1,129 @@ +import type { SectionAST } from "@gram-lang/parser"; +import type { + ProcessedSection, + Schedule, + ScheduleBlock, + SectionMiseEnPlace, +} from "../types"; +import type { Warning } from "../warnings"; +import { scheduleALAP } from "./alap"; +import { computeTimeline, sortBlocks, type Timeline } from "./rebase"; +import { serializeTracks } from "./tracks"; +import type { StepSchedule } from "./types"; + +/** + * Deep-enough copy of the scheduling records for a second, independent pass: + * `produced`/`consumed`/`passiveTasks` are copied (scheduleALAP pushes into + * `produced`) and `ls`/`lf` reset. `stepObj` stays shared — the per-section + * pass never writes to it (only `commitTimeline` does, and only for the + * legacy pass). + */ +export function cloneSchedules(schedules: StepSchedule[]): StepSchedule[] { + return schedules.map((s) => ({ + ...s, + produced: [...s.produced], + consumed: [...s.consumed], + passiveTasks: s.passiveTasks.map((t) => ({ ...t })), + ls: 0, + lf: 0, + })); +} + +/** + * Planning where all the preparation happens first: the legacy timeline + * (steps and passive tasks) pushed back by the total preparation time, with + * one `prep` block per section laid end to end from T0. + */ +export function buildUpfrontSchedule( + legacy: Timeline, + mise: SectionMiseEnPlace[], + preparationTime: number, + activeTime: number, +): Schedule { + const blocks: ScheduleBlock[] = []; + let cursor = 0; + for (const entry of mise) { + blocks.push({ + kind: "prep", + section: entry.section, + start: cursor, + end: cursor + entry.duration, + }); + cursor += entry.duration; + } + for (const b of legacy.blocks) { + blocks.push({ + ...b, + start: b.start + preparationTime, + end: b.end + preparationTime, + }); + } + + const totalTime = preparationTime + legacy.workflowDuration; + return { + totalTime, + idleTime: totalTime - activeTime - preparationTime, + blocks: sortBlocks(blocks), + }; +} + +/** + * Planning where each section's preparation is scheduled like a step of its + * own, placed at the head of the section: the existing ALAP chaining then + * makes it finish right when the section's first real step starts (and start + * only once the previous section's work is done), so a preparation can + * overlap the rest of an earlier section's resting time. + * + * Runs on a clone of the schedules and with its own warnings array — it must + * never touch the compiled steps or the official warnings (see the caller). + */ +export function buildPerSectionSchedule( + pristine: StepSchedule[], + mise: SectionMiseEnPlace[], + sections: ProcessedSection[], + sectionASTs: SectionAST[], + preparationTime: number, + activeTime: number, +): { schedule: Schedule; warnings: Warning[] } { + const schedules = cloneSchedules(pristine); + + for (const entry of mise) { + const at = schedules.findIndex( + (s) => s.sectionIndex === entry.section && !s.isComment, + ); + if (at === -1) continue; + schedules.splice(at, 0, { + sectionIndex: entry.section, + stepObj: null, + isComment: false, + isPrep: true, + localActiveTime: entry.duration, + productionTime: entry.duration, + produced: [], + consumed: [], + passiveTasks: [], + ls: 0, + lf: 0, + }); + } + + const warnings: Warning[] = []; + scheduleALAP(schedules, sections, sectionASTs, warnings); + const passiveTasks = serializeTracks( + schedules, + sections, + sectionASTs, + warnings, + ); + const timeline = computeTimeline(schedules, passiveTasks, sections); + + const totalTime = timeline.blocks.reduce((max, b) => Math.max(max, b.end), 0); + return { + schedule: { + totalTime, + idleTime: totalTime - activeTime - preparationTime, + blocks: timeline.blocks, + }, + warnings, + }; +} diff --git a/packages/kitchen/src/schedule/index.ts b/packages/kitchen/src/schedule/index.ts index c9ffa455..cdab4ce8 100644 --- a/packages/kitchen/src/schedule/index.ts +++ b/packages/kitchen/src/schedule/index.ts @@ -2,3 +2,9 @@ export type { StepSchedule } from "./types"; export { scheduleALAP } from "./alap"; export { serializeTracks } from "./tracks"; export { rebaseAndCommit } from "./rebase"; +export { computeTimeline, commitTimeline, type Timeline } from "./rebase"; +export { + buildPerSectionSchedule, + buildUpfrontSchedule, + cloneSchedules, +} from "./build"; diff --git a/packages/kitchen/src/schedule/rebase.ts b/packages/kitchen/src/schedule/rebase.ts index 3a062b67..11a3dabb 100644 --- a/packages/kitchen/src/schedule/rebase.ts +++ b/packages/kitchen/src/schedule/rebase.ts @@ -1,6 +1,7 @@ import type { ProcessedSection, ProcessedStep, + ScheduleBlock, TimeBreakdownItem, } from "../types"; import { addToBreakdown } from "../utils"; @@ -13,22 +14,47 @@ export interface ScheduleMetrics { totalBreakdown: TimeBreakdownItem[]; } +/** + * The rebased, side-effect-free result of laying out a set of schedules: + * every timing shifted so the earliest lands at 0, ready to be committed onto + * the compiled output (`commitTimeline`) or read as-is (the per-section pass). + */ +export interface Timeline { + blocks: ScheduleBlock[]; + steps: Array<{ sched: StepSchedule; start: number; end: number }>; + passives: Array<{ entry: ScheduledPassiveTask; start: number; end: number }>; + workflowDuration: number; + activeBreakdown: TimeBreakdownItem[]; + totalBreakdown: TimeBreakdownItem[]; +} + +const KIND_ORDER = { prep: 0, step: 1, passive: 2 } as const; + +/** Deterministic order: by start, then end, then kind, then position in the recipe. */ +export function sortBlocks(blocks: ScheduleBlock[]): ScheduleBlock[] { + return blocks.sort( + (a, b) => + a.start - b.start || + a.end - b.end || + KIND_ORDER[a.kind] - KIND_ORDER[b.kind] || + a.section - b.section || + ("step" in a ? a.step : -1) - ("step" in b ? b.step : -1), + ); +} + /** * Shifts every `ls`/`lf`/passive-task start so the earliest one lands at 0 * (ALAP scheduling naturally produces negative offsets from an arbitrary - * T-zero), writes the final `timings.start`/`timings.end` onto each step's - * output object, and computes the timing breakdowns / idle time. + * T-zero) and computes the blocks and timing breakdowns. * - * This is the only phase that mutates the compiled output's `timings` — - * scheduleALAP and serializeTracks only compute `ls`/`lf`/actualStart on the - * internal StepSchedule/ScheduledPassiveTask records. + * Pure: reads `schedules`/`passiveTasks`, writes nothing. A synthetic `isPrep` + * schedule becomes a `prep` block and is left out of the active breakdown. */ -export function rebaseAndCommit( +export function computeTimeline( schedules: StepSchedule[], passiveTasks: ScheduledPassiveTask[], sections: ProcessedSection[], - globalActiveTime: number, -): ScheduleMetrics { +): Timeline { let globalMinStart = 0; for (const sched of schedules) { if (!sched.isComment) globalMinStart = Math.min(globalMinStart, sched.ls); @@ -39,6 +65,9 @@ export function rebaseAndCommit( const rebaseOffset = Math.abs(globalMinStart); + const blocks: ScheduleBlock[] = []; + const steps: Timeline["steps"] = []; + const passives: Timeline["passives"] = []; const activeBreakdown: TimeBreakdownItem[] = []; const totalContributions: Array<{ label: string; @@ -49,13 +78,29 @@ export function rebaseAndCommit( for (const sched of schedules) { if (sched.isComment) continue; - const stepObj = sched.stepObj as ProcessedStep; const rebasedLs = sched.ls + rebaseOffset; const rebasedLf = sched.lf + rebaseOffset; - stepObj.timings.start = rebasedLs; - stepObj.timings.end = rebasedLf; - stepObj.timings.activeDuration = sched.localActiveTime; + if (sched.isPrep) { + blocks.push({ + kind: "prep", + section: sched.sectionIndex, + start: rebasedLs, + end: rebasedLf, + }); + continue; + } + + steps.push({ sched, start: rebasedLs, end: rebasedLf }); + blocks.push({ + kind: "step", + section: sched.sectionIndex, + step: sections[sched.sectionIndex]!.steps.indexOf( + sched.stepObj as ProcessedStep, + ), + start: rebasedLs, + end: rebasedLf, + }); if (sched.localActiveTime > 0) { const sectionTitle = sections[sched.sectionIndex]!.title || "unnamed"; @@ -70,15 +115,22 @@ export function rebaseAndCommit( } for (const entry of passiveTasks) { - const stepObj = entry.sched.stepObj as ProcessedStep; const rebasedStart = entry.actualStart + rebaseOffset; const rebasedEnd = entry.actualEnd + rebaseOffset; + passives.push({ entry, start: rebasedStart, end: rebasedEnd }); - stepObj.backgroundTasks.push({ - name: entry.task.sourceName, - duration: entry.task.duration, - startOffset: rebasedStart - stepObj.timings.start, - }); + const passiveBlock: ScheduleBlock = { + kind: "passive", + section: entry.sched.sectionIndex, + step: sections[entry.sched.sectionIndex]!.steps.indexOf( + entry.sched.stepObj as ProcessedStep, + ), + start: rebasedStart, + end: rebasedEnd, + }; + // Anonymous timers carry no track: keep the key absent rather than undefined. + if (entry.task.isNamed) passiveBlock.track = entry.task.name; + blocks.push(passiveBlock); const timerLabel = entry.task.isNamed ? `timer_named:${entry.task.name}` @@ -103,13 +155,60 @@ export function rebaseAndCommit( } } - const workflowDuration = maxEnd; - const idleTime = workflowDuration - globalActiveTime; - return { - idleTime, - activeTime: globalActiveTime, + blocks: sortBlocks(blocks), + steps, + passives, + workflowDuration: maxEnd, activeBreakdown, totalBreakdown, }; } + +/** + * Writes a timeline onto the compiled output: `timings.start`/`end`/ + * `activeDuration` on each step and `backgroundTasks` on each step with a + * passive task. This is the only phase that mutates the compiled output's + * `timings` — scheduleALAP and serializeTracks only compute `ls`/`lf`/ + * actualStart on the internal StepSchedule/ScheduledPassiveTask records. + */ +export function commitTimeline( + timeline: Timeline, + globalActiveTime: number, +): ScheduleMetrics { + for (const { sched, start, end } of timeline.steps) { + const stepObj = sched.stepObj as ProcessedStep; + stepObj.timings.start = start; + stepObj.timings.end = end; + stepObj.timings.activeDuration = sched.localActiveTime; + } + + for (const { entry, start } of timeline.passives) { + const stepObj = entry.sched.stepObj as ProcessedStep; + stepObj.backgroundTasks.push({ + name: entry.task.sourceName, + duration: entry.task.duration, + startOffset: start - stepObj.timings.start, + }); + } + + return { + idleTime: timeline.workflowDuration - globalActiveTime, + activeTime: globalActiveTime, + activeBreakdown: timeline.activeBreakdown, + totalBreakdown: timeline.totalBreakdown, + }; +} + +/** Lays out `schedules` and commits the result onto the compiled output. */ +export function rebaseAndCommit( + schedules: StepSchedule[], + passiveTasks: ScheduledPassiveTask[], + sections: ProcessedSection[], + globalActiveTime: number, +): ScheduleMetrics { + return commitTimeline( + computeTimeline(schedules, passiveTasks, sections), + globalActiveTime, + ); +} diff --git a/packages/kitchen/src/schedule/types.ts b/packages/kitchen/src/schedule/types.ts index ee4b17bf..2232ebad 100644 --- a/packages/kitchen/src/schedule/types.ts +++ b/packages/kitchen/src/schedule/types.ts @@ -16,8 +16,13 @@ import type { ProcessedStepItem } from "../types"; */ export interface StepSchedule { sectionIndex: number; - stepObj: ProcessedStepItem; + // Null only for a synthetic mise en place entry (`isPrep`), which stands in + // for a section's preparation and has no compiled step behind it. + stepObj: ProcessedStepItem | null; isComment: boolean; + // True for the synthetic entry the per-section pass injects at the head of a + // section: it is scheduled like any other work but reported as a `prep` block. + isPrep?: boolean; localActiveTime: number; productionTime: number; produced: string[]; @@ -27,7 +32,7 @@ export interface StepSchedule { lf: number; } -interface PassiveTask { +export interface PassiveTask { name: string; duration: number; localOffset: number; diff --git a/packages/kitchen/src/types.ts b/packages/kitchen/src/types.ts index a6e57204..b2bb132b 100644 --- a/packages/kitchen/src/types.ts +++ b/packages/kitchen/src/types.ts @@ -173,11 +173,13 @@ export interface ProcessedStep { type: "step"; action?: string; // The explicit action verb (e.g. "Mix") // Gantt Data + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ timings: { start: number; // Global start time (in minutes, relative to T=0) end: number; // Global end time (when the cook is free) activeDuration: number; // How long the cook is blocked on this step }; + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ backgroundTasks: Array<{ name?: string; // E.g., "baking" or the timer name duration: number; // In minutes @@ -198,12 +200,63 @@ export interface ProcessedSection { retro_planning?: RetroPlanning | null; } +/** One line of a section's mise en place cost. */ +export type MiseEnPlaceItem = + | { + kind: "gather"; + target: "ingredient" | "cookware"; + count: number; + duration: number; + } + | { + kind: "prepare"; + ref: { type: "ingredient" | "cookware"; id: string }; + duration: number; + }; + +/** + * Mode-independent fact: what preparing section `section` costs. Present only + * when the cost is above zero. + */ +export interface SectionMiseEnPlace { + section: number; // index into CompilationResult.sections + duration: number; // == sum of items[].duration (derived, kept so consumers needn't sum) + items: MiseEnPlaceItem[]; +} + +export type ScheduleBlock = + | { kind: "prep"; section: number; start: number; end: number } + | { + kind: "step"; + section: number; + step: number; // index in sections[section].steps (comments included) + start: number; + end: number; + } + | { + kind: "passive"; + section: number; + step: number; + track?: string; // only for named passive timers (~_name{}) + start: number; + end: number; + }; + +/** A complete timeline, in minutes from T0 = 0, preparation included. */ +export interface Schedule { + totalTime: number; // max(end) over blocks + idleTime: number; // totalTime - metrics.activeTime - metrics.preparationTime + blocks: ScheduleBlock[]; // sorted by start, then end +} + export interface TimeBreakdownItem { label: string; duration: number; // in minutes } export interface CompilationResult { + /** Version of the compiler that produced this JSON: "@gram-lang/kitchen@". */ + generator: string; title: string | null; slug: string | null; meta: Meta; @@ -217,12 +270,24 @@ export interface CompilationResult { sections: ProcessedSection[]; warnings: Warning[]; metrics: { - preparationTime: number; // Estimated mise-en-place time + preparationTime: number; // Estimated mise-en-place time (sum of miseEnPlace[].duration) activeTime: number; // Sum of blocking work time (default step durations + active timers) + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ idleTime: number; // Duration of passive background tasks / waiting + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ totalTime: number; // preparationTime + activeTime + idleTime + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ activeBreakdown: TimeBreakdownItem[]; // Added for exact tooltip calculation + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ prepBreakdown: TimeBreakdownItem[]; + /** @deprecated since 1.4.0, removed in 2.0.0 — use schedules / miseEnPlace */ totalBreakdown: TimeBreakdownItem[]; // The critical path }; + /** What preparing each section costs — independent of the chosen schedule. */ + miseEnPlace: SectionMiseEnPlace[]; + /** + * Two complete timelines: preparation right before each section + * (`perSection`), or all of it at the start (`upfront`). + */ + schedules: { perSection: Schedule; upfront: Schedule }; } diff --git a/packages/kitchen/src/utils.ts b/packages/kitchen/src/utils.ts index df3d8171..355e855b 100644 --- a/packages/kitchen/src/utils.ts +++ b/packages/kitchen/src/utils.ts @@ -206,6 +206,9 @@ export const cleanObject = (obj: unknown): unknown => { "sections", "shopping_list", "warnings", + // Always present in the compiled output, even when empty. + "miseEnPlace", + "blocks", ]; if (!keepKeys.includes(key)) continue; } diff --git a/packages/kitchen/src/version.ts b/packages/kitchen/src/version.ts new file mode 100644 index 00000000..985a4461 --- /dev/null +++ b/packages/kitchen/src/version.ts @@ -0,0 +1,2 @@ +// AUTO-GENERATED FILE. DO NOT EDIT. +export const KITCHEN_VERSION = "1.3.0"; diff --git a/packages/kitchen/tests/__snapshots__/snapshots.test.ts.snap b/packages/kitchen/tests/__snapshots__/snapshots.test.ts.snap index a24a7637..3353e6c4 100644 --- a/packages/kitchen/tests/__snapshots__/snapshots.test.ts.snap +++ b/packages/kitchen/tests/__snapshots__/snapshots.test.ts.snap @@ -38,6 +38,20 @@ exports[`Compiler Snapshots should compile with_warnings.gram correctly 1`] = ` ], "totalTime": 21, }, + "miseEnPlace": [ + { + "duration": 5, + "items": [ + { + "count": 5, + "duration": 5, + "kind": "gather", + "target": "ingredient", + }, + ], + "section": 0, + }, + ], "registry": { "cookware": {}, "ingredients": { @@ -66,6 +80,144 @@ exports[`Compiler Snapshots should compile with_warnings.gram correctly 1`] = ` }, }, }, + "schedules": { + "perSection": { + "blocks": [ + { + "end": 5, + "kind": "prep", + "section": 0, + "start": 0, + }, + { + "end": 7, + "kind": "step", + "section": 0, + "start": 5, + "step": 0, + }, + { + "end": 9, + "kind": "step", + "section": 0, + "start": 7, + "step": 1, + }, + { + "end": 11, + "kind": "step", + "section": 0, + "start": 9, + "step": 2, + }, + { + "end": 13, + "kind": "step", + "section": 0, + "start": 11, + "step": 3, + }, + { + "end": 15, + "kind": "step", + "section": 0, + "start": 13, + "step": 4, + }, + { + "end": 17, + "kind": "step", + "section": 0, + "start": 15, + "step": 5, + }, + { + "end": 19, + "kind": "step", + "section": 0, + "start": 17, + "step": 6, + }, + { + "end": 21, + "kind": "step", + "section": 1, + "start": 19, + "step": 0, + }, + ], + "idleTime": 0, + "totalTime": 21, + }, + "upfront": { + "blocks": [ + { + "end": 5, + "kind": "prep", + "section": 0, + "start": 0, + }, + { + "end": 7, + "kind": "step", + "section": 0, + "start": 5, + "step": 0, + }, + { + "end": 9, + "kind": "step", + "section": 0, + "start": 7, + "step": 1, + }, + { + "end": 11, + "kind": "step", + "section": 0, + "start": 9, + "step": 2, + }, + { + "end": 13, + "kind": "step", + "section": 0, + "start": 11, + "step": 3, + }, + { + "end": 15, + "kind": "step", + "section": 0, + "start": 13, + "step": 4, + }, + { + "end": 17, + "kind": "step", + "section": 0, + "start": 15, + "step": 5, + }, + { + "end": 19, + "kind": "step", + "section": 0, + "start": 17, + "step": 6, + }, + { + "end": 21, + "kind": "step", + "section": 1, + "start": 19, + "step": 0, + }, + ], + "idleTime": 0, + "totalTime": 21, + }, + }, "sections": [ { "cookware": [], @@ -556,6 +708,54 @@ exports[`Compiler Snapshots should compile simple_recipe.gram correctly 1`] = ` ], "totalTime": 149, }, + "miseEnPlace": [ + { + "duration": 15, + "items": [ + { + "count": 12, + "duration": 12, + "kind": "gather", + "target": "ingredient", + }, + { + "count": 1, + "duration": 1, + "kind": "gather", + "target": "cookware", + }, + { + "duration": 2, + "kind": "prepare", + "ref": { + "id": "butter", + "type": "ingredient", + }, + }, + ], + "section": 0, + }, + { + "duration": 4, + "items": [ + { + "count": 2, + "duration": 2, + "kind": "gather", + "target": "cookware", + }, + { + "duration": 2, + "kind": "prepare", + "ref": { + "id": "frying-pan", + "type": "cookware", + }, + }, + ], + "section": 1, + }, + ], "registry": { "cookware": { "bowl": { @@ -633,6 +833,142 @@ exports[`Compiler Snapshots should compile simple_recipe.gram correctly 1`] = ` }, }, }, + "schedules": { + "perSection": { + "blocks": [ + { + "end": 15, + "kind": "prep", + "section": 0, + "start": 0, + }, + { + "end": 17, + "kind": "step", + "section": 0, + "start": 15, + "step": 0, + }, + { + "end": 19, + "kind": "step", + "section": 0, + "start": 17, + "step": 1, + }, + { + "end": 21, + "kind": "step", + "section": 0, + "start": 19, + "step": 2, + }, + { + "end": 23, + "kind": "step", + "section": 0, + "start": 21, + "step": 3, + }, + { + "end": 83, + "kind": "step", + "section": 0, + "start": 23, + "step": 4, + }, + { + "end": 143, + "kind": "prep", + "section": 1, + "start": 139, + }, + { + "end": 143, + "kind": "step", + "section": 1, + "start": 143, + "step": 0, + }, + { + "end": 145, + "kind": "passive", + "section": 1, + "start": 143, + "step": 0, + }, + ], + "idleTime": 58, + "totalTime": 145, + }, + "upfront": { + "blocks": [ + { + "end": 15, + "kind": "prep", + "section": 0, + "start": 0, + }, + { + "end": 19, + "kind": "prep", + "section": 1, + "start": 15, + }, + { + "end": 21, + "kind": "step", + "section": 0, + "start": 19, + "step": 0, + }, + { + "end": 23, + "kind": "step", + "section": 0, + "start": 21, + "step": 1, + }, + { + "end": 25, + "kind": "step", + "section": 0, + "start": 23, + "step": 2, + }, + { + "end": 27, + "kind": "step", + "section": 0, + "start": 25, + "step": 3, + }, + { + "end": 87, + "kind": "step", + "section": 0, + "start": 27, + "step": 4, + }, + { + "end": 147, + "kind": "step", + "section": 1, + "start": 147, + "step": 0, + }, + { + "end": 149, + "kind": "passive", + "section": 1, + "start": 147, + "step": 0, + }, + ], + "idleTime": 62, + "totalTime": 149, + }, + }, "sections": [ { "cookware": [ diff --git a/packages/kitchen/tests/mise-en-place.test.ts b/packages/kitchen/tests/mise-en-place.test.ts new file mode 100644 index 00000000..c0859d92 --- /dev/null +++ b/packages/kitchen/tests/mise-en-place.test.ts @@ -0,0 +1,53 @@ +import { describe, expect, it } from "bun:test"; +import { getAST } from "@gram-lang/parser"; +import { compile } from "../src/index"; +import { KITCHEN_VERSION } from "../src/version"; + +const RECIPE = `## Dough ->&dough + +Mix @flour{500g} and @water{300ml} in a #bowl. + +[Rest] Let it rest ~_{2h}. + +## Filling + +Slice @onions{200g}(finely sliced). + +## Assembly + +Combine &dough and the filling, then bake for ~{25min}. +`; + +describe("compiled mise en place and schedules", () => { + it("stamps the compiler version in `generator`", () => { + const result = compile(getAST(RECIPE)); + expect(result.generator).toBe(`@gram-lang/kitchen@${KITCHEN_VERSION}`); + expect(KITCHEN_VERSION).toMatch(/^\d+\.\d+\.\d+/); + }); + + it("does not scale durations: mise en place and schedules ignore the scale factor", () => { + const base = compile(getAST(RECIPE)); + const scaled = compile(getAST(RECIPE), { scaleFactor: 3 }); + + expect(scaled.miseEnPlace).toEqual(base.miseEnPlace); + expect(scaled.schedules).toEqual(base.schedules); + expect(scaled.metrics.preparationTime).toBe(base.metrics.preparationTime); + }); + + it("keeps `miseEnPlace` and the schedules present, and empty, for an empty recipe", () => { + const result = compile(getAST("")); + expect(result.miseEnPlace).toEqual([]); + expect(result.schedules.perSection.blocks).toEqual([]); + expect(result.schedules.upfront.blocks).toEqual([]); + expect(result.schedules.perSection.totalTime).toBe(0); + }); + + it("keeps the deprecated fields' values and meaning", () => { + const result = compile(getAST(RECIPE)); + // The legacy total is the upfront timeline's total. + expect(result.metrics.totalTime).toBe(result.schedules.upfront.totalTime); + expect(result.metrics.preparationTime).toBe( + result.miseEnPlace.reduce((sum, m) => sum + m.duration, 0), + ); + }); +}); diff --git a/packages/kitchen/tests/schedule/per-section.test.ts b/packages/kitchen/tests/schedule/per-section.test.ts new file mode 100644 index 00000000..9b35f1e8 --- /dev/null +++ b/packages/kitchen/tests/schedule/per-section.test.ts @@ -0,0 +1,193 @@ +import { describe, expect, it } from "bun:test"; +import { buildPerSectionSchedule } from "../../src/schedule/build"; +import type { StepSchedule } from "../../src/schedule/types"; +import type { + ProcessedSection, + ProcessedStep, + SectionMiseEnPlace, +} from "../../src/types"; + +function makeStep(): ProcessedStep { + return { + type: "step", + content: [], + timings: { start: 0, end: 0, activeDuration: 0 }, + backgroundTasks: [], + }; +} + +function makeSchedule(overrides: Partial = {}): StepSchedule { + return { + sectionIndex: 0, + stepObj: makeStep(), + isComment: false, + localActiveTime: 2, + productionTime: 2, + produced: [], + consumed: [], + passiveTasks: [], + ls: 0, + lf: 0, + ...overrides, + }; +} + +// Section 0 makes a dough that rests 2h; section 1 needs a mise en place and +// then uses the dough. +function doughRecipe() { + const rest = makeSchedule({ + localActiveTime: 2, + productionTime: 122, + produced: ["dough"], + passiveTasks: [ + { name: "Timer", duration: 120, localOffset: 2, isNamed: false }, + ], + }); + const assemble = makeSchedule({ + sectionIndex: 1, + localActiveTime: 10, + productionTime: 10, + consumed: ["dough"], + }); + const sections: ProcessedSection[] = [ + { + title: "Dough", + ingredients: [], + cookware: [], + steps: [rest.stepObj as ProcessedStep], + intermediate_preparation: "dough", + }, + { + title: "Assembly", + ingredients: [], + cookware: [], + steps: [assemble.stepObj as ProcessedStep], + }, + ]; + const mise: SectionMiseEnPlace[] = [ + { section: 0, duration: 3, items: [] }, + { section: 1, duration: 8, items: [] }, + ]; + return { schedules: [rest, assemble], sections, mise }; +} + +describe("buildPerSectionSchedule", () => { + it("places a section's preparation right before its first step, during an earlier rest", () => { + const { schedules, sections, mise } = doughRecipe(); + const { schedule } = buildPerSectionSchedule( + schedules, + mise, + sections, + [], + 11, + 12, + ); + + const prep1 = schedule.blocks.find( + (b) => b.kind === "prep" && b.section === 1, + )!; + const step1 = schedule.blocks.find( + (b) => b.kind === "step" && b.section === 1, + )!; + const rest = schedule.blocks.find((b) => b.kind === "passive")!; + + expect(prep1.end).toBe(step1.start); + expect(prep1.end - prep1.start).toBe(8); + // The preparation happens while the dough is still resting. + expect(prep1.start).toBeGreaterThanOrEqual(rest.start); + expect(prep1.end).toBeLessThanOrEqual(rest.end); + }); + + it("starts with the first section's preparation at T0", () => { + const { schedules, sections, mise } = doughRecipe(); + const { schedule } = buildPerSectionSchedule( + schedules, + mise, + sections, + [], + 11, + 12, + ); + expect(schedule.blocks[0]).toEqual({ + kind: "prep", + section: 0, + start: 0, + end: 3, + }); + }); + + it("reports total and idle time from the blocks", () => { + const { schedules, sections, mise } = doughRecipe(); + const { schedule } = buildPerSectionSchedule( + schedules, + mise, + sections, + [], + 11, + 12, + ); + const maxEnd = Math.max(...schedule.blocks.map((b) => b.end)); + expect(schedule.totalTime).toBe(maxEnd); + expect(schedule.idleTime).toBe(maxEnd - 12 - 11); + }); + + it("never writes to the inputs (schedules, steps, produced)", () => { + const { schedules, sections, mise } = doughRecipe(); + buildPerSectionSchedule(schedules, mise, sections, [], 11, 12); + + for (const s of schedules) { + expect(s.ls).toBe(0); + expect(s.lf).toBe(0); + expect((s.stepObj as ProcessedStep).timings.start).toBe(0); + expect((s.stepObj as ProcessedStep).backgroundTasks).toEqual([]); + } + // scheduleALAP would push the section's product into every step's `produced`. + expect(schedules[0]!.produced).toEqual(["dough"]); + expect(schedules).toHaveLength(2); + }); + + it("keeps its warnings apart from the caller's", () => { + const { schedules, sections, mise } = doughRecipe(); + const { warnings } = buildPerSectionSchedule( + schedules, + mise, + sections, + [], + 11, + 12, + ); + expect(Array.isArray(warnings)).toBe(true); + }); + + it("emits no prep block for a section without mise en place", () => { + const { schedules, sections } = doughRecipe(); + const { schedule } = buildPerSectionSchedule( + schedules, + [], + sections, + [], + 0, + 12, + ); + expect(schedule.blocks.some((b) => b.kind === "prep")).toBe(false); + }); + + it("never overlaps a preparation with a step (one cook)", () => { + const { schedules, sections, mise } = doughRecipe(); + const { schedule } = buildPerSectionSchedule( + schedules, + mise, + sections, + [], + 11, + 12, + ); + const preps = schedule.blocks.filter((b) => b.kind === "prep"); + const steps = schedule.blocks.filter((b) => b.kind === "step"); + for (const p of preps) { + for (const s of steps) { + expect(p.start < s.end && s.start < p.end).toBe(false); + } + } + }); +}); diff --git a/packages/kitchen/tests/schedule/upfront.test.ts b/packages/kitchen/tests/schedule/upfront.test.ts new file mode 100644 index 00000000..74140f4a --- /dev/null +++ b/packages/kitchen/tests/schedule/upfront.test.ts @@ -0,0 +1,121 @@ +import { describe, expect, it } from "bun:test"; +import { buildUpfrontSchedule } from "../../src/schedule/build"; +import { computeTimeline } from "../../src/schedule/rebase"; +import type { + ScheduledPassiveTask, + StepSchedule, +} from "../../src/schedule/types"; +import type { + ProcessedSection, + ProcessedStep, + SectionMiseEnPlace, +} from "../../src/types"; + +function makeStep(): ProcessedStep { + return { + type: "step", + content: [], + timings: { start: 0, end: 0, activeDuration: 0 }, + backgroundTasks: [], + }; +} + +function fixture() { + const a: StepSchedule = { + sectionIndex: 0, + stepObj: makeStep(), + isComment: false, + localActiveTime: 5, + productionTime: 5, + produced: [], + consumed: [], + passiveTasks: [], + ls: -20, + lf: -15, + }; + const b: StepSchedule = { + sectionIndex: 1, + stepObj: makeStep(), + isComment: false, + localActiveTime: 10, + productionTime: 10, + produced: [], + consumed: [], + passiveTasks: [], + ls: -10, + lf: 0, + }; + const passive: ScheduledPassiveTask = { + sched: a, + task: { name: "oven", duration: 30, localOffset: 0, isNamed: true }, + theoreticalStart: -15, + actualStart: -15, + actualEnd: 15, + }; + const sections: ProcessedSection[] = [a, b].map((s) => ({ + title: null, + ingredients: [], + cookware: [], + steps: [s.stepObj as ProcessedStep], + })); + const mise: SectionMiseEnPlace[] = [ + { section: 0, duration: 3, items: [] }, + { section: 1, duration: 2, items: [] }, + ]; + return { schedules: [a, b], passives: [passive], sections, mise }; +} + +describe("buildUpfrontSchedule", () => { + it("lays the preparations end to end from T0", () => { + const { schedules, passives, sections, mise } = fixture(); + const legacy = computeTimeline(schedules, passives, sections); + const up = buildUpfrontSchedule(legacy, mise, 5, 15); + + const preps = up.blocks.filter((b) => b.kind === "prep"); + expect(preps).toEqual([ + { kind: "prep", section: 0, start: 0, end: 3 }, + { kind: "prep", section: 1, start: 3, end: 5 }, + ]); + }); + + it("pushes every step and passive block back by the preparation time", () => { + const { schedules, passives, sections, mise } = fixture(); + const legacy = computeTimeline(schedules, passives, sections); + const up = buildUpfrontSchedule(legacy, mise, 5, 15); + + const shifted = up.blocks.filter((b) => b.kind !== "prep"); + expect(shifted).toHaveLength(legacy.blocks.length); + for (const b of shifted) { + const orig = legacy.blocks.find( + (o) => + o.kind === b.kind && + o.section === b.section && + "step" in o && + "step" in b && + o.step === b.step, + )!; + expect(b.start).toBe(orig.start + 5); + expect(b.end).toBe(orig.end + 5); + } + }); + + it("adds the preparation to the legacy total, and keeps the track name", () => { + const { schedules, passives, sections, mise } = fixture(); + const legacy = computeTimeline(schedules, passives, sections); + const up = buildUpfrontSchedule(legacy, mise, 5, 15); + + expect(up.totalTime).toBe(legacy.workflowDuration + 5); + expect(up.idleTime).toBe(up.totalTime - 15 - 5); + const passive = up.blocks.find((b) => b.kind === "passive"); + expect(passive && "track" in passive && passive.track).toBe("oven"); + }); + + it("leaves anonymous passive blocks without a track key", () => { + const { schedules, passives, sections, mise } = fixture(); + passives[0]!.task.isNamed = false; + const legacy = computeTimeline(schedules, passives, sections); + const up = buildUpfrontSchedule(legacy, mise, 5, 15); + const passive = up.blocks.find((b) => b.kind === "passive")!; + expect("track" in passive).toBe(false); + }); +}); diff --git a/packages/kitchen/tests/snapshots.test.ts b/packages/kitchen/tests/snapshots.test.ts index 65159d61..46439098 100644 --- a/packages/kitchen/tests/snapshots.test.ts +++ b/packages/kitchen/tests/snapshots.test.ts @@ -12,7 +12,10 @@ describe("Compiler Snapshots", () => { it(`should compile ${file} correctly`, () => { const input = readFileSync(join(fixturesDir, file), "utf-8"); const ast = getAST(input); - const result = compile(ast); + // `generator` embeds the package version: keep it out of the snapshot so + // a release doesn't invalidate every one. + const { generator, ...result } = compile(ast); + expect(generator).toMatch(/^@gram-lang\/kitchen@\d+\.\d+\.\d+/); expect(result).toMatchSnapshot(); }); } diff --git a/turbo.json b/turbo.json index d5001fcf..a472378a 100644 --- a/turbo.json +++ b/turbo.json @@ -11,6 +11,10 @@ "outputs": ["src/grammar-content.ts"], "outputLogs": "errors-only" }, + "@gram-lang/kitchen#prebuild": { + "outputs": ["src/version.ts"], + "outputLogs": "errors-only" + }, "@gram-lang/docs#prebuild": { "dependsOn": ["^build"], "outputs": ["public/llms-full.txt"],