Skip to content

Scope Workflow determinism language to Workflow code (guides and SDK how-tos) - #5280

Merged
Duncanma merged 7 commits into
mainfrom
docs/scope-workflow-determinism-guides
Sep 9, 2026
Merged

Scope Workflow determinism language to Workflow code (guides and SDK how-tos)#5280
Duncanma merged 7 commits into
mainfrom
docs/scope-workflow-determinism-guides

Conversation

@Duncanma

@Duncanma Duncanma commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Same scoping fix as Scope Workflow determinism language to Workflow code (core concept pages) #5279, applied across guides, SDK best-practices pages, a design pattern, and reference docs: bare "Workflow is/must be deterministic" → "Workflow code is/must be deterministic," matching the phrasing this repo already uses correctly in workflow-definition.mdx and all 7 SDKs' workflows/basics.mdx.
  • Also replaces a few redundant "deterministic" labels with the concrete facts they stood for (e.g. "the shuffle produces the same order on every replay" instead of "the shuffle is deterministic ... as Workflow code determinism requires") where the surrounding sentence already carried the real information.

Test plan

  • vale --config .vale-ci.ini docs/ clean on touched files
  • yarn build passes

…K how-tos

Same fix as the encyclopedia sweep: bare "Workflow is/must be
deterministic" reads as the whole business process, which is never
deterministic. Scope it to the code Temporal actually replays across
guides, SDK best-practices pages, a design pattern, and reference docs.
…inism

Missed in the earlier sweep: the body text already correctly said
"Workflow code must be deterministic," but the heading above it was
still bare "Workflow determinism."
…lty-points.mdx

Missed in the first pass: a "Phase 7" step heading later in the same
guide repeated the bare "Workflow determinism" pattern already fixed
earlier in the file.
…s they stood for

Each sentence already carried (or could carry) the concrete claim —
same shuffle order every replay, a Workflow that replays safely, code
that produces the same result every time — so naming the abstract
property on top was redundant.
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Sep 9, 2026 7:19pm UTC

Request Review

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

…ism constraint

Same correction as the core-branch commit: "Workflow code" is
ambiguous since Activity code is also code that's part of a
Workflow-based application. Workflow Definition is Temporal's own
precise term for the thing that must be deterministic, as distinct
from Activity Definition. Applied across guides, SDK best-practices
pages, a design pattern, and reference docs.
@Duncanma

Duncanma commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Updated per team feedback: replaced "Workflow code" with "Workflow Definition" throughout, same correction as #5279. "Workflow code" was ambiguous since Activity code is also code that's part of a Workflow-based application — Workflow Definition is Temporal's own precise term for the thing that must be deterministic, as distinct from Activity Definition.

@Duncanma
Duncanma marked this pull request as ready for review September 9, 2026 18:06
@Duncanma
Duncanma requested a review from a team as a code owner September 9, 2026 18:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5171bace75

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


The `getExternalWorkflowHandle` method helps ensure that Workflows remain deterministic.
Recall that one aspect of deterministic Workflows means not directly making network calls from the Workflow.
The `getExternalWorkflowHandle` method helps ensure that the Workflow Definition remains deterministic.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the remaining unscoped determinism claims

This scoping change remains incomplete in the SDK documentation: docs/develop/go/integrations/google-adk.mdx still says “the Workflow is deterministic,” and docs/develop/python/integrations/langgraph.mdx still says “Workflows must be deterministic.” Update those claims to refer to Workflow code or the Workflow Definition so readers do not encounter the same ambiguity elsewhere.

AGENTS.md reference: AGENTS.md:L236-L240

Useful? React with 👍 / 👎.

@Duncanma Duncanma Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is already addressed, but in #5281 (not this PR) — google-adk.mdx and langgraph.mdx aren't touched here. Both now avoid the bare claim: google-adk.mdx dropped the determinism framing entirely ("Workflow code can't touch the network, clock, or disk directly..."), and the langgraph.mdx bullet Codex is quoting ("Workflows must be deterministic") was removed as redundant with the parenthetical right before it. That PR is pushed but still in draft.

@Duncanma
Duncanma enabled auto-merge (squash) September 9, 2026 18:20
@Duncanma
Duncanma merged commit 84dd314 into main Sep 9, 2026
15 checks passed
@Duncanma
Duncanma deleted the docs/scope-workflow-determinism-guides branch September 9, 2026 19:19
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