Skip to content

[codex] Migrate workflow execution routes to v2#2154

Open
pranaygp wants to merge 1 commit into
mainfrom
pranaygp/codex/workflow-v2-routes
Open

[codex] Migrate workflow execution routes to v2#2154
pranaygp wants to merge 1 commit into
mainfrom
pranaygp/codex/workflow-v2-routes

Conversation

@pranaygp
Copy link
Copy Markdown
Contributor

Summary

  • Move the canonical combined execution endpoint from /.well-known/workflow/v1/flow to /.well-known/workflow/v2/flow.
  • Move the canonical webhook endpoint to /.well-known/workflow/v2/webhook while preserving /.well-known/workflow/v1/webhook compatibility across supported integrations and build targets.
  • Remove stale v1 flow/step generated artifacts at build time and update active v5 documentation, route tests, matrices, and changesets.

Why

Workflow v5 uses the combined flow handler; the separate v1/step endpoint belongs to the v4 route model and should not be emitted or advertised by v5 builds. At the same time, existing external webhook URLs must continue working, so the v1 webhook path remains supported as a compatibility alias.

Backporting

Do not backport this PR to stable: this changes the v5/main route contract and does not apply to the v4 stable surface.

Validation

  • pnpm build
  • Focused pnpm exec biome check for changed TypeScript/JavaScript files and git diff --check
  • pnpm vitest run packages/next/src/index.test.ts packages/nitro/src/index.test.ts packages/world-postgres/src/queue.test.ts packages/world-local/src/queue.test.ts
  • pnpm vitest run packages/utils/src/get-port.test.ts -t "identify workflow server|respect custom timeout|handle concurrent getWorkflowPort|return single port without probing"
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/example
  • WORKFLOW_PUBLIC_MANIFEST=1 pnpm build in workbench/nextjs-turbopack
  • pnpm build in workbench/sveltekit and workbench/astro

Notes

  • A full pnpm lint run currently reports pre-existing diagnostics outside this change.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment May 29, 2026 2:14am
example-nextjs-workflow-webpack Ready Ready Preview, Comment May 29, 2026 2:14am
example-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-astro-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-express-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-fastify-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-hono-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-nitro-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-nuxt-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-sveltekit-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-tanstack-start-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workbench-vite-workflow Ready Ready Preview, Comment May 29, 2026 2:14am
workflow-docs Ready Ready Preview, Comment, Open in v0 May 29, 2026 2:14am
workflow-swc-playground Ready Ready Preview, Comment May 29, 2026 2:14am
workflow-tarballs Ready Ready Preview, Comment May 29, 2026 2:14am
workflow-web Ready Ready Preview, Comment May 29, 2026 2:14am

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

🦋 Changeset detected

Latest commit: d4ef024

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

