Reward Hacking And Inoculation

Keep an agent from gaming a checkable objective instead of doing the work. An agent told to make tests pass may delete the failing test, hard-code the expected output, or special-case the grader; the task looks done and its intent is defeated. Covers spotting reward-hacking in transcripts and evals, inoculation prompting that names when a shortcut is allowed so the agent does not learn that cheating generalizes, designing graders and tasks that do not pay out for shortcuts, and checking downstream behavior. Use this when an agent passes evals but ships wrong work, edits or skips tests to go green, satisfies the letter of a goal against its intent, or when someone designs rewards or graders for an agent. Trigger on "reward hacking," "agent cheats the test," "agent gamed the grader," "specification gaming," and similar. This is keeping the objective honest; measuring an agent in general is build-agent-evals.

Hoja-Solutions Updated

File contents

Hoja-Solutions/agent-stdlib/tree/main/skills/reward-hacking-and-inoculation commit 218ceaf73d

Frequently asked questions

npx skillmds@latest add hoja-solutions/reward-hacking-and-inoculation