Skip to content

[docs] Note fatal dynamic start() refusals and publish-after-store - #4558

Draft
pranaygp wants to merge 1 commit into
mainfrom
workflow-docs-cleanup-thu-1-oct
Draft

pranaygp wants to merge 1 commit into
mainfrom
workflow-docs-cleanup-thu-1-oct

Conversation

@pranaygp

@pranaygp pranaygp commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Docs follow-up for two dynamic workflow fixes that landed without docs changes:

Docs Preview

Page v5
Dynamic Workflows World support
start reference Dynamic Workflow Source

The two new paragraphs sit at the end of World support; on the start page, the error paragraph near the end of Dynamic Workflow Source gained the fatal note plus one new paragraph.

🤖 Generated with Claude Code

@pranaygp
pranaygp requested a review from a team as a code owner October 1, 2026 16:04
Copilot AI balanced review requested due to automatic review settings October 1, 2026 16:04
@changeset-bot

changeset-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0d00190

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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 Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
example-nextjs-workflow-turbopack Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
example-nextjs-workflow-webpack Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
example-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-astro-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-express-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-fastify-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-hono-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-nestjs-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-nitro-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-nuxt-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-python-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-sveltekit-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-tanstack-start-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workbench-vite-workflow Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workflow-docs Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workflow-swc-playground Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workflow-tarballs Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC
workflow-web Ready Ready Preview, v0 Oct 1, 2026 4:19pm UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The API-reference refusal list omits fatal execution-context validation failures.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Documents corrected dynamic workflow start failure and queueing behavior.

Changes:

  • Explains fatal dynamic start() refusals.
  • Documents publish-after-store behavior.
  • Adds a docs-only changeset.
File Description
docs/​content/​docs/​v5/​api-reference/​workflow-api/​start.mdx Updates API failure semantics.
docs/​content/​docs/​v5/​advanced/​dynamic-workflows.mdx Expands dynamic workflow lifecycle guidance.
.changeset/​docs-dynamic-start-failures.md Records the documentation update.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The return type is `Run<unknown>`: the source's shape is only known to whatever generated it, so there is nothing to infer. The workflow ID is derived from the source and its step bindings — it cannot be supplied.

A dynamic start throws a `WorkflowRuntimeError`, before anything is written, when the deployment has not opted in, when `deploymentId` targets another deployment (including `'latest'` resolving to one), or when the World's backend does not support dynamic-source storage.
A dynamic start throws a `WorkflowRuntimeError`, before anything is written, when the source is invalid, when the deployment has not opted in, when `deploymentId` targets another deployment (including `'latest'` resolving to one), or when the World's backend does not support dynamic-source storage. These errors are fatal, so a step that calls `start()` fails without retrying.
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

🟠 world-sim scenario book — 1 fail of 42 total

fence=per-spec

scenario outcome events virt replay violations
✅ smoke-no-steps completed 3 0ms ok 0
✅ smoke-one-step completed 6 0ms ok 0
✅ hook-at-step-started completed 12 0ms ok 0
✅ hook-at-step-completed completed 12 0ms ok 0
✅ hook-at-hook-created completed 12 0ms ok 0
✅ deadline-hook-wins completed 7 1.0h ok 0
✅ deadline-expires completed 7 1.0h ok 0
✅ step-vs-timer-early-settlement completed 8 1.0h ok 0
✅ long-sleep completed 11 30.0d ok 0
✅ hook-never-arrives stalled 3 0ms skipped 0
✅ step-retries-twice completed 10 2.0s ok 0
✅ parallel-steps completed 9 0ms ok 0
✅ hook-on-execution-state completed 12 0ms ok 0
✅ peek-hook-before-branch completed 12 0ms ok 0
✅ peek-hook-after-branch completed 12 0ms ok 0
✅ peek-hook-at-registration completed 12 0ms ok 0
✅ race-hook-before-probe completed 12 0ms ok 0
✅ race-hook-after-probe completed 12 0ms ok 0
✅ race-duplicate-delivery completed 13 0ms ok 0
✅ attr-hook-before-step completed 11 0ms ok 0
✅ attr-hook-after-step completed 11 0ms ok 0
✅ attr-from-step-body completed 13 0ms ok 0
✅ fork-hook-after-timeout completed 14 1.0m ok 0
✅ fork-hook-before-timeout completed 14 1.0m ok 0
✅ count-hook-after-timeout completed 17 1.0m ok 0
✅ count-hook-before-timeout completed 20 1.0m ok 0
✅ stale-read-step-count-fork completed 20 1.0m ok 0
✅ stale-read-equal-step-counts completed 14 1.0m ok 0
✅ step-vs-step-fork completed 12 0ms ok 0
✅ step-vs-step-fork-fenced completed 12 0ms ok 0
✅ fence-catches-benign-direction completed 12 5ms ok 0
✅ in-flight-before-decision completed 17 1.0m ok 0
❌ in-flight-before-decision-counted completed 17 1.0m ok 0
✅ in-flight-after-decision completed 19 2.0m ok 0
✅ stale-read-step-count-fork-fenced completed 20 1.0m ok 0
✅ fork-hook-wins completed 13 1.0m ok 0
✅ fork-timeout-wins completed 13 1.0m ok 0
✅ unclaimed-payload-under-fork completed 17 1.0m ok 0
✅ claimed-payload-under-fork completed 17 1.0m ok 0
✅ writers-independent-step-bodies completed 12 0ms ok 0
✅ writers-scripted-tempo completed 12 0ms ok 0
✅ cancel-mid-step cancelled 7 0ms skipped 0

Full trace: world-sim.txt

Co-Authored-By: Claude <noreply@anthropic.com>

Co-Authored-By: Pranay Prakash <1797812+pranaygp@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview – workflow-docs — 0d001905 Deployed Oct 1, 2026 by vercel[bot]
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