Repository navigation
Agent Queue Lab v0.1.0
Break your agents. Not your workflows.
Agent Queue Lab is an executable companion to Designing a multi-agent task queue that survives failures.
This initial release demonstrates durable multi-agent execution with Python, PostgreSQL, Docker Compose and simulated agents. No paid services or API credentials are required for the default demonstrations.
What is included
- Atomic task claiming, leases, heartbeats and generation fencing.
- Durable dependency graphs, attempts, artifacts and human approvals.
- Retry limits, cancellation and tenant concurrency controls.
- A separate mock Git service for studying remote commit ambiguity.
- An effect ledger supporting idempotency, lookup reconciliation and explicit uncertainty.
- Naive and durable execution profiles, a dashboard, REST API, CLI and metrics.
- Twenty failure scenarios, PostgreSQL integration tests and actual service restart/outage demonstrations.
Demonstrated behavior
Both the initial acceptance and the rebuilt release-candidate acceptance passed 53 of 53 test and scenario checks. The final strict pytest run passed without warnings. The duplicate-effect comparison produced two remote mutations with naive execution and one with durable execution. The stale-worker comparison demonstrated why accepting writes from expired attempts can overwrite newer canonical results.
See validation evidence for the recorded baseline and warning-free release-candidate verification. Local acceptance and the initial GitHub-hosted CI run (47574517361) both passed. The workflow action versions have been updated to address runtime deprecation annotations; final hosted verification and release tagging remain pending at the time these notes were prepared.
Quick start
cp .env.example .env
docker compose up --build -d --wait
make demo
make compareOpen http://localhost:8080 to inspect workflow state, artifacts, attempts and external effects.
Scope
This is an MIT-licensed educational laboratory, not a production orchestration platform. It does not claim general exactly-once execution, database high availability or production security. Real LLM inference is optional and has not been independently validated.