Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
[codex] Handle lazy stream key request failures by pranaygp · Pull Request #2257 · vercel/workflow · GitHub
Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' [codex] Handle lazy stream key request failures by pranaygp · Pull Request #2257 · vercel/workflow · GitHub
Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' [codex] Handle lazy stream key request failures by pranaygp · Pull Request #2257 · vercel/workflow · GitHub
Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' [codex] Handle lazy stream key request failures by pranaygp · Pull Request #2257 · vercel/workflow · GitHub
Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' [codex] Handle lazy stream key request failures by pranaygp · Pull Request #2257 · vercel/workflow · GitHub
Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); [codex] Handle lazy stream key request failures by pranaygp · Pull Request #2257 · vercel/workflow · GitHub
Skip to content

[codex] Handle lazy stream key request failures - #2257

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics
Jun 8, 2026
Merged

[codex] Handle lazy stream key request failures#2257
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/lazy-stream-key-request-diagnostics

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • defer Run.getReadable() encryption-key lookup until serialized stream data is actually read
  • include x-vercel-id and x-vercel-error in response-backed world-vercel transport errors and HTTP debug logs
  • add regressions for empty readable streams and Vercel correlation diagnostics

Root cause

Run.getReadable() eagerly started resolving the run encryption key. That path calls world.runs.get() (GET /v2/runs/:id?remoteRefBehavior=resolve) before any stream chunk requires deserialization. For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

The Vercel request headers are only available when an HTTP response is received. A local AbortSignal.timeout() rejection still cannot include response headers because no Response exists in that path.

Validation

  • pnpm turbo build --filter=@workflow/core... --filter=@workflow/world-vercel...
  • pnpm --dir packages/core exec vitest run src/serialization.test.ts src/runtime/runs.test.ts
  • pnpm --dir packages/world-vercel exec vitest run src
  • git diff --check HEAD^ HEAD

Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@vercel

vercelBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f5e7c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
NameType
@workflow/corePatch
@workflow/world-vercelPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126152191485
✅ 💻 Local Development167102191890
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7177610528235

❌ Failed Tests

▲ Vercel Production (5 failed)

astro (2 failed):

  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KTA9JW32H369NQQR51XMGWF1 | 🔍 observability
  • experimental_setAttributes Promise.all of disjoint-key writes: every key lands

fastify (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KTA9H6HWA92Q4239E6FZN46Y | 🔍 observability

nextjs-webpack (1 failed):

  • pages router promiseAllWorkflow via pages router
📦 Local Production (1 failed)

fastify-stable (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
❌ astro107226
✅ example109026
✅ express109026
❌ fastify108126
✅ hono109026
❌ nextjs-turbopack13212
❌ nextjs-webpack13212
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
❌ fastify-stable109125
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: success
  • Local Prod: failure
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.043s (+1.6%)1.006s (~)0.962s101.00x
💻 LocalExpress0.044s (+1.6%)1.006s (~)0.962s101.01x
🐘 PostgresExpress0.053s (-20.4% 🟢)1.012s (~)0.959s101.21x
💻 LocalNext.js (Turbopack)0.059s (+8.0% 🔺)1.005s (~)0.946s101.37x
🐘 PostgresNitro0.062s (-2.4%)1.013s (~)0.951s101.42x
🐘 PostgresNext.js (Turbopack)0.068s (-2.3%)1.012s (~)0.944s101.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.308s (+18.1% 🔺)2.329s (-4.4%)2.021s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.097s (~)2.006s (~)0.910s101.00x
🐘 PostgresNitro1.104s (-0.8%)2.010s (~)0.906s101.01x
💻 LocalNitro1.105s (+0.8%)2.006s (~)0.901s101.01x
🐘 PostgresExpress1.112s (+1.9%)2.010s (~)0.898s101.01x
💻 LocalNext.js (Turbopack)1.131s (+2.0%)2.006s (~)0.875s101.03x
🐘 PostgresNext.js (Turbopack)1.149s (+0.7%)2.009s (~)0.860s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.645s (+5.0% 🔺)3.811s (+8.0% 🔺)2.166s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.520s (~)11.019s (~)0.500s31.00x
💻 LocalExpress10.524s (~)11.021s (~)0.497s31.00x
💻 LocalNitro10.526s (~)11.023s (~)0.497s31.00x
🐘 PostgresExpress10.577s (-1.3%)11.018s (-2.9%)0.440s31.01x
💻 LocalNext.js (Turbopack)10.753s (+1.4%)11.021s (~)0.268s31.02x
🐘 PostgresNext.js (Turbopack)10.894s (+0.7%)11.355s (+3.1%)0.461s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.600s (+2.1%)15.883s (+1.9%)2.283s21.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.740s (-1.2%)14.026s (-1.4%)0.285s51.00x
💻 LocalNitro13.820s (+0.7%)14.226s (+1.4%)0.406s51.01x
🐘 PostgresNitro13.870s (~)14.017s (~)0.147s51.01x
🐘 PostgresExpress13.879s (~)14.019s (-1.5%)0.140s51.01x
💻 LocalNext.js (Turbopack)14.276s (+1.8%)15.029s (+2.7%)0.753s41.04x
🐘 PostgresNext.js (Turbopack)14.426s (-1.1%)15.017s (~)0.591s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro21.438s (-16.0% 🟢)23.827s (-13.7% 🟢)2.389s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.397s (-2.7%)13.017s (~)0.620s71.00x
💻 LocalExpress12.406s (-1.5%)13.024s (~)0.618s71.00x
💻 LocalNitro12.430s (~)13.024s (~)0.594s71.00x
🐘 PostgresExpress12.541s (-1.5%)13.019s (-2.2%)0.479s71.01x
💻 LocalNext.js (Turbopack)13.672s (+5.6% 🔺)14.027s (+5.4% 🔺)0.355s71.10x
🐘 PostgresNext.js (Turbopack)13.775s (~)14.020s (~)0.244s71.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro31.405s (+8.1% 🔺)34.159s (+8.8% 🔺)2.754s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.181s (-1.6%)2.007s (-0.7%)0.826s151.00x
🐘 PostgresNitro1.193s (-0.5%)2.007s (~)0.815s151.01x
💻 LocalNitro1.213s (~)2.006s (~)0.793s151.03x
🐘 PostgresNext.js (Turbopack)1.240s (-0.9%)2.008s (~)0.768s151.05x
💻 LocalExpress1.265s (~)2.006s (~)0.742s151.07x
💻 LocalNext.js (Turbopack)1.326s (+8.4% 🔺)2.006s (~)0.681s151.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.463s (-11.1% 🟢)3.999s (-7.9% 🟢)1.535s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.234s (-6.9% 🟢)2.008s (~)0.774s151.00x
🐘 PostgresNitro1.278s (+1.6%)2.008s (~)0.730s151.04x
🐘 PostgresNext.js (Turbopack)1.370s (-2.8%)2.006s (~)0.636s151.11x
💻 LocalNext.js (Turbopack)1.660s (-3.8%)2.149s (+7.1% 🔺)0.489s141.35x
💻 LocalNitro1.854s (+8.8% 🔺)2.150s (+3.7%)0.295s141.50x
💻 LocalExpress1.896s (+0.7%)2.292s (+3.2%)0.396s141.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.534s (-13.2% 🟢)5.503s (-11.4% 🟢)1.969s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.343s (-3.7%)2.007s (~)0.664s151.00x
🐘 PostgresNitro1.395s (-0.8%)2.007s (~)0.612s151.04x
🐘 PostgresNext.js (Turbopack)1.697s (-3.6%)2.222s (-3.2%)0.525s141.26x
💻 LocalNext.js (Turbopack)4.512s (+2.6%)5.178s (+3.3%)0.666s63.36x
💻 LocalExpress5.349s (+0.9%)5.845s (-2.8%)0.497s63.98x
💻 LocalNitro5.511s (+16.8% 🔺)6.014s (+20.0% 🔺)0.502s54.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.113s (-9.3% 🟢)8.104s (-6.9% 🟢)1.992s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.186s (-1.4%)2.009s (~)0.822s151.00x
🐘 PostgresNitro1.194s (~)2.010s (~)0.815s151.01x
🐘 PostgresNext.js (Turbopack)1.242s (-1.9%)2.008s (~)0.765s151.05x
💻 LocalNext.js (Turbopack)1.392s (+6.6% 🔺)2.006s (~)0.614s151.17x
💻 LocalNitro1.546s (~)2.006s (~)0.460s151.30x
💻 LocalExpress1.563s (-5.7% 🟢)2.006s (-3.2%)0.444s151.32x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.510s (-6.1% 🟢)3.998s (-7.7% 🟢)1.488s81.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.238s (~)2.008s (~)0.770s151.00x
🐘 PostgresNitro1.269s (~)2.008s (~)0.739s151.02x
🐘 PostgresNext.js (Turbopack)1.404s (~)2.008s (~)0.604s151.13x
💻 LocalNext.js (Turbopack)1.935s (-4.3%)2.314s (-7.6% 🟢)0.380s131.56x
💻 LocalNitro1.996s (+13.6% 🔺)2.393s (+15.4% 🔺)0.397s131.61x
💻 LocalExpress2.055s (-3.3%)2.592s (~)0.537s121.66x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.453s (-15.7% 🟢)5.394s (-10.1% 🟢)1.941s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.354s (-9.7% 🟢)2.151s (-10.3% 🟢)0.797s141.00x
🐘 PostgresNitro1.399s (-4.3%)2.008s (~)0.609s151.03x
🐘 PostgresNext.js (Turbopack)1.689s (+2.0%)2.151s (+3.7%)0.462s141.25x
💻 LocalNext.js (Turbopack)5.426s (+5.1% 🔺)6.215s (+3.3%)0.789s54.01x
💻 LocalExpress5.973s (+1.9%)6.615s (+6.5% 🔺)0.642s54.41x
💻 LocalNitro6.192s (+30.6% 🔺)6.819s (+27.6% 🔺)0.627s54.57x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.620s (+34.3% 🔺)8.844s (+31.3% 🔺)2.224s41.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.596s (-2.0%)1.024s (+1.6%)0.427s591.00x
💻 LocalExpress0.597s (-9.0% 🟢)1.005s (-3.4%)0.407s601.00x
🐘 PostgresExpress0.606s (-9.2% 🟢)1.041s (-0.7%)0.435s581.02x
💻 LocalNitro0.609s (-24.3% 🟢)1.005s (-16.6% 🟢)0.396s601.02x
🐘 PostgresNext.js (Turbopack)0.818s (+0.7%)1.023s (+1.7%)0.206s591.37x
💻 LocalNext.js (Turbopack)0.856s (+22.9% 🔺)1.021s (+1.7%)0.165s591.43x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.912s (-34.2% 🟢)6.782s (-28.8% 🟢)1.870s101.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-3.5%)2.029s (+1.1%)0.663s451.00x
🐘 PostgresExpress1.374s (-10.6% 🟢)2.007s (-6.7% 🟢)0.633s451.01x
💻 LocalExpress1.509s (-5.2% 🟢)2.006s (-1.1%)0.497s451.10x
💻 LocalNitro1.523s (+4.0%)2.006s (~)0.484s451.11x
🐘 PostgresNext.js (Turbopack)1.927s (-0.8%)2.149s (-1.2%)0.222s431.41x
💻 LocalNext.js (Turbopack)2.071s (+19.8% 🔺)2.851s (+40.6% 🔺)0.780s321.52x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro12.729s (-3.7%)15.273s (-1.3%)2.544s61.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.652s (-9.0% 🟢)3.033s (-7.5% 🟢)0.381s401.00x
🐘 PostgresExpress2.672s (-8.2% 🟢)3.058s (-13.6% 🟢)0.387s401.01x
💻 LocalExpress3.197s (-6.5% 🟢)4.010s (~)0.813s301.21x
💻 LocalNitro3.457s (+7.8% 🔺)4.182s (+4.3%)0.725s291.30x
🐘 PostgresNext.js (Turbopack)3.761s (-2.6%)4.010s (-1.6%)0.249s301.42x
💻 LocalNext.js (Turbopack)4.302s (+15.4% 🔺)5.011s (+21.9% 🔺)0.709s241.62x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.387s (-14.7% 🟢)28.120s (-12.1% 🟢)2.733s51.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.211s (-10.6% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresExpress0.255s (+1.2%)1.040s (+3.0%)0.785s581.21x
🐘 PostgresNext.js (Turbopack)0.265s (-6.2% 🟢)1.006s (~)0.741s601.26x
💻 LocalExpress0.444s (-4.4%)1.004s (~)0.560s602.11x
💻 LocalNitro0.535s (+26.0% 🔺)1.095s (+9.1% 🔺)0.561s552.54x
💻 LocalNext.js (Turbopack)0.601s (-1.6%)1.022s (-1.6%)0.421s592.85x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.334s (~)4.243s (-2.1%)1.909s151.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.331s (-2.2%)1.006s (~)0.675s901.00x
🐘 PostgresNitro0.358s (-3.4%)1.018s (+1.1%)0.659s891.08x
🐘 PostgresNext.js (Turbopack)0.464s (-3.8%)1.006s (~)0.542s901.40x
💻 LocalExpress2.089s (-4.7%)2.610s (-7.5% 🟢)0.522s356.30x
💻 LocalNitro2.113s (+2.4%)2.581s (-2.2%)0.468s356.37x
💻 LocalNext.js (Turbopack)2.398s (-2.1%)3.044s (-2.1%)0.645s307.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro5.115s (-88.3% 🟢)7.051s (-84.7% 🟢)1.936s141.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.623s (~)1.006s (-4.7%)0.383s1201.00x
🐘 PostgresNitro0.654s (-7.5% 🟢)1.006s (~)0.352s1201.05x
🐘 PostgresNext.js (Turbopack)0.943s (-3.7%)1.323s (-17.7% 🟢)0.380s921.51x
💻 LocalNitro9.639s (+10.7% 🔺)10.360s (+11.0% 🔺)0.721s1215.48x
💻 LocalExpress9.707s (-5.9% 🟢)10.191s (-6.2% 🟢)0.484s1215.59x
💻 LocalNext.js (Turbopack)10.526s (+2.0%)11.303s (~)0.777s1116.90x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro116.711s (-62.5% 🟢)118.780s (-62.1% 🟢)2.069s31.00x
▲ VercelExpress⚠️missing----
▲ VercelNext.js (Turbopack)⚠️missing----

🔍 Observability: Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.161s (-2.7%)2.001s (~)0.001s (-97.1% 🟢)2.010s (-1.6%)0.848s101.00x
💻 LocalNitro1.164s (+1.2%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.855s101.00x
🐘 PostgresNitro1.167s (-1.2%)2.004s (~)0.001s (-21.4% 🟢)2.011s (~)0.844s101.01x
💻 LocalExpress1.175s (+0.5%)2.005s (~)0.013s (-1.6%)2.020s (~)0.845s101.01x
💻 LocalNext.js (Turbopack)1.202s (+2.8%)2.003s (~)0.011s (+5.9% 🔺)2.017s (~)0.815s101.03x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.000s (~)0.001s (-40.0% 🟢)2.010s (~)0.787s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.208s (+2.0%)3.683s (+7.8% 🔺)12.823s (+2385.6% 🔺)17.060s (+281.8% 🔺)14.852s101.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.569s (-5.7% 🟢)2.005s (~)0.004s (+2.6%)2.025s (~)0.456s301.00x
💻 LocalExpress1.580s (-3.4%)2.010s (~)0.011s (-3.6%)2.022s (~)0.442s301.01x
🐘 PostgresExpress1.584s (-8.8% 🟢)2.006s (-6.4% 🟢)0.004s (+16.0% 🔺)2.022s (-6.4% 🟢)0.438s301.01x
💻 LocalNitro1.593s (-8.6% 🟢)2.010s (~)0.010s (+9.8% 🔺)2.022s (-8.0% 🟢)0.430s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.5% 🔺)2.009s (~)0.010s (-2.6%)2.022s (~)0.291s301.10x
🐘 PostgresNext.js (Turbopack)1.732s (-1.8%)2.011s (~)0.004s (-5.0%)2.025s (~)0.293s301.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro6.104s (+6.2% 🔺)7.557s (-0.5%)0.582s (+72.3% 🔺)8.700s (+2.5%)2.596s71.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.697s (-3.6%)1.015s (-1.5%)0.000s (-66.7% 🟢)1.046s (~)0.350s581.00x
🐘 PostgresExpress0.717s (-26.6% 🟢)1.041s (-27.1% 🟢)0.000s (-75.4% 🟢)1.062s (-26.7% 🟢)0.345s571.03x
🐘 PostgresNext.js (Turbopack)0.821s (-1.4%)1.091s (+1.8%)0.000s (+1.8%)1.099s (+1.8%)0.278s551.18x
💻 LocalExpress1.377s (-7.1% 🟢)2.014s (~)0.000s (-40.0% 🟢)2.016s (~)0.639s301.98x
💻 LocalNitro1.400s (+3.5%)2.013s (~)0.000s (-40.0% 🟢)2.015s (~)0.615s302.01x
💻 LocalNext.js (Turbopack)1.500s (+3.6%)2.012s (~)0.000s (-12.5% 🟢)2.016s (~)0.516s302.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.782s (+5.0% 🔺)5.043s (-0.6%)0.001s (+Infinity% 🔺)5.602s (~)1.820s111.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.484s (+5.2% 🔺)2.176s (+9.0% 🔺)0.000s (+Infinity% 🔺)2.201s (+9.4% 🔺)0.717s281.00x
🐘 PostgresExpress1.486s (-8.0% 🟢)2.180s (-3.3%)0.000s (+Infinity% 🔺)2.214s (-2.9%)0.728s281.00x
🐘 PostgresNext.js (Turbopack)1.626s (-5.9% 🟢)2.180s (-3.6%)0.000s (NaN%)2.188s (-3.6%)0.563s281.10x
💻 LocalExpress3.023s (-9.3% 🟢)3.768s (-1.8%)0.000s (-33.3% 🟢)3.778s (-1.7%)0.755s162.04x
💻 LocalNext.js (Turbopack)3.176s (-1.1%)3.665s (-5.9% 🟢)0.001s (+69.4% 🔺)3.680s (-5.6% 🟢)0.504s172.14x
💻 LocalNitro3.201s (+2.8%)3.836s (-1.5%)0.001s (+350.0% 🔺)3.843s (-1.5%)0.642s162.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro66.287s (+841.3% 🔺)68.223s (+695.9% 🔺)0.000s (NaN%)68.761s (+656.6% 🔺)2.473s51.00x
▲ VercelExpress⚠️missing-----
▲ VercelNext.js (Turbopack)⚠️missing-----

🔍 Observability: Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress12/21
🐘 PostgresNitro11/21
▲ VercelNitro21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres14/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@pranaygp
pranaygp marked this pull request as ready for review June 8, 2026 18:35
@pranaygp
pranaygp requested a review from a team as a code ownerJune 8, 2026 18:35
CopilotAI review requested due to automatic review settings June 8, 2026 18:35

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unobserved (potentially unhandled) run-encryption-key lookups by deferring key resolution in Run.getReadable() until stream data is actually deserialized, and improves Vercel transport diagnostics by surfacing correlation headers in both debug logs and response-backed errors.

Changes:

  • Extend EncryptionKeyParam to allow a lazy resolver function and add resolveEncryptionKey() to consistently resolve/cached keys at first use.
  • Update stream serialization/deserialization to resolve encryption keys lazily on first chunk processing (avoiding eager key fetch for empty/unused streams).
  • Add Vercel response diagnostics (x-vercel-id, x-vercel-error) to world-vercel HTTP debug logs and error messages, plus regression tests for both behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
packages/world-vercel/src/utils.tsAdds response diagnostic header extraction and appends diagnostics to HTTP debug logs and response-backed error messages.
packages/world-vercel/src/utils.test.tsAdds a regression test asserting Vercel correlation headers are included in thrown HTTP errors.
packages/core/src/serialization/encryption.tsExtends EncryptionKeyParam with a lazy resolver option and introduces resolveEncryptionKey() helper.
packages/core/src/serialization.tsUses resolveEncryptionKey() to defer encryption key resolution until stream work actually happens (first chunk / abort write).
packages/core/src/runtime/run.tsSwitches Run.getReadable() to pass a lazy key resolver to deserialization to avoid eager run/key lookup.
packages/core/src/runtime/runs.test.tsAdds a regression test ensuring empty readable streams do not trigger run/key fetching.
.changeset/lazy-stream-key-request-diagnostics.mdDocuments patch releases for @workflow/core and @workflow/world-vercel reflecting the behavior changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — defensible defensive improvement, but the PR body's framing is stronger than the evidence

The code change is sound and worth landing. The framing of "fixes the production 273s hang" deserves more skepticism than the PR body or codex session implies.

What the PR actually does (and does well)

  1. Run.getReadable() no longer eagerly fetches the encryption key. Pre-PR, calling getReadable() immediately started world.runs.get(runId) regardless of whether the stream would be consumed. Post-PR, the key fetch is deferred to the first chunk's transform()/processFrames() via a () => Promise<CryptoKey> resolver. The plumbing is clean: EncryptionKeyParam gains a function variant; a small resolveEncryptionKey() helper invokes it.

  2. Vercel correlation diagnostics: x-vercel-id and x-vercel-error are now included in WorkflowWorldError messages for HTTP failures (PARSE_ERROR, SCHEMA_VALIDATION, default error path) and in the debug log line. Useful when triaging production issues that surface via WorkflowWorldError.

  3. Test coverage: A new Run.getReadable test asserts world.runs.get and getEncryptionKeyForRun are NOT called for an unused stream after a tick. A new makeRequest test asserts the new Vercel correlation suffix in error messages.

Where I'd push back on the framing

The PR body says:

For unused or empty readable streams, a rejected lookup was not observed by a consumer and could surface as an unhandled rejection.

This is technically accurate but practically narrow:

  • The promise IS observed eventually, in the first chunk's await cryptoKey. The unhandled-rejection window is the gap between getReadable() returning and the first chunk being processed.
  • For most calling patterns, that window is short (microseconds: the consumer reads chunks immediately).
  • The promise is also stored in this.#encryptionKeyPromise (the memoization cache), which means it has at least one reference to its rejection.

So the "could surface as an unhandled rejection" scenario requires:

  1. getReadable() called
  2. Stream never consumed (no chunks ever processed → no await cryptoKey)
  3. world.runs.get() rejects
  4. No other code observes #encryptionKeyPromise either

The codex session's reasoning that this causes the 273-second Ash hang has a gap I can't follow: the screenshots say workflow-server records HTTP 200, roughly 54 ms later — meaning the GET succeeded. The 273-second timer fires later via AbortSignal.timeout(60_000), which is a per-request timeout. If the request already returned 200, that timeout signal shouldn't reject the already-resolved promise.

The corrected codex analysis (image 2) acknowledges the same — the actual root cause is the Ash lifecycle gap (runtime.run() constructs the event stream and starts draining via ReadableStream.start() while not being tracked by waitUntil). The codex framing softens to "Workflow PR #2257 removes the dangerous eager promise that makes the Ash gap fatal," which is a more defensible claim.

So why land it?

Even setting aside the 273s hang attribution, this PR is a real improvement on its own:

  • getReadable() should be cheap and side-effect-free. Starting an HTTP request just because someone called getReadable() is bad API hygiene. Some callers want to probe/conditionally use the stream; making them pay for a runs.get() they may never need is wrong.
  • Lazy resolution removes a class of unhandled-rejection footguns even if they're rare in practice. A consumer that creates a readable stream and decides not to consume it shouldn't blow up the process.
  • The Vercel correlation diagnostics are genuinely useful for triaging real production issues.

What I verified locally

  • Rebased onto current main cleanly. The PR's diff against current main shows confusing "deletions" of APIConfig.dispatcher + getDispatcher(config) arg — those are stale-branch artifacts from #2235 landing on main after this PR was branched. Post-rebase the diff is exactly the 7 files described in the PR body.
  • pnpm install --frozen-lockfile
  • pnpm turbo run build --filter @workflow/core --filter @workflow/world-vercel
  • 215 core tests pass (serialization.test.ts + runtime/runs.test.ts)
  • 116 world-vercel tests pass
  • The new "does not fetch the run encryption key for an empty stream" test correctly exercises the new behavior

Small observation (non-blocker)

Only one new test in the Run.getReadable describe block — the negative case ("doesn't fetch when stream unused"). There's no positive test confirming that consumption DOES still trigger the fetch. Existing serialization.test.ts tests probably cover the resolution path indirectly, but a direct positive test would document the contract:

it('fetches the run encryption key when the stream is consumed',async()=>{// ... call getReadable(), consume a chunk, assert runs.get called exactly once});

CI

10 failures, but most look pre-existing on main:

  • Unit Tests (ubuntu) failing with Workflow replay diverged 4 times after 3 recovery replays — looks like a flaky issue from the #2208 retry mechanism, also showing up on main runs
  • Vercel Prod E2E failures (nextjs-turbopack, nextjs-webpack, astro, fastify) — same flakes as recent main runs
  • Benchmarks — habitually flaky

Not seeing failures specific to this PR's changes.

Bottom line

Land it for the right reasons (clean API hygiene, removes a real footgun class, useful diagnostics) — not as "the fix for the 273s production hang." The corrected codex analysis acknowledges as much in its concluding paragraph.

Approving.

@pranaygp
pranaygp merged commit ccd37e9 into mainJun 8, 2026
112 of 122 checks passed
@pranaygp
pranaygp deleted the pranaygp/codex/lazy-stream-key-request-diagnostics branch June 8, 2026 19:01
@github-actionsgithub-actionsBot mentioned this pull request Jun 8, 2026
github-actionsBot added a commit that referenced this pull request Jun 8, 2026
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2293. Merge conflicts were resolved by AI — please review carefully. (backport job run)

pranaygp added a commit that referenced this pull request Jun 8, 2026
* Handle lazy stream key request failures (#2257)
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
* fix(core): remove main-only world import
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
---------
Signed-off-by: Pranay Prakash <pranay.gp@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Pranay Prakash <pranay.gp@gmail.com>
pranaygp added a commit that referenced this pull request Jun 11, 2026
…-attributes-client
* origin/main: (32 commits)
feat(core): add optional namespace for queue topic prefix (#2305)
[web-shared] Show precise durations in the new trace viewer (#2335)
Validate unique workflow step IDs at build time (#2018)
Move run attributes into their own detail card (#2327)
[core] Forward-port stream reconnect to getReadable level (#2318)
[docs] Add "Step executed multiple times" error page (#2310)
Fix flickering on the detail panel when navigating the trace viewer (#2325)
Version Packages (beta) (#2254)
Patch vulnerable package dependencies (#2301)
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs (#2285)
[codex] Fix partial world-local exclusive writes (#2296)
[world-vercel] Validate ref resolve responses before use (#2035)
fix: bump devalue to 5.8.1 (#2292)
Handle lazy stream key request failures (#2257)
fix(docs): declare Nitro auto-import globals for code samples (#2290)
[core] Preserve event-log order in hook-vs-sleep replay races (#2171) (#2185)
docs: add nitro changelog (#2232)
fix(next): always apply turbopack content condition regardless of builder mode (#2253)
Update @vercel/queue from 0.2.1 to 0.3.0 (#2255)
[nest] Use AST-based CommonJS import rewriting (#2080)
...
# Conflicts:
#	packages/world-local/src/storage/events-storage.ts
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pranaygp@TooTallNate