Write the daily cash replenishment policy for a regional bank's 60 ATMs over a holiday plan period with a carrier rate amendment, new insurance limits and a branch closure; it is scored by simulation over hidden periods.
harbor run -t reactive-labs/atm-cash-replenishmentharbor download reactive-labs/atm-cash-replenishmentYou are Dana Whitcombe, Cash Operations Analyst at Calder Ridge Savings Bank in Tamsworth. The bank's 60 ATMs are replenished by Ferrowind Secure Transport. Every morning at 07:00 the cash desk looks at the overnight TellerWatch poll, orders tomorrow's routine visits with the cassette load for each machine, and calls emergency visits for today. Today is Monday 25 October 2027. Leon Strand, Head of ATM Channel, wrote to you this morning:
For the winter plan period, Monday 15 November 2027 to Sunday 23 January 2028, I want the daily replenishment decision written as a policy in Owen's CashPlan interface, so we can test it in CashPlan and then the desk can run it at the 07:00 review instead of the cover rule. It will be judged on the CS-ATM-07 section 5 plan cost for the period, and it must never break section 4.
In /app/inputs:
RE_Winter_plan_period_replenishment_policy.eml: the thread with Leon, Treasury, Operational Risk, Owen and
FerrowindFerrowind_ATM_Cash_Services_Agreement_FST-CR-2025-11.docx and
FST-CR-2025-11_Amendment_No3_Rates_and_Zone_C_routes.pdf: the carrier agreement and its amendmentLarchmont_FIB_Rider7_ATM_cash_and_Endorsement_No4.pdf: the insurance on cash in machinesCRSB_CS-ATM-07_ATM_Channel_Service_Standard_RevC.docx: the service standard that defines the plan costBN-2027-14_Harlow_Street_branch_closure_notice.docx and Ferrowind_CRSB_service_calendar_2027-28.xlsxCRSB_ATM_fleet_master_2027-10-22.xlsx: the fleet masterTellerWatch_EJ_daily_summary_...csv (each machine's
payouts, declines, cash-out minutes and closing notes by day) and Ferrowind_service_activity_...csv (every
visit, load, returned cash and charge)In /app/sim: CashPlan, the model the bank uses to test replenishment policies (README.md explains it and the
policy interface), with starter_policy.py (the current cover rule), the Q3 2027 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 once a day at the 07:00 review with the observation described in the README: the date,
what a routine order for tomorrow becomes in each zone, and for every machine whether it is in service, the notes
in it by denomination, its cassette capacity, the last 24 hours' payouts, declines and hours out of cash, the
month's hours out of cash, and today's routine visit if one was ordered yesterday. It returns
{"routine": [{"atm": "CR-001", "notes_20": n, "notes_50": n}, ...], "emergency": [...]}: tomorrow's routine
visits and today's emergency visits, each with the notes to load (multiples of 100), within the rules the README
states.Your policy will be run, call by call, over many simulated winter periods like the one Leon describes, 15 November 2027 to 23 January 2028, under the agreement, the insurance and CS-ATM-07 as they apply in that period. Each period is scored on its CS-ATM-07 section 5 plan cost, from what the current cover rule costs on the same period to what the best plan would have cost had the period's withdrawals been known in advance; no policy is expected to reach that mark. A period in which any machine is loaded above its insurance limit, or in which the policy fails, returns an invalid decision or breaks the time limits, scores zero.