Expand description
Exactly-once / idempotent delivery primitives.
The pipeline issues a monotonic commit token for every page that carries
a bookmark. The token is persisted in the StateStore
value next to the bookmark and committed inside the sink’s own transaction,
so a crash between “sink durably wrote” and “state persisted” is resolved on
resume by skipping pages the sink already committed. See
docs/superpowers/specs/2026-06-09-exactly-once-delivery-design.md.
Enums§
- Delivery
Mode - Delivery guarantee for a pipeline run.
Constants§
- COMMIT_
TOKEN_ SCOPE_ COL - Watermark column holding the pipeline state-key (
{name}::{row_id}). - COMMIT_
TOKEN_ TABLE - Canonical watermark table the SQL sinks UPSERT the commit token into.
- COMMIT_
TOKEN_ TOKEN_ COL - Watermark column holding the latest committed token.
- ICEBERG_
SCOPE_ PROP - Iceberg snapshot summary property names.
- ICEBERG_
TOKEN_ PROP
Functions§
- format_
token - Render a page sequence as a fixed-width, lexicographically-ordered token.
- parse_
token - Parse a token produced by
format_token. ReturnsNoneon garbage. - unwrap_
state - Unwrap a stored state value into
(bookmark, seq). - wrap_
state - Wrap a bookmark + sequence into the exactly-once state value.