Write the weekly roster policy for an insurer's hail-season claims phone line, run over hidden simulated seasons and costed under the labour agreement, partner and regulator terms.
harbor run -t reactive-labs/claims-line-staffingharbor download reactive-labs/claims-line-staffingYou are Jonah Peltier, workforce planning analyst for the ClaimLine, the first-notice-of-loss phone line of Larkspur Mutual Insurance Company's Claims Contact Centre in Calgary. Mireille Tran, Director of the Claims Contact Centre, wrote to you on Friday:
I want Template B retired for the hail season. Please build the roster policy RosterLab will run every Sunday for the ten roster weeks from 31 May to 8 August, and hand it to Desmond's team as a policy file they can run as-is. It has to live with whatever the weather does and with everything in the thread, and it has to be postable every single week: no agreement breaches, nothing IMCO could write us up for. We will judge it the way Anneliese reports it: the season cost on the SOP-03 basis.
/app/inputs: the email thread, the collective agreement and LOU #6, WFM-SOP-03, CAT-SOP-07, TR-02, IMCO
Guideline MC-14 and Notice 2027-03, PML Schedule C and PML's rural book onboarding notice, the NightDesk SOW, the ClaimPath readiness memo, IT change notice CHG-2027-0611, the HR staff
export, the ACD interval export (April 2026 to May 2027) and the CAT desk hail event log./app/sim: RosterLab, WFM's planning model (Python), with Template B as sim/starter_policy.py, the runner
(cd /app && python -m sim.run --policy sim/starter_policy.py --seeds 1-20) and 20 seeded seasons. Its README
explains the observation in detail. Its config is the March 2027 planning revision./app/output/policy.py, defining:
class Policy:
def __init__(self, context: dict): ...
def plan_week(self, obs: dict) -> dict: ...
Policy is built for each season with context = {"first_week_start": "2027-05-31", "weeks": 10, "line_open": "07:00", "line_close": "22:00", "call_types": ["AUTO", "GLASS", "HOME"]}.plan_week(obs) is called once per roster week, in order, on the Sunday before it. obs is exactly the
observation RosterLab passes (keys week, week_start, days, staff, intervals, weather, last_week, as
described in /app/sim/README.md), delivered as plain JSON types.{"shifts": [{"id": "E1043", "date": "2027-05-31", "start": "07:00", "hours": 8, "type": "WORK"}, ...]}. id is an employee on that week's staff list, date a day of the week being
planned (YYYY-MM-DD), start the start of the span (HH:MM), hours the paid hours of the shift or standby
window, type either WORK or STANDBY. Days without an entry are days off.__init__ must return within 10 seconds and each plan_week call within 1.5 seconds (wall clock,
one CPU, including receiving the observation). The policy runs with Python 3.12 and the packages installed in
this environment (numpy, pandas, scipy), with no network, as its own process. It may read files you place next
to it in /app/output (locate them from __file__); it must not need anything else.Desmond's team will run your policy through many simulated 2027 seasons drawn the way the plan expects the season to unfold, with everything the thread and the documents say about 2027, using RosterLab's queue and pay mechanics. Each season is costed on the WFM-SOP-03 section 7 basis and compared with two rosters for the same season: Template B, and a hindsight roster drawn up after the season with every call, hail event and absence known in advance. A season's score is the saving your policy makes against Template B as a share of the hindsight roster's saving, from 0 (no better than Template B) to 1 (as good as the hindsight roster); no policy that has to post its roster on the Sunday can reach 1. The result is the average over the seasons. A season counts as failed (no better than Template B) if any weekly roster breaks a rule in the agreement, LOU #6, TR-02 or IMCO MC-14, or if the policy crashes, returns something that is not a roster, or misses a time limit.