Skip to content

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

Open
pranaygp wants to merge 5 commits intomainfrom
pgp/error-docs
Open

feat: export semantic error types and add API reference docs#1447
pranaygp wants to merge 5 commits 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

@changeset-bot
Copy link

changeset-bot bot commented Mar 18, 2026

🦋 Changeset detected

Latest commit: 380b624

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.044s (-6.7% 🟢) 1.005s (~) 0.961s 10 1.00x
🐘 Postgres Express 0.067s (-6.0% 🟢) 1.013s (~) 0.946s 10 1.51x
🐘 Postgres Nitro 0.083s (+19.5% 🔺) 1.031s (+1.9%) 0.949s 10 1.87x
💻 Local Express ⚠️ missing - - - -
workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.125s (-1.5%) 2.012s (~) 0.887s 10 1.00x
💻 Local Nitro 1.133s (~) 2.006s (~) 0.872s 10 1.01x
🐘 Postgres Express 1.145s (+0.5%) 2.012s (~) 0.867s 10 1.02x
💻 Local Express ⚠️ missing - - - -
workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 10.752s (-1.8%) 11.038s (~) 0.286s 3 1.00x
💻 Local Nitro 10.939s (~) 11.023s (~) 0.084s 3 1.02x
🐘 Postgres Express 10.951s (~) 11.044s (~) 0.092s 3 1.02x
💻 Local Express ⚠️ missing - - - -
workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 14.219s (-4.1%) 15.041s (~) 0.823s 4 1.00x
🐘 Postgres Express 14.672s (+0.7%) 15.043s (~) 0.371s 4 1.03x
💻 Local Nitro 15.013s (+0.7%) 15.280s (+1.7%) 0.267s 4 1.06x
💻 Local Express ⚠️ missing - - - -
workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 13.154s (-8.5% 🟢) 14.038s (-6.7% 🟢) 0.884s 7 1.00x
🐘 Postgres Express 14.298s (+2.0%) 15.040s (+4.0%) 0.742s 6 1.09x
💻 Local Nitro 16.670s (+1.3%) 17.032s (~) 0.362s 6 1.27x
💻 Local Express ⚠️ missing - - - -
Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.232s (-4.7%) 2.011s (~) 0.779s 15 1.00x
🐘 Postgres Express 1.276s (+0.8%) 2.011s (~) 0.735s 15 1.04x
💻 Local Nitro 1.516s (+2.2%) 2.005s (~) 0.490s 15 1.23x
💻 Local Express ⚠️ missing - - - -
Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.351s (-4.8%) 3.012s (~) 0.661s 10 1.00x
🐘 Postgres Express 2.480s (+0.8%) 3.012s (~) 0.532s 10 1.05x
💻 Local Nitro 2.794s (-2.7%) 3.008s (-3.2%) 0.215s 10 1.19x
💻 Local Express ⚠️ missing - - - -
Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.542s (-2.5%) 4.014s (~) 0.472s 8 1.00x
🐘 Postgres Express 3.597s (~) 4.014s (~) 0.417s 8 1.02x
💻 Local Nitro 7.540s (-7.2% 🟢) 8.020s (-8.6% 🟢) 0.480s 4 2.13x
💻 Local Express ⚠️ missing - - - -
Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.213s (-5.0% 🟢) 2.010s (~) 0.797s 15 1.00x
🐘 Postgres Express 1.261s (~) 2.011s (~) 0.750s 15 1.04x
💻 Local Nitro 1.541s (-1.2%) 2.006s (~) 0.465s 15 1.27x
💻 Local Express ⚠️ missing - - - -
Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.334s (-5.1% 🟢) 3.011s (~) 0.677s 10 1.00x
🐘 Postgres Express 2.440s (~) 3.012s (~) 0.572s 10 1.05x
💻 Local Nitro 3.074s (+1.5%) 3.760s (+2.3%) 0.686s 8 1.32x
💻 Local Express ⚠️ missing - - - -
Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.519s (-2.7%) 4.014s (~) 0.494s 8 1.00x
🐘 Postgres Express 3.600s (~) 4.014s (~) 0.414s 8 1.02x
💻 Local Nitro 8.340s (-3.5%) 9.025s (~) 0.685s 4 2.37x
💻 Local Express ⚠️ missing - - - -
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.645s (-28.1% 🟢) 1.008s (-3.4%) 0.364s 60 1.00x
🐘 Postgres Express 0.884s (+2.0%) 1.026s (~) 0.142s 59 1.37x
💻 Local Nitro 1.018s (+6.5% 🔺) 1.854s (+81.5% 🔺) 0.836s 33 1.58x
💻 Local Express ⚠️ missing - - - -
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.555s (-28.0% 🟢) 2.009s (-32.6% 🟢) 0.454s 45 1.00x
🐘 Postgres Express 2.108s (~) 3.012s (~) 0.903s 30 1.36x
💻 Local Nitro 3.081s (+4.3%) 3.885s (+24.9% 🔺) 0.804s 24 1.98x
💻 Local Express ⚠️ missing - - - -
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.219s (-25.7% 🟢) 4.012s (-20.0% 🟢) 0.793s 30 1.00x
🐘 Postgres Express 4.284s (~) 5.014s (+0.8%) 0.730s 24 1.33x
💻 Local Nitro 9.164s (+1.5%) 10.019s (+5.7% 🔺) 0.855s 12 2.85x
💻 Local Express ⚠️ missing - - - -
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.239s (-18.8% 🟢) 1.008s (~) 0.769s 60 1.00x
🐘 Postgres Express 0.294s (-2.7%) 1.009s (~) 0.715s 60 1.23x
💻 Local Nitro 0.583s (-2.5%) 1.005s (~) 0.422s 60 2.44x
💻 Local Express ⚠️ missing - - - -
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.421s (-21.8% 🟢) 1.009s (~) 0.587s 90 1.00x
🐘 Postgres Express 0.529s (~) 1.009s (~) 0.480s 90 1.26x
💻 Local Nitro 2.366s (-4.4%) 3.009s (~) 0.643s 30 5.62x
💻 Local Express ⚠️ missing - - - -
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.595s (-36.6% 🟢) 1.009s (-15.4% 🟢) 0.414s 119 1.00x
🐘 Postgres Express 0.916s (+2.0%) 1.126s (+8.2% 🔺) 0.210s 107 1.54x
💻 Local Nitro 10.783s (-3.0%) 11.119s (-4.7%) 0.336s 11 18.12x
💻 Local Express ⚠️ missing - - - -
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.167s (-30.0% 🟢) 1.000s (+0.8%) 0.001s (-7.1% 🟢) 1.012s (~) 0.844s 10 1.00x
💻 Local Nitro 0.207s (+5.1% 🔺) 1.003s (~) 0.011s (-2.5%) 1.017s (~) 0.811s 10 1.23x
🐘 Postgres Express 0.218s (+0.7%) 0.994s (~) 0.002s (+41.7% 🔺) 1.013s (~) 0.795s 10 1.30x
💻 Local Express ⚠️ missing - - - - -
stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.551s (-23.7% 🟢) 1.006s (~) 0.003s (-16.0% 🟢) 1.023s (~) 0.472s 59 1.00x
🐘 Postgres Express 0.685s (-1.3%) 1.005s (~) 0.005s (+22.6% 🔺) 1.026s (~) 0.341s 59 1.24x
💻 Local Nitro 0.765s (+5.2% 🔺) 1.009s (~) 0.010s (+11.5% 🔺) 1.024s (~) 0.259s 59 1.39x
💻 Local Express ⚠️ missing - - - - -
10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.986s (+7.0% 🔺) 1.361s (+28.1% 🔺) 0.000s (+27.3% 🔺) 1.376s (+27.3% 🔺) 0.390s 44 1.00x
🐘 Postgres Express 1.084s (+21.3% 🔺) 1.900s (+75.5% 🔺) 0.000s (+243.8% 🔺) 1.918s (+73.7% 🔺) 0.834s 32 1.10x
💻 Local Nitro 1.284s (+4.8%) 2.022s (~) 0.000s (-15.4% 🟢) 2.026s (~) 0.742s 30 1.30x
💻 Local Express ⚠️ missing - - - - -
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.984s (+4.9%) 2.400s (+8.1% 🔺) 0.000s (+8.0% 🔺) 2.411s (+7.6% 🔺) 0.427s 25 1.00x
🐘 Postgres Express 2.064s (+14.4% 🔺) 2.497s (+19.0% 🔺) 0.000s (+Infinity% 🔺) 2.530s (+19.3% 🔺) 0.466s 24 1.04x
💻 Local Nitro 3.603s (+8.2% 🔺) 4.098s (+3.2%) 0.000s (+6.7% 🔺) 4.102s (+3.3%) 0.499s 15 1.82x
💻 Local Express ⚠️ missing - - - - -

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Nitro 21/21
🐘 Postgres Nitro 20/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 21/21
Nitro 🐘 Postgres 20/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
Copy link
Contributor

