gram/conformance/cases/053-relative-reference/analyzed.json

795 lines
17 KiB
JSON

{
"meta": {},
"registry": {
"ingredients": {
"rice": {
"id": "rice",
"name": "rice",
"is_intermediate": true,
"default_unit": "g"
},
"stock": {
"id": "stock",
"name": "stock",
"is_intermediate": true
},
"water": {
"id": "water",
"name": "water",
"default_unit": "l"
},
"butter": {
"id": "butter",
"name": "butter"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "rice",
"name": "rice",
"_usageIds": [
"1"
],
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"isEstimate": false,
"conversionMethod": "physical"
},
{
"id": "water",
"name": "water",
"_usageIds": [
"2"
],
"qty": 2,
"unit": "l"
},
{
"id": "butter",
"name": "butter",
"_usageIds": [
"5"
],
"relative": true,
"qty": 50,
"unit": "g",
"normalizedMass": 50,
"isEstimate": false,
"conversionMethod": "physical"
}
],
"cookware": [],
"sections": [
{
"title": "Rice",
"ingredients": [
{
"id": "rice",
"_usageId": "1",
"qty": 200,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 200
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Cook ",
{
"id": "rice",
"_usageId": "1",
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"conversionMethod": "physical",
"isEstimate": false
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"intermediate_preparation": "rice",
"metrics": {
"totalMass": 200,
"massStatus": "precise",
"missingMassIngredients": []
}
},
{
"title": "Stock",
"ingredients": [
{
"id": "water",
"_usageId": "2",
"qty": 2,
"unit": "l"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Simmer ",
{
"id": "water",
"_usageId": "2",
"qty": 2,
"unit": "l"
},
"."
],
"timings": {
"start": 2,
"end": 4,
"activeDuration": 2
}
}
],
"intermediate_preparation": "stock",
"metrics": {
"totalMass": 0,
"massStatus": "incomplete",
"missingMassIngredients": [
"water"
]
}
},
{
"title": "Serve",
"ingredients": [
{
"type": "reference",
"id": "rice",
"name": "rice",
"_usageId": "3",
"qty": 200,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 200
},
{
"type": "reference",
"id": "stock",
"name": "stock",
"_usageId": "4",
"qty": {
"type": "single",
"value": 500
},
"dependencies": [
"rice"
],
"formula": {
"raw": "250 ml / 100 g @&rice",
"target": "rice",
"ratio": {
"numerator": {
"value": {
"type": "single",
"value": 250,
"text": "250"
},
"unit": "ml"
},
"denominator": {
"value": 100,
"unit": "g"
},
"target": "rice",
"targetId": "rice",
"referenceType": "ingredient",
"raw": "250 ml / 100 g @&rice",
"loc": {
"start": 120,
"end": 141
}
},
"isGhost": false
},
"unit": "ml"
},
{
"id": "butter",
"_usageId": "5",
"qty": {
"type": "single",
"value": 50
},
"dependencies": [
"stock"
],
"formula": {
"raw": "10 g / 100 ml &stock",
"target": "stock",
"ratio": {
"numerator": {
"value": {
"type": "single",
"value": 10,
"text": "10"
},
"unit": "g"
},
"denominator": {
"value": 100,
"unit": "ml"
},
"target": "stock",
"targetId": "stock",
"referenceType": "variable",
"raw": "10 g / 100 ml &stock",
"loc": {
"start": 155,
"end": 175
}
},
"isGhost": false
},
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 50,
"unit": "g"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix the ",
{
"type": "reference",
"id": "rice",
"name": "rice",
"_usageId": "3",
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"conversionMethod": "physical",
"isEstimate": false
},
"with ",
{
"type": "reference",
"id": "stock",
"name": "stock",
"_usageId": "4",
"qty": {
"type": "single",
"value": 500
},
"dependencies": [
"rice"
],
"formula": {
"raw": "250 ml / 100 g @&rice",
"target": "rice",
"ratio": {
"numerator": {
"value": {
"type": "single",
"value": 250,
"text": "250"
},
"unit": "ml"
},
"denominator": {
"value": 100,
"unit": "g"
},
"target": "rice",
"targetId": "rice",
"referenceType": "ingredient",
"raw": "250 ml / 100 g @&rice",
"loc": {
"start": 120,
"end": 141
}
},
"isGhost": false
},
"unit": "ml"
},
"and ",
{
"id": "butter",
"_usageId": "5",
"qty": {
"type": "single",
"value": 50
},
"dependencies": [
"stock"
],
"formula": {
"raw": "10 g / 100 ml &stock",
"target": "stock",
"ratio": {
"numerator": {
"value": {
"type": "single",
"value": 10,
"text": "10"
},
"unit": "g"
},
"denominator": {
"value": 100,
"unit": "ml"
},
"target": "stock",
"targetId": "stock",
"referenceType": "variable",
"raw": "10 g / 100 ml &stock",
"loc": {
"start": 155,
"end": 175
}
},
"isGhost": false
},
"unit": "g",
"normalizedMass": 50,
"conversionMethod": "physical",
"isEstimate": false
},
"."
],
"timings": {
"start": 4,
"end": 6,
"activeDuration": 2
}
}
],
"metrics": {
"totalMass": 250,
"massStatus": "precise",
"missingMassIngredients": []
}
},
{
"title": "Finish",
"ingredients": [
{
"type": "reference",
"id": "rice",
"name": "rice",
"_usageId": "6",
"qty": 100,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 100
},
{
"type": "reference",
"id": "stock",
"name": "stock",
"_usageId": "7",
"qty": {
"type": "single",
"value": 25
},
"dependencies": [
"rice"
],
"formula": {
"raw": "25% of rice",
"target": "rice",
"percent": 25,
"isGhost": false
},
"normalizedMass": 25,
"unit": "g",
"conversionMethod": "relative"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Moisten the ",
{
"type": "reference",
"id": "rice",
"name": "rice",
"_usageId": "6",
"qty": 100,
"unit": "g",
"normalizedMass": 100,
"conversionMethod": "physical",
"isEstimate": false
},
"with ",
{
"type": "reference",
"id": "stock",
"name": "stock",
"_usageId": "7",
"qty": {
"type": "single",
"value": 25
},
"dependencies": [
"rice"
],
"formula": {
"raw": "25% of rice",
"target": "rice",
"percent": 25,
"isGhost": false
},
"normalizedMass": 25,
"unit": "g",
"conversionMethod": "relative"
},
"."
],
"timings": {
"start": 6,
"end": 8,
"activeDuration": 2
}
}
],
"metrics": {
"totalMass": 125,
"massStatus": "precise",
"missingMassIngredients": []
}
}
],
"warnings": [
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"rice\" 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."
}
],
"metrics": {
"totalTime": 12,
"totalBreakdown": [
{
"label": "section_active:Rice",
"duration": 2
},
{
"label": "section_active:Stock",
"duration": 2
},
{
"label": "section_active:Serve",
"duration": 2
},
{
"label": "section_active:Finish",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 8,
"activeBreakdown": [
{
"label": "section_active:Rice",
"duration": 2
},
{
"label": "section_active:Stock",
"duration": 2
},
{
"label": "section_active:Serve",
"duration": 2
},
{
"label": "section_active:Finish",
"duration": 2
}
],
"preparationTime": 4,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 4
}
],
"totalMass": 250,
"massStatus": "incomplete",
"missingMassIngredients": [
"water"
],
"nutrition": {
"total": {
"calories": 0,
"fat": 0,
"carbs": 0,
"protein": 0
},
"isEstimate": false,
"coverage": 0,
"warnings": [
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"rice\" 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."
}
]
}
},
"miseEnPlace": [
{
"section": 1,
"duration": 1,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
]
},
{
"section": 2,
"duration": 3,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3,
"intermediates": 2
}
]
}
],
"tasks": {
"tasks": [
{
"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": []
},
{
"id": "s2.prep",
"kind": "prep",
"section": 2,
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
],
"after": []
},
{
"id": "s2.prep.rice",
"kind": "prep",
"section": 2,
"intermediate": "rice",
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
],
"after": [
"s0.0"
]
},
{
"id": "s2.prep.stock",
"kind": "prep",
"section": 2,
"intermediate": "stock",
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
],
"after": [
"s1.0"
]
},
{
"id": "s2.0",
"kind": "step",
"section": 2,
"step": 0,
"duration": {
"nominal": 2
},
"consumes": [
"rice",
"stock"
],
"after": [
"s0.0",
"s1.0"
]
},
{
"id": "s3.0",
"kind": "step",
"section": 3,
"step": 0,
"duration": {
"nominal": 2
},
"consumes": [
"rice",
"stock"
],
"after": [
"s0.0",
"s1.0"
]
}
],
"sections": [
{
"day": 0,
"intermediate": "rice"
},
{
"day": 0,
"intermediate": "stock"
},
{
"day": 0
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 12,
"activeTime": 8,
"preparationTime": 4,
"idleTime": 0,
"blocks": [
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 0,
"end": 2
},
{
"kind": "prep",
"task": "s1.prep",
"section": 1,
"start": 2,
"end": 3
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 3,
"end": 5
},
{
"kind": "prep",
"task": "s2.prep",
"section": 2,
"start": 5,
"end": 8
},
{
"kind": "step",
"task": "s2.0",
"section": 2,
"step": 0,
"start": 8,
"end": 10
},
{
"kind": "step",
"task": "s3.0",
"section": 3,
"step": 0,
"start": 10,
"end": 12
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 12,
"sections": [
0,
1,
2,
3
]
}
]
}
}