This PR includes changesets to release 21 packages
Name Type
@workflow/astro Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/core Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/sveltekit Patch
@workflow/utils Patch
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-testing Patch
workflow Patch
@workflow/rollup Patch
@workflow/vite Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/web Patch
@workflow/nuxt Patch
@workflow/errors Patch
@workflow/world-vercel Patch

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

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.038s (-11.6% 🟢) 1.006s (~) 0.968s 10 1.00x
💻 Local Express 0.043s (-3.2%) 1.005s (~) 0.962s 10 1.13x
🐘 Postgres Nitro 0.059s (-38.0% 🟢) 1.012s (-3.0%) 0.953s 10 1.55x
💻 Local Next.js (Turbopack) 0.059s 1.006s 0.946s 10 1.55x
🐘 Postgres Express 0.068s (+17.9% 🔺) 1.012s (~) 0.943s 10 1.80x
🐘 Postgres Next.js (Turbopack) 0.069s 1.012s 0.943s 10 1.82x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.337s (+43.0% 🔺) 2.430s (+13.8% 🔺) 2.093s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.089s (-3.2%) 2.006s (~) 0.917s 10 1.00x
🐘 Postgres Nitro 1.101s (-3.4%) 2.009s (~) 0.908s 10 1.01x
💻 Local Nitro 1.110s (-1.9%) 2.006s (~) 0.896s 10 1.02x
🐘 Postgres Express 1.112s (-3.0%) 2.010s (~) 0.898s 10 1.02x
💻 Local Next.js (Turbopack) 1.127s 2.007s 0.880s 10 1.04x
🐘 Postgres Next.js (Turbopack) 1.137s 2.008s 0.871s 10 1.04x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 1.907s (+1.7%) 4.032s (+5.9% 🔺) 2.125s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 10.482s (-4.2%) 11.022s (~) 0.540s 3 1.00x
💻 Local Express 10.511s (-3.8%) 11.021s (~) 0.510s 3 1.00x
🐘 Postgres Nitro 10.520s (-3.2%) 11.014s (~) 0.495s 3 1.00x
🐘 Postgres Express 10.577s (-3.5%) 11.015s (~) 0.438s 3 1.01x
💻 Local Next.js (Turbopack) 10.771s 11.021s 0.250s 3 1.03x
🐘 Postgres Next.js (Turbopack) 10.852s 11.021s 0.169s 3 1.04x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 14.111s (-16.9% 🟢) 16.261s (-18.8% 🟢) 2.149s 2 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 13.728s (-8.3% 🟢) 14.026s (-6.7% 🟢) 0.298s 5 1.00x
🐘 Postgres Nitro 13.748s (-5.8% 🟢) 14.021s (-6.7% 🟢) 0.272s 5 1.00x
🐘 Postgres Express 13.773s (-5.6% 🟢) 14.020s (-6.7% 🟢) 0.247s 5 1.00x
💻 Local Nitro 13.776s (-8.5% 🟢) 14.028s (-12.5% 🟢) 0.251s 5 1.00x
💻 Local Next.js (Turbopack) 14.335s 15.029s 0.694s 4 1.04x
🐘 Postgres Next.js (Turbopack) 14.552s 15.019s 0.467s 4 1.06x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 25.710s (-48.9% 🟢) 27.665s (-47.4% 🟢) 1.955s 3 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 12.325s (-11.8% 🟢) 13.016s (-9.0% 🟢) 0.691s 7 1.00x
💻 Local Nitro 12.387s (-26.2% 🟢) 13.025s (-23.5% 🟢) 0.638s 7 1.01x
💻 Local Express 12.409s (-25.3% 🟢) 13.024s (-23.5% 🟢) 0.615s 7 1.01x
🐘 Postgres Express 12.470s (-11.0% 🟢) 13.019s (-10.8% 🟢) 0.549s 7 1.01x
💻 Local Next.js (Turbopack) 13.589s 14.027s 0.438s 7 1.10x
🐘 Postgres Next.js (Turbopack) 13.730s 14.021s 0.291s 7 1.11x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 32.317s (-73.3% 🟢) 34.350s (-72.2% 🟢) 2.033s 3 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.157s (-22.3% 🟢) 2.006s (~) 0.848s 15 1.00x
🐘 Postgres Nitro 1.175s (-7.8% 🟢) 2.008s (~) 0.833s 15 1.01x
🐘 Postgres Express 1.175s (-6.7% 🟢) 2.007s (~) 0.831s 15 1.02x
🐘 Postgres Next.js (Turbopack) 1.253s 2.075s 0.822s 15 1.08x
💻 Local Nitro 1.256s (-23.0% 🟢) 2.005s (-3.3%) 0.749s 15 1.08x
💻 Local Next.js (Turbopack) 1.308s 2.006s 0.698s 15 1.13x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.806s (-1.9%) 4.468s (-3.4%) 1.662s 7 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.247s (-47.0% 🟢) 2.009s (-33.2% 🟢) 0.763s 15 1.00x
🐘 Postgres Express 1.279s (-45.8% 🟢) 2.007s (-33.3% 🟢) 0.728s 15 1.03x
🐘 Postgres Next.js (Turbopack) 1.463s 2.074s 0.611s 15 1.17x
💻 Local Express 1.611s (-45.4% 🟢) 2.006s (-41.9% 🟢) 0.394s 15 1.29x
💻 Local Nitro 1.716s (-45.4% 🟢) 2.006s (-48.4% 🟢) 0.290s 15 1.38x
💻 Local Next.js (Turbopack) 1.781s 2.007s 0.226s 15 1.43x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.608s (~) 5.581s (+9.2% 🔺) 1.972s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.365s (-60.8% 🟢) 2.008s (-49.9% 🟢) 0.643s 15 1.00x
🐘 Postgres Express 1.400s (-59.8% 🟢) 2.006s (-50.0% 🟢) 0.607s 15 1.03x
🐘 Postgres Next.js (Turbopack) 1.675s 2.076s 0.401s 15 1.23x
💻 Local Express 3.866s (-53.6% 🟢) 4.296s (-52.4% 🟢) 0.430s 7 2.83x
💻 Local Nitro 4.404s (-47.3% 🟢) 5.012s (-44.4% 🟢) 0.608s 6 3.23x
💻 Local Next.js (Turbopack) 4.956s 5.513s 0.556s 6 3.63x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.234s (+23.4% 🔺) 6.789s (+10.8% 🔺) 1.555s 5 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.188s (-5.5% 🟢) 2.009s (~) 0.821s 15 1.00x
🐘 Postgres Nitro 1.194s (-5.0% 🟢) 2.009s (~) 0.815s 15 1.01x
🐘 Postgres Next.js (Turbopack) 1.235s 2.007s 0.772s 15 1.04x
💻 Local Next.js (Turbopack) 1.353s 2.006s 0.653s 15 1.14x
💻 Local Nitro 1.514s (-18.8% 🟢) 2.006s (-14.3% 🟢) 0.491s 15 1.27x
💻 Local Express 1.528s (-19.3% 🟢) 2.006s (-15.1% 🟢) 0.477s 15 1.29x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.799s (+8.4% 🔺) 4.196s (-3.5%) 1.397s 8 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.239s (-47.0% 🟢) 2.009s (-33.3% 🟢) 0.769s 15 1.00x
🐘 Postgres Express 1.275s (-45.5% 🟢) 2.008s (-33.3% 🟢) 0.733s 15 1.03x
🐘 Postgres Next.js (Turbopack) 1.422s 2.076s 0.654s 15 1.15x
💻 Local Next.js (Turbopack) 2.009s 2.591s 0.582s 12 1.62x
💻 Local Nitro 2.016s (-34.2% 🟢) 2.592s (-33.3% 🟢) 0.576s 12 1.63x
💻 Local Express 2.104s (-32.8% 🟢) 2.507s (-33.4% 🟢) 0.402s 12 1.70x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.787s (+18.6% 🔺) 5.467s (+14.1% 🔺) 1.680s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.400s (-59.8% 🟢) 2.008s (-49.9% 🟢) 0.608s 15 1.00x
🐘 Postgres Express 1.430s (-59.1% 🟢) 2.010s (-49.9% 🟢) 0.579s 15 1.02x
🐘 Postgres Next.js (Turbopack) 1.708s 2.155s 0.447s 14 1.22x
💻 Local Express 4.399s (-50.0% 🟢) 5.181s (-44.1% 🟢) 0.781s 6 3.14x
💻 Local Nitro 5.309s (-41.9% 🟢) 5.848s (-41.7% 🟢) 0.539s 6 3.79x
💻 Local Next.js (Turbopack) 5.551s 6.017s 0.466s 5 3.97x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 4.609s (-28.2% 🟢) 6.579s (-19.6% 🟢) 1.971s 5 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.543s (-33.8% 🟢) 1.007s (~) 0.464s 60 1.00x
💻 Local Express 0.572s (-41.9% 🟢) 1.004s (-6.7% 🟢) 0.433s 60 1.05x
🐘 Postgres Express 0.582s (-30.7% 🟢) 1.041s (+1.8%) 0.459s 58 1.07x
💻 Local Nitro 0.589s (-39.9% 🟢) 1.005s (-8.1% 🟢) 0.416s 60 1.09x
🐘 Postgres Next.js (Turbopack) 0.811s 1.007s 0.195s 60 1.49x
💻 Local Next.js (Turbopack) 0.858s 1.021s 0.164s 59 1.58x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.578s (-70.7% 🟢) 7.244s (-66.0% 🟢) 1.666s 9 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.305s (-32.3% 🟢) 2.029s (-3.4%) 0.724s 45 1.00x
🐘 Postgres Express 1.377s (-30.4% 🟢) 2.029s (-10.1% 🟢) 0.653s 45 1.05x
💻 Local Express 1.450s (-51.9% 🟢) 2.006s (-44.1% 🟢) 0.555s 45 1.11x
💻 Local Nitro 1.491s (-50.9% 🟢) 2.006s (-46.6% 🟢) 0.514s 45 1.14x
🐘 Postgres Next.js (Turbopack) 1.940s 2.124s 0.184s 43 1.49x
💻 Local Next.js (Turbopack) 2.089s 2.975s 0.886s 31 1.60x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 15.101s (-56.3% 🟢) 17.599s (-52.2% 🟢) 2.498s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.592s (-36.8% 🟢) 3.058s (-33.6% 🟢) 0.466s 40 1.00x
🐘 Postgres Express 2.707s (-32.2% 🟢) 3.085s (-29.4% 🟢) 0.379s 39 1.04x
💻 Local Express 3.126s (-66.1% 🟢) 3.735s (-62.7% 🟢) 0.610s 33 1.21x
💻 Local Nitro 3.280s (-64.7% 🟢) 3.944s (-60.6% 🟢) 0.664s 31 1.27x
🐘 Postgres Next.js (Turbopack) 3.742s 4.009s 0.267s 30 1.44x
💻 Local Next.js (Turbopack) 4.226s 5.010s 0.784s 24 1.63x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 28.945s (-77.7% 🟢) 31.551s (-76.1% 🟢) 2.606s 4 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.217s (-23.4% 🟢) 1.006s (~) 0.789s 60 1.00x
🐘 Postgres Express 0.230s (-18.5% 🟢) 1.006s (~) 0.776s 60 1.06x
🐘 Postgres Next.js (Turbopack) 0.258s 1.006s 0.748s 60 1.19x
💻 Local Express 0.441s (-21.2% 🟢) 1.021s (+1.7%) 0.580s 59 2.03x
💻 Local Nitro 0.444s (-26.6% 🟢) 1.004s (-1.7%) 0.561s 60 2.04x
💻 Local Next.js (Turbopack) 0.627s 1.056s 0.429s 58 2.89x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.245s (+14.9% 🔺) 4.082s (+12.2% 🔺) 1.836s 15 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.330s (-33.5% 🟢) 1.006s (~) 0.676s 90 1.00x
🐘 Postgres Express 0.365s (-28.4% 🟢) 1.007s (~) 0.642s 90 1.11x
🐘 Postgres Next.js (Turbopack) 0.468s 1.006s 0.538s 90 1.42x
💻 Local Express 1.990s (-20.8% 🟢) 2.494s (-17.1% 🟢) 0.504s 37 6.03x
💻 Local Nitro 2.196s (-13.5% 🟢) 2.766s (-8.1% 🟢) 0.571s 33 6.65x
💻 Local Next.js (Turbopack) 2.254s 2.884s 0.630s 32 6.82x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.494s (+80.4% 🔺) 7.214s (+50.1% 🔺) 1.720s 13 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.654s (-17.2% 🟢) 1.006s (~) 0.351s 120 1.00x
🐘 Postgres Express 0.701s (-14.4% 🟢) 1.006s (-1.1%) 0.305s 120 1.07x
🐘 Postgres Next.js (Turbopack) 0.943s 1.351s 0.408s 90 1.44x
💻 Local Express 8.549s (-23.6% 🟢) 9.097s (-23.8% 🟢) 0.548s 14 13.07x
💻 Local Nitro 9.450s (-15.6% 🟢) 10.196s (-12.6% 🟢) 0.746s 12 14.44x
💻 Local Next.js (Turbopack) 10.151s 11.028s 0.877s 11 15.52x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 12.410s (+67.2% 🔺) 14.751s (+59.6% 🔺) 2.340s 9 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.149s (+477.2% 🔺) 2.004s (+99.5% 🔺) 0.010s (-16.5% 🟢) 2.017s (+98.1% 🔺) 0.868s 10 1.00x
🐘 Postgres Express 1.161s (+465.8% 🔺) 2.000s (+100.3% 🔺) 0.001s (-25.0% 🟢) 2.011s (+98.8% 🔺) 0.850s 10 1.01x
💻 Local Nitro 1.162s (+443.6% 🔺) 2.005s (+99.6% 🔺) 0.011s (-13.6% 🟢) 2.018s (+98.0% 🔺) 0.856s 10 1.01x
🐘 Postgres Nitro 1.162s (+466.8% 🔺) 2.002s (+100.3% 🔺) 0.001s (-26.7% 🟢) 2.011s (+98.8% 🔺) 0.849s 10 1.01x
💻 Local Next.js (Turbopack) 1.203s 2.004s 0.010s 2.018s 0.815s 10 1.05x
🐘 Postgres Next.js (Turbopack) 1.227s 2.001s 0.001s 2.011s 0.784s 10 1.07x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.143s (-14.4% 🟢) 3.297s (-19.4% 🟢) 1.808s (+88.1% 🔺) 5.581s (~) 3.437s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.562s (+150.3% 🔺) 2.002s (+98.9% 🔺) 0.004s (-11.3% 🟢) 2.025s (+98.1% 🔺) 0.463s 30 1.00x
💻 Local Nitro 1.565s (+86.6% 🔺) 2.009s (+98.5% 🔺) 0.010s (+6.0% 🔺) 2.021s (+81.1% 🔺) 0.456s 30 1.00x
🐘 Postgres Express 1.602s (+154.3% 🔺) 2.006s (+99.3% 🔺) 0.004s (+0.9%) 2.028s (+98.2% 🔺) 0.425s 30 1.03x
💻 Local Next.js (Turbopack) 1.708s 2.008s 0.010s 2.021s 0.312s 30 1.09x
🐘 Postgres Next.js (Turbopack) 1.743s 2.009s 0.004s 2.024s 0.281s 30 1.12x
💻 Local Express 1.756s (+131.9% 🔺) 2.011s (+95.4% 🔺) 0.009s (-1.7%) 2.201s (+111.6% 🔺) 0.445s 28 1.12x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.788s (-11.0% 🟢) 7.424s (-7.3% 🟢) 0.461s (+12.7% 🔺) 8.392s (-5.0% 🟢) 2.604s 8 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.691s (-28.7% 🟢) 1.030s (-17.5% 🟢) 0.000s (+24.1% 🔺) 1.042s (-17.2% 🟢) 0.351s 58 1.00x
🐘 Postgres Express 0.725s (-24.5% 🟢) 1.048s (-18.0% 🟢) 0.000s (+21.1% 🔺) 1.060s (-18.8% 🟢) 0.335s 57 1.05x
🐘 Postgres Next.js (Turbopack) 0.802s 1.072s 0.000s 1.079s 0.277s 56 1.16x
💻 Local Express 1.330s (+8.6% 🔺) 2.012s (~) 0.000s (+40.0% 🔺) 2.014s (~) 0.684s 30 1.92x
💻 Local Nitro 1.428s (+16.8% 🔺) 2.013s (~) 0.000s (+33.3% 🔺) 2.015s (~) 0.587s 30 2.07x
💻 Local Next.js (Turbopack) 1.482s 2.013s 0.000s 2.016s 0.534s 30 2.14x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.411s (-8.8% 🟢) 4.624s (-9.4% 🟢) 0.000s (-100.0% 🟢) 5.192s (-6.1% 🟢) 1.781s 12 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

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

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.460s (-18.5% 🟢) 2.100s (-1.9%) 0.000s (+93.1% 🔺) 2.126s (-2.2%) 0.666s 29 1.00x
🐘 Postgres Next.js (Turbopack) 1.551s 2.144s 0.000s 2.152s 0.601s 28 1.06x
🐘 Postgres Express 1.625s (-8.3% 🟢) 2.220s (+1.9%) 0.000s (+Infinity% 🔺) 2.233s (+1.5%) 0.608s 27 1.11x
💻 Local Next.js (Turbopack) 2.868s 3.412s 0.001s 3.421s 0.553s 18 1.96x
💻 Local Express 2.971s (-14.3% 🟢) 3.607s (-10.6% 🟢) 0.001s (-11.8% 🟢) 3.615s (-10.4% 🟢) 0.644s 17 2.03x
💻 Local Nitro 3.163s (-6.6% 🟢) 3.902s (-3.2%) 0.001s (+64.1% 🔺) 3.905s (-3.2%) 0.743s 16 2.17x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.232s (+14.0% 🔺) 6.901s (+14.6% 🔺) 0.007s (+Infinity% 🔺) 7.496s (+16.1% 🔺) 2.264s 9 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Express 14/21
🐘 Postgres Nitro 19/21
▲ Vercel Express 21/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

