peopleanalyst

Platform · Shipped · new here

Transactional outbox — at-least-once secondary writes

Durable delivery for secondary writes (benchmark contributions, consumer feeds, authz tuple-sync): callers enqueue an event IN the same DB transaction as the primary write; a drainer delivers it with retries + dead-letter. Ends fire-and-forget writes that could silently vanish.

Cluster
Platform
Type
service
Status
Shipped
Used by
people-analytics-toolbox

Maturity evidence

Functioning
Live in prod 2026-06-29 (migration 0161; outbox.outbox_event + benchmark.contribution_delivery verified in prod). FOR UPDATE SKIP LOCKED claim + lock-TTL crash recovery + exponential backoff + dead-letter.
Valuable
The benchmark data-flywheel moat (contributeComp) routes through it — a transient blip no longer silently under-collects. Reused by the adaptive-ledger + authz tuple-sync.
Understood
src/lib/outbox/ (enqueue/drain/policy) + the AUTHZ/integrity/agent-infra decision doc.
Integrated
Consumed by benchmark-store (OUTBOX-B), adaptive-ledger (LEDGER-0), authz tuple-sync (AUTHZ-B-2). Cron drainer every 5 min.

How to use it

REST
/api/cron/outbox/drain
Data
src/lib/outbox/

Other Platform capabilities

← Every platform capability

Capability detail sourced from the People Analytics Toolbox capability feed (source of truth), snapshot retrieved 2026-07-23.