Vercel's Workflow SDK 5.8 Cuts Step Overhead From 85ms to 7ms With Speculative Execution

Vercel released version 5.8 of its Workflow SDK on 25 November 2026, with a new execution engine that the company says makes workflows about ten times faster. The main change is speculative execution: the engine starts running steps before it has formally confirmed they are next.
The Workflow SDK is Vercel's tool for long-running jobs made of steps, where each step is saved so the job can pause, retry and resume. Typical uses are order processing, onboarding emails spread over days, and AI agents that call tools in a loop. The saving makes these jobs reliable. It has also made them slow, because every step carried a fixed cost for recording what happened.
That cost is what 5.8 attacks. Vercel's figures compare version 5.2.0 with 5.8.0. The overhead between one step and the next, at the 75th percentile, drops from 85 milliseconds to 7. A typical run containing 102 seconds of real work used to take 3 minutes and now takes 111 seconds.
The gains are larger for jobs that fan out. For a workflow that starts 256 steps in parallel, overhead falls from 13.5 seconds to 2.5. For a five-turn AI agent loop with streaming and tool calls, overhead falls from 3.0 seconds to 0.9. Resuming a paused workflow after one second of idle time takes 184 milliseconds, down from 425.
There is a condition, and it is the part to read carefully. Speculative execution means a step might start more than once. That is harmless for a step that is idempotent, meaning it has the same effect whether it runs once or twice. Vercel's example is a Stripe charge that passes the step's ID as an idempotency key, so a duplicate request is ignored.
A step that is not safe to repeat needs one line of configuration. Setting maxRetries to 0 tells the engine to run it at most once, and never to retry or speculate on it. Sending an email without a deduplication key is the obvious case.
Upgrading is a single command, npm install workflow@latest. New runs use the new engine by default, and runs that started on an older version finish on that version. Teams that want to wait can set an environment variable, WORKFLOW_SPEC_VERSION=8, to stay on the previous engine. Vercel notes that workflows resumed more than five seconds after a pause may see slightly higher overhead than before.
Our advice is to audit before upgrading. Go through each workflow and ask of every step: what happens if this runs twice? Most steps will be fine. The ones that send a message, charge a card or create a record without a unique key are the ones to fix first.
That audit is worth doing even if you never upgrade. Retries have always been part of how these systems work, so a step that cannot safely repeat was already a fault waiting for a bad day. This release gives everyone a reason to go looking.