Skip to content

feat: export semantic error types and add API reference docs#1447

Draft
pranaygp wants to merge 1 commit intomainfrom
pgp/error-docs
Draft

feat: export semantic error types and add API reference docs#1447
pranaygp wants to merge 1 commit intomainfrom
pgp/error-docs

Conversation

@pranaygp
Copy link
Collaborator

Summary

  • Re-export all semantic error types (HookNotFoundError, EntityConflictError, RunExpiredError, TooEarlyError, ThrottleError, RunNotSupportedError, WorkflowWorldError) from workflow/internal/errors
  • Add new error classes to @workflow/errors: WorkflowWorldError, EntityConflictError, RunExpiredError, TooEarlyError, ThrottleError (world-level semantic errors)
  • Tighten TSDoc comments on all error classes with consistent format (when thrown, how to handle, .is() method, key properties)
  • Add API reference documentation for 9 error types organized by tier (user-facing, infrastructure, world-internal)

Test plan

  • pnpm build passes
  • pnpm typecheck passes
  • Verify docs render correctly in local dev server
  • Verify workflow/internal/errors exports are accessible at runtime

🤖 Generated with Claude Code

@pranaygp pranaygp requested a review from a team as a code owner March 18, 2026 21:56
Copilot AI review requested due to automatic review settings March 18, 2026 21:56
@vercel
Copy link
Contributor

vercel bot commented Mar 18, 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 Mar 18, 2026 10:37pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Mar 18, 2026 10:37pm
example-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-astro-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-express-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-fastify-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-hono-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-nitro-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-nuxt-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workbench-vite-workflow Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Mar 18, 2026 10:37pm
workflow-nest Ready Ready Preview, Comment Mar 18, 2026 10:37pm
workflow-swc-playground Ready Ready Preview, Comment Mar 18, 2026 10:37pm

@changeset-bot
Copy link

changeset-bot bot commented Mar 18, 2026

🦋 Changeset detected

Latest commit: ed46864

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

This PR includes changesets to release 20 packages
Name Type
workflow Patch
@workflow/errors Patch
@workflow/ai Patch
@workflow/world-testing Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/core Patch
@workflow/world-local Patch
@workflow/world-postgres Patch
@workflow/world-vercel Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/vitest Patch
@workflow/web-shared Patch
@workflow/nuxt 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

Copy link
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 expands the public surface area and documentation around semantic error types by re-exporting them via workflow/internal/errors, adding/standardizing world-level error classes in @workflow/errors, and introducing API reference docs for these errors. It also adds DEBUG-gated request timing logs in the Vercel world client and fixes a CLI env var passthrough.

Changes:

  • Re-export semantic error types from workflow/internal/errors and add new world-level semantic error classes to @workflow/errors.
  • Add/standardize TSDoc on error classes and add API reference docs pages for the error types.
  • Add DEBUG-gated HTTP timing logs in @workflow/world-vercel and pass WORKFLOW_LOCAL_BASE_URL through CLI inspect env.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/world-vercel/src/utils.ts Adds lightweight DEBUG-gated HTTP timing logging around fetch() requests.
packages/workflow/src/internal/errors.ts Re-exports semantic/world error types from @workflow/errors via workflow/internal/errors.
packages/errors/src/index.ts Adds/extends semantic error classes (world-level) and improves TSDoc consistency/examples.
packages/core/src/runtime/helpers.ts Adds runtime debug logs for event pagination load timing during replay.
packages/cli/src/lib/inspect/env.ts Includes WORKFLOW_LOCAL_BASE_URL in env var collection for inspect/health checks.
docs/content/docs/api-reference/workflow/workflow-world-error.mdx New API reference page for WorkflowWorldError.
docs/content/docs/api-reference/workflow/workflow-run-not-found-error.mdx New API reference page for WorkflowRunNotFoundError.
docs/content/docs/api-reference/workflow/workflow-run-failed-error.mdx New API reference page for WorkflowRunFailedError.
docs/content/docs/api-reference/workflow/workflow-run-cancelled-error.mdx New API reference page for WorkflowRunCancelledError.
docs/content/docs/api-reference/workflow/too-early-error.mdx New API reference page for TooEarlyError.
docs/content/docs/api-reference/workflow/throttle-error.mdx New API reference page for ThrottleError.
docs/content/docs/api-reference/workflow/run-expired-error.mdx New API reference page for RunExpiredError.
docs/content/docs/api-reference/workflow/hook-not-found-error.mdx New API reference page for HookNotFoundError.
docs/content/docs/api-reference/workflow/entity-conflict-error.mdx New API reference page for EntityConflictError.
docs/content/docs/api-reference/workflow/meta.json Adds new error reference pages to the workflow API reference sidebar.
.changeset/error-docs-and-exports.md Changeset for workflow + @workflow/errors export/doc updates.
.changeset/early-bats-make.md Changeset for @workflow/world-vercel DEBUG HTTP timing logs.
.changeset/bumpy-mice-do.md Changeset for @workflow/cli env var passthrough fix.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +9 to 34