🧪 E2E Test Results

All tests passed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 964 0 215 1179
✅ 💻 Local Development 1615 0 219 1834
✅ 📦 Local Production 1615 0 219 1834
✅ 🐘 Local Postgres 1615 0 219 1834
✅ 📋 Other 741 0 176 917
Total 6550 0 1048 7598

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 105 0 26
✅ example 105 0 26
✅ express 105 0 26
✅ fastify 105 0 26
✅ hono 105 0 26
✅ nitro 105 0 26
✅ nuxt 105 0 26
✅ sveltekit 124 0 7
✅ vite 105 0 26
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 106 0 25
✅ express-stable 106 0 25
✅ fastify-stable 106 0 25
✅ hono-stable 106 0 25
✅ nextjs-turbopack-canary 112 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 131 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 131 0 0
✅ nextjs-webpack-canary 112 0 19
✅ nextjs-webpack-stable-lazy-discovery-disabled 131 0 0
✅ nextjs-webpack-stable-lazy-discovery-enabled 131 0 0
✅ nitro-stable 106 0 25
✅ nuxt-stable 106 0 25
✅ sveltekit-stable 125 0 6
✅ vite-stable 106 0 25
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 106 0 25
✅ express-stable 106 0 25
✅ fastify-stable 106 0 25
✅ hono-stable 106 0 25
✅ nextjs-turbopack-canary 112 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 131 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 131 0 0
✅ nextjs-webpack-canary 112 0 19
✅ nextjs-webpack-stable-lazy-discovery-disabled 131 0 0
✅ nextjs-webpack-stable-lazy-discovery-enabled 131 0 0
✅ nitro-stable 106 0 25
✅ nuxt-stable 106 0 25
✅ sveltekit-stable 125 0 6
✅ vite-stable 106 0 25
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 106 0 25
✅ express-stable 106 0 25
✅ fastify-stable 106 0 25
✅ hono-stable 106 0 25
✅ nextjs-turbopack-canary 112 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 131 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 131 0 0
✅ nextjs-webpack-canary 112 0 19
✅ nextjs-webpack-stable-lazy-discovery-disabled 131 0 0
✅ nextjs-webpack-stable-lazy-discovery-enabled 131 0 0
✅ nitro-stable 106 0 25
✅ nuxt-stable 106 0 25
✅ sveltekit-stable 125 0 6
✅ vite-stable 106 0 25
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 106 0 25
✅ e2e-local-dev-tanstack-start- 106 0 25
✅ e2e-local-postgres-nest-stable 106 0 25
✅ e2e-local-postgres-tanstack-start- 106 0 25
✅ e2e-local-prod-nest-stable 106 0 25
✅ e2e-local-prod-tanstack-start- 106 0 25
✅ e2e-vercel-prod-tanstack-start 105 0 26

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp pranaygp requested a review from VaguelySerious May 29, 2026 02:11
@pranaygp pranaygp marked this pull request as ready for review May 29, 2026 22:02
@pranaygp pranaygp requested a review from ijjk as a code owner May 29, 2026 22:02
Copilot AI review requested due to automatic review settings May 29, 2026 22:02
@pranaygp pranaygp requested a review from a team as a code owner May 29, 2026 22:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the canonical workflow execution and webhook endpoints from /.well-known/workflow/v1/ to /.well-known/workflow/v2/. The combined flow handler at v2 now serves both workflow and step queue messages (the separate v1/step route is no longer emitted). The webhook endpoint is also moved to v2, while /.well-known/workflow/v1/webhook/:token remains supported as a compatibility alias across all integrations. The v1 directory continues to host manifest.json and webhook compatibility resources, and builders proactively clean up stale v1 execution artifacts from prior builds.

