[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

@VaguelySerious@TooTallNate@karthikscale3
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n 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;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

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

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

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

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

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

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

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

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

@VaguelySerious@TooTallNate@karthikscale3
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

@VaguelySerious@TooTallNate@karthikscale3
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

[world] Restructure stream interface, require run ID for all step and stream operations - #1293

Merged
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional
Apr 9, 2026
Merged

[world] Restructure stream interface, require run ID for all step and stream operations#1293
VaguelySerious merged 19 commits into
mainfrom
peter/step-optional

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented Mar 7, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
… operations in namespace
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

changeset-botBot commented Mar 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c89b17

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

This PR includes changesets to release 21 packages
NameType
@workflow/worldMajor
@workflow/world-localMajor
@workflow/world-vercelMajor
@workflow/world-postgresMajor
@workflow/coreMajor
@workflow/cliMajor
@workflow/webMajor
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowMajor
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch
@workflow/aiMajor

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

@vercel

vercelBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 7, 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.040s (-6.9% 🟢)1.005s (~)0.965s101.00x
💻 LocalExpress0.045s (+3.4%)1.006s (~)0.961s101.11x
🐘 PostgresExpress0.055s (-5.5% 🟢)1.010s (~)0.955s101.37x
🐘 PostgresNext.js (Turbopack)0.057s1.010s0.953s101.40x
🐘 PostgresNitro0.058s (-7.5% 🟢)1.011s (~)0.953s101.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.281s (+20.6% 🔺)2.095s (~)1.814s101.00x
▲ VercelNext.js (Turbopack)0.287s (+24.9% 🔺)2.314s (+2.1%)2.027s101.02x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.129s (~)2.007s (~)0.878s101.00x
🐘 PostgresNext.js (Turbopack)1.133s2.009s0.876s101.00x
💻 LocalExpress1.137s (+1.0%)2.006s (~)0.869s101.01x
🐘 PostgresExpress1.145s (~)2.009s (~)0.863s101.01x
🐘 PostgresNitro1.148s (~)2.009s (~)0.861s101.02x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.978s (+3.8%)3.763s (~)1.785s101.00x
▲ VercelNext.js (Turbopack)2.055s (~)3.699s (-3.2%)1.644s101.04x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.859s (~)11.019s (~)0.160s31.00x
🐘 PostgresNext.js (Turbopack)10.866s11.020s0.153s31.00x
💻 LocalNitro10.909s (~)11.022s (~)0.113s31.00x
🐘 PostgresNitro10.925s (~)11.023s (~)0.098s31.01x
💻 LocalExpress10.975s (~)11.024s (~)0.049s31.01x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro16.913s (-1.2%)18.889s (-4.3%)1.975s21.00x
▲ VercelNext.js (Turbopack)16.995s (-1.3%)18.629s (-4.1%)1.634s21.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)14.449s15.023s0.574s41.00x
🐘 PostgresNitro14.547s (~)15.026s (~)0.478s41.01x
🐘 PostgresExpress14.659s (+0.7%)15.023s (~)0.364s41.01x
💻 LocalNitro14.944s (~)15.027s (~)0.083s41.03x
💻 LocalExpress15.131s (+1.4%)16.031s (+6.7% 🔺)0.901s41.05x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)32.950s (-2.6%)35.650s (-0.6%)2.700s21.00x
▲ VercelNitro339.104s (+928.6% 🔺)341.172s (+877.4% 🔺)2.068s110.29x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)13.803s14.019s0.216s71.00x
🐘 PostgresExpress13.829s (-2.4%)14.160s (-5.7% 🟢)0.332s71.00x
🐘 PostgresNitro14.066s (~)14.738s (~)0.672s71.02x
💻 LocalNitro16.446s (-0.7%)17.028s (~)0.582s61.19x
💻 LocalExpress17.102s (+4.4%)17.701s (+3.9%)0.599s61.24x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro52.861s (-74.5% 🟢)55.213s (-73.6% 🟢)2.352s21.00x
▲ VercelNext.js (Turbopack)55.475s (-8.5% 🟢)57.663s (-7.8% 🟢)2.188s21.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.228s2.010s0.782s151.00x
🐘 PostgresNitro1.253s (-2.9%)2.010s (~)0.757s151.02x
🐘 PostgresExpress1.267s (+0.5%)2.010s (~)0.743s151.03x
💻 LocalNitro1.496s (-2.7%)2.006s (~)0.510s151.22x
💻 LocalExpress1.608s (+7.3% 🔺)2.006s (~)0.398s151.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.271s (-7.6% 🟢)3.680s (-18.8% 🟢)1.409s91.00x
▲ VercelNitro2.292s (-12.1% 🟢)4.137s (-4.4%)1.845s81.01x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.332s (-2.0%)3.009s (~)0.677s101.00x
🐘 PostgresNitro2.348s (~)3.010s (~)0.662s101.01x
🐘 PostgresNext.js (Turbopack)2.412s3.010s0.598s101.03x
💻 LocalNitro2.878s (-1.7%)3.108s (~)0.230s101.23x
💻 LocalExpress3.046s (+7.8% 🔺)3.885s (+25.0% 🔺)0.839s81.31x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.511s (-26.8% 🟢)4.415s (-12.3% 🟢)1.904s71.00x
▲ VercelNext.js (Turbopack)2.646s (-6.9% 🟢)4.346s (-9.2% 🟢)1.700s71.05x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.467s (~)4.009s (~)0.543s81.00x
🐘 PostgresNitro3.492s (+0.8%)4.012s (~)0.520s81.01x
🐘 PostgresNext.js (Turbopack)3.674s4.010s0.336s81.06x
💻 LocalNitro8.039s (-1.7%)8.521s (-5.6% 🟢)0.482s42.32x
💻 LocalExpress8.656s (+13.7% 🔺)9.024s (+9.1% 🔺)0.368s42.50x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.842s (-5.5% 🟢)5.507s (-12.3% 🟢)1.666s61.00x
▲ VercelNitro155.663s (+4649.4% 🔺)157.742s (+3109.0% 🔺)2.078s240.52x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.223s2.009s0.785s151.00x
🐘 PostgresExpress1.253s (-0.9%)2.008s (~)0.755s151.02x
🐘 PostgresNitro1.268s (+0.8%)2.009s (~)0.741s151.04x
💻 LocalNitro1.541s (+0.7%)2.006s (~)0.465s151.26x
💻 LocalExpress1.594s (+5.8% 🔺)2.006s (~)0.412s151.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)1.964s (-16.1% 🟢)3.636s (-12.9% 🟢)1.672s91.00x
▲ VercelNitro2.467s (+7.5% 🔺)4.354s (+10.1% 🔺)1.887s81.26x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.329s (-1.0%)3.010s (~)0.681s101.00x
🐘 PostgresNitro2.350s (-1.0%)3.010s (~)0.659s101.01x
🐘 PostgresNext.js (Turbopack)2.394s3.009s0.616s101.03x
💻 LocalNitro2.857s (-7.8% 🟢)3.209s (-17.4% 🟢)0.352s101.23x
💻 LocalExpress3.194s (+11.7% 🔺)4.010s (+33.3% 🔺)0.816s81.37x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.606s (-7.9% 🟢)4.283s (-9.8% 🟢)1.678s81.00x
▲ VercelNitro3.889s (-98.7% 🟢)5.480s (-98.2% 🟢)1.591s61.49x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.478s (~)4.011s (~)0.533s81.00x
🐘 PostgresNitro3.489s (+1.0%)4.013s (~)0.524s81.00x
🐘 PostgresNext.js (Turbopack)3.651s4.010s0.360s81.05x
💻 LocalNitro8.618s (-3.9%)9.022s (-2.7%)0.404s42.48x
💻 LocalExpress8.937s (+11.4% 🔺)9.526s (+8.6% 🔺)0.589s42.57x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.689s (+2.7%)5.345s (~)1.656s61.00x
▲ VercelNitro3.697s (+23.2% 🔺)5.294s (+13.0% 🔺)1.597s61.00x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.792s1.041s0.249s581.00x
🐘 PostgresExpress0.817s (-4.2%)1.006s (~)0.189s601.03x
🐘 PostgresNitro0.825s (~)1.006s (~)0.181s601.04x
💻 LocalNitro0.970s (-1.5%)1.076s (-8.9% 🟢)0.105s561.23x
💻 LocalExpress0.993s (-2.8%)1.369s (-11.3% 🟢)0.376s441.25x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)9.277s (-10.3% 🟢)11.204s (-10.1% 🟢)1.926s61.00x
▲ VercelNitro10.310s (+13.3% 🔺)12.229s (+9.4% 🔺)1.919s51.11x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.921s (-6.6% 🟢)2.029s (-29.6% 🟢)0.109s451.00x
🐘 PostgresNext.js (Turbopack)1.931s2.124s0.193s431.01x
🐘 PostgresNitro1.991s (+1.0%)2.375s (+6.7% 🔺)0.385s381.04x
💻 LocalExpress3.056s (~)3.885s (+6.5% 🔺)0.829s241.59x
💻 LocalNitro3.174s (+5.7% 🔺)3.453s (-2.6%)0.279s271.65x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro29.015s (~)30.850s (+0.6%)1.835s31.00x
▲ VercelNext.js (Turbopack)183.054s (+494.3% 🔺)185.132s (+462.8% 🔺)2.077s26.31x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.900s (-4.3%)4.110s (-14.6% 🟢)0.211s301.00x
🐘 PostgresNext.js (Turbopack)3.937s4.217s0.280s291.01x
🐘 PostgresNitro4.069s (-1.7%)4.742s (-3.1%)0.673s261.04x
💻 LocalNitro9.115s (-0.8%)9.788s (-1.5%)0.672s132.34x
💻 LocalExpress9.303s (+4.0%)10.018s (+6.5% 🔺)0.716s122.39x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro72.492s (-0.8%)74.892s (~)2.400s21.00x
▲ VercelNext.js (Turbopack)85.933s (+3.0%)87.658s (+2.6%)1.725s21.19x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.248s1.007s0.760s601.00x
🐘 PostgresExpress0.277s (-0.8%)1.006s (~)0.729s601.12x
🐘 PostgresNitro0.287s (~)1.007s (~)0.720s601.16x
💻 LocalNitro0.567s (-4.6%)1.004s (~)0.438s602.29x
💻 LocalExpress0.604s (+2.4%)1.005s (~)0.400s602.44x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.583s (-11.9% 🟢)3.048s (-14.4% 🟢)1.465s201.00x
▲ VercelNext.js (Turbopack)1.899s (+14.3% 🔺)3.671s (+13.5% 🔺)1.772s171.20x
▲ VercelExpress⚠️missing----

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.484s (-2.2%)1.006s (~)0.522s901.00x
🐘 PostgresNext.js (Turbopack)0.489s1.007s0.518s901.01x
🐘 PostgresNitro0.501s (~)1.007s (~)0.506s901.04x
💻 LocalNitro2.534s (-1.1%)3.009s (~)0.475s305.24x
💻 LocalExpress2.563s (+4.8%)3.009s (~)0.446s305.30x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.239s (-8.7% 🟢)4.803s (-6.7% 🟢)1.564s191.00x
▲ VercelNitro3.531s (+42.4% 🔺)5.246s (+25.7% 🔺)1.715s181.09x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.774s (-2.0%)1.007s (~)0.233s1201.00x
🐘 PostgresNext.js (Turbopack)0.775s1.007s0.232s1201.00x
🐘 PostgresNitro0.793s (-8.1% 🟢)1.008s (-5.2% 🟢)0.215s1201.03x
💻 LocalNitro11.077s (~)11.755s (+0.8%)0.678s1114.32x
💻 LocalExpress11.450s (+8.6% 🔺)11.939s (+8.2% 🔺)0.489s1114.80x
💻 LocalNext.js (Turbopack)⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)6.884s (+10.0% 🔺)8.465s (+7.2% 🔺)1.581s151.00x
▲ VercelNitro8.140s (+18.2% 🔺)10.011s (+16.5% 🔺)1.871s141.18x
▲ VercelExpress⚠️missing----

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.191s1.001s0.002s1.010s0.820s101.00x
💻 LocalNitro0.197s (-3.1%)1.004s (~)0.012s (-3.3%)1.018s (~)0.820s101.04x
🐘 PostgresExpress0.203s (-1.6%)0.993s (-0.7%)0.002s (+30.8% 🔺)1.009s (~)0.807s101.06x
🐘 PostgresNitro0.205s (+1.3%)0.994s (~)0.001s (+7.7% 🔺)1.010s (~)0.805s101.08x
💻 LocalExpress0.220s (+8.3% 🔺)1.004s (~)0.013s (+30.0% 🔺)1.020s (~)0.800s101.15x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.423s (-40.2% 🟢)2.568s (-32.4% 🟢)0.605s (+63.5% 🔺)3.679s (-20.8% 🟢)2.256s101.00x
▲ VercelNext.js (Turbopack)1.593s (-0.7%)3.030s (-3.8%)0.323s (+3.1%)3.852s (-2.6%)2.258s101.12x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.599s (-4.1%)1.003s (~)0.004s (-12.8% 🟢)1.023s (~)0.424s591.00x
🐘 PostgresNext.js (Turbopack)0.618s1.009s0.004s1.022s0.404s591.03x
🐘 PostgresNitro0.629s (+1.1%)1.001s (~)0.004s (+5.8% 🔺)1.022s (~)0.392s591.05x
💻 LocalExpress0.753s (-2.2%)1.013s (~)0.010s (+9.5% 🔺)1.025s (~)0.272s591.26x
💻 LocalNitro0.811s (+11.0% 🔺)1.011s (~)0.009s (-1.0%)1.114s (+9.0% 🔺)0.304s541.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.192s (+10.7% 🔺)6.038s (+14.3% 🔺)0.470s (+22.6% 🔺)6.993s (+15.1% 🔺)2.801s91.00x
▲ VercelNext.js (Turbopack)4.642s (+9.4% 🔺)5.846s (+1.0%)0.406s (+4.8%)6.818s (+2.8%)2.176s91.11x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.954s1.180s0.000s1.203s0.249s501.00x
🐘 PostgresExpress0.959s (-1.2%)1.146s (-2.2%)0.000s (~)1.188s (-0.7%)0.229s511.00x
🐘 PostgresNitro0.991s (+3.6%)1.327s (+15.5% 🔺)0.000s (-61.5% 🟢)1.342s (+15.5% 🔺)0.350s451.04x
💻 LocalNitro1.199s (-3.9%)2.020s (~)0.000s (+75.0% 🔺)2.021s (~)0.822s301.26x
💻 LocalExpress1.290s (+5.2% 🔺)2.022s (~)0.001s (+7.1% 🔺)2.024s (~)0.734s301.35x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.767s (-91.0% 🟢)4.192s (-87.0% 🟢)0.000s (+Infinity% 🔺)4.655s (-85.7% 🟢)1.888s131.00x
▲ VercelNext.js (Turbopack)3.036s (-8.9% 🟢)4.121s (-11.4% 🟢)0.000s (-14.3% 🟢)4.549s (-10.7% 🟢)1.513s141.10x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.712s (-8.8% 🟢)2.140s (-6.6% 🟢)0.000s (+Infinity% 🔺)2.153s (-6.6% 🟢)0.441s281.00x
🐘 PostgresNitro1.761s (-1.4%)2.101s (-1.8%)0.000s (-3.4%)2.114s (-1.8%)0.352s291.03x
🐘 PostgresNext.js (Turbopack)1.878s2.182s0.000s2.188s0.310s281.10x
💻 LocalNitro3.351s (-5.4% 🟢)3.971s (-1.5%)0.001s (+14.6% 🔺)3.973s (-1.6%)0.622s161.96x
💻 LocalExpress3.597s (+5.4% 🔺)4.033s (~)0.001s (+12.5% 🔺)4.036s (~)0.439s152.10x
💻 LocalNext.js (Turbopack)⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.903s (-5.4% 🟢)5.204s (-2.6%)0.000s (-100.0% 🟢)5.687s (-1.9%)1.784s111.00x
▲ VercelNext.js (Turbopack)5.276s (+31.4% 🔺)6.765s (+26.9% 🔺)0.000s (+Infinity% 🔺)7.181s (+23.0% 🔺)1.905s91.35x
▲ VercelExpress⚠️missing-----

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro19/21
🐘 PostgresExpress12/21
▲ VercelNitro12/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres21/21
Nitro🐘 Postgres17/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)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production890067957
✅ 💻 Local Development86601781044
✅ 📦 Local Production86601781044
✅ 🐘 Local Postgres86601781044
✅ 🪟 Windows790887
❌ 🌍 Community Worlds1287324225
✅ 📋 Other219042261
Total3914736754662

