gram/conformance/cases/warn-016-circular-reference-indirect-intermediates/analyzed.json
abiwab c653893ab0
All checks were successful
CI / Build, Test & Publish (push) Successful in 4m11s
feat: replace the Gantt chart with the work plan (#88)
Introduce @gram-lang/scheduler, work plan views, mise en place modes, comments option, and CLI/editor integrations.
2026-11-05 09:49:00 +01:00

466 lines
9.5 KiB
JSON

{
"title": "Indirect Intermediate Cycle",
"slug": "indirect-intermediate-cycle",
"meta": {
"title": "Indirect Intermediate Cycle"
},
"registry": {
"ingredients": {
"batter": {
"id": "batter",
"name": "batter",
"is_intermediate": true
},
"flour": {
"id": "flour",
"name": "flour",
"default_unit": "g"
},
"glaze": {
"id": "glaze",
"name": "glaze",
"is_intermediate": true
},
"sugar": {
"id": "sugar",
"name": "sugar",
"default_unit": "g"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "flour",
"name": "flour",
"_usageIds": [
"1"
],
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"isEstimate": false,
"conversionMethod": "physical"
},
{
"id": "sugar",
"name": "sugar",
"_usageIds": [
"3"
],
"qty": 100,
"unit": "g",
"normalizedMass": 100,
"isEstimate": false,
"conversionMethod": "physical"
}
],
"cookware": [],
"sections": [
{
"title": "Make Batter",
"ingredients": [
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 200
},
{
"type": "reference",
"id": "glaze",
"name": "glaze",
"_usageId": "2"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"normalizedMass": 200,
"conversionMethod": "physical",
"isEstimate": false
},
". Needs ",
{
"type": "reference",
"id": "glaze",
"name": "glaze",
"_usageId": "2"
},
"to finish."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"intermediate_preparation": "batter",
"metrics": {
"totalMass": 200,
"massStatus": "precise",
"missingMassIngredients": []
}
},
{
"title": "Make Glaze",
"ingredients": [
{
"id": "sugar",
"_usageId": "3",
"qty": 100,
"unit": "g",
"conversionMethod": "physical",
"isEstimate": false,
"normalizedMass": 100
},
{
"type": "reference",
"id": "batter",
"name": "batter",
"_usageId": "4"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "sugar",
"_usageId": "3",
"qty": 100,
"unit": "g",
"normalizedMass": 100,
"conversionMethod": "physical",
"isEstimate": false
},
". Needs ",
{
"type": "reference",
"id": "batter",
"name": "batter",
"_usageId": "4"
},
"to finish."
],
"timings": {
"start": 2,
"end": 4,
"activeDuration": 2
}
}
],
"intermediate_preparation": "glaze",
"metrics": {
"totalMass": 100,
"massStatus": "precise",
"missingMassIngredients": []
}
}
],
"warnings": [
{
"code": "UNDEFINED_REFERENCE",
"message": "Undefined reference '&glaze' — no prior step or section produces this item.",
"item": "glaze",
"loc": {
"start": 94,
"end": 100
}
},
{
"code": "CIRCULAR_REFERENCE",
"message": "Circular reference detected: 'glaze' depends on itself.",
"item": "glaze",
"loc": {
"start": 127,
"end": 135
}
},
{
"code": "CIRCULAR_REFERENCE",
"message": "Circular reference detected: 'batter' depends on itself.",
"item": "batter",
"loc": {
"start": 59,
"end": 68
}
},
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"flour\" not found in database — nutritional metrics and density conversions unavailable."
},
{
"code": "MISSING_INGREDIENT",
"message": "Ingredient \"sugar\" not found in database — nutritional metrics and density conversions unavailable."
}
],
"metrics": {
"totalTime": 8,
"totalBreakdown": [
{
"label": "section_active:Make Batter",
"duration": 2
},
{
"label": "section_active:Make Glaze",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 4,
"activeBreakdown": [
{
"label": "section_active:Make Batter",
"duration": 2
},
{
"label": "section_active:Make Glaze",
"duration": 2
}
],
"preparationTime": 4,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 4
}
],
"totalMass": 300,
"massStatus": "precise",
"missingMassIngredients": [],
"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": "MISSING_INGREDIENT",
"message": "Ingredient \"sugar\" 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": 2,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 2,
"duration": 2,
"intermediates": 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.glaze",
"kind": "prep",
"section": 0,
"intermediate": "glaze",
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
],
"after": [
"s1.0"
]
},
{
"id": "s0.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 2
},
"consumes": [
"glaze"
],
"after": [
"s1.0"
]
},
{
"id": "s1.prep",
"kind": "prep",
"section": 1,
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
],
"after": []
},
{
"id": "s1.prep.batter",
"kind": "prep",
"section": 1,
"intermediate": "batter",
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
],
"after": [
"s0.0"
]
},
{
"id": "s1.0",
"kind": "step",
"section": 1,
"step": 0,
"duration": {
"nominal": 2
},
"consumes": [
"batter"
],
"after": [
"s0.0"
]
}
],
"sections": [
{
"day": 0,
"intermediate": "batter"
},
{
"day": 0,
"intermediate": "glaze"
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 8,
"activeTime": 4,
"preparationTime": 4,
"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": 6
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 6,
"end": 8
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 8,
"sections": [
0,
1
]
}
]
}
}