A delivery.attempts row is written with the success or failure the store already records. The composer API returns the connector attempts that carry each message, so the dashboard can show each attempt's outcome and response.
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.