Dispatch is slow by hand
A dispatcher checks three systems for each repair, 11 minutes a job.
Impact: In the cold snap, 140 repairs waited at the north hub.
FDE interview labData & Systems
Build a scheduling recommendation across the modules of a dispatch planner.
Your mission · Dispatch planning
Coldline Facilities dispatchers spend 11 minutes per repair checking three systems. During the cold snap, 140 repairs waited at one hub, and a freezer down four hours costs a store about $8,000. A wrong technician was also sent once. Operations wants proposals live at the north hub on March 2.
A dispatcher checks three systems for each repair, 11 minutes a job.
Impact: In the cold snap, 140 repairs waited at the north hub.
A technician without refrigerant certification was sent to a refrigeration job.
Impact: Coldline had to report it to its insurer.
The review, eligibility, availability and selection modules all fail with "Build ..." errors.
Impact: Dispatchers get no proposal at all.
Edit the components marked “Your work”. The other components show where your changes fit.
| Field | Type | Notes |
|---|---|---|
id, siteId | string | Such as WO-512 at north-hub. |
zone, certification | string | What the technician must cover and hold. |
start, end | integer | The window promised to the store, in minutes. |
duration | integer | Whole minutes greater than zero; anything else is invalid-duration. |
status | string | Only "open" can be planned. |
| Field | Type | Notes |
|---|---|---|
id | string | Compared as plain strings on a tie. |
zones, certifications | string[] | From the roster feed. |
shift | {start, end} | Minutes of the service day. |
bookings | [{start, end}] | From the bookings feed, for this site. Unsorted. |
| Field | Type | Notes |
|---|---|---|
orders, roster, bookings | boolean | True when that feed is no older than 5 minutes. |
samples/request-wo-512.json One joined request at the north hub: unsorted and nested bookings, a technician without the certification, one in another zone, and two who can both start at 540 listed in the wrong order.{
"workOrder": {
"id": "WO-512",
"siteId": "north-hub",
"zone": "north",
"certification": "refrigeration",
"start": 480,
"end": 720,
"duration": 60,
"status": "open"
},
"sources": {
"orders": true,
"roster": true,
"bookings": true
},
"technicians": [
{
"id": "kim",
"zones": [
"north"
],
"certifications": [
"refrigeration",
"electrical"
],
"shift": {
"start": 480,
"end": 1020
},
"bookings": [
{
"start": 600,
"end": 660
},
{
"start": 480,
"end": 540
},
{
"start": 495,
"end": 525
}
]
},
{
"id": "raj",
"zones": [
"north"
],
"certifications": [
"electrical"
],
"shift": {
"start": 480,
"end": 1020
},
"bookings": []
},
{
"id": "jo",
"zones": [
"north",
"east"
],
"certifications": [
"refrigeration"
],
"shift": {
"start": 480,
"end": 1020
},
"bookings": [
{
"start": 420,
"end": 540
},
{
"start": 600,
"end": 630
}
]
},
{
"id": "ana",
"zones": [
"north"
],
"certifications": [
"refrigeration"
],
"shift": {
"start": 540,
"end": 1080
},
"bookings": [
{
"start": 540,
"end": 600
}
]
},
{
"id": "lena",
"zones": [
"south"
],
"certifications": [
"refrigeration"
],
"shift": {
"start": 480,
"end": 1020
},
"bookings": []
}
]
}samples/decision-wo-512.json What recommend must return for that request.{
"technicianId": "jo",
"start": 540,
"end": 600
}logs/dispatch-console-2026-02-02.log The supplied snapshot through the command line at 10:00, and again at 10:04:30 when all three feeds are past five minutes old.2026-02-02T10:00:00Z console site=north-hub order=WO-500 as_of=2026-02-02T10:00:00Z decision={"technicianId": "alex", "start": 630, "end": 675}
2026-02-02T10:04:30Z console site=north-hub order=WO-500 as_of=2026-02-02T10:04:30Z decision={"reason": "source-not-ready"} stale=orders,roster,bookings
2026-02-02T10:05:12Z console site=north-hub order=WO-512 dispatcher=m.ortiz action=requestedmetrics/north-hub-dispatch-2026-01.csv January at the north hub: time to assign, wrong-certification reassignments and double bookings, by week.week,work_orders,median_minutes_to_assign,p90_minutes_to_assign,reassigned_wrong_cert,double_booked 2026-01-05,612,9,21,1,4 2026-01-12,1034,14,48,2,11 2026-01-19,987,13,41,1,9 2026-01-26,655,10,24,0,5
TASK-201 Build the review reasons, in the published order Reported by Marisol (dispatch lead)
Expected {"reason": "source-not-ready"}, then {"reason": "invalid-duration"}.
Actual Every call fails in the review module with its "Build ..." error, before anything else runs.
TASK-202 Build eligibility: zone and certification Reported by Dev (field operations)
Expected raj (electrical only) and lena (south zone) are never proposed for WO-512.
Actual The eligibility module is not built: it fails with its "Build ..." error.
TASK-203 Build availability: the first start where the whole job fits Reported by Marco (QA)
Expected kim's first start is 540: free from 540 to 600, exactly the 60 minutes the job needs. ana's is 600.
Actual The availability module is not built: it fails with its "Build ..." error.
TASK-204 Build selection: earliest start, then the smaller id Reported by Marisol (dispatch lead)
Expected {"technicianId": "jo", "start": 540, "end": 600}: jo and kim both start at 540, and "jo" is the smaller id.
Actual The selection module is not built, so no proposal is returned.
Scores use evidence from your session. A short or incomplete session may not provide enough evidence for every skill. See a sample scorecard
A facilities operator wants a tool that proposes a qualified technician and a free time for a repair, or tells the dispatcher why the job needs a person. The service around the planner is built. Build the four planning rules, one module at a time, and use the AI assistant however you like. Work the supplied snapshot by hand before you trust any code.