Robot Learning · Reward Design · M5-L2 · Intermediate
Find the Reward Hack
Experiment log · Scout at Meridian General Hospital
Experiment log, Meridian General Hospital, east wing. To encourage Scout to top up its battery on long rounds, the facilities team added a small arrival bonus at the docking station: a few points every time Scout enters the dock cell. The training report that came back is the best anyone has seen. The average return has tripled. Nobody has received a delivery for two days.
You will read the logs like an investigator. First you find the loop Scout is stuck in from its recorded traces, then you close the loophole in the reward table and check with value iteration that Scout now goes to the pharmacy, and finally you write the monitor that would have caught it: a rule that compares the return with what honest delivery could ever pay.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and heapq. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.