- Status: Accepted (supersedes an earlier Temporal proposal). State persistence amended by ADR-0012: unit / stage / gate state is persisted in the workspace repo and indexed in Postgres; the queue and job execution stay in Postgres.
- Date: 2026-10-09
Kintsugi ships as a self-deployed Docker Compose package (ADR-0006) whose only datastore is Postgres (ADR-0010). Pipelines are long-running and wait on human approvals, but each step is short: a runtime job, a git sync, or a commit.
- Use a Postgres-backed job queue (pg-boss) for asynchronous work: runtime jobs, git sync and polling, ingestion, and commit/PR creation.
- Pipeline, stage and gate progress is an explicit state machine stored in Postgres tables. Human approvals are state transitions made through the API; they are not long-lived workflow executions.
- Pros: no extra infrastructure to install or operate; transactional with application data.
- Cons: retries, timeouts and idempotency must be implemented explicitly. Revisit Temporal if pipelines need complex compensation logic or very high throughput.