gram/conformance/cases/061-composite-mixed-units/compiled.json
abiwab 9a09465335
All checks were successful
CI / Build & Test (pull_request) Successful in 5m38s
fix(kitchen): keep one composite shopping entry per parent unit
2026-11-22 17:16:47 +01:00

360 lines
6.8 KiB
JSON

{
"title": "Composite Mixed Units",
"slug": "composite-mixed-units",
"meta": {
"title": "Composite Mixed Units"
},
"registry": {
"ingredients": {
"butter": {
"id": "butter",
"name": "butter",
"default_unit": "g",
"is_composite": true
},
"clarified-butter": {
"id": "clarified-butter",
"name": "clarified butter",
"default_unit": "g",
"is_composite": true,
"parent": "butter"
},
"brown-butter": {
"id": "brown-butter",
"name": "brown butter",
"is_composite": true,
"parent": "butter"
}
},
"cookware": {}
},
"shopping_list": [
{
"type": "composite",
"id": "butter",
"name": "butter",
"qty": 1100,
"usage": [
{
"id": "clarified-butter",
"unit": "g",
"qty": 50
},
{
"id": "brown-butter",
"qty": 1
},
{
"id": "butter",
"alias": "Direct Use",
"qty": 100,
"unit": "g"
}
],
"unit": "g",
"multiUnit": true
},
{
"type": "composite",
"id": "butter",
"name": "butter",
"qty": 3,
"usage": [
{
"id": "clarified-butter",
"unit": "g",
"qty": 20
},
{
"id": "butter",
"alias": "Direct Use",
"qty": 1
}
],
"multiUnit": true
}
],
"cookware": [],
"sections": [
{
"title": "Prep",
"ingredients": [
{
"id": "butter",
"_usageId": "1",
"qty": 100,
"unit": "g"
},
{
"id": "butter",
"_usageId": "2",
"qty": 1
},
{
"id": "clarified-butter",
"_usageId": "3",
"qty": 50,
"unit": "g",
"composite": {
"parent": "butter",
"quantity": 120,
"unit": "g"
}
},
{
"id": "clarified-butter",
"_usageId": "4",
"qty": 20,
"unit": "g",
"composite": {
"parent": "butter",
"quantity": 2
}
},
{
"id": "brown-butter",
"_usageId": "5",
"qty": 1,
"composite": {
"parent": "butter",
"quantity": 1,
"unit": "kg"
}
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Melt ",
{
"id": "butter",
"_usageId": "1",
"qty": 100,
"unit": "g"
},
"and ",
{
"id": "butter",
"_usageId": "2",
"qty": 1
},
"more."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
},
{
"type": "step",
"content": [
"Clarify ",
{
"id": "clarified-butter",
"_usageId": "3",
"qty": 50,
"unit": "g",
"composite": {
"parent": "butter",
"quantity": 120,
"unit": "g"
}
},
", then ",
{
"id": "clarified-butter",
"_usageId": "4",
"qty": 20,
"unit": "g",
"composite": {
"parent": "butter",
"quantity": 2
}
},
"."
],
"timings": {
"start": 2,
"end": 4,
"activeDuration": 2
}
},
{
"type": "step",
"content": [
"Brown ",
{
"id": "brown-butter",
"_usageId": "5",
"qty": 1,
"composite": {
"parent": "butter",
"quantity": 1,
"unit": "kg"
}
},
"."
],
"timings": {
"start": 4,
"end": 6,
"activeDuration": 2
}
}
]
}
],
"warnings": [],
"metrics": {
"totalTime": 9,
"totalBreakdown": [
{
"label": "section_active:Prep",
"duration": 6
}
],
"idleTime": 0,
"activeTime": 6,
"activeBreakdown": [
{
"label": "section_active:Prep",
"duration": 6
}
],
"preparationTime": 3,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 3
}
]
},
"miseEnPlace": [
{
"section": 0,
"duration": 3,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
}
]
}
],
"tasks": {
"tasks": [
{
"id": "s0.prep",
"kind": "prep",
"section": 0,
"duration": {
"nominal": 3
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
}
],
"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"
]
}
],
"sections": [
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 9,
"activeTime": 6,
"preparationTime": 3,
"idleTime": 0,
"blocks": [
{
"kind": "prep",
"task": "s0.prep",
"section": 0,
"start": 0,
"end": 3
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 3,
"end": 5
},
{
"kind": "step",
"task": "s0.1",
"section": 0,
"step": 1,
"start": 5,
"end": 7
},
{
"kind": "step",
"task": "s0.2",
"section": 0,
"step": 2,
"start": 7,
"end": 9
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 9,
"sections": [
0
]
}
]
}
}