Changes:

  • Update all queue clients, builders, framework integrations, and tests to use /.well-known/workflow/v2/flow and /.well-known/workflow/v2/webhook/:token.
  • Preserve /.well-known/workflow/v1/webhook/:token as a compatibility route in Next, Nitro, Nest, Sveltekit, Astro, BOA, and standalone builds.
  • Clean stale v1 flow/step/config.json/manifest.json artifacts on each build/boot to avoid cached v1 outputs leaking into v5 deployments.

Reviewed changes

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

Show a summary per file
File Description
.changeset/workflow-v2-routes.md New changeset noting the v2 route migration for all affected packages.
.github/workflows/tests.yml, .github/workflows/e2e-community-world.yml Update CI dev-test config paths to v2 generated routes.
AGENTS.md Document that execution routes are now v2; v1 retains manifest/webhook compatibility.
docs/content/docs/v5/** Documentation updated for v2 paths and v1 webhook compatibility (getting-started, how-it-works, hooks, webhooks, api-reference, changelog).
packages/astro/src/builder.ts Generate to v2 dir, remove stale v1 flow.js/step.js, route v1 webhook to v2 handler, keep manifest in v1.
packages/builders/src/base-builder.ts Comment updated to v2 webhook path.
packages/builders/src/standalone.ts Remove stale v1 flow.mjs/step.mjs; build both v2 and v1 webhook bundles; manifest stays in v1.
packages/builders/src/vercel-build-output-api.ts Clean v1 flow.func/step.func/webhook; emit v2 flow/webhook funcs; add Build Output route rewrite from v1 webhook to v2.
packages/cli/src/commands/health.ts, packages/cli/src/lib/config/workflow-config.ts Use v2 paths; rename steps bundle to __step_registrations.mjs.
packages/core/e2e/{e2e,local-build}.test.ts Tests target v2 endpoints; one webhook test retained on v1 to validate compatibility.
packages/core/src/{create-hook,workflow/create-hook,runtime/world-init}.ts Webhook URL/doc strings updated to v2.
packages/nest/src/workflow.controller.ts, packages/nest/README.md Controller exposes v2 flow + v2 webhook + v1 legacy webhook (delegating to v2).
packages/next/src/builder-deferred.ts, builder-eager.ts, builder.ts, index.test.ts Generate to v2; write/copy webhook stubs for both v1 and v2; cleanup stale v1 routes/config; update deferred entries; tighten watch-mode invariant.
packages/nitro/src/{index,vite}.ts, index.test.ts Register both v1 and v2 webhook virtual handlers; v2 flow handler; functionRules updated; middleware matcher widened.
packages/sveltekit/src/{builder,index}.ts Generate to v2; build both v1 and v2 webhook routes; cleanup stale v1 flow/step; manifest stays in v1; .vc-config path updated to v2.
packages/utils/src/get-port.ts, get-port.test.ts Probe endpoint updated to v2.
packages/world-local/src/queue.ts, packages/world-postgres/src/queue.ts, queue.test.ts, README.md, HOW_IT_WORKS.md Route all step and workflow queue messages to the v2 flow endpoint.
packages/world-testing/{package.json,src/server.mts,scripts/generate-well-known-dts.mjs} Import v2 flow handler; generate v2 flow/webhook + v1 webhook dts stubs; copy both v1 and v2 mjs into dist.
scripts/create-test-matrix.mjs DEV test config paths updated to v2.

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

Sign up for free to 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.

2 participants