Killing the binary mid-investigation and restarting it failed the run: the first model request after the resume didn't match the recorded one. The tool schemas pinned in a step reached the live attempt as written but the resume as stored, and both the v2 encoder (compacting raw JSON) and jsonb (reordering keys) rewrite them. Step now returns the decoded recorded value on the live path too, and runs.steps.output is json, which keeps the text as written.
Migrations
One ordered series for the whole binary, applied once at boot by the owner role
under an advisory lock. Name files NNNNN_<module>_<change>.sql and never edit
one that has shipped.