Skip to content

Backport #3844: [world-vercel] Fix deploymentId "latest" resolving against the wrong team - #3848

Merged
TooTallNate merged 1 commit into
stablefrom
backport/pr-3844-to-stable
Aug 27, 2026
Merged

Backport #3844: [world-vercel] Fix deploymentId "latest" resolving against the wrong team#3848
TooTallNate merged 1 commit into
stablefrom
backport/pr-3844-to-stable

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #3844 to stable (backport job run).

AI recommendation: This is a pure bug fix: deploymentId: "latest" resolution authenticated with an ambient VERCEL_TOKEN and sent no team scoping, causing spurious 404 Deployment not found failures for deployments that exist. I verified packages/world-vercel/src/resolve-latest-deployment.ts on origin/stable still calls resolveVercelApiToken and builds the URL with no teamId, so the defect is present there identically, and docs/content/docs/{v4,v5}/api-reference/workflow-api/start.mdx is maintained content. The changeset is a patch, and the only non-fix additions are tests and a docs clarification for the corrected behavior.

Merge conflicts were resolved by AI (opencode with anthropic/claude-opus-5). Please review the conflict resolution carefully before merging.

…team (#3844)
Signed-off-by: Peter Wielander <mittgfu@gmail.com>
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9623bdd

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

This PR includes changesets to release 17 packages
NameType
@workflow/world-vercelPatch
@workflow/cliPatch
@workflow/corePatch
@workflow/webPatch
workflowPatch
@workflow/world-testingPatch
@workflow/buildersPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

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

@vercel

vercelBot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
example-nextjs-workflow-turbopackReadyReadyPreview, v0Aug 27, 2026 4:57pm
example-nextjs-workflow-webpackReadyReadyPreview, v0Aug 27, 2026 4:57pm
example-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-astro-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-express-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-fastify-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-hono-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-nestjs-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-nitro-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-nuxt-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-python-workflowErrorErrorv0Aug 27, 2026 4:57pm
workbench-sveltekit-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-tanstack-start-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workbench-vite-workflowReadyReadyPreview, v0Aug 27, 2026 4:57pm
workflow-swc-playgroundReadyReadyPreview, v0Aug 27, 2026 4:57pm
workflow-tarballsReadyReadyPreview, v0Aug 27, 2026 4:57pm
workflow-webReadyReadyPreview, v0Aug 27, 2026 4:57pm

@github-actions

github-actionsBot commented Aug 27, 2026

Copy link
Copy Markdown
ContributorAuthor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production10981781177
✅ 💻 Local Development11980861284
✅ 📦 Local Production11980861284
✅ 🐘 Local Postgres11980861284
✅ 🪟 Windows10700107
❌ 🌍 Community Worlds821069197
✅ 📋 Other606036642
Total54871073815975

❌ Failed Tests

▲ Vercel Production (1 failed)

nuxt (1 failed):

  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M12AZAX45P1DPX9G8SD9HGZV | 🔍 observability
🌍 Community Worlds (106 failed)

redis (21 failed):

  • hookWorkflow | wrun_01M12APDCZ3NPHNJESAFJ8M37M
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M12APN6SN9ETJBBSY3N5QH0P
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M12APYP1B5V6H8ZDJHKBEEXZ
  • sleepingWorkflow | wrun_01M12AQVG4PP3S272C1V4KQY1D
  • 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
  • error handling serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery retries
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M12AZNYATPANGPAST5TSDB4Q
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M12B01FRQCE6NGK7B6YQNGCR
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M12B092WFKPJEWMVYQCRGW98
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M12B0PB95NBK714056MPX2HP
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M12B1FF9H3NJPCZ6DGGVH4D7
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M12B1K00JX6KEGJD5JNNMEN5
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M12B1S0HC4P71XWKNWBNEKHD
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M12B1XCEYRT8VVS03Q6MKZQ5
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M12B26J2MX1N83KQ6TM4K04Z
  • pages router sleepingWorkflow via pages router
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M12B7EDGEZP8CVFRV9SZ5GB0

turso (85 failed):

  • addTenWorkflow | wrun_01M12ANE23A210DH23AGY0BYXP
  • addTenWorkflow | wrun_01M12ANE23A210DH23AGY0BYXP
  • deploymentId: 'latest' is a no-op in non-Vercel worlds
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01M12AP0P5JSE7V9M46TS2G03V
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01M12ANMC04WFS1Z9EHYBREBHB
  • promiseRaceWorkflow | wrun_01M12ANVQNA8T4HB1P36S72T92
  • promiseAnyWorkflow | wrun_01M12ANY3NB5GCHPXYRBDJ8YQ0
  • importedStepOnlyWorkflow | wrun_01M12APE99RW3C1TP9JW3VAXN4
  • readableStreamWorkflow | wrun_01M12AP0JFS8XZT4ZJ0MVXE4GN
  • hookWorkflow | wrun_01M12APDCZ3NPHNJESAFJ8M37M
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01M12APN6SN9ETJBBSY3N5QH0P
  • webhookWorkflow | wrun_01M12APSXKKW0MZV6KV0SXYT5T
  • parallelStepsThenWebhookWorkflow - no hook_conflict from same-tick replay race | wrun_01M12APYP1B5V6H8ZDJHKBEEXZ
  • sleepingWorkflow | wrun_01M12AQVG4PP3S272C1V4KQY1D
  • parallelSleepWorkflow | wrun_01M12ARA9PVQ8J6N9GHCC7RNAS
  • sleepWinsRaceWorkflow | wrun_01M12ARDST3PFJH5KFBNV481WX
  • stepWinsRaceWorkflow | wrun_01M12ARHA1V9KV4BZ067B336QM
  • nullByteWorkflow | wrun_01M12ARMVEAG22WEHABMY8BH1V
  • workflowAndStepMetadataWorkflow | wrun_01M12ARQ6TASQWSP2YCDJ777SZ
  • 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_01M12AV08P0RCM7Y6EBATKBVJZ
  • writableForwardedFromWorkflowWorkflow | wrun_01M12AVCM6BPV9C10AH53ERWC8
  • writableForwardedFromStepWorkflow | wrun_01M12AVG2WTTD3WER77GWQDEEY
  • fetchWorkflow | wrun_01M12AVJT6E1QSX59NBRD02890
  • promiseRaceStressTestWorkflow | wrun_01M12AVPEDRDJ39Y4PBTJS7VV3
  • 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 serialization failures step-argument serialization failure is catchable in workflow code
  • error handling serialization failures uncaught step-argument serialization failure fails the run as USER_ERROR without redelivery 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
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01M12AZAX45P1DPX9G8SD9HGZV
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01M12AZNYATPANGPAST5TSDB4Q
  • hookGetConflictWorkflow - awaiting hook.getConflict() registers hook without payload | wrun_01M12B01FRQCE6NGK7B6YQNGCR
  • 'hookGetConflictWithPriorStepWorkflow' - hook.getConflict() does not block step execution | wrun_01M12B040RQM068S4MAW3HX53B
  • 'hookGetConflictWithParallelStepWorkfl…' - hook.getConflict() does not block step execution | wrun_01M12B06GH848DPA4220GG4E7C
  • hookGetConflictThenStepParallelWorkflow - hook.getConflict() continuation step runs alongside other steps | wrun_01M12B092WFKPJEWMVYQCRGW98
  • hookGetConflictWorkflow - hook.getConflict() resolves with the conflicting run when token is already registered | wrun_01M12B0PB95NBK714056MPX2HP
  • hookClaimOnlyMutexWorkflow - hook works as a pure run mutex without payload data | wrun_01M12B1FF9H3NJPCZ6DGGVH4D7
  • hookAdoptOwnerResultWorkflow - duplicate adopts the owner result via conflict.returnValue | wrun_01M12B1K00JX6KEGJD5JNNMEN5
  • hookSignalOwnerWorkflow - duplicate forwards its payload to the owner via resumeHook | wrun_01M12B1S0HC4P71XWKNWBNEKHD
  • hookSupersedeOwnerWorkflow - duplicate cancels the owner and claims the released token | wrun_01M12B1XCEYRT8VVS03Q6MKZQ5
  • resume-or-start route pattern - resumeHook retried after start() reaches the new run | wrun_01M12B26J2MX1N83KQ6TM4K04Z
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01M12B2EBVCZHSRPWW7V65HHAM
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01M12B2WM562GZPHXQD51FA92A
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01M12B34GMST9NTS7EQ7WW336G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01M12B3A8PKW0SJ0N3ANASZJY2
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01M12B3CT3HKY344K4T9A5HX6J
  • 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_01M12B3V9JR6N635M3E70HQXY0
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01M12B40JH4XRHT4DV42S5XJY8
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01M12B45NHY96WQ2H1TDG2NDF5
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01M12B4AWBPMVNYSQFBE1Q2J0M
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01M12B4G0B4FQZXNEDCR632WTD
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01M12B4PYXEEQRHND2CZY5R1GT
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01M12B4XBQ8ERHG9KZDKMBGDA0
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01M12B5BMBBN98P3Q8JK6P0DQS
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01M12B5K7CFMDTV86FDDCD52GA
  • cancelRun - cancelling a running workflow | wrun_01M12B5SGY9EWFXSDWP75979XG
  • cancelRun via CLI - cancelling a running workflow | wrun_01M12B5XN1YBRH600211WQAMB9
  • 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_01M12B641EBVSW5Q0CYC7NB4EF
  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01M12B6FRDABQCTG799KYWZGFQ
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01M12B6RF6Q0QHNX7AEP3XRDJK
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01M12B737XQC7HVFCJFEY6RMDG
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01M12B79KQBCQRYESEZGZSTGZN
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01M12B7C0C13VT0TSQWJQHQ9NT
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01M12B7EDGEZP8CVFRV9SZ5GB0

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro9908
✅ example9908
✅ express9908
✅ fastify9908
✅ hono9908
✅ nextjs-turbopack10403
✅ nextjs-webpack10403
✅ nitro9908
❌ nuxt9818
✅ sveltekit9908
✅ vite9908
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable10106
✅ express-stable10106
✅ fastify-stable10106
✅ hono-stable10106
✅ nextjs-turbopack-canary88019
✅ nextjs-turbopack-stable10700
✅ nextjs-webpack-canary88019
✅ nextjs-webpack-stable10700
✅ nitro-stable10106
✅ nuxt-stable10106
✅ sveltekit-stable10106
✅ vite-stable10106
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack10700
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev403
✅ redis-dev403
❌ redis67210
✅ turso-dev403
❌ turso3850
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable10106
✅ e2e-local-dev-tanstack-start-stable10106
✅ e2e-local-postgres-nest-stable10106
✅ e2e-local-postgres-tanstack-start-stable10106
✅ e2e-local-prod-nest-stable10106
✅ e2e-local-prod-tanstack-start-stable10106

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

@TooTallNate
TooTallNate merged commit 7024b5b into stableAug 27, 2026
93 of 99 checks passed
@TooTallNate
TooTallNate deleted the backport/pr-3844-to-stable branch August 27, 2026 21:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@TooTallNate