gram/conformance/cases/048-preparation-single-line/analyzed.json
abiwab 6620c244d2
All checks were successful
CI / Build & Test (pull_request) Successful in 3m37s
fix(parser): end a preparation at the end of its line
2026-11-16 23:46:13 +01:00

595 lines
12 KiB
JSON

{
"title": "Preparation Single Line",
"slug": "preparation-single-line",
"meta": {
"title": "Preparation Single Line"
},
"registry": {
"ingredients": {
"flour": {
"id": "flour",
"name": "flour",
"default_unit": "g"
},
"water": {
"id": "water",
"name": "water",
"default_unit": "ml"
},
"butter": {
"id": "butter",
"name": "butter",
"default_unit": "g"
},
"salt": {
"id": "salt",
"name": "salt"
},
"zest": {
"id": "zest",
"name": "zest",
"is_composite": true,
"parent": "lemon"
},
"lemon": {
"id": "lemon",
"name": "lemon",
"is_composite": true
}
},
"cookware": {
"pan": {
"id": "pan",
"name": "pan"
}
}
},
"shopping_list": [
{
"id": "flour",
"name": "flour",
"_usageIds": [
"1"
],
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"isEstimate": false,
"conversionMethod": "physical"
},
{
"id": "water",
"name": "water",
"_usageIds": [
"2"
],
"qty": 120,
"unit": "ml"
},
{
"id": "butter",
"name": "butter",
"_usageIds": [
"4"
],
"qty": 20,
"unit": "g",
"normalizedMass": 20,
"isEstimate": false,
"conversionMethod": "physical"
},
{
"id": "salt",
"name": "salt",
"_usageIds": [
"5"
]
},
{
"type": "composite",
"id": "lemon",
"name": "lemon",
"qty": 1,
"usage": [
{
"id": "zest",
"qty": 1
}
]
}
],
"cookware": [
{
"id": "pan",
"_usageId": "3",
"qty": 1,
"fixed": false
}
],
"sections": [
{
"title": "Dough",
"ingredients": [
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 200
},
{
"id": "water",
"_usageId": "2",
"qty": 120,
"unit": "ml"
},
{
"id": "butter",
"_usageId": "4",
"qty": 20,
"unit": "g",
"preparation": "soft, cubed",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 20
}
],
"cookware": [
{
"id": "pan",
"_usageId": "3",
"qty": 1,
"fixed": false
}
],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"conversionMethod": "physical",
"isEstimate": false
},
"(sifted and ",
{
"id": "water",
"_usageId": "2",
"qty": 120,
"unit": "ml"
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
},
{
"type": "step",
"content": [
"Heat a ",
{
"id": "pan",
"_usageId": "3",
"qty": 1,
"fixed": false
},
"(large over ",
{
"type": "temperature",
"quantity": {
"type": "single",
"value": 180,
"text": "180"
},
"unit": "°C"
},
"."
],
"timings": {
"start": 2,
"end": 4,
"activeDuration": 2
}
},
{
"type": "step",
"content": [
"Knead ",
{
"id": "butter",
"_usageId": "4",
"qty": 20,
"unit": "g",
"preparation": "soft, cubed",
"normalizedMass": 20,
"conversionMethod": "physical",
"isEstimate": false
},
"."
],
"timings": {
"start": 4,
"end": 6,
"activeDuration": 2
}
}
],
"metrics": {
"totalMass": 220,
"massStatus": "incomplete",
"missingMassIngredients": [
"water"
]
}
},
{
"title": "Serve",
"ingredients": [
{
"id": "salt",
"_usageId": "5"
},
{
"id": "zest",
"_usageId": "6",
"qty": 1,
"composite": {
"parent": "lemon",
"quantity": 1
}
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Serve with ",
{
"id": "salt",
"_usageId": "5"
},
"(flaky and ",
{
"id": "zest",
"_usageId": "6",
"qty": 1,
"composite": {
"parent": "lemon",
"quantity": 1
}
},
"(organic."
],
"timings": {
"start": 6,
"end": 8,
"activeDuration": 2
}
}
],
"metrics": {
"totalMass": 0,
"massStatus": "incomplete",
"missingMassIngredients": [
"salt",
"zest"
]
}
}
],
"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 \"butter\" not found in database — nutritional metrics and density conversions unavailable."
},
{
"code": "UNKNOWN_MASS",
"message": "Cannot calculate mass for \"zest\" — omitted from nutritional totals."
}
],
"metrics": {
"totalTime": 17,
"totalBreakdown": [
{
"label": "section_active:Dough",
"duration": 6
},
{
"label": "section_active:Serve",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 8,
"activeBreakdown": [
{
"label": "section_active:Dough",
"duration": 6
},
{
"label": "section_active:Serve",
"duration": 2
}
],
"preparationTime": 9,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 6
},
{
"label": "cookware_overhead",
"duration": 1
},
{
"label": "prep_butter",
"duration": 2
}
],
"totalMass": 220,
"massStatus": "incomplete",
"missingMassIngredients": [
"water",
"salt",
"zest"
],
"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 \"butter\" not found in database — nutritional metrics and density conversions unavailable."
},
{
"code": "UNKNOWN_MASS",
"message": "Cannot calculate mass for \"zest\" — omitted from nutritional totals."
}
]
}
},
"miseEnPlace": [
{
"section": 0,
"duration": 6,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
},
{
"kind": "gather",
"target": "cookware",
"count": 1,
"duration": 1
},
{
"kind": "prepare",
"ref": {
"type": "ingredient",
"id": "butter"
},
"duration": 2
}
]
},
{
"section": 1,
"duration": 3,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
}
]
}
],
"tasks": {
"tasks": [
{
"id": "s0.prep",
"kind": "prep",
"section": 0,
"duration": {
"nominal": 6
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
},
{
"kind": "gather",
"target": "cookware",
"count": 1,
"duration": 1
},
{
"kind": "prepare",
"ref": {
"type": "ingredient",
"id": "butter"
},
"duration": 2
}
],
"after": []
},
{
"id": "s0.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
},
{
"id": "s0.1",
"kind": "step",
"section": 0,
"step": 1,
"duration": {
"nominal": 2
},
"after": [
"s0.0"
]
},
{
"id": "s0.2",
"kind": "step",
"section": 0,
"step": 2,
"duration": {
"nominal": 2
},
"after": [
"s0.1"
]
},
{
"id": "s1.prep",
"kind": "prep",
"section": 1,
"duration": {
"nominal": 3
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
}
],
"after": []
},
{
"id": "s1.0",
"kind": "step",
"section": 1,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
}
],
"sections": [
{
"day": 0
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 17,
"activeTime": 8,
"preparationTime": 9,
"idleTime": 0,
"blocks": [
{
"kind": "prep",
"task": "s0.prep",
"section": 0,
"start": 0,
"end": 6
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 6,
"end": 8
},
{
"kind": "step",
"task": "s0.1",
"section": 0,
"step": 1,
"start": 8,
"end": 10
},
{
"kind": "step",
"task": "s0.2",
"section": 0,
"step": 2,
"start": 10,
"end": 12
},
{
"kind": "prep",
"task": "s1.prep",
"section": 1,
"start": 12,
"end": 15
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 15,
"end": 17
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 17,
"sections": [
0,
1
]
}
]
}
}