Write the weekly maintenance policy for a city transit agency's 140 buses over a spring-summer period with a transmission defect campaign, a new route and summer HVAC load; it is scored by simulation over hidden periods.
harbor run -t reactive-labs/bus-fleet-maintenanceharbor download reactive-labs/bus-fleet-maintenanceYou are Nadia Ferreira-Holt, Fleet Engineering Manager at Wexmoor Regional Transit. The agency runs 140 buses from the Quarry Road Operations Center: 56 Ardent Coach AC40D diesels, 52 Halvard HX40H hybrids and 32 Northwind Lumen BE40 battery-electrics. Every week the garage decides which buses go into the PM bays and for what (the TBI-9 periodic inspection, a brake reline, an HVAC pre-season service, a transmission exchange), which serviceable buses are held out of service, and whether to post a Saturday shift. Today is Monday 1 March 2027. Calvin Brandt, Director of Maintenance, wrote to you last week:
I want the weekly PM decision for the spring-summer period, Monday 1 March to Sunday 29 August, written as a policy in Joel's FleetPlan interface, so we can run it through FleetPlan first and then let Gil's Friday planning use it. It will be judged on the FMS-11 plan cost over the period. It must never run a bus past TBI-9, never plan more withdrawals than section 7.4 of the operating agreement allows, and stay inside the Local 412 agreement.
In /app/inputs:
RE_Spring-summer_maintenance_policy.eml: the thread with Calvin, the garage, Kestrel, Service Planning, Labour
Relations and JoelCity_of_Wexmoor_WRT_Operating_Agreement_OA-2024-117_excerpt.docx and
OA-2024-117_Amendment_No3_Route47_Airport_Express.pdf: the service contract with the City and its amendmentWRT_TMATU_Local412_Collective_Agreement_2024-2028_excerpt.docx: the labour agreementState_DOT_TBI-9_Transit_Bus_Periodic_Inspection_Rule.pdf: the State inspection ruleKestrel_Driveline_SB-K6-27-03_RevB_Reman_clutch_pack.pdf: the transmission service bulletinWRT_SOP_FM-PM-02_rev7_PM_scheduling.docx (current practice and standard hours) and
WRT_Finance_FMS-11_rev3_Plan_cost_standard.docx (the plan cost and standard parts costs)WRT_AssetTrack_fleet_register_2027-02-28.xlsx: the fleet as it stands on Sunday nightIn /app/sim: FleetPlan, the model the garage uses to test maintenance policies (README.md explains it and the
policy interface), with starter_policy.py (SOP FM-PM-02 as the garage runs it), the FY27 H1 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 plan period with no arguments; it may load data files that you put in
/app/output next to it (find them relative to __file__).decide(obs) is called every Monday with the observation described in the README: this week's and next week's
calendar (requirement, shop days, straight hours, overtime caps), the Saturday crew posted for this week, last
week's in-service failures, and for every bus its status and repair, odometer, PMI date and miles since, last
brake measurement, last HVAC service, last week's miles and, for buses with a transmission, its serial, install
date, miles and recent oil analyses. It returns
{"visits": [{"bus": "1407", "day": "2027-03-03", "tasks": ["PMI", "BRAKE"]}, ...], "hold": [...], "saturday_crew_next_week": n} within the rules the README states.Your policy will be run, week by week, over many simulated spring-summer periods like the one Calvin describes, 1 March to 29 August 2027, starting from the fleet in the register and under the agreements, the rule and the bulletin as they apply in that period. Each period is scored on its FMS-11 plan cost, from what the current SOP costs on the same period to what the best plan would have cost had the period's breakdowns, weather and mileage been known in advance; no policy is expected to reach that mark. A period in which any bus runs past its TBI-9 interval, or in which the policy fails, returns an invalid decision or breaks the time limits, scores zero.