Write the dispatch policy for a same-day medical courier fleet of 18 vans for the two months in which a new hospital account goes live; it is scored by simulation over hidden service days.
harbor run -t reactive-labs/courier-same-day-dispatchharbor download reactive-labs/courier-same-day-dispatchYou are Ines Kowalczyk, Dispatch Lead at Kestrel Medical Courier in Calder Bay. Kestrel runs a same-day medical courier service with 18 vans out of its Yardley Road depot: lab specimens for Calder Clinical Laboratories and St Brendan's Hospital, prescriptions for the Brightwater Health pharmacy, and from Monday 4 January 2027 a new account, Larchmont University Hospital. Today is Monday 28 December 2026. Odette Fairweather, Director of Operations, wrote to you this morning:
I need the dispatch policy for weekdays from Monday 4 January to Friday 26 February, written in Ruben's RouteBoard Plan interface so we can run it against the model and then switch the board's auto-dispatch to it. It covers who gets which order, what gets batched, and when you call on-call drivers. I will judge it on the DOP-02 section 8 daily controllable cost, and a day with a transit or hours breach is a failed day whatever it cost.
In /app/inputs:
RE_Jan-Feb_dispatch_policy_LUH_go-live.eml: the thread with Odette, Ruben (Systems & Analytics) and FinanceKestrel_DOP-02_Dispatch_Operating_Procedure_RevD.docx: the dispatch procedureKestrel_DS-07_Zone_Drive_Times_RevC.xlsx: zones, drive times, congestion and sitesKestrel_Client_Service_Schedules_2026.docx: the service schedules of the three current accountsLUH_Courier_Services_Agreement_KMC-2026-031_Schedules_B_C.pdf: the Larchmont agreement's service levels and
volume forecastCBCDA_Collective_Agreement_2025-2027.docx and CBCDA_MOU_No3_2027_rates.pdf: the drivers' agreement and
its 2027 memorandumRouteBoard_order_history_2026-07-01_to_2026-12-18.csv: every order of the second half of 2026In /app/sim: RouteBoard Plan, the model the team uses to test dispatch rules (README.md explains it and the
policy interface), with starter_policy.py (current practice), the Q4 2026 baseline config and seeds 1-20. Run
it from /app with python -m sim.run --policy <file> --seeds 1-20.
/app/output/policy.py, defining a class Policy exactly as in /app/sim/README.md:
Policy() is constructed once per service day with no arguments; it may load data files that you put in
/app/output next to it (find them relative to __file__). It must not rely on anything outside
/app/output.decide(obs) is called every 5 minutes from 06:30 to 21:55 with the observation described in the README
(the time, every released order not yet delivered, every van with its location, committed stop, load and
plan, the open Larchmont STAT pre-alerts, and the on-call drivers left). It returns
{"plans": {van: [stop, ...]}, "call_in": n}: new plans for any vans on duty (stops pickup, drop,
move to a zone or a site, wait, depot) and the number of on-call drivers to call out now.
The README states the rules a decision must keep; a decision that breaks one is rejected.Your policy will be run, call by call, over many simulated weekdays like the ones Odette describes, 4 January to 26 February 2027, with the accounts, agreements and rates that apply then. Each day is scored on its DOP-02 section 8 controllable cost, on a scale from what current practice (the starter policy) costs on the same day (0) to what the day would have cost with perfect hindsight, every order of the day and which pre-alerts were real known at 06:00 (1): the share of that possible saving your policy achieves. A day on which any specimen is received after its transit limit, any driver is on duty beyond the agreement's maximum, or the policy fails, returns a rejected decision or breaks the time limits, scores zero.