Skip to content

Backport #2055 to stable: [world-vercel] v4 event wire format (with structured-error compat)#2414

Open
github-actions[bot] wants to merge 3 commits into
stablefrom
backport/pr-2055-to-stable
Open

Backport #2055 to stable: [world-vercel] v4 event wire format (with structured-error compat)#2414
github-actions[bot] wants to merge 3 commits into
stablefrom
backport/pr-2055-to-stable

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Backport of #2055 to stable. The v4 wire format moves event metadata and the user payload into a single length-prefixed binary frame, eliminating the per-event ref-resolution round-trip on event listings.

Unlike the clean cherry-pick the backport bot assumed, #2055's wire format was co-designed with a runtime change that only exists on newer lines (there, the runtime serializes run/step errors into opaque bytes before events.create). On this line errors are still plain values, so this PR adapts the adapter — plus one small, additive @workflow/world schema fix — to carry them correctly. No breaking change: WorkflowRun.error / Step.error keep their StructuredError shape.

What this does

  • POST event body is one v4 frame: [u32_be meta_len][cbor meta][u32_be body_len][bytes]. Metadata rides in the CBOR meta; the user payload is the opaque body.
  • GET / LIST events return v4 binary frames (one per event + an end sentinel), dropping the per-event /refs round-trip.
  • Public adapter signatures and the EventResult / Event / PaginatedResponse<Event> shapes the runtime consumes are unchanged.

