gram/conformance/cases/mod-009-cycle/compiled.json
abiwab d3b2c04ff3
All checks were successful
CI / Build & Test (pull_request) Successful in 5m14s
fix(kitchen): link intermediates and references by id in the task graph
2026-11-22 00:24:38 +01:00

459 lines
8.6 KiB
JSON

{
"meta": {},
"registry": {
"ingredients": {
"a": {
"id": "a",
"name": "a",
"is_intermediate": true
},
"a-b": {
"id": "a-b",
"name": "b",
"is_intermediate": true
}
},
"cookware": {}
},
"shopping_list": [],
"cookware": [],
"sections": [
{
"title": "B",
"ingredients": [
{
"type": "reference",
"id": "a",
"name": "a",
"_usageId": "1",
"qty": 1
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Use ",
{
"type": "reference",
"id": "a",
"name": "a",
"_usageId": "1",
"qty": 1
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"intermediate_preparation": "a$b",
"module": {
"binding": "b",
"uri": "b.gram",
"title": null,
"mode": "inline"
}
},
{
"title": "A",
"ingredients": [
{
"type": "reference",
"id": "a-b",
"name": "a$b",
"_usageId": "2",
"qty": 1
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Use ",
{
"type": "reference",
"id": "a-b",
"name": "a$b",
"_usageId": "2",
"qty": 1
},
"."
],
"timings": {
"start": 2,
"end": 4,
"activeDuration": 2
}
}
],
"intermediate_preparation": "a",
"module": {
"binding": "a",
"uri": "a.gram",
"title": null,
"mode": "inline"
}
},
{
"title": "Section",
"ingredients": [
{
"type": "reference",
"id": "a",
"name": "a",
"_usageId": "3",
"qty": 1
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Use ",
{
"type": "reference",
"id": "a",
"name": "a",
"_usageId": "3",
"qty": 1
},
"."
],
"timings": {
"start": 4,
"end": 6,
"activeDuration": 2
}
}
]
}
],
"warnings": [
{
"code": "MODULE_NOT_FOUND",
"message": "Module \"./a.gram\" could not be found or resolved.",
"loc": {
"start": 0,
"end": 22,
"uri": "b.gram"
},
"uri": "b.gram"
},
{
"code": "SCOPE_CONFLICT",
"message": "Intermediate variable '&a' is redefined; variable names must be unique across the recipe.",
"loc": {
"start": 28,
"end": 32,
"uri": "a.gram"
},
"section": "A",
"uri": "a.gram"
},
{
"code": "CIRCULAR_REFERENCE",
"message": "Circular reference detected: 'a' depends on itself.",
"item": "a",
"loc": {
"start": 28,
"end": 32,
"uri": "a.gram"
},
"uri": "a.gram"
},
{
"code": "CIRCULAR_REFERENCE",
"message": "Circular reference detected: 'a$b' depends on itself.",
"item": "a$b",
"loc": {
"start": 28,
"end": 32,
"uri": "a.gram"
},
"uri": "a.gram"
},
{
"code": "MODULE_CYCLE",
"message": "Circular module import detected: a.gram → b.gram → a.gram.",
"loc": {
"start": 0,
"end": 22,
"uri": "b.gram"
},
"uri": "b.gram"
},
{
"code": "UNRESOLVED_MODULE_YIELD",
"message": "Cannot compute yield for '&b' from \"./b.gram\": missing physical mass data for one or more ingredients.",
"loc": {
"start": 0,
"end": 22
}
},
{
"code": "UNRESOLVED_MODULE_YIELD",
"message": "Cannot compute yield for '&a' from \"./a.gram\": missing physical mass data for one or more ingredients.",
"loc": {
"start": 0,
"end": 22
}
}
],
"metrics": {
"totalTime": 8,
"totalBreakdown": [
{
"label": "section_active:B",
"duration": 2
},
{
"label": "section_active:A",
"duration": 2
},
{
"label": "section_active:Section",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 6,
"activeBreakdown": [
{
"label": "section_active:B",
"duration": 2
},
{
"label": "section_active:A",
"duration": 2
},
{
"label": "section_active:Section",
"duration": 2
}
],
"preparationTime": 2,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 2
}
]
},
"miseEnPlace": [
{
"section": 0,
"duration": 1,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
]
},
{
"section": 1,
"duration": 1,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1,
"intermediates": 1
}
]
}
],
"tasks": {
"tasks": [
{
"id": "s0.prep.a",
"kind": "prep",
"section": 0,
"intermediate": "a",
"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": [
"a"
],
"after": [
"s1.0"
]
},
{
"id": "s1.prep.a-b",
"kind": "prep",
"section": 1,
"intermediate": "a-b",
"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": [
"a-b"
],
"after": [
"s0.0"
]
},
{
"id": "s2.0",
"kind": "step",
"section": 2,
"step": 0,
"duration": {
"nominal": 2
},
"consumes": [
"a"
],
"after": [
"s1.0"
]
}
],
"sections": [
{
"day": 0,
"intermediate": "a-b"
},
{
"day": 0,
"intermediate": "a"
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 8,
"activeTime": 6,
"preparationTime": 2,
"idleTime": 0,
"blocks": [
{
"kind": "prep",
"task": "s0.prep.a",
"section": 0,
"start": 0,
"end": 1
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 1,
"end": 3
},
{
"kind": "prep",
"task": "s1.prep.a-b",
"section": 1,
"start": 3,
"end": 4
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 4,
"end": 6
},
{
"kind": "step",
"task": "s2.0",
"section": 2,
"step": 0,
"start": 6,
"end": 8
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 8,
"sections": [
0,
1,
2
]
}
]
},
"modules": [
{
"binding": "b",
"uri": "b.gram",
"title": null,
"meta": {},
"scaleFactor": 1,
"mode": "inline"
},
{
"binding": "a",
"uri": "a.gram",
"title": null,
"meta": {},
"scaleFactor": 1,
"mode": "inline"
}
]
}