Files
Pranay Prakash 02eed5bc5f feat(world): fence only decision writes
Add isDecisionEvent and gate the stateEventCount fence on it in
world-local and world-postgres: facts (completions, receipts, non-lazy
step_started claims) pass unfenced and never bump the fence even when
the runtime attaches a snapshot. A stale fact is byte-identical to a
fresh one and takes its meaning from its commit-assigned log position,
so fencing it prevents nothing and converts steady traffic into
replay-restart churn (measured: 776 wait_completed + 1107 step_started
rejections in one 48-run storm).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:39:13 -07:00
..
2026-07-28 17:20:21 -07:00
2026-07-28 17:20:21 -07:00

@workflow/world

Core interfaces and types for Workflow SDK storage backends.

This package defines the World interface that abstracts workflow storage, queuing, authentication, and streaming operations. Implementation packages like @workflow/world-local and @workflow/world-vercel provide concrete implementations.

Used internally by @workflow/core and world implementations. Should not be used directly in application code.