{ "title": "Warn Scope Conflict", "slug": "warn-scope-conflict", "meta": { "title": "Warn Scope Conflict" }, "registry": { "ingredients": { "dup": { "id": "dup", "name": "dup", "is_intermediate": true }, "flour": { "id": "flour", "name": "flour", "default_unit": "g" }, "milk": { "id": "milk", "name": "milk", "default_unit": "ml" } }, "cookware": {} }, "shopping_list": [ { "id": "flour", "name": "flour", "_usageIds": [ "1" ], "qty": 200, "unit": "g", "normalizedMass": 200, "isEstimate": false, "conversionMethod": "physical" }, { "id": "milk", "name": "milk", "_usageIds": [ "2" ], "qty": 100, "unit": "ml" } ], "cookware": [], "sections": [ { "title": "First", "ingredients": [ { "id": "flour", "_usageId": "1", "qty": 200, "unit": "g", "conversionMethod": "physical", "isEstimate": false, "normalizedMass": 200 } ], "cookware": [], "steps": [ { "type": "step", "content": [ "Mix ", { "id": "flour", "_usageId": "1", "qty": 200, "unit": "g", "normalizedMass": 200, "conversionMethod": "physical", "isEstimate": false }, "." ], "timings": { "start": 0, "end": 2, "activeDuration": 2 } } ], "intermediate_preparation": "dup", "metrics": { "totalMass": 200, "massStatus": "precise", "missingMassIngredients": [] } }, { "title": "Second", "ingredients": [ { "id": "milk", "_usageId": "2", "qty": 100, "unit": "ml" } ], "cookware": [], "steps": [ { "type": "step", "content": [ "Mix ", { "id": "milk", "_usageId": "2", "qty": 100, "unit": "ml" }, "." ], "timings": { "start": 2, "end": 4, "activeDuration": 2 } } ], "intermediate_preparation": "dup", "metrics": { "totalMass": 0, "massStatus": "incomplete", "missingMassIngredients": [ "milk" ] } } ], "warnings": [ { "code": "SCOPE_CONFLICT", "message": "Intermediate variable '&dup' is redefined; variable names must be unique across the recipe.", "loc": { "start": 82, "end": 88 }, "section": "Second" }, { "code": "MISSING_INGREDIENT", "message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable." }, { "code": "UNKNOWN_MASS", "message": "Cannot calculate mass for \"milk\" — omitted from nutritional totals." } ], "metrics": { "totalTime": 7, "totalBreakdown": [ { "label": "section_active:First", "duration": 2 }, { "label": "section_active:Second", "duration": 2 } ], "idleTime": 0, "activeTime": 4, "activeBreakdown": [ { "label": "section_active:First", "duration": 2 }, { "label": "section_active:Second", "duration": 2 } ], "preparationTime": 3, "prepBreakdown": [ { "label": "ingredients_overhead", "duration": 3 } ], "totalMass": 200, "massStatus": "incomplete", "missingMassIngredients": [ "milk" ], "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 \"milk\" — omitted from nutritional totals." } ] } }, "miseEnPlace": [ { "section": 0, "duration": 2, "items": [ { "kind": "gather", "target": "ingredient", "count": 2, "duration": 2, "intermediates": 1 } ] }, { "section": 1, "duration": 1, "items": [ { "kind": "gather", "target": "ingredient", "count": 1, "duration": 1 } ] } ], "tasks": { "tasks": [ { "id": "s0.prep", "kind": "prep", "section": 0, "duration": { "nominal": 1 }, "items": [ { "kind": "gather", "target": "ingredient", "count": 1, "duration": 1 } ], "after": [] }, { "id": "s0.prep.dup", "kind": "prep", "section": 0, "intermediate": "dup", "duration": { "nominal": 1 }, "items": [ { "kind": "gather", "target": "ingredient", "count": 1, "duration": 1, "intermediates": 1 } ], "after": [ "s0.0" ] }, { "id": "s0.0", "kind": "step", "section": 0, "step": 0, "duration": { "nominal": 2 }, "after": [] }, { "id": "s1.prep", "kind": "prep", "section": 1, "duration": { "nominal": 1 }, "items": [ { "kind": "gather", "target": "ingredient", "count": 1, "duration": 1 } ], "after": [] }, { "id": "s1.0", "kind": "step", "section": 1, "step": 0, "duration": { "nominal": 2 }, "after": [] } ], "sections": [ { "day": 0, "intermediate": "dup" }, { "day": 0, "intermediate": "dup" } ] }, "schedule": { "miseEnPlace": "perSection", "rests": "shortest", "totalTime": 7, "activeTime": 4, "preparationTime": 3, "idleTime": 0, "blocks": [ { "kind": "prep", "task": "s0.prep", "section": 0, "start": 0, "end": 2 }, { "kind": "step", "task": "s0.0", "section": 0, "step": 0, "start": 2, "end": 4 }, { "kind": "prep", "task": "s1.prep", "section": 1, "start": 4, "end": 5 }, { "kind": "step", "task": "s1.0", "section": 1, "step": 0, "start": 5, "end": 7 } ], "days": [ { "day": 0, "start": 0, "end": 7, "sections": [ 0, 1 ] } ] } }