feat: atomically journal and deliver authorized native operation outcomes
Some checks failed
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / pytest-smoke (push) Failing after 4s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a0e747-8f27-7242-8df8-8bc44f88c929
This commit is contained in:
tegwick 2026-09-28 14:00:26 +02:00
parent 3c5cbfbafe
commit f0eff0ac92
13 changed files with 583 additions and 28 deletions

View file

@ -235,3 +235,15 @@ runtime_import_runs = sa.Table(
sa.Column("status", sa.String(40), nullable=False),
sa.Column("created_at", sa.DateTime(timezone=True), nullable=False),
)
runtime_outcome_outbox = sa.Table(
"runtime_outcome_outbox", runtime_metadata,
sa.Column("id", sa.String(36), sa.ForeignKey("runtime_audit_ledger.id"), primary_key=True),
sa.Column("envelope", sa.JSON(), nullable=False),
sa.Column("created_at", sa.Float(), nullable=False),
sa.Column("attempts", sa.Integer(), nullable=False, default=0),
sa.Column("next_attempt", sa.Float(), nullable=False, default=0),
sa.Column("delivered_at", sa.Float(), nullable=True),
sa.Index("ix_runtime_outcome_pending", "delivered_at", "next_attempt"),
)