forked from mtusi2026/mtusi2026lab5
Migration 0004 widens the attachment states to queued, processing and failed, adds the staging and original keys, the published pipeline version and the error code, and moves the lab 4 object key into them while leaving the old column nullable until a contract step. New tables hold the variants under the effect key (attachment, pipeline version, name), the jobs with attempt, claims and lease, the outbox rows the relay publishes and the audit of job transitions. Partial indexes serve the relay scan of unpublished rows, the search for expired leases and the staging cleanup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>