Stable-specific adaptations (vs. #2055)

  • Structured errors on the wire. This line's runtime sends run/step errors as a plain string (step_failed / step_retrying) or a { message, stack } object (run_failed), not dehydrated bytes. They are carried in the frame meta and decoded back on read, so the Vercel backend (world-vercel) materializes the same StructuredError the previous wire produced — the replay reducer reads .message / .stack directly and there is no hydrate step for errors on this line. Depends on the matching world-vercel backend change (parse error / stack from the v4 frame meta) being deployed first; until then the error-path E2E lanes report "Unknown error".
  • hook_created.isWebhook is kept on the wire and declared on HookCreatedEventSchema — the runtime emits it and the backend consumes it to reject public-webhook-endpoint resumption.
  • Dropped the meta fields that don't exist on this line's event schema or runtime (native run attributes / attr_set / isSystem). A schema-derived exhaustiveness guard keeps the wire allowlist in sync with the event schema in both directions.

Test plan

  • Unit: v4 frame encoder/decoder, typed-error contract, POST alias round-trip, truncation guard
  • Unit: structured-error write routing + read-decode round-trip; hook_created.isWebhook routing
  • Build / typecheck / lint green; exhaustiveness guard compiles against this line's schema
  • Local Dev / Local Postgres / Local Prod E2E green (unaffected worlds)
  • Vercel-Prod error-path E2E lanes — pass once the matched world-vercel backend change is deployed, then re-run

🤖 Generated with Claude Code

Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@github-actions github-actions Bot requested a review from a team as a code owner June 14, 2026 11:19
@changeset-bot

changeset-bot Bot commented Jun 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0d95c2e

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

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

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

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 Jun 15, 2026 11:08am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jun 15, 2026 11:08am
example-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-astro-workflow Building Building Preview, Comment Jun 15, 2026 11:08am
workbench-express-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-fastify-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-hono-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-nitro-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-nuxt-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-sveltekit-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-tanstack-start-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workbench-vite-workflow Ready Ready Preview, Comment Jun 15, 2026 11:08am
workflow-docs Ready Ready Preview, Comment, Open in v0 Jun 15, 2026 11:08am
workflow-swc-playground Ready Ready Preview, Comment Jun 15, 2026 11:08am
workflow-tarballs Ready Ready Preview, Comment Jun 15, 2026 11:08am
workflow-web Ready Ready Preview, Comment Jun 15, 2026 11:08am

Comment thread packages/world-vercel/src/events.ts
The v4 wire format assumes the runtime hands `events.create` a dehydrated
`Uint8Array` for every payload field. On this line run/step errors are NOT
dehydrated — the runtime emits them as a plain string (step_failed /
step_retrying) or a `{ message, stack }` object (run_failed). The split's
Uint8Array guard therefore threw on every failure event.

Route a non-Uint8Array `error` field (plus the sibling `stack`) into the
frame meta instead, so the backend rebuilds the same StructuredError the
pre-v4 wire produced. On read, the backend returns that StructuredError as
the ref's CBOR bytes in the frame body, so decode the structured-error
event types back into `eventData.error` — the core step-event reducer
reads `.message` / `.stack` off it directly and has no hydrate step for
errors on this line.

Also drops the native-run-attributes and webhook/system-hook meta fields
from the wire allowlist: those eventData fields do not exist on this
line's @workflow/world schema, and the schema-derived exhaustiveness guard
flags them as stale. Requires the matching backend change to parse
`error` / `stack` from the v4 frame meta.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 923 110 67 1100
✅ 💻 Local Development 1114 0 86 1200
✅ 📦 Local Production 1114 0 86 1200
✅ 🐘 Local Postgres 1114 0 86 1200
✅ 🪟 Windows 100 0 0 100
❌ 🌍 Community Worlds 76 95 6 177
✅ 📋 Other 564 0 36 600
Total 5005 205 367 5577

❌ Failed Tests

▲ Vercel Production (110 failed)

astro (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

example (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

express (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

fastify (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

hono (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

nextjs-turbopack (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

nextjs-webpack (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

nitro (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

nuxt (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

sveltekit (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability

vite (10 failed):

  • 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 FatalError fails immediately without retries
  • error handling retry behavior maxRetries=0 disables retries
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C | 🔍 observability
🌍 Community Worlds (95 failed)

redis (17 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV5FDDS9YNR37469FF7XRF5B
  • sleepingWorkflow | wrun_01KV5FDT3WANWCHFHRC001CKM3
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV5FMGZZPEH490TGV7GE1VXC
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV5FMQZH1VXAYC0K3HKYCMJR
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV5FN6N1KM13SA834J2HA754
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV5FNZYAM7SS7MGD624JZHJV
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV5FP4XWAWN7KEZ1GRHWC529
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV5FPB2C6398D2E7FE97SK2Z
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV5FPGEPE6MBNRSBY0VKC610
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV5FPRFX2QYF00JDWCJMHG67
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV5FW59ZGC5BQ7G2SP68WT1G

turso (78 failed):

  • addTenWorkflow | wrun_01KV5FC8Y9X64BSYCZSFK1PAX9
  • addTenWorkflow | wrun_01KV5FC8Y9X64BSYCZSFK1PAX9
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KV5FDR5GHJ6YJ7Y34NMPJ6DD
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KV5FCGYGX7DCTRXZP8CWSN71
  • promiseRaceWorkflow | wrun_01KV5FCNHNZGND2CD1G8XNCYNJ
  • promiseAnyWorkflow | wrun_01KV5FCQMPYGHW5D4AZR9EN5Z6
  • importedStepOnlyWorkflow | wrun_01KV5FE6D3RDQT2TNNHBX3HHN8
  • readableStreamWorkflow | wrun_01KV5FCSV3MPJGAT4S98YKZN5V
  • hookWorkflow | wrun_01KV5FD68F8VGAK6ETNXZ5HHCA
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KV5FDDS9YNR37469FF7XRF5B
  • webhookWorkflow | wrun_01KV5FDKGAAG2BBT3BW3YY1G4E
  • sleepingWorkflow | wrun_01KV5FDT3WANWCHFHRC001CKM3
  • parallelSleepWorkflow | wrun_01KV5FE9KQ4MH154R203840A74
  • nullByteWorkflow | wrun_01KV5FECZN6A31C1PGBFAR34HB
  • workflowAndStepMetadataWorkflow | wrun_01KV5FEF93CRTCMQVTN5006CYX
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getStreamChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getStreamChunks getStreamChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KV5FGW42E9481MHWJS20RS4J
  • writableForwardedFromWorkflowWorkflow | wrun_01KV5FHAQ76GRB6B50WYESWXDR
  • writableForwardedFromStepWorkflow | wrun_01KV5FHG9HFR2TS18BP6XW0T3C
  • fetchWorkflow | wrun_01KV5FHMQ04PFBPHJTZQBDP8JJ
  • promiseRaceStressTestWorkflow | wrun_01KV5FHR27QRG9X5R09NBZJ6Y5
  • 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_01KV5FM2J8DFS89W7DFBBM4588
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KV5FME6CAQ3PT13F8NHYXK7C
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01KV5FMGZZPEH490TGV7GE1VXC
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01KV5FMK9CCYWGDR9FSVW9Q9WN
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01KV5FMNNAR9D9YQ5AAAF0VVMN
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01KV5FMQZH1VXAYC0K3HKYCMJR
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01KV5FN6N1KM13SA834J2HA754
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01KV5FNZYAM7SS7MGD624JZHJV
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01KV5FP4XWAWN7KEZ1GRHWC529
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01KV5FPB2C6398D2E7FE97SK2Z
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01KV5FPGEPE6MBNRSBY0VKC610
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01KV5FPRFX2QYF00JDWCJMHG67
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KV5FPZVXFZY6X2NKXYJH1YWS
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KV5FQDTM69MAGJENX6T8W8SN
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KV5FQP05CSXWRY9ZNFBFW0HM
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KV5FQV2DH5Y816Z6W7F5VB5J
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KV5FQX8B9BK9E196B5P20Z59
  • 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_01KV5FRBBTN641P5NY9VY9DBKD
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KV5FRGJZZQKK4RCSZGFMPBM8
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KV5FRPSWZFCVEBQKB0RHNW79
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KV5FRX45RABXBEDAQ2ETBXDT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KV5FS389DTWDXC2J4H2JTZQZ
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KV5FSAJJJEARW2XH1M08B880
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KV5FSGX75KKRTS8YMQNGNMRR
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KV5FSXFBTX08J9H643ADXQJJ
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KV5FT5XVSTF35QKDFM88CTQP
  • cancelRun - cancelling a running workflow | wrun_01KV5FTDDDBVNE9RCPTK83C5YN
  • cancelRun via CLI - cancelling a running workflow | wrun_01KV5FTPB7NNSVFZB01RRA26R6
  • 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_01KV5FV1AZPYAY753S7KJCKZX2
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KV5FVG99VR32XRZTCPYWSGV6
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KV5FVTQXMEWK3XNHB7B05197
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KV5FW109RSHES4V3JSQ20FT0
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KV5FW38EJ38V4SFXT6DPFG5G
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KV5FW59ZGC5BQ7G2SP68WT1G

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
❌ astro 83 10 7
❌ example 83 10 7
❌ express 83 10 7
❌ fastify 83 10 7
❌ hono 83 10 7
❌ nextjs-turbopack 88 10 2
❌ nextjs-webpack 88 10 2
❌ nitro 83 10 7
❌ nuxt 83 10 7
❌ sveltekit 83 10 7
❌ vite 83 10 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 94 0 6
✅ express-stable 94 0 6
✅ fastify-stable 94 0 6
✅ hono-stable 94 0 6
✅ nextjs-turbopack-canary 81 0 19
✅ nextjs-turbopack-stable 100 0 0
✅ nextjs-webpack-canary 81 0 19
✅ nextjs-webpack-stable 100 0 0
✅ nitro-stable 94 0 6
✅ nuxt-stable 94 0 6
✅ sveltekit-stable 94 0 6
✅ vite-stable 94 0 6
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 94 0 6
✅ express-stable 94 0 6
✅ fastify-stable 94 0 6
✅ hono-stable 94 0 6
✅ nextjs-turbopack-canary 81 0 19
✅ nextjs-turbopack-stable 100 0 0
✅ nextjs-webpack-canary 81 0 19
✅ nextjs-webpack-stable 100 0 0
✅ nitro-stable 94 0 6
✅ nuxt-stable 94 0 6
✅ sveltekit-stable 94 0 6
✅ vite-stable 94 0 6
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 94 0 6
✅ express-stable 94 0 6
✅ fastify-stable 94 0 6
✅ hono-stable 94 0 6
✅ nextjs-turbopack-canary 81 0 19
✅ nextjs-turbopack-stable 100 0 0
✅ nextjs-webpack-canary 81 0 19
✅ nextjs-webpack-stable 100 0 0
✅ nitro-stable 94 0 6
✅ nuxt-stable 94 0 6
✅ sveltekit-stable 94 0 6
✅ vite-stable 94 0 6
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 100 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
✅ redis-dev 3 0 2
❌ redis 64 17 0
✅ turso-dev 3 0 2
❌ turso 3 78 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 94 0 6
✅ e2e-local-dev-tanstack-start-stable 94 0 6
✅ e2e-local-postgres-nest-stable 94 0 6
✅ e2e-local-postgres-tanstack-start-stable 94 0 6
✅ e2e-local-prod-nest-stable 94 0 6
✅ e2e-local-prod-tanstack-start-stable 94 0 6

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@vercel vercel Bot temporarily deployed to Preview – workflow-docs June 15, 2026 10:14 Inactive
@VaguelySerious

VaguelySerious commented Jun 15, 2026

Copy link
Copy Markdown
Member

(AI) Updated this backport to actually work on stable.

The auto-backport was a clean git merge, but #2055's v4 wire format has a hard dependency on a runtime refactor that landed on newer lines but is not on stable:

  • On newer lines, the runtime dehydrates run/step errors into opaque Uint8Array blobs and hydrates them on read.
  • On stable, errors are still plain strings (step_failed/step_retrying) / { message, stack } objects (run_failed).

As-is, the v4 split's Uint8Array guard threw on every run/step failure. Two secondary schema-drift issues also broke the build: stack (present on stable's step schemas) was unrouted, and some meta fields that don't exist on this line's schema/runtime were stale in the wire allowlist.

This update carries stable's structured errors in the frame meta and decodes them back on read — no breaking change, no StructuredErrorUint8Array migration. It is a matched pair with a world-vercel backend change (parse error/stack from the v4 frame meta). That backend change must deploy before this merges, otherwise the structured-error path degrades to "Unknown error" on the deployed v4 routes.

The runtime emits `isWebhook` on hook_created (the suspension handler) and
the backend reads it to mark webhook hooks, which must not be resumable via
the public webhook endpoint. The schema-derived wire-allowlist guard had
flagged `isWebhook` as stale because this line's @workflow/world
HookCreatedEventSchema did not declare it — so it was dropped, breaking
webhook hooks on the v4 wire.

Declare `isWebhook` on HookCreatedEventSchema (matching the field the
runtime already sends and the backend already consumes) and route it
through the v4 frame meta. Unlike isWebhook, isSystem / native run
attributes / attr_set are genuinely absent from this line's runtime and
schema, so they stay off the wire.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@VaguelySerious VaguelySerious changed the title Backport #2055: [world-vercel] Switch event endpoints to v4 wire format Backport #2055 to stable: [world-vercel] v4 event wire format (with structured-error compat) Jun 15, 2026
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.

1 participant