forked from mtusi2026/mtusi2026lab5
Plan grade 3 of lab 5: upload answers 202 queued after the original is in a private staging prefix and the attachment, its job and an outbox row are committed in one transaction; a separate relay publishes the outbox to a RabbitMQ quorum queue with publisher confirms and returns jobs with an expired lease; a separate worker on FastStream claims a job under a lease, publishes the original and a 256 px JPEG thumbnail, commits the result fenced by the lease token and acks only after the commit, retries transient errors up to JOB_MAX_ATTEMPTS and fails undecodable images at once. Content answers 409 until ready and a failed attachment cannot be sent. The change adds the lab5-attachment-pipeline and lab5-job-delivery capabilities and deltas to lab4-attachments, lab4-upload-resilience, lab1-messenger-history and lab3-load-balancing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>