github-actions bot commented Mar 18, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 728 2 60 790
✅ 💻 Local Development 613 0 98 711
✅ 📦 Local Production 613 0 98 711
✅ 🐘 Local Postgres 613 0 98 711
✅ 🪟 Windows 74 0 5 79
❌ 🌍 Community Worlds 122 58 21 201
✅ 📋 Other 204 0 33 237
Total 2967 60 413 3440

❌ Failed Tests

▲ Vercel Production (2 failed)

nitro (1 failed):

  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KM6THTWB3MVYC5V6QQZDMJ3H | 🔍 observability

nuxt (1 failed):

  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KM6THTWB3MVYC5V6QQZDMJ3H | 🔍 observability
🌍 Community Worlds (58 failed)

mongodb (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM6TB5P1KHF0QG4050XA2KBX
  • webhookWorkflow | wrun_01KM6TBDT3MJERFS7P2ZX6SR81
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM6TH5WSMSPTMF9QKFZKY5DG

redis (2 failed):

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

turso (53 failed):

  • addTenWorkflow | wrun_01KM6TA3DPTV3N9DZXV0GMP897
  • addTenWorkflow | wrun_01KM6TA3DPTV3N9DZXV0GMP897
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KM6TBNY95PG8K1RJ42ESW85C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KM6TA9XBG328Q17RK8QSWK00
  • promiseRaceWorkflow | wrun_01KM6TAEZ19KVPX4C0G6K0WEJE
  • promiseAnyWorkflow | wrun_01KM6TAGQBBJD3CS40485A05BM
  • importedStepOnlyWorkflow | wrun_01KM6TC52E3SVBYCJBJ0W32AG2
  • hookWorkflow | wrun_01KM6TAW7MMCY8RF8CQR1PD1CQ
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KM6TB5P1KHF0QG4050XA2KBX
  • webhookWorkflow | wrun_01KM6TBDT3MJERFS7P2ZX6SR81
  • sleepingWorkflow | wrun_01KM6TBKW20225A06HAP3V2JXN
  • parallelSleepWorkflow | wrun_01KM6TBZDM4ZEMXN9WQMBGN434
  • nullByteWorkflow | wrun_01KM6TC3CE2RTYZQTV7622QPY3
  • workflowAndStepMetadataWorkflow | wrun_01KM6TC5AM8Y44JV36Q6AZ8P3D
  • fetchWorkflow | wrun_01KM6TDVNA97FR516RFFQHTRDE
  • promiseRaceStressTestWorkflow | wrun_01KM6TDYHBP9JNZCFMAYPZWBCH
  • 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_01KM6TGKJ3MF55GRP60MF9FYMA
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KM6TH5WSMSPTMF9QKFZKY5DG
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KM6THTWB3MVYC5V6QQZDMJ3H
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KM6TJE1QTVV674CBH36CH2SK
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KM6TJP5R0GRQHE34VZB817FB
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KM6TJTTXZBS6E05HDBRN9WVZ
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KM6TJWSVTV2JBNS41MDXATFR
  • startFromWorkflow - calling start() directly inside a workflow function with hook communication | wrun_01KM6TK8V3EBBP337TAQ15ST0V
  • fibonacciWorkflow - recursive workflow composition via start() | wrun_01KM6TKAX9VTC68DTDQVMCZV90
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KM6TKRWZQXDRA3K8974JVDM1
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KM6TKXE73S578KSQTDPPTCB8
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KM6TM37HE10WV1Y9766QBJ0A
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KM6TM8WNDPGC0AYHB6991WGW
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KM6TMFDY5RC67SG3MJ93QEBR
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KM6TMN8356MJQG3H7CZME9X7
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KM6TMTZ7V27V4CN8YD8WZGKJ
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KM6TN4W2X7F3N4G74TBK14P0
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KM6TNBY6WNYNRT4NT9MKTXB0
  • cancelRun - cancelling a running workflow | wrun_01KM6TNHMK0G9AV15PBB5G5G40
  • cancelRun via CLI - cancelling a running workflow | wrun_01KM6TNT5MN5YBB03QG0JF20E8
  • 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_01KM6TP505XFY0YMNCT2SGH0DQ
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KM6TPQBF7TSJ26HTKGKSPGGB
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KM6TQ0SZRSPTHCQQ5KJKP717

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 72 0 7
✅ example 72 0 7
✅ express 72 0 7
✅ fastify 72 0 7
✅ hono 72 0 7
✅ nextjs-turbopack 77 0 2
✅ nextjs-webpack 77 0 2
❌ nitro 71 1 7
❌ nuxt 71 1 7
✅ vite 72 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ express-stable 68 0 11
✅ fastify-stable 68 0 11
✅ hono-stable 68 0 11
✅ nextjs-turbopack-stable 74 0 5
✅ nextjs-webpack-canary 57 0 22
✅ nextjs-webpack-stable 74 0 5
✅ nitro-stable 68 0 11
✅ nuxt-stable 68 0 11
✅ vite-stable 68 0 11
✅ 📦 Local Production
App Passed Failed Skipped
✅ express-stable 68 0 11
✅ fastify-stable 68 0 11
✅ hono-stable 68 0 11
✅ nextjs-turbopack-stable 74 0 5
✅ nextjs-webpack-canary 57 0 22
✅ nextjs-webpack-stable 74 0 5
✅ nitro-stable 68 0 11
✅ nuxt-stable 68 0 11
✅ vite-stable 68 0 11
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ express-stable 68 0 11
✅ fastify-stable 68 0 11
✅ hono-stable 68 0 11
✅ nextjs-turbopack-stable 74 0 5
✅ nextjs-webpack-canary 57 0 22
✅ nextjs-webpack-stable 74 0 5
✅ nitro-stable 68 0 11
✅ nuxt-stable 68 0 11
✅ vite-stable 68 0 11
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 74 0 5
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
❌ mongodb 54 3 5
✅ redis-dev 3 0 2
❌ redis 55 2 5
✅ turso-dev 3 0 2
❌ turso 4 53 5
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 68 0 11
✅ e2e-local-postgres-nest-stable 68 0 11
✅ e2e-local-prod-nest-stable 68 0 11

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

- Resolve merge conflict with HookConflictError from main
- Fix class hierarchy: EntityConflictError, RunExpiredError, TooEarlyError,
  ThrottleError now extend WorkflowWorldError (not WorkflowError)
- Move telemetry import to top of utils.ts with other imports
- Rename TooEarlyError.retryAfter to retryAfterDate to avoid type conflict
  with WorkflowWorldError.retryAfter (number vs Date)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Resolve merge conflict in world-vercel/utils.ts
- Add @skip-typecheck markers to all error API reference docs code
  samples that use placeholder variables (world, runId, run, etc.)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
// Return timeout to queue so it retries later
if (TooEarlyError.is(err)) {
const retryAfter = err.retryAfter ?? new Date(Date.now() + 1000);
const retryAfter = err.retryAfterDate ?? new Date(Date.now() + 1000);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

is this real? does this mean that before this PR the retryAfter was not actually working? or did this PR change the type so that it's now correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was introduced by this PR — not a pre-existing bug. On main, TooEarlyError extends WorkflowError (which has no retryAfter property), so the retryAfter?: Date property worked fine.

This PR changes the class hierarchy so TooEarlyError extends WorkflowWorldError, which already has retryAfter?: number (seconds, from HTTP Retry-After header). TypeScript doesn't allow a subclass to narrow a property from number to Date, so I renamed the TooEarlyError property to retryAfterDate to avoid the clash. The semantics are the same — just the property name changed.


{/* @skip-typecheck: incomplete snippet with placeholder variables */}
```typescript lineNumbers
import { ThrottleError } from "workflow/internal/errors"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

use should not import from workflow/internal. it should be workflow/errors directly

pranaygp and others added 2 commits March 20, 2026 16:28
… section

- Replace @skip-typecheck with proper `declare` + `// @setup` lines
  so code samples are typechecked but setup lines hidden from readers
- Add `workflow/errors` export to package.json (public API, replaces
  `workflow/internal/errors` in docs)
- Add `workflow/errors` path mapping in docs-typecheck type-checker
- Add HookConflictError to re-export list
- Move all error docs under api-reference/workflow/errors/ subdirectory
- Update all internal cross-references and links

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Move semantic error docs to api-reference/workflow-errors/ (matching
  the workflow/errors import path, like workflow-api for workflow/api)
- Keep FatalError and RetryableError in api-reference/workflow/ since
  they're imported from workflow, not workflow/errors
- Fix all cross-reference links

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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