Skip to content

docs: add turbo_tasks consistency guidance for agents - #100986

Open
mischnic wants to merge 1 commit into
canaryfrom
fleet/turbo-tasks-eventual-consistency
Open

mischnic wants to merge 1 commit into
canaryfrom
fleet/turbo-tasks-eventual-consistency

Conversation

@mischnic

Copy link
Copy Markdown
Member

What?

Add turbo_tasks agent guidance for eventual consistency and cell equality.

Why?

#100928 showed that separately published cells can be read from different executions during recomputation, causing cross-cell index lookups to panic. #100935 showed a distinct, persistent mismatch: order-insensitive equality can retain an old collection ordering while related indices change.

How?

Document safe handling of mixed-generation reads, the distinction between bounds guards and coherent snapshots, and the need for equality to capture observable ordering. Keep the guidance in the existing shared turbo_tasks section of turbopack/AGENTS.md, already referenced by crates/AGENTS.md, without duplicating instructions.

Verification

  • Reviewed both source PR descriptions and complete diffs, plus the current cell-comparison and lookup APIs.
  • Confirmed existing guidance is unchanged and only turbopack/AGENTS.md is modified.
  • Formatting checked manually; workspace Prettier is unavailable. No runtime tests were run for this instructions-only change.
Co-authored-by: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 3430a80

@github-actions github-actions Bot added created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js. labels Oct 30, 2026

@vercel vercel Bot 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.

Vercel Agent reviewed 3430a80 and found no issues.

@mischnic
mischnic requested a review from lukesandberg October 30, 2026 22:41
@mischnic
mischnic marked this pull request as ready for review October 30, 2026 22:42

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Turbopack team PRs by the Turbopack team. Turbopack Related to Turbopack with Next.js.

1 participant