Integrate durable workflow agent delivery

Preserve current-main threaded workflow replies while binding owner-signed doorbells to durable, exclusive agent deliveries with lease-safe finalization.

Co-authored-by: Larry <larry@buzz.local>
Signed-off-by: Logan Johnson <loganj@squareup.com>
This commit is contained in:
Logan Johnson
2026-08-21 04:07:19 +00:00
committed by loganj
parent 17af15effa
commit 5fe350012f
31 changed files with 5398 additions and 738 deletions

View File

@@ -368,6 +368,9 @@ CREATE TABLE workflows (
channel_id UUID,
definition JSONB NOT NULL,
definition_hash BYTEA NOT NULL,
-- Exact owner-signed kind:30620 revision that materialized this row.
-- Nullable only for pre-0032 rows; workflow doorbells fail closed until re-saved.
definition_event_id BYTEA,
status workflow_status NOT NULL DEFAULT 'active',
enabled BOOLEAN NOT NULL DEFAULT TRUE,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),