The reward is the specification
Everything an agent does is a consequence of the reward function. Not the intent behind it, not the docstring above it, not the slide describing the project. The reward is the only channel through which your objective reaches the policy, and anything absent from it is something the agent is free to sacrifice.
Execution is unusually exposed to this. The objective has several components that pull against each other, cost, risk, completion, and market conditions, and only some of them are naturally expressible as a per-step number.
Key idea: Every failure in this lesson is an agent behaving optimally. There is no bug, no instability, no insufficient training. The policy is a correct solution to the problem that was actually posed, and the gap between that problem and the intended one is the entire subject.

