-- +goose Up -- A step's output must replay byte for byte: jsonb reorders keys and drops -- whitespace, so a pinned value (a tool schema) read back differed from the -- one a live attempt used, and a resumed agent diverged from its journal. ALTER TABLE runs.steps ALTER COLUMN output TYPE json USING output::json; -- +goose Down ALTER TABLE runs.steps ALTER COLUMN output TYPE jsonb USING output::jsonb;