gram/conformance/cases/036-schedule-hour-anchors/compiled.json
abiwab 8d1b62e854
All checks were successful
CI / Build & Test (pull_request) Successful in 4m17s
feat(kitchen): read natural timers and anchors with parseDuration
2026-11-14 22:50:41 +01:00

520 lines
9.7 KiB
JSON

{
"title": "Anchors in hours stay in one working day",
"slug": "anchors-in-hours-stay-in-one-working-day",
"meta": {
"title": "Anchors in hours stay in one working day"
},
"registry": {
"ingredients": {
"chicken": {
"id": "chicken",
"name": "chicken",
"default_unit": "kg"
},
"yogurt": {
"id": "yogurt",
"name": "yogurt",
"default_unit": "g"
},
"spices": {
"id": "spices",
"name": "spices",
"default_unit": "g"
},
"oil": {
"id": "oil",
"name": "oil",
"default_unit": "ml"
},
"rice": {
"id": "rice",
"name": "rice",
"default_unit": "g"
}
},
"cookware": {}
},
"shopping_list": [
{
"id": "chicken",
"name": "chicken",
"_usageIds": [
"1"
],
"qty": 1,
"unit": "kg"
},
{
"id": "yogurt",
"name": "yogurt",
"_usageIds": [
"2"
],
"qty": 200,
"unit": "g"
},
{
"id": "spices",
"name": "spices",
"_usageIds": [
"3"
],
"qty": 20,
"unit": "g"
},
{
"id": "oil",
"name": "oil",
"_usageIds": [
"4"
],
"qty": 30,
"unit": "ml"
},
{
"id": "rice",
"name": "rice",
"_usageIds": [
"5"
],
"qty": 300,
"unit": "g"
}
],
"cookware": [],
"sections": [
{
"title": "Marinade",
"ingredients": [
{
"id": "chicken",
"_usageId": "1",
"qty": 1,
"unit": "kg"
},
{
"id": "yogurt",
"_usageId": "2",
"qty": 200,
"unit": "g"
},
{
"id": "spices",
"_usageId": "3",
"qty": 20,
"unit": "g"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Mix ",
{
"id": "chicken",
"_usageId": "1",
"qty": 1,
"unit": "kg"
},
"with ",
{
"id": "yogurt",
"_usageId": "2",
"qty": 200,
"unit": "g"
},
"and ",
{
"id": "spices",
"_usageId": "3",
"qty": 20,
"unit": "g"
},
", then rest ",
{
"type": "timer",
"isPassive": true,
"raw": "36h",
"quantity": {
"type": "single",
"value": 36,
"text": "36"
},
"unit": "h",
"minutes": 2160
},
"."
],
"timings": {
"start": 0,
"end": 0,
"activeDuration": 0
},
"backgroundTasks": [
{
"duration": 2160,
"startOffset": 0
}
],
"action": "Marinate"
}
],
"retro_planning": {
"raw": "-36h",
"sign": -1,
"value": 36,
"unit": "h",
"minutes": -2160
}
},
{
"title": "Cook",
"ingredients": [
{
"id": "oil",
"_usageId": "4",
"qty": 30,
"unit": "ml"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Fry the chicken in ",
{
"id": "oil",
"_usageId": "4",
"qty": 30,
"unit": "ml"
},
"for ",
{
"type": "timer",
"raw": "25min",
"quantity": {
"type": "single",
"value": 25,
"text": "25"
},
"unit": "min",
"minutes": 25
},
"."
],
"timings": {
"start": 2015,
"end": 2040,
"activeDuration": 25
},
"action": "Fry"
}
],
"retro_planning": {
"raw": "-2h",
"sign": -1,
"value": 2,
"unit": "h",
"minutes": -120
}
},
{
"title": "Serve",
"ingredients": [
{
"id": "rice",
"_usageId": "5",
"qty": 300,
"unit": "g"
}
],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Plate with ",
{
"id": "rice",
"_usageId": "5",
"qty": 300,
"unit": "g"
},
"."
],
"timings": {
"start": 2158,
"end": 2160,
"activeDuration": 2
},
"action": "Plate"
}
]
}
],
"warnings": [
{
"code": "DAY_OVERFLOW",
"message": "Working day 0 (from section 'Marinade') starts 12.1 h before its 24 h window opens: a long rest pushes it back. Anchor the section further back, for example ~{-1d}, or shorten the rest.",
"loc": {
"start": 57,
"end": 164
},
"section": "Marinade"
}
],
"metrics": {
"totalTime": 2165,
"totalBreakdown": [
{
"label": "timer_passive",
"duration": 2160
}
],
"idleTime": 2133,
"activeTime": 27,
"activeBreakdown": [
{
"label": "section_active:Cook",
"duration": 25
},
{
"label": "section_active:Serve",
"duration": 2
}
],
"preparationTime": 5,
"prepBreakdown": [
{
"label": "ingredients_overhead",
"duration": 5
}
]
},
"miseEnPlace": [
{
"section": 0,
"duration": 3,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
}
]
},
{
"section": 1,
"duration": 1,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
]
},
{
"section": 2,
"duration": 1,
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
]
}
],
"tasks": {
"tasks": [
{
"id": "s0.prep",
"kind": "prep",
"section": 0,
"duration": {
"nominal": 3
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 3,
"duration": 3
}
],
"after": []
},
{
"id": "s0.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 0
},
"after": []
},
{
"id": "s0.0.t0",
"kind": "passive",
"section": 0,
"step": 0,
"offset": 0,
"duration": {
"nominal": 2160
},
"after": [
"s0.0"
]
},
{
"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": 25
},
"after": []
},
{
"id": "s2.prep",
"kind": "prep",
"section": 2,
"duration": {
"nominal": 1
},
"items": [
{
"kind": "gather",
"target": "ingredient",
"count": 1,
"duration": 1
}
],
"after": []
},
{
"id": "s2.0",
"kind": "step",
"section": 2,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
}
],
"sections": [
{
"day": 0,
"deadline": 2160
},
{
"day": 0,
"deadline": 120
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 2163,
"activeTime": 27,
"preparationTime": 5,
"idleTime": 2131,
"blocks": [
{
"kind": "prep",
"task": "s0.prep",
"section": 0,
"start": 0,
"end": 3
},
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 3,
"end": 3
},
{
"kind": "passive",
"task": "s0.0.t0",
"section": 0,
"step": 0,
"start": 3,
"end": 2163
},
{
"kind": "prep",
"task": "s1.prep",
"section": 1,
"start": 2017,
"end": 2018
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 2018,
"end": 2043
},
{
"kind": "prep",
"task": "s2.prep",
"section": 2,
"start": 2160,
"end": 2161
},
{
"kind": "step",
"task": "s2.0",
"section": 2,
"step": 0,
"start": 2161,
"end": 2163
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 2163,
"sections": [
0,
1,
2
]
}
]
}
}