{ "suite": "lab5-pipeline-idempotency", "started_at": "2026-11-06T07:50:28.478435Z", "source_sha": "2e428cf8e6dc2c79547e32ed72c28a9dc1eff6a4", "config": { "base_url": "http://127.0.0.1:18085", "level": 5, "only": "smoke_pipeline,duplicate_after_ready,crash_commit_publish,crash_publish_confirm,crash_after_s3_before_commit,crash_after_commit_before_ack,lease_expiry_fencing,crash_before_side_effect,worker_kill_mid_task,duplicate_in_flight,reorder_attempts,reorder_versions,stale_after_new_version", "expect_variants": "thumbnail,crop,optimized", "max_attempts": 5, "stall_seconds": 15.0, "compose": "docker compose", "compose_faults": "docker compose -f compose.yaml -f infra/compose.faults.yaml" }, "invariants": [ { "id": "terminal", "statement": "every 202 reaches its expected terminal state", "result": "PASS", "details": { "accepted": 13 } }, { "id": "single_effect", "statement": "one variant set per (attachment_id, pipeline_version, variant)", "result": "PASS", "details": { "rows": 0 } }, { "id": "no_ready_rollback", "statement": "ready never returns to queued or processing", "result": "PASS", "details": { "traced": 13 } }, { "id": "monotonic_publication", "statement": "published_version only moves forward", "result": "PASS", "details": { "sampled": 9 } }, { "id": "bytes_match_metadata", "statement": "sha256, size and real dimensions match served bytes", "result": "PASS", "details": { "verified": 13 } }, { "id": "bounded_attempts", "statement": "attempt <= JOB_MAX_ATTEMPTS", "result": "PASS", "details": { "rows": 0 } }, { "id": "no_orphans", "statement": "no pending outbox, messages, dead letters, staging, objects", "result": "PASS", "details": { "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 13, 0 ] }, "s3_objects": 55, "scoped_attachments": 13 } }, { "id": "no_lost_202", "statement": "every 202 is present in PostgreSQL and the API", "result": "PASS", "details": { "accepted": 13 } } ], "accepted_ids": [ "01a1afd6-8b60-740d-bbb8-41b68fcab9d0", "01a1afd6-909c-73b5-9030-3b853412e468", "01a1afd6-c3db-72e2-b3ff-75b12fff3ea3", "01a1afd6-e7ee-7711-b063-87d56c460f4f", "01a1afd7-0c3e-7743-a1cd-baa13f444dbf", "01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee", "01a1afd7-67e7-74be-a9ae-4666c6802885", "01a1afd7-e9a1-73a6-ab53-c4a6b1ce058c", "01a1afd8-171c-714c-a0ac-58bcd8f4b418", "01a1afd8-3800-72f7-a289-80eb54a67ce7", "01a1afd8-6f6f-70df-89e4-c181d6f0be7c", "01a1afd8-a63f-726b-abe6-c7cf821f1a25", "01a1afda-ad4b-7158-9525-e48229a1b465" ], "scenarios": [ { "name": "smoke_pipeline", "level": 3, "window": "upload, ready, variants match metadata", "seconds": 1.3, "result": "PASS", "observed": { "attachment_id": "01a1afd6-8b60-740d-bbb8-41b68fcab9d0", "variants": [ "crop", "optimized", "thumbnail" ] } }, { "name": "duplicate_after_ready", "level": 3, "window": "redelivery of a finished job", "seconds": 9.1, "result": "PASS", "observed": { "attachment_id": "01a1afd6-909c-73b5-9030-3b853412e468", "events": [ { "kind": "enqueued", "attempt": 1 }, { "kind": "claimed", "attempt": 1 }, { "kind": "done", "attempt": 1 }, { "kind": "duplicate_noop", "attempt": 1 } ] } }, { "name": "crash_commit_publish", "level": 4, "window": "after COMMIT, before publish", "seconds": 9.5, "result": "PASS", "observed": { "attachment_id": "01a1afd6-c3db-72e2-b3ff-75b12fff3ea3", "exit_code": 137, "after_crash": { "outbox_published": false, "status": "queued", "containers": [ "mtusi2026lab5-relay-1 34a491177c76 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd6-c3db-72e2-b3ff-75b12fff3ea3/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd6-c3db-72e2-b3ff-75b12fff3ea3/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd6-c3db-72e2-b3ff-75b12fff3ea3/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "crash_publish_confirm", "level": 4, "window": "after publish, before confirm", "seconds": 9.3, "result": "PASS", "observed": { "attachment_id": "01a1afd6-e7ee-7711-b063-87d56c460f4f", "exit_code": 137, "after_crash": { "outbox_published": [ false ], "queues": { "attachments.process": [ 0, 0 ], "attachments.process.dlq": [ 13, 0 ] }, "containers": [ "mtusi2026lab5-relay-1 0201724061c2 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd6-e7ee-7711-b063-87d56c460f4f/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd6-e7ee-7711-b063-87d56c460f4f/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd6-e7ee-7711-b063-87d56c460f4f/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "events": [ "enqueued", "claimed", "done", "duplicate_noop" ] } }, { "name": "crash_after_s3_before_commit", "level": 4, "window": "after S3 write, before COMMIT", "seconds": 12.3, "result": "PASS", "observed": { "attachment_id": "01a1afd7-0c3e-7743-a1cd-baa13f444dbf", "exit_code": 137, "after_crash": { "status": "processing", "variant_rows": 0, "containers": [ "mtusi2026lab5-worker-1 beb4bd3f1c3f exited Exited (137) Less than a second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd7-0c3e-7743-a1cd-baa13f444dbf/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd7-0c3e-7743-a1cd-baa13f444dbf/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd7-0c3e-7743-a1cd-baa13f444dbf/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "crash_after_commit_before_ack", "level": 4, "window": "after COMMIT, before ack", "seconds": 11.1, "result": "PASS", "observed": { "attachment_id": "01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee", "exit_code": 137, "after_crash": { "status": "ready", "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "queues": { "attachments.process": [ 1, 0 ], "attachments.process.dlq": [ 13, 0 ] }, "containers": [ "mtusi2026lab5-worker-1 a5a71be75113 exited Exited (137) 1 second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd7-3c30-7563-8ec0-c12eb5a1b1ee/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "lease_expiry_fencing", "level": 4, "window": "stalled worker, lease expiry", "seconds": 33.3, "result": "PASS", "observed": { "attachment_id": "01a1afd7-67e7-74be-a9ae-4666c6802885", "jobs": [ { "job_id": "01a1afd7-67f4-736e-a7d3-0d650117a6df", "pipeline_version": 1, "status": "done", "attempt": 2 } ], "events": [ { "kind": "enqueued", "attempt": 1 }, { "kind": "claimed", "attempt": 1 }, { "kind": "lease_expired", "attempt": 2 }, { "kind": "claimed", "attempt": 2 }, { "kind": "done", "attempt": 2 }, { "kind": "fenced", "attempt": 1 } ] } }, { "name": "crash_before_side_effect", "level": 5, "window": "after claim, before side effects", "seconds": 11.6, "result": "PASS", "observed": { "attachment_id": "01a1afd7-e9a1-73a6-ab53-c4a6b1ce058c", "exit_code": 137, "after_crash": { "status": "processing", "jobs": [ { "job_id": "01a1afd7-e9a7-75c0-ae6b-98c476ddf4dd", "pipeline_version": 1, "status": "processing", "attempt": 1 } ], "containers": [ "mtusi2026lab5-worker-1 e7f67c1a4d9a exited Exited (137) Less than a second ago" ] }, "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd7-e9a1-73a6-ab53-c4a6b1ce058c/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd7-e9a1-73a6-ab53-c4a6b1ce058c/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd7-e9a1-73a6-ab53-c4a6b1ce058c/1/thumbnail-7bc40bf315c8e18e.jpg" } ] } }, { "name": "worker_kill_mid_task", "level": 5, "window": "SIGKILL during processing", "seconds": 11.9, "result": "PASS", "observed": { "attachment_id": "01a1afd8-171c-714c-a0ac-58bcd8f4b418", "exit_code": 137, "containers": [ "mtusi2026lab5-worker-1 6c6abe69b3c9 exited Exited (137) Less than a second ago" ], "jobs": [ { "job_id": "01a1afd8-1729-74d2-8163-be6ef230ff66", "pipeline_version": 1, "status": "done", "attempt": 2 } ] } }, { "name": "duplicate_in_flight", "level": 5, "window": "two copies of one job in flight", "seconds": 14.1, "result": "PASS", "observed": { "attachment_id": "01a1afd8-3800-72f7-a289-80eb54a67ce7", "variants": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afd8-3800-72f7-a289-80eb54a67ce7/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afd8-3800-72f7-a289-80eb54a67ce7/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afd8-3800-72f7-a289-80eb54a67ce7/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "events": [ { "kind": "enqueued", "attempt": 1 }, { "kind": "claimed", "attempt": 1 }, { "kind": "duplicate_noop", "attempt": 1 }, { "kind": "done", "attempt": 1 } ] } }, { "name": "reorder_attempts", "level": 5, "window": "attempt 2 delivered before attempt 1", "seconds": 14.0, "result": "PASS", "observed": { "attachment_id": "01a1afd8-6f6f-70df-89e4-c181d6f0be7c", "jobs": [ { "job_id": "01a1afd8-6f76-7265-9aa8-dbb61bafd61e", "pipeline_version": 1, "status": "done", "attempt": 1 } ], "events": [ { "kind": "enqueued", "attempt": 1 }, { "kind": "claimed", "attempt": 1 }, { "kind": "duplicate_noop", "attempt": 2 }, { "kind": "done", "attempt": 1 } ] } }, { "name": "reorder_versions", "level": 5, "window": "v2 delivered before v1", "seconds": 133.3, "result": "FAIL", "error": "timeout 120s waiting for old version superseded" }, { "name": "stale_after_new_version", "level": 5, "window": "v1 job after v2 is published", "seconds": 7.1, "result": "PASS", "observed": { "attachment_id": "01a1afda-ad4b-7158-9525-e48229a1b465", "published_version": 2, "v1": { "status": "ready", "public": [ { "name": "crop", "content_type": "image/jpeg", "size_bytes": 1820, "width": 128, "height": 128, "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143" }, { "name": "optimized", "content_type": "image/webp", "size_bytes": 2462, "width": 320, "height": 200, "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb" }, { "name": "thumbnail", "content_type": "image/jpeg", "size_bytes": 4679, "width": 256, "height": 160, "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594" } ], "rows": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/thumbnail-7bc40bf315c8e18e.jpg" } ], "published": 1 }, "v2_before_stale": { "status": "ready", "public": [ { "name": "crop", "content_type": "image/jpeg", "size_bytes": 2142, "width": 128, "height": 128, "sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4" }, { "name": "optimized", "content_type": "image/webp", "size_bytes": 2790, "width": 320, "height": 200, "sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957" }, { "name": "thumbnail", "content_type": "image/jpeg", "size_bytes": 5628, "width": 256, "height": 160, "sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308" } ], "rows": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/thumbnail-7bc40bf315c8e18e.jpg" }, { "pipeline_version": 2, "name": "crop", "sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4", "size_bytes": 2142, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/2/crop-5b6fb2a66216f8ca.jpg" }, { "pipeline_version": 2, "name": "optimized", "sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957", "size_bytes": 2790, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/2/optimized-fe520c978bd45fc8.webp" }, { "pipeline_version": 2, "name": "thumbnail", "sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308", "size_bytes": 5628, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/2/thumbnail-fa0db661078d4da9.jpg" } ], "published": 2 }, "v2_after_stale": { "status": "ready", "public": [ { "name": "crop", "content_type": "image/jpeg", "size_bytes": 2142, "width": 128, "height": 128, "sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4" }, { "name": "optimized", "content_type": "image/webp", "size_bytes": 2790, "width": 320, "height": 200, "sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957" }, { "name": "thumbnail", "content_type": "image/jpeg", "size_bytes": 5628, "width": 256, "height": 160, "sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308" } ], "rows": [ { "pipeline_version": 1, "name": "crop", "sha256": "97bf1400b30a28c19420a30161c944f57b5e7d613533b76afe6ab2531cba0143", "size_bytes": 1820, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/crop-97bf1400b30a28c1.jpg" }, { "pipeline_version": 1, "name": "optimized", "sha256": "1090d84ed8411226010ae498b08e1b9e6d81c8eee02ee77143a0dc327b894beb", "size_bytes": 2462, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/optimized-1090d84ed8411226.webp" }, { "pipeline_version": 1, "name": "thumbnail", "sha256": "7bc40bf315c8e18e907889b23514d978be213a44223d64b737290188ee808594", "size_bytes": 4679, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/1/thumbnail-7bc40bf315c8e18e.jpg" }, { "pipeline_version": 2, "name": "crop", "sha256": "5b6fb2a66216f8ca038542acdd8482fca9d1ad79193d60ae74de3989048ec0a4", "size_bytes": 2142, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/2/crop-5b6fb2a66216f8ca.jpg" }, { "pipeline_version": 2, "name": "optimized", "sha256": "fe520c978bd45fc8f1b85863dc9dc6fc98954b45d7fe803e8e4c6b681ddc1957", "size_bytes": 2790, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/2/optimized-fe520c978bd45fc8.webp" }, { "pipeline_version": 2, "name": "thumbnail", "sha256": "fa0db661078d4da91b241edc8b416de7755db9c9c79ae704a620ca7ad534e308", "size_bytes": 5628, "object_key": "variants/01a1afda-ad4b-7158-9525-e48229a1b465/2/thumbnail-fa0db661078d4da9.jpg" } ], "published": 2 } } } ], "result": "FAIL", "finished_at": "2026-11-06T07:55:33.939298Z" }