mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
02eed5bc5f
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>
@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.