Skip to content

Scope Workflow determinism language in AI-integration docs; add advisory Vale rule - #5281

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

Scope Workflow determinism language in AI-integration docs; add advisory Vale rule#5281
Duncanma merged 7 commits into
mainfrom
docs/scope-workflow-determinism-ai-and-vale

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 and Scope Workflow determinism language to Workflow code (guides and SDK how-tos) #5280, applied to the two AI-agent integration guides where the Workflow/Activity split matters most (Google ADK, LangGraph) — including reverting an unnecessary, ungrammatical edit to a table row that was never actually a scoping violation (the subject was a specific function, already correctly scoped).
  • Drops "deterministic" entirely from a one-line Code Exchange card blurb on the /ai landing page — the term doesn't carry its weight in top-of-funnel marketing copy.
  • Adds an advisory (non-CI-gating) Vale rule, Temporal.DeterminismScope, that flags bare "Workflow is/are/must be deterministic" and "Workflow determinism" going forward, so future contributions don't reintroduce the pattern this sweep fixes.

Test plan

  • vale --config .vale-ci.ini docs/ clean on touched files
  • Full vale docs/ run confirms the new rule doesn't false-positive on the many correctly-scoped "Workflow code" instances elsewhere in the repo
  • yarn build passes

…ory Vale rule

Same scoping fix applied to the two AI-agent integration guides where
the Workflow/Activity distinction matters most for authors, plus one
placement judgment call: dropped "deterministic" from a one-line
Code Exchange card blurb on the /ai landing page, since the term
doesn't earn its place in top-of-funnel marketing copy.

Also adds an advisory (non-CI-gating) Vale rule that flags bare
"Workflow is/are/must be deterministic" and "Workflow determinism" so
future contributions don't reintroduce the pattern this sweep fixes.
…over-correction

google-adk.mdx: state the actionable rule (Workflow code can't touch
network/clock/disk directly) instead of the abstract "is deterministic"
framing, since that's what an integration author acts on.

langgraph.mdx: the "Has non-deterministic behavior" bullet already
explains the criterion in its parenthetical; the trailing sentence
just repeated it, so it's gone.

Also reverts an over-correction from the original scoping pass: the
LangGraph-primitives table row for conditional edge functions was
never a bare-Workflow violation (the subject is the specific function,
already correctly scoped) — my earlier edit to "deterministic code"
broke the sentence's parallel structure for no reason.
@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:39pm UTC

Request Review

Comment thread docs/with-ai.mdx
@@ -67,7 +67,7 @@ agent's skills directory.
### Temporal Developer skill

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.

📝 [vale] <Temporal.Headings> reported by reviewdog 🐶
'Temporal Developer skill' should use sentence-style capitalization.

Comment thread docs/with-ai.mdx
expert-level knowledge of Temporal's programming model, including Workflow code determinism rules, Activity patterns, Retry
Policies, error handling, testing strategies, Worker configuration, versioning, and common gotchas.

### Temporal Ops skill

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.

📝 [vale] <Temporal.Headings> reported by reviewdog 🐶
'Temporal Ops skill' should use sentence-style capitalization.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

…ism constraint

Same correction as the other two branches. Also updates the advisory
Vale rule's message to recommend "the Workflow Definition" instead of
"Workflow code/logic," since that's now the standard being taught.
@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 and #5280. Also updated the new advisory Vale rule's message to recommend "the Workflow Definition" instead of "Workflow code/logic," since that's now the standard being taught.

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

@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: 75dd309ddf

ℹ️ 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".

Comment thread docs/with-ai.mdx

The [Temporal Developer skill](https://github.com/temporalio/skill-temporal-developer) gives your AI coding agent
expert-level knowledge of Temporal's programming model, including Workflow determinism rules, Activity patterns, Retry
expert-level knowledge of Temporal's programming model, including Workflow Definition determinism rules, Activity patterns, Retry

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 Apply the scoping correction to matching pages

This line adopts the new Workflow Definition-scoped terminology, but the same unscoped assertion remains in docs/develop/python/best-practices/error-handling.mdx:336, docs/develop/typescript/workflows/message-passing.mdx:269-272, docs/design-patterns/approval.mdx:815, docs/guides/durable-gaming-sessions.mdx:115-117, and docs/guides/entity-pattern-loyalty-points.mdx:79,932. Leaving these pages unchanged preserves the inconsistency this change is intended to remove and causes the new advisory rule to report existing instances immediately; update these collateral passages and headings to scope determinism to Workflow Definitions or Workflow code as appropriate.

AGENTS.md reference: AGENTS.md:L234-L242

Useful? React with 👍 / 👎.

@Duncanma
Duncanma merged commit e85d0c2 into main Sep 9, 2026
15 checks passed
@Duncanma
Duncanma deleted the docs/scope-workflow-determinism-ai-and-vale branch September 9, 2026 19:39
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