/**
* Lightweight debug logger for HTTP requests. Activated when the DEBUG
* env var includes "workflow:" (matching the standard `debug` module
* convention used by @workflow/core).
*/
const HTTP_DEBUG_ENABLED =
typeof process !== 'undefined' &&
typeof process.env.DEBUG === 'string' &&
(process.env.DEBUG.includes('workflow:') || process.env.DEBUG === '*');

function httpLog(
method: string,
endpoint: string,
status: number,
ms: number
): void {
if (HTTP_DEBUG_ENABLED) {
console.debug(
`[workflow:world-vercel:http] ${method} ${endpoint} -> ${status} (${ms}ms)`
);
}
}
import {
ErrorType,
getSpanKind,
Comment on lines +10 to +18
/**
* Lightweight debug logger for HTTP requests. Activated when the DEBUG
* env var includes "workflow:" (matching the standard `debug` module
* convention used by @workflow/core).
*/
const HTTP_DEBUG_ENABLED =
typeof process !== 'undefined' &&
typeof process.env.DEBUG === 'string' &&
(process.env.DEBUG.includes('workflow:') || process.env.DEBUG === '*');
@pranaygp pranaygp marked this pull request as draft March 18, 2026 22:05
Base automatically changed from pgp/semantic-world-errors to main March 18, 2026 22:07
@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 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.045s (+4.0%) 1.005s (~) 0.961s 10 1.00x
💻 Local Express 0.045s (+14.4% 🔺) 1.005s (~) 0.960s 10 1.01x
💻 Local Next.js (Turbopack) 0.048s 1.005s 0.958s 10 1.06x
🐘 Postgres Nitro 0.049s (-23.0% 🟢) 1.011s (~) 0.962s 10 1.09x
🌐 Redis Next.js (Turbopack) 0.054s (-4.7%) 1.006s (~) 0.951s 10 1.21x
🐘 Postgres Next.js (Turbopack) 0.059s 1.011s 0.952s 10 1.33x
🐘 Postgres Express 0.064s (+3.7%) 1.012s (~) 0.948s 10 1.44x
🌐 MongoDB Next.js (Turbopack) 0.095s 1.008s 0.913s 10 2.12x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 0.410s (-44.4% 🟢) 1.933s (-29.1% 🟢) 1.523s 10 1.00x
▲ Vercel Express 0.457s (-16.9% 🟢) 2.045s (-11.9% 🟢) 1.588s 10 1.11x
▲ Vercel Nitro 0.491s (+6.7% 🔺) 2.280s (+7.8% 🔺) 1.789s 10 1.20x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.115s 2.006s 0.891s 10 1.00x
🐘 Postgres Nitro 1.117s (-2.9%) 2.011s (~) 0.894s 10 1.00x
💻 Local Express 1.126s (+2.5%) 2.006s (~) 0.880s 10 1.01x
💻 Local Nitro 1.130s (~) 2.006s (~) 0.876s 10 1.01x
🌐 Redis Next.js (Turbopack) 1.134s (+0.8%) 2.006s (~) 0.873s 10 1.02x
🐘 Postgres Next.js (Turbopack) 1.147s 2.013s 0.865s 10 1.03x
🐘 Postgres Express 1.164s (+1.5%) 2.014s (~) 0.850s 10 1.04x
🌐 MongoDB Next.js (Turbopack) 1.320s 2.008s 0.688s 10 1.18x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.989s (-3.0%) 3.818s (+18.7% 🔺) 1.828s 10 1.00x
▲ Vercel Next.js (Turbopack) 1.999s (-7.1% 🟢) 3.064s (-19.0% 🟢) 1.065s 10 1.01x
▲ Vercel Express 2.011s (-4.8%) 3.218s (-12.6% 🟢) 1.207s 10 1.01x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 10.709s (-2.2%) 11.035s (~) 0.326s 3 1.00x
🌐 Redis Next.js (Turbopack) 10.772s (~) 11.022s (~) 0.249s 3 1.01x
💻 Local Next.js (Turbopack) 10.788s 11.023s 0.234s 3 1.01x
🐘 Postgres Next.js (Turbopack) 10.905s 11.042s 0.137s 3 1.02x
💻 Local Express 10.910s (+2.4%) 11.022s (~) 0.112s 3 1.02x
🐘 Postgres Express 10.921s (~) 11.042s (~) 0.120s 3 1.02x
💻 Local Nitro 10.938s (~) 11.023s (~) 0.085s 3 1.02x
🌐 MongoDB Next.js (Turbopack) 12.288s 13.024s 0.736s 3 1.15x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 16.607s (-2.2%) 18.038s (-3.6%) 1.431s 2 1.00x
▲ Vercel Nitro 17.008s (-3.7%) 18.910s (+2.2%) 1.902s 2 1.02x
▲ Vercel Express 17.188s (-0.6%) 18.877s (+0.5%) 1.689s 2 1.03x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 26.634s (-2.1%) 27.054s (-3.6%) 0.420s 3 1.00x
🌐 Redis Next.js (Turbopack) 26.767s (~) 27.051s (~) 0.284s 3 1.01x
🐘 Postgres Next.js (Turbopack) 27.169s 28.062s 0.893s 3 1.02x
🐘 Postgres Express 27.252s (~) 28.062s (~) 0.809s 3 1.02x
💻 Local Next.js (Turbopack) 27.325s 28.051s 0.726s 3 1.03x
💻 Local Express 27.472s (+2.5%) 28.052s (+3.7%) 0.580s 3 1.03x
💻 Local Nitro 27.525s (~) 28.052s (~) 0.527s 3 1.03x
🌐 MongoDB Next.js (Turbopack) 30.434s 31.041s 0.607s 2 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 44.017s (-2.3%) 45.073s (-2.7%) 1.055s 2 1.00x
▲ Vercel Next.js (Turbopack) 350.038s (+677.6% 🔺) 351.035s (+640.2% 🔺) 0.997s 1 7.95x
▲ Vercel Express 370.815s (+727.6% 🔺) 372.563s (+705.3% 🔺) 1.748s 1 8.42x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 53.170s (-2.0%) 54.090s (-1.8%) 0.919s 2 1.00x
🌐 Redis Next.js (Turbopack) 53.501s (~) 54.096s (~) 0.595s 2 1.01x
🐘 Postgres Next.js (Turbopack) 54.232s 55.097s 0.865s 2 1.02x
🐘 Postgres Express 54.420s (~) 55.101s (~) 0.680s 2 1.02x
💻 Local Next.js (Turbopack) 56.094s 56.601s 0.507s 2 1.05x
💻 Local Express 56.520s (+2.8%) 57.099s (+3.6%) 0.579s 2 1.06x
💻 Local Nitro 56.675s (~) 57.103s (~) 0.428s 2 1.07x
🌐 MongoDB Next.js (Turbopack) 60.642s 61.069s 0.427s 2 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 98.400s (-5.5% 🟢) 100.306s (-4.7%) 1.906s 1 1.00x
▲ Vercel Express 161.570s (+68.0% 🔺) 163.391s (+67.6% 🔺) 1.821s 1 1.64x
▲ Vercel Next.js (Turbopack) 194.661s (+104.6% 🔺) 196.099s (+101.9% 🔺) 1.438s 1 1.98x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.211s (-5.2% 🟢) 2.010s (~) 0.799s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.261s 2.012s 0.751s 15 1.04x
🐘 Postgres Express 1.275s (~) 2.012s (~) 0.736s 15 1.05x
🌐 Redis Next.js (Turbopack) 1.345s (-2.2%) 2.006s (~) 0.661s 15 1.11x
💻 Local Nitro 1.509s (-1.0%) 2.006s (~) 0.497s 15 1.25x
💻 Local Express 1.524s (+4.6%) 2.006s (~) 0.482s 15 1.26x
💻 Local Next.js (Turbopack) 1.540s 2.005s 0.465s 15 1.27x
🌐 MongoDB Next.js (Turbopack) 2.132s 3.008s 0.876s 10 1.76x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.439s (+123.8% 🔺) 7.178s (+114.6% 🔺) 1.739s 6 1.00x
▲ Vercel Express 6.689s (+179.2% 🔺) 7.843s (+108.5% 🔺) 1.154s 4 1.23x
▲ Vercel Next.js (Turbopack) 8.881s (+263.2% 🔺) 10.073s (+151.6% 🔺) 1.192s 3 1.63x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.356s (-4.3%) 3.011s (~) 0.655s 10 1.00x
🐘 Postgres Express 2.449s (~) 3.013s (~) 0.564s 10 1.04x
🐘 Postgres Next.js (Turbopack) 2.490s 3.012s 0.522s 10 1.06x
🌐 Redis Next.js (Turbopack) 2.628s (+2.1%) 3.008s (~) 0.380s 10 1.12x
💻 Local Next.js (Turbopack) 2.733s 3.108s 0.374s 10 1.16x
💻 Local Express 2.893s (+11.2% 🔺) 3.109s (+3.4%) 0.216s 10 1.23x
💻 Local Nitro 2.937s (+2.4%) 3.308s (+10.0% 🔺) 0.371s 10 1.25x
🌐 MongoDB Next.js (Turbopack) 4.720s 5.344s 0.624s 6 2.00x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 4.899s (+82.3% 🔺) 6.367s (+75.5% 🔺) 1.468s 5 1.00x
▲ Vercel Express 5.715s (+139.8% 🔺) 7.221s (+86.2% 🔺) 1.506s 5 1.17x
▲ Vercel Next.js (Turbopack) 9.568s (+278.9% 🔺) 10.874s (+171.1% 🔺) 1.306s 4 1.95x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.517s (-2.6%) 4.013s (~) 0.497s 8 1.00x
🐘 Postgres Express 3.630s (+0.8%) 4.013s (~) 0.383s 8 1.03x
🐘 Postgres Next.js (Turbopack) 3.766s 4.013s 0.247s 8 1.07x
🌐 Redis Next.js (Turbopack) 4.147s (+0.8%) 5.011s (+2.9%) 0.864s 6 1.18x
💻 Local Next.js (Turbopack) 7.442s 8.015s 0.573s 4 2.12x
💻 Local Express 8.503s (+25.2% 🔺) 9.021s (+28.6% 🔺) 0.518s 4 2.42x
💻 Local Nitro 8.566s (+5.8% 🔺) 9.021s (~) 0.454s 4 2.44x
🌐 MongoDB Next.js (Turbopack) 9.664s 10.349s 0.685s 3 2.75x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 9.824s (+263.0% 🔺) 11.090s (+184.6% 🔺) 1.267s 3 1.00x
▲ Vercel Next.js (Turbopack) 10.117s (+228.0% 🔺) 11.446s (+144.1% 🔺) 1.329s 4 1.03x
▲ Vercel Express 16.829s (+223.1% 🔺) 17.861s (+166.9% 🔺) 1.032s 2 1.71x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.213s (-4.7%) 2.010s (~) 0.797s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.251s 2.011s 0.759s 15 1.03x
🐘 Postgres Express 1.280s (~) 2.011s (~) 0.731s 15 1.05x
🌐 Redis Next.js (Turbopack) 1.296s (-1.1%) 2.006s (~) 0.711s 15 1.07x
💻 Local Next.js (Turbopack) 1.513s 2.005s 0.492s 15 1.25x
💻 Local Express 1.518s (+3.7%) 2.006s (~) 0.488s 15 1.25x
💻 Local Nitro 1.546s (+0.8%) 2.006s (~) 0.459s 15 1.27x
🌐 MongoDB Next.js (Turbopack) 2.182s 3.008s 0.826s 10 1.80x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 5.060s (+87.8% 🔺) 8.831s (+122.4% 🔺) 3.771s 4 1.00x
▲ Vercel Express 5.551s (+144.0% 🔺) 6.711s (+77.1% 🔺) 1.159s 5 1.10x
▲ Vercel Next.js (Turbopack) 8.842s (+279.8% 🔺) 11.224s (+195.7% 🔺) 2.381s 4 1.75x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.337s (-4.5%) 3.011s (~) 0.674s 10 1.00x
🐘 Postgres Express 2.434s (-0.8%) 3.013s (~) 0.579s 10 1.04x
🐘 Postgres Next.js (Turbopack) 2.460s 3.012s 0.552s 10 1.05x
🌐 Redis Next.js (Turbopack) 2.564s (+0.5%) 3.008s (~) 0.444s 10 1.10x
💻 Local Next.js (Turbopack) 2.849s 3.453s 0.603s 9 1.22x
💻 Local Nitro 3.061s (+3.0%) 3.760s (+8.9% 🔺) 0.699s 8 1.31x
💻 Local Express 3.107s (+12.1% 🔺) 3.565s (+14.7% 🔺) 0.458s 9 1.33x
🌐 MongoDB Next.js (Turbopack) 4.712s 5.176s 0.464s 6 2.02x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.293s (+28.5% 🔺) 4.523s (+24.9% 🔺) 1.229s 7 1.00x
▲ Vercel Next.js (Turbopack) 12.873s (+335.6% 🔺) 14.001s (+223.4% 🔺) 1.128s 3 3.91x
▲ Vercel Express 17.544s (+659.8% 🔺) 19.137s (+422.4% 🔺) 1.593s 2 5.33x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.498s (-2.9%) 4.013s (~) 0.515s 8 1.00x
🐘 Postgres Express 3.627s (+1.0%) 4.014s (~) 0.387s 8 1.04x
🐘 Postgres Next.js (Turbopack) 3.846s 4.139s 0.293s 8 1.10x
🌐 Redis Next.js (Turbopack) 4.169s (~) 4.868s (~) 0.699s 7 1.19x
💻 Local Next.js (Turbopack) 8.033s 8.518s 0.485s 4 2.30x
💻 Local Express 8.479s (+17.0% 🔺) 9.272s (+19.4% 🔺) 0.794s 4 2.42x
💻 Local Nitro 8.686s (+1.4%) 9.024s (~) 0.338s 4 2.48x
🌐 MongoDB Next.js (Turbopack) 9.978s 10.350s 0.371s 3 2.85x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 9.611s (+263.6% 🔺) 12.182s (+223.7% 🔺) 2.571s 3 1.00x
▲ Vercel Next.js (Turbopack) 14.344s (+346.0% 🔺) 15.368s (+232.5% 🔺) 1.024s 2 1.49x
▲ Vercel Nitro 19.840s (+439.2% 🔺) 24.101s (+393.5% 🔺) 4.260s 2 2.06x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.163s (-25.4% 🟢) 0.998s (~) 0.001s (-13.3% 🟢) 1.011s (~) 0.849s 10 1.00x
🌐 Redis Next.js (Turbopack) 0.182s (~) 1.000s (~) 0.002s (-11.8% 🟢) 1.008s (~) 0.826s 10 1.12x
💻 Local Next.js (Turbopack) 0.183s 1.002s 0.012s 1.017s 0.834s 10 1.13x
💻 Local Express 0.196s (+42.0% 🔺) 1.003s (~) 0.011s (+6.7% 🔺) 1.017s (~) 0.820s 10 1.21x
💻 Local Nitro 0.199s (+1.5%) 1.003s (~) 0.011s (-2.6%) 1.017s (~) 0.818s 10 1.23x
🐘 Postgres Next.js (Turbopack) 0.212s 1.001s 0.001s 1.013s 0.800s 10 1.31x
🐘 Postgres Express 0.216s (-2.2%) 0.997s (~) 0.002s (~) 1.013s (~) 0.797s 10 1.33x
🌐 MongoDB Next.js (Turbopack) 0.484s 0.961s 0.001s 1.009s 0.525s 10 2.98x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.564s (-3.6%) 2.366s (-1.6%) 0.007s (+29.1% 🔺) 2.905s (-80.5% 🟢) 1.340s 10 1.00x
▲ Vercel Next.js (Turbopack) 3.110s (+93.5% 🔺) 3.962s (+54.9% 🔺) 0.006s (-68.8% 🟢) 4.419s (+41.3% 🔺) 1.309s 10 1.99x
▲ Vercel Express 4.444s (+174.4% 🔺) 5.536s (+99.3% 🔺) 0.006s (+24.4% 🔺) 6.160s (+84.8% 🔺) 1.716s 10 2.84x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 10/12
🐘 Postgres Nitro 12/12
▲ Vercel Nitro 9/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 8/12
Next.js (Turbopack) 🐘 Postgres 6/12
Nitro 🐘 Postgres 11/12
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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 755 3 67 825
✅ 💻 Local Development 727 0 98 825
✅ 📦 Local Production 782 0 118 900
✅ 🐘 Local Postgres 782 0 118 900
✅ 🪟 Windows 72 0 3 75
❌ 🌍 Community Worlds 118 56 15 189
✅ 📋 Other 198 0 27 225
Total 3434 59 446 3939

❌ Failed Tests

▲ Vercel Production (3 failed)

astro (1 failed):

  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KM1HSYYFPVSNA8A90TJHT9V3 | 🔍 observability

hono (1 failed):

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

nextjs-turbopack (1 failed):

  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KM1HRY7HDQQ490K5QT3P0524 | 🔍 observability
🌍 Community Worlds (56 failed)

mongodb (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM1HHF130XENC0STZT3K7T64
  • webhookWorkflow | wrun_01KM1HHPZ6FAAHPTE5N1193M1Y
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM1HPNMQT4Z7X4GNEAHHME5X

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM1HHF130XENC0STZT3K7T64
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM1HPNMQT4Z7X4GNEAHHME5X

turso (51 failed):

  • addTenWorkflow | wrun_01KM1HG9KS2SA0AF969HE4QY1A
  • addTenWorkflow | wrun_01KM1HG9KS2SA0AF969HE4QY1A
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KM1HJHN3YXCMPR61BCP9ECHV
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KM1HGF78XCGKY3XB3MC294TP
  • promiseRaceWorkflow | wrun_01KM1HGM9QRJY2V1RD647BNEYZ
  • promiseAnyWorkflow | wrun_01KM1HGP5PNDXNG57NKA5D7QYV
  • importedStepOnlyWorkflow | wrun_01KM1HK0CWPDW6HAQWH4CBR930
  • hookWorkflow | wrun_01KM1HH1JHY9SA8W0P5ANWR0FX
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM1HHF130XENC0STZT3K7T64
  • webhookWorkflow | wrun_01KM1HHPZ6FAAHPTE5N1193M1Y
  • sleepingWorkflow | wrun_01KM1HHWYNYYHBFVNQT6VB6ETH
  • parallelSleepWorkflow | wrun_01KM1HJ8MY6560VXF1EZFM0C51
  • nullByteWorkflow | wrun_01KM1HJBFR7PGH7GBPZXDNDQJQ
  • workflowAndStepMetadataWorkflow | wrun_01KM1HJD7R0AWXQJD6CG2QVQVY
  • fetchWorkflow | wrun_01KM1HK9TS434W2E1FRQWHJ3X3
  • promiseRaceStressTestWorkflow | wrun_01KM1HKCQ92BPQ2MD7CXGN2504
  • 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()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KM1HP3DCSABSM32RE6SZAZDY
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM1HPNMQT4Z7X4GNEAHHME5X
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KM1HQ7YRRQ22CHG8S2GXBTAD
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KM1HQSEK24YTRTD30TQF3JGF
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KM1HR0NACHZ1D4Y8Q5PA672W
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KM1HR5CK87QZ6P3CPKXYRATW
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KM1HR73FPR5GXQER8PG1NRE8
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KM1HRM5FT03WJ6A2AE6C1Y5N
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KM1HRRMYYAS3MB93XTA4FA4P
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KM1HRY7HDQQ490K5QT3P0524
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KM1HS3TWHM5D40CGF4A9GMH2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KM1HS9ND904ZAAVNJSF26H9H
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KM1HSFBTC2H46RFP5XX8E36E
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KM1HSNC6HR6AB5AEFNM7QHXJ
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KM1HSYYFPVSNA8A90TJHT9V3
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KM1HT5KGCHE1RN6P0ZRARG90
  • cancelRun - cancelling a running workflow | wrun_01KM1HTBBG8QSWQDN2P2NCQ27A
  • cancelRun via CLI - cancelling a running workflow | wrun_01KM1HTKTDTBVSYM0VK8JC1DFZ
  • 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_01KM1HTYNJDNHN18CE64RXK3C3
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KM1HVJMGCDEKE1Q5B2N62E82
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KM1HVX6FMB2PAAFFCDDFPBJX

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
❌ astro 67 1 7
✅ example 68 0 7
✅ express 68 0 7
✅ fastify 68 0 7
❌ hono 67 1 7
❌ nextjs-turbopack 72 1 2
✅ nextjs-webpack 73 0 2
✅ nitro 68 0 7
✅ nuxt 68 0 7
✅ sveltekit 68 0 7
✅ vite 68 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 66 0 9
✅ express-stable 66 0 9
✅ fastify-stable 66 0 9
✅ hono-stable 66 0 9
✅ nextjs-turbopack-stable 72 0 3
✅ nextjs-webpack-canary 55 0 20
✅ nextjs-webpack-stable 72 0 3
✅ nitro-stable 66 0 9
✅ nuxt-stable 66 0 9
✅ sveltekit-stable 66 0 9
✅ vite-stable 66 0 9
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 66 0 9
✅ express-stable 66 0 9
✅ fastify-stable 66 0 9
✅ hono-stable 66 0 9
✅ nextjs-turbopack-canary 55 0 20
✅ nextjs-turbopack-stable 72 0 3
✅ nextjs-webpack-canary 55 0 20
✅ nextjs-webpack-stable 72 0 3
✅ nitro-stable 66 0 9
✅ nuxt-stable 66 0 9
✅ sveltekit-stable 66 0 9
✅ vite-stable 66 0 9
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 66 0 9
✅ express-stable 66 0 9
✅ fastify-stable 66 0 9
✅ hono-stable 66 0 9
✅ nextjs-turbopack-canary 55 0 20
✅ nextjs-turbopack-stable 72 0 3
✅ nextjs-webpack-canary 55 0 20
✅ nextjs-webpack-stable 72 0 3
✅ nitro-stable 66 0 9
✅ nuxt-stable 66 0 9
✅ sveltekit-stable 66 0 9
✅ vite-stable 66 0 9
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 72 0 3
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
❌ mongodb 52 3 3
✅ redis-dev 3 0 2
❌ redis 53 2 3
✅ turso-dev 3 0 2
❌ turso 4 51 3
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 66 0 9
✅ e2e-local-postgres-nest-stable 66 0 9
✅ e2e-local-prod-nest-stable 66 0 9

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

Add missing error exports (HookNotFoundError, EntityConflictError,
RunExpiredError, TooEarlyError, ThrottleError, RunNotSupportedError,
WorkflowWorldError) to workflow/internal/errors. Create new error
classes for world-level semantics. Tighten TSDoc comments on all
error classes. Add API reference docs for all error types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* create an entity that already exists, or any other 409-style conflict.
*
* The workflow runtime handles this error automatically. Users interacting
* with world storage backends directly may encounter it.
Copy link
Contributor

Choose a reason for hiding this comment

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

EntityConflictError, RunExpiredError, TooEarlyError, and ThrottleError extend WorkflowError instead of WorkflowWorldError, breaking the documented class hierarchy.

Fix on Vercel

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