# 2026-11-21T19:29:03Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ python3 student-tests/test_pipeline_idempotency.py
## track 2: pipeline idempotency (http://127.0.0.1:8080)
PASS D: 8 duplicate copies of one job delivered concurrently → one claim, one commit  32.45s  9 deliveries: claimed 1, committed 1, duplicate_ignored 8
PASS R: reorder — stale attempts (1, 2) and a future one arrive DURING attempt 3 → ignored  22.85s  during attempt 3: attempts 2, 1 → stale_ignored; 9 → stale_ignored(future) + term; one commit
PASS C: crash before/after side effect, after COMMIT, hung worker — all reach one result  46.64s  {'crash-before-s3': 'takeover', 'crash-after-s3': 'takeover', 'crash-after-commit': 'dup_ignored', 'hang-40': 'takeover'}
PASS V1: stale v1 job after v2 is published → superseded, no v1 side effects  22.25s  v2 ready first; v1 → superseded at claim; variants only v2, pointer 2
PASS V2: version race — slow v1 commits after v2 → pointer stays on v2 (no overwrite by older)  16.43s  v1 finished after v2 → superseded at commit; pointer history [(None, 2)]
PASS V3: redelivered v1 after v2 rollout and repeated reprocess are no-ops   7.65s  v1 ready → v2 ready (pointer 1→2); 3 v1 duplicates ignored; reprocess v1/v2 again → noop
PASS invariants I1–I7 hold for everything this suite produced (settled, bytes verified)   3.37s  attachments 9, jobs 12 {'ready': 10, 'superseded': 2}, variants 33, events 91
summary: 7 passed, 0 failed
exit=0
