gram/conformance/cases/warn-019-ambiguous-number/analyzed.json

436 lines
9 KiB
JSON

{
"title": "Warn Ambiguous Number",
"slug": "warn-ambiguous-number",
"meta": {
"title": "Warn Ambiguous Number"
},
"registry": {
"ingredients": {
"base": {
"id": "base",
"name": "base",
"is_intermediate": true
},
"flour": {
"id": "flour",
"name": "flour",
"default_unit": "g"
},
"sugar": {
"id": "sugar",
"name": "sugar"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "flour",
"name": "flour",
"_usageIds": [
"1"
],
"qty": 1,
"unit": "g",
"normalizedMass": 1,
"isEstimate": false,
"conversionMethod": "physical"
},
{
"id": "sugar",
"name": "sugar",
"_usageIds": [
"2"
],
"relative": true,
"variable_entries": [
"1% of base"
]
}
],
"cookware": [],
"sections": [
{
"title": "Section",
"ingredients": [
{
"id": "flour",
"_usageId": "1",
"qty": 1,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 1
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Add ",
{
"id": "flour",
"_usageId": "1",
"qty": 1,
"unit": "g",
"normalizedMass": 1,
"conversionMethod": "physical",
"isEstimate": false
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"intermediate_preparation": "base",
"retro_planning": {
"raw": "-1,000h",
"sign": -1,
"value": 1,
"unit": "h",
"minutes": -60
},
"metrics": {
"totalMass": 1,
"massStatus": "precise",
"missingMassIngredients": []
}
},
{
"title": "Glaze",
"ingredients": [
{
"id": "sugar",
"_usageId": "2",
"qty": {
"type": "RelativeQuantity",
"percent": 1,
"target": "base",
"referenceType": "variable",
"loc": {
"start": 112,
"end": 124
}
},
"dependencies": [
"base"
],
"formula": {
"raw": "1% of base",
"target": "base",
"percent": 1,
"isGhost": false
}
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Add ",
{
"id": "sugar",
"_usageId": "2",
"qty": {
"type": "RelativeQuantity",
"percent": 1,
"target": "base",
"referenceType": "variable",
"loc": {
"start": 112,
"end": 124
}
},
"dependencies": [
"base"
],
"formula": {
"raw": "1% of base",
"target": "base",
"percent": 1,
"isGhost": false
}
},
"."
],
"timings": {
"start": 60,
"end": 62,
"activeDuration": 2
}
}
],
"metrics": {
"totalMass": 0,
"massStatus": "incomplete",
"missingMassIngredients": [
"sugar"
]
}
}
],
"warnings": [
{
"code": "AMBIGUOUS_NUMBER",
"message": "\"1,000\" on \"Section\" was read as 1: Gram reads a comma between two digits as a decimal and has no thousands separator. Write 1000 if that is the number you meant.",
"item": "Section",
"loc": {
"start": 49,
"end": 59
}
},
{
"code": "AMBIGUOUS_NUMBER",
"message": "\"1,000\" on \"flour\" was read as 1: Gram reads a comma between two digits as a decimal and has no thousands separator. Write 1000 if that is the number you meant.",
"item": "flour",
"loc": {
"start": 73,
"end": 88
}
},
{
"code": "AMBIGUOUS_NUMBER",
"message": "\"1,000\" on \"sugar\" was read as 1: Gram reads a comma between two digits as a decimal and has no thousands separator. Write 1000 if that is the number you meant.",
"item": "sugar",
"loc": {
"start": 105,
"end": 125
}
},
{
"code": "RELATIVE_QUANTITY_UNKNOWN_MASS",
"message": "Cannot compute relative quantity for 'sugar' because the mass of target 'base' is unknown.",
"item": "sugar"
},
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable."
}
],
"metrics": {
"totalTime": 65,
"totalBreakdown": [
{
"label": "section_active:Section",
"duration": 2
},
{
"label": "section_active:Glaze",
"duration": 2
}
],
"idleTime": 58,
"activeTime": 4,
"activeBreakdown": [
{
"label": "section_active:Section",
"duration": 2
},
{
"label": "section_active:Glaze",
"duration": 2
}
],
"preparationTime": 3,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 3
}
],
"totalMass": 1,
"massStatus": "incomplete",
"missingMassIngredients": [
"sugar"
],
"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."
}
]
}
},
"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.base",
"kind": "prep",
"section": 0,
"intermediate": "base",
"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,
"deadline": 60,
"intermediate": "base"
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 64,
"activeTime": 4,
"preparationTime": 3,
"idleTime": 57,
"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": 61,
"end": 62
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 62,
"end": 64
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 64,
"sections": [
0,
1
]
}
]
}
}