❌ Failed Tests

🌍 Community Worlds (73 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q

turso (59 failed):

  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • addTenWorkflow | wrun_01KNQQAEEZGTQ83YKV07NB18YS
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KNQQB0X8RJ715J80DMQ6WDEA
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KNQQAN9DJDADQ0SAZH7SEM45
  • promiseRaceWorkflow | wrun_01KNQQASRSXZ7QAM5QVF6B4JBV
  • promiseAnyWorkflow | wrun_01KNQQAW2R80RFMXVEVQV89WP2
  • importedStepOnlyWorkflow | wrun_01KNQQBF1KNYA7BTKX3RXP8209
  • hookWorkflow | wrun_01KNQQB860RA6DVD6M7YKXPMA9
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KNQQBKE8CCV8V4WWZP6F4YCN
  • webhookWorkflow | wrun_01KNQQBWJ730BN241JS6FSCSY3
  • sleepingWorkflow | wrun_01KNQQC30RQJ75DPZ946MQRYWJ
  • parallelSleepWorkflow | wrun_01KNQQCEPPZWS2MGFVXF4FF9PM
  • nullByteWorkflow | wrun_01KNQQCHZTHMVTY8PJYHF5WQN5
  • workflowAndStepMetadataWorkflow | wrun_01KNQQCM4E6VEKC0XXW16QXA1G
  • fetchWorkflow | wrun_01KNQQFDPCJ0XV58DYHCGCHQBE
  • promiseRaceStressTestWorkflow | wrun_01KNQQFJ8C4FRWMFPAZQBTR427
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KNQQK1G6EYXZDC5ER8WPC4QZ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KNQQKMXX957N7ZX0T7DKD9Z0
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KNQQMBKMF5CJ9V5ECP8MD7XT
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KNQQMZXFRM6SVTV761WHC1MH
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KNQQN8YM33S8ABEWC83MJHNJ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KNQQNEQ27PN5J5RT9CFPKBYX
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KNQQNH4TJ9NS3BDGY0RD3M3C
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KNQQP13E2HW3TSCR80MQR92M
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KNQQP6T5NX6180E95ST2EAJW
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KNQQPDX6XAZA8T1QJFKDF4V8
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KNQQPMP1YF94HX0T7N9N64MW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KNQQPVGW3P7HPR28VDV6VEWT
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KNQQQ2K5QYXRJT0SJYYK4BMQ
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KNQQQ9C1HVZHS9FQ010Z3RJ3
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KNQQQMZTG0CQ3Y2MXQ3PZJQE
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KNQQQX376BQVSPGKMPHW4DDG
  • cancelRun - cancelling a running workflow | wrun_01KNQQR42NM5KZ7MFX9E5VMJCD
  • cancelRun via CLI - cancelling a running workflow | wrun_01KNQQRDTMGCN04EERT9C6YCE2
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KNQQRT0X20Z3FX6PGRPF1PQ0
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KNQQSERR6JW85PX016SAABQ1
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KNQQSS5ZPSWXV06MGBCNPRRY
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KNQQSZX0G28HTEAR7CDA5VMC
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KNQQT20WSXVHPCZ4SG73AK0M
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KNQQT45HMF33T6CGFSJDJ99Q
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KNQQT7DKW12BMXRW6GGQGQ4J

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8007
✅ example8007
✅ express8007
✅ fastify8007
✅ hono8007
✅ nextjs-turbopack8502
✅ nextjs-webpack8502
✅ nitro8007
✅ nuxt8007
✅ sveltekit8007
✅ vite8007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable73014
✅ express-stable73014
✅ fastify-stable73014
✅ hono-stable73014
✅ nextjs-turbopack-canary62025
✅ nextjs-turbopack-stable7908
✅ nextjs-webpack-canary62025
✅ nextjs-webpack-stable7908
✅ nitro-stable73014
✅ nuxt-stable73014
✅ sveltekit-stable73014
✅ vite-stable73014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7908
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev500
❌ mongodb5578
✅ redis-dev500
❌ redis5578
✅ turso-dev500
❌ turso3598
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable73014
✅ e2e-local-postgres-nest-stable73014
✅ e2e-local-prod-nest-stable73014

📋 View full workflow run

Comment threadpackages/world-postgres/src/storage.ts
# Conflicts:
#	packages/world-local/src/storage/steps-storage.ts
#	packages/world-local/src/streamer.ts
#	packages/world-vercel/src/steps.ts
#	packages/world-vercel/src/streamer.ts
@VaguelySerious
VaguelySerious marked this pull request as ready for review March 20, 2026 18:08
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMarch 20, 2026 18:08
…hods
Merge main into peter/step-optional, resolving conflicts in the Streamer
interface, world-local streamer, world-postgres streamer, and writable
stream tests. Incorporates negative startIndex support from main (#1460)
and pendingOps flush behavior (#1446) into the namespaced streams API.
Additionally swaps argument order so runId is always the first parameter
for all stream methods: write, writeMulti, close, get, and list. Updates
all implementations (local, postgres, vercel), callers (serialization,
runtime, CLI, web), tests, and documentation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@karthikscale3karthikscale3 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.

Here's my review of PR #1293:

Summary

This PR restructures the Streamer interface on the World type, moving flat methods (writeToStream, closeStream, readFromStream, listStreamsByRunId) into a namespaced world.streams.* object (streams.write, streams.close, streams.get, streams.list). It also swaps argument order to put runId first everywhere and makes runId required (non-optional) for steps.get.

Potential Regressions

1. readStreamServerAction signature change not fully propagated

The function signature changed to accept an optional runId as a 4th parameter:

exportasyncfunctionreadStreamServerAction(env: EnvMap,streamId: string,startIndex?: number,runId?: string

But the route caller at packages/web/app/routes/api.stream.$streamId.tsx (line 36) still calls readStreamServerAction({}, streamId, startIndex) without passing runId. This works today because all world implementations ignore _runId in their get method and it defaults to '', but it's fragile and defeats the purpose of requiring runId.

2. CLI showStream passes empty string as runId fallback

constrawStream=awaitworld.streams.get(opts.runId??'',streamId);

If --run is not provided, opts.runId is undefined and an empty string is used. This works only because no implementation validates runId in get, but it's a landmine for future implementations that might.

3. readStream in runs.ts public API signature changed

The exported readStream function gained a new required runId parameter between world and streamId. Any external consumers importing this from @workflow/core will break at compile time. Since this is marked as a breaking change in the changeset, this may be intentional, but it's worth verifying no external consumers exist.

4. Community/third-party world implementations will break

The Streamer interface changed from flat methods to a nested streams namespace. Any community world implementing the old interface (e.g., Turso, MongoDB, Redis worlds shown in CI) will need updating. The E2E results confirm this: the Turso community world has 54 failures.

Non-Blocking Issues

  • Changeset uses "patch" for what's explicitly labeled a **BREAKING CHANGE**. Per repo conventions all changes use patch, but consumers should be aware.
  • The World interface type ordering changed from extends Queue, Storage, Streamer to extends Queue, Streamer, Storage. This shouldn't have runtime impact but is worth noting.
  • Documentation at docs/content/docs/deploying/building-a-world.mdx was correctly updated, but the API reference docs (get-writable.mdx, defining-tools.mdx) reference workflow user-land functions (not world methods) so those are fine.

VaguelySeriousand others added 9 commits April 7, 2026 14:52
Combine branch's streams sub-object restructure with main's new features
(getStreamChunks/getStreamInfo → getChunks/getInfo, streamFlushIntervalMs,
writeMulti pagination, pg driver change). Update all call sites, tests,
and documentation to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r required runId
WorkflowServerWritableStream constructor was changed from (name, runId) to
(runId, name), but step/writable-stream.ts was not updated, causing streams
written inside steps to target the wrong stream ID and timing out the
outputStreamInsideStepWorkflow e2e test. Also update the "should retrieve a
step with only stepId" unit test to pass the now-required runId.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The webhook handler (resumeWebhook) needs to read hook metadata to
determine the respondWith behavior. However, the webhook Lambda may
not have the deployment encryption key available, causing metadata
hydration to fail with "Encrypted stream data encountered but no
encryption key is available".
Fix by passing undefined instead of the encryption key when
serializing hook metadata in the suspension handler. Hook metadata
is small (just respondWith config) and doesn't need encryption.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The package version was reset from 4.2.x-beta to 4.0.0 for the v5
beta release. The encryption format capability check used 4.2.0-beta.64
as the minimum version, causing getRunCapabilities("4.0.0") to report
encryption as unsupported. This made resumeHook strip the encryption
key, while the step handler still encrypted data — causing "Encrypted
stream data encountered but no encryption key is available" errors in
the webhook handler.
Fix by lowering the minVersion to 4.0.0 to cover the reset range.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…anges
The PR branches had version 4.0.0 (intermediate changeset reset) instead
of 5.0.0-beta.0 (the actual published version). This caused
getRunCapabilities("4.0.0") to report encryption as unsupported, breaking
the webhook respondWith flow on Vercel Prod deployments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

The restructuring itself is well-executed — the world.streams.* namespace is cleaner, runId-first parameter order is consistent across all 7 methods, and all callers in core, CLI, web, e2e tests, and all three world implementations have been updated. However, there are several issues to address before this can merge.

Meta

The PR has no description. For a breaking change of this scope (28 files, restructuring a public interface used by community worlds), please add a summary explaining:

  • What changed and why (namespace restructure, runId-first ordering, steps.get requiring runId)
  • Migration path for community world implementors
  • What callers need to update

Blocking (3)

  1. Health check streams.get uses a freshly generated runId that doesn't match the write-side runIdhandleHealthCheckMessage writes with generateHealthCheckRunId(), but the reader in healthCheck() calls generateHealthCheckRunId() again, producing a different ID. This works today because all three world implementations ignore runId for stream reads, but it violates the interface contract and will break any backend that scopes reads by runId. The reader should either use the same runId as the writer (requires coordination, e.g. deriving it deterministically from correlationId) or the interface should explicitly document that runId is advisory for reads.

  2. readStreamServerAction and CLI showStream pass runId ?? '' (empty string) — Both packages/web/app/server/workflow-server-actions.server.ts and packages/cli/src/lib/inspect/output.ts use runId ?? '' as a fallback when runId is not provided. An empty string for a required runId parameter will produce malformed API URLs (/v2/runs//stream/...) or incorrect DB queries. If runId is now required by the interface, these callers should also require it (or throw a clear error for missing runId).

  3. Changeset uses patch for a breaking change — should be major — AGENTS.md (line 183): "Use the correct semver bump type: patch for bug fixes, minor for new features, major for breaking changes." The changeset description already says **BREAKING CHANGE** (correct), but the bump type is patch. While on main (pre-release mode) the bump type doesn't affect beta numbering, it does matter when backported to stable (AGENTS.md line 184). Both changesets should use major for all affected packages.

Non-blocking (4)

  1. world-vercel streams.get ignores runId — The implementation has _runId (unused) and passes undefined to getStreamUrl. This preserves existing behavior but creates an asymmetry: writes go to /v2/runs/{runId}/stream/{name} but reads go to /v2/stream/{name}. Worth a comment explaining why.

  2. WorkflowServerReadableStream doesn't validate runId — The constructor validates name (non-empty string) but not runId, unlike WorkflowServerWritableStream which validates both. Add a runId check for parity.

  3. steps.get changeset (step-run-required.md) doesn't include @workflow/core, @workflow/cli, or @workflow/web — If any callers in those packages changed behavior (e.g. now always passing runId where they previously passed undefined), those packages should be in the changeset too.

  4. Community worlds will break at compile time — Expected and documented as breaking, but worth calling out explicitly: any JS (non-TS) consumer won't get a compile error, they'll get a runtime TypeError: world.writeToStream is not a function. The migration path should be noted in the PR description.

Comment threadpackages/core/src/runtime/helpers.ts
Comment threadpackages/web/app/server/workflow-server-actions.server.ts
Comment threadpackages/cli/src/lib/inspect/output.ts Outdated
Comment thread.changeset/bright-pears-drum.md Outdated
Comment thread.changeset/step-run-required.md Outdated
- Derive health check runId deterministically from correlationId so
writer and reader produce the same value
- Make runId required in readStreamServerAction (drop optional fallback)
- Throw explicit error in CLI showStream when --run is missing
- Bump changesets to major for breaking changes
- Add missing packages to step-run-required changeset
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@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.

All three blocking issues from my previous review are resolved in 2c89b170:

  1. Changesets patchmajor — Both bright-pears-drum.md and step-run-required.md now use major for all affected packages. The second changeset also added the missing @workflow/core, @workflow/cli, and @workflow/web packages.

  2. Empty-string runId fallbacks — CLI now throws '--run is required when showing a stream' instead of passing ''. Web readStreamServerAction makes runId: string required (no longer optional).

  3. Health check runId mismatchgenerateHealthCheckRunId is now deterministic: wrun_hc_${correlationId}. Both the writer (handleHealthCheckMessage) and reader (healthCheck) derive the same runId from the shared correlationId. Clean fix.

The PR description is also present now (was missing before).

LGTM.

@ghostghost mentioned this pull request Apr 9, 2026
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

@VaguelySerious@TooTallNate@karthikscale3