Lab files for "A 409 for the Zombie, a 200 for the Stranger" ==================================================================== Target: https://github.com/XiaoyunYin/Distributed-Durable-Workflow-Engine Tested at commit cd8d590 (2026-11-24). Needs Docker Desktop and git. Nothing else is installed on the host; Go commands run in a golang:1.27.4 container. Run everything from the root of a clone of that repository, with this folder next to it (the examples assume ../lab). git clone https://github.com/XiaoyunYin/Distributed-Durable-Workflow-Engine.git ddwe cd ddwe && git checkout cd8d590 Evidence audit (no services needed) audit.py The Rabbit Hole Generator's keyword walk, with the BOM fix claims.py Derives the four README numbers from the evidence files archive-check.sh Rebuilds the project's checker, replays 48 committed traces (run inside a Go container, see the post) tamper.py Rolls one snapshot's lease epoch backwards to test the checker Bringing the stack up up.sh Bash translation of scripts/bootstrap.ps1 -StartServices dc.sh docker compose with the right env file and compose file psql.sh psql inside the postgres container gorun.sh Run a Go command on the lab's Docker network define.sql Two workflow definitions (lab-add, lab-slow) submit.sh Submit one workflow with curl labcheck/main.go Copy to cmd/labcheck; runs the project's invariant checker on workflow IDs you name After up.sh, add these two lines to .env and run ../lab/dc.sh up -d --wait DUR048_ACTIVITY_DELAY_MS=20000 DUR048_ALLOW_FIXTURE_ACTIVITY=1 then: ../lab/psql.sh -q < ../lab/define.sql Experiments zombie-worker.sh Freeze the worker that owns an attempt, thaw it after takeover scheduler-down.sh Stop the scheduler replica the owning worker reports to db-outage.sh Stop PostgreSQL for ~35 seconds mid-activity forge.sh Claim a task as a made-up worker and submit a false result detect.sql Two after-the-fact checks for the forged result dbcost.sh Count SQL statements and leftover rows per workflow compose.latency.yaml, toxiproxy.json, latency.sh Put Toxiproxy between the schedulers and PostgreSQL: LAB_DIR="$PWD/../lab" docker compose --env-file .env \ -f deploy/local/compose.yaml -f ../lab/compose.latency.yaml up -d --wait ../lab/latency.sh "0 5 20 40" Cleanup ../lab/dc.sh down --volumes