agent-task-runtime
A crash-safe, lease-based task runtime for long-running agent jobs, as a dependency-free Python package on SQLite.
- Status
- Reference implementation. Single host, single SQLite file; simulated executors only, no model calls. No benchmarks.
- Authorship
- "Implemented with AI coding agents (Claude Code)," in the repository's own words: an independent reference implementation written from scratch, not extracted from any production system.
- Stack
- Python 3.11+ · SQLite (standard library) · pytest · ruff · uv
- Demonstrates
- Leases and fencing tokens · Transactional outbox · Checkpoint and resume · Retry with backoff and dead-lettering · Append-only audit log enforced by triggers
- Verified
- 171 pytest tests pass, ruff check and format check are clean, and the scripted demo is deterministic across runs. Observed at commit
bbad5e32851f52faa9039f64af7de4962185dd6a. - Commands run
uv sync uv run pytest -q uv run ruff check . uv run ruff format --check . uv run python -m agent_task_runtime demo- Repository
- github.com/Donovanfitch-dev/agent-task-runtime