Skip to content

Fix contradictions and overclaims in the design-patterns section - #5876

Open
Duncanma wants to merge 2 commits into
mainfrom
duncan/design-patterns-review-ebc8ce
Open

Duncanma wants to merge 2 commits into
mainfrom
duncan/design-patterns-review-ebc8ce

Conversation

@Duncanma

@Duncanma Duncanma commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Mechanical fixes from a full review of docs/design-patterns. These are the unambiguous items; code-sample bugs, claims that contradict canonical pages, and structural changes are coming separately.

  • Meta descriptions and index cards. Rewrote descriptions that overclaimed (Batch Iterator "exactly-once", Fan-Out "automatic scaling", Parallel Execution "maximum throughput") or promised content the page doesn't have (Distributed Transactions "decision tree", External Interaction "compares five patterns"). Lengthened the Fairness description. Index cards match the new descriptions.
  • Landing page. Removed "proven" and "battle-tested" from the description and intro.
  • Long-Running Activity. Title is now "Long-Running Activity Pattern" (was a 13-word title with a hyphen separator), and the page and links use one name.
  • Pitfall titles that said the opposite of their body. Fairness (unkeyed Tasks), Batch Iterator (continueAsNew on the last page), Sliding Window (now describes draining the Go Signal Channel before Continue-As-New, per /handling-messages).
  • Sentences that contradicted the same page.
    • Child Workflows: "Child failures do not automatically fail the parent" (the pitfall section says they do).
    • Downstream Rate Limiting: "account for Worker count when setting the per-worker cap" (the limit is per Task Queue).
    • QoS category page: "cap throughput at the Worker" → the Task Queue's Activity dispatch rate.
    • Delayed Start: the Workflow is visible during the delay, not queryable; removed the "Add Query methods" best practice.
    • Pick First: "Unnecessary work is cancelled automatically" (the pitfall says you must cancel).
    • Continue-As-New: "every 100–1000 iterations" (the page and Entity Workflow say to use the SDK suggestion).
    • Entity Workflow: diagram and steps said "After 1000 operations" while the code uses the suggestion.
    • Event Accumulator: corrected its description of Updatable Timer.
  • Tags. Resumable Activity uses Errors, matching its retry siblings.

Testing

  • vale --config .vale-ci.ini on the changed files: no findings.
  • yarn build: passes.
  • yarn check:orphans: no orphans.

Mechanical fixes from a review of docs/design-patterns:

- Rewrite meta descriptions and index cards that overclaimed
  (exactly-once, automatic scaling, maximum throughput) or promised
  content the page doesn't have.
- Drop "proven" and "battle-tested" from the section landing page.
- Rename the Long-Running Activity page title and use one name for it.
- Retitle three pitfalls whose labels said the opposite of their body.
- Remove sentences that contradicted another part of the same page
  (child failure propagation, per-Worker rate cap, Queries during a
  start delay, automatic cancellation in Pick First, fixed iteration
  counts for Continue-As-New).
- Tag Resumable Activity with Errors to match its retry siblings.
@Duncanma
Duncanma requested a review from a team as a code owner December 3, 2026 18:45
Copilot AI balanced review requested due to automatic review settings December 3, 2026 18:45
@vercel

vercel Bot commented Dec 3, 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 Dec 3, 2026 8:17pm UTC

Request Review

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.

🟡 Changes recommended

Two documentation passages still misleadingly imply that Signal or Query handlers can run during the start delay.

1 open issue
What changed in this PR

Corrects contradictions and overclaims in the design-patterns documentation without changing code samples.

Changes:

  • Aligns descriptions and index cards with page content.
  • Corrects guidance on delayed execution, rate limiting, Signals, and Continue-As-New.
  • Standardizes Long-Running Activity naming and retry-related tags.
File Description
docs/​design-patterns/​sliding-window.mdx Clarifies Go Signal draining.
docs/​design-patterns/​resumable-activity.mdx Uses the Errors tag.
docs/​design-patterns/​qos-throughput-patterns.mdx Corrects rate-limit scope.
docs/​design-patterns/​pick-first.mdx Removes automatic-cancellation claims.
docs/​design-patterns/​parallel-execution.mdx Narrows the description.
docs/​design-patterns/​long-running-activity.mdx Standardizes naming and description.
docs/​design-patterns/​local-activities.mdx Updates the linked pattern name.
docs/​design-patterns/​index.mdx Revises introduction and cards.
docs/​design-patterns/​fanout-child-workflows.mdx Removes automatic-scaling claim.
docs/​design-patterns/​fairness.mdx Clarifies description and unkeyed Tasks.
docs/​design-patterns/​external-interaction-patterns.mdx Updates description and pattern names.
docs/​design-patterns/​event-accumulator.mdx Corrects Updatable Timer comparison.
docs/​design-patterns/​entity-workflow.mdx Aligns diagram with SDK suggestions.
docs/​design-patterns/​downstream-rate-limiting.mdx Removes per-worker cap qualification.
docs/​design-patterns/​distributed-transaction-patterns.mdx Removes decision-tree promise.
docs/​design-patterns/​delayed-start.mdx Distinguishes visibility from Queries.
docs/​design-patterns/​continue-as-new.mdx Removes fixed iteration guidance.
docs/​design-patterns/​child-workflows.mdx Removes blanket failure-isolation claim.
docs/​design-patterns/​batch-iterator.mdx Corrects description and final-page pitfall.

Review effort: Balanced


1. The client starts the Workflow with a 30-second delay. Temporal creates the execution immediately.
2. The execution is visible and queryable, but no Workflow code runs during the delay.
2. The execution is visible to List and Describe calls, but no Workflow code runs during the delay.

This branch was successfully deployed

1 active deployment
Preview — f4f7f4f0 Deployed Dec 3, 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