gram/conformance/cases/warn-003-circular-reference/compiled.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

251 lines
4.8 KiB
JSON

{
"title": "Warn Circular Reference",
"slug": "warn-circular-reference",
"meta": {
"title": "Warn Circular Reference"
},
"registry": {
"ingredients": {
"flour": {
"id": "flour",
"name": "flour",
"default_unit": "g"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "flour",
"name": "flour",
"_usageIds": [
"1"
],
"qty": 200,
"unit": "g",
"variable_entries": [
"⚠️ Circular Ref."
],
"multiUnit": true
},
{
"id": "flour",
"name": "flour",
"_usageIds": [
"2"
],
"relative": true,
"variable_entries": [
"10% of flour",
"⚠️ Circular Ref."
],
"multiUnit": true
}
],
"cookware": [],
"sections": [
{
"title": "Section",
"ingredients": [
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"isCircular": true
},
{
"id": "flour",
"_usageId": "2",
"qty": {
"type": "RelativeQuantity",
"percent": 10,
"target": "flour",
"referenceType": "ingredient",
"loc": {
"start": 90,
"end": 101
}
},
"isCircular": true,
"dependencies": [
"flour"
],
"formula": {
"raw": "10% of flour",
"target": "flour",
"percent": 10,
"isGhost": false
}
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "flour",
"_usageId": "1",
"qty": 200,
"unit": "g",
"isCircular": true
},
"then add more ",
{
"id": "flour",
"_usageId": "2",
"qty": {
"type": "RelativeQuantity",
"percent": 10,
"target": "flour",
"referenceType": "ingredient",
"loc": {
"start": 90,
"end": 101
}
},
"isCircular": true,
"dependencies": [
"flour"
],
"formula": {
"raw": "10% of flour",
"target": "flour",
"percent": 10,
"isGhost": false
}
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
]
}
],
"warnings": [
{
"code": "CIRCULAR_REFERENCE",
"message": "Circular reference detected: 'flour' depends on itself.",
"item": "flour",
"loc": {
"start": 83,
"end": 102
}
}
],
"metrics": {
"totalTime": 3,
"totalBreakdown": [
{
"label": "section_active:Section",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 2,
"activeBreakdown": [
{
"label": "section_active:Section",
"duration": 2
}
],
"preparationTime": 1,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 1
}
]
},
"miseEnPlace": [
{
"section": 0,
"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.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
}
],
"sections": [
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 3,
"activeTime": 2,
"preparationTime": 1,
"idleTime": 0,
"blocks": [
{
"kind": "prep",
"task": "s0.prep",
"section": 0,
"start": 0,
"end": 1
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 1,
"end": 3
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 3,
"sections": [
0
]
}
]
}
}