Skip to content

test(tanstack-router): add React parity harness - #513

Closed
jonkwheeler wants to merge 15 commits into
octanejs:mainfrom
jonkwheeler:jon/tanstack-router-react-parity-harness
Closed

jonkwheeler wants to merge 15 commits into
octanejs:mainfrom
jonkwheeler:jon/tanstack-router-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary\n\n- add the new React parity manifest, provenance record, and exhaustive test-classification ledger for TanStack Router\n- add fail-closed differential fixtures covering initial render, navigation, params, active states, and not-found behavior\n- add explicit adapted divergence, SSR/streaming, and public type-contract lanes\n- generalize shared classification and parity-check helpers for binding-level ledgers\n\n## Validation\n\n- [x] TanStack Router Vitest project: 16 files, 80 tests passed\n- [x] Runtime differential, adapted divergence, SSR, and type lanes passed\n- [x] Repository-wide React parity audit passed (stable: 5,345 cases; canary: 5,413 cases)\n- [x] Generated binding status, parity-gap, and CLI inventories are current\n- [x] Upstream provenance recorded against @tanstack/[email protected]\n\n## Risk / follow-ups\n\n- Upstream remains recorded-unverified because the published npm artifact omits the upstream test suites; the adapted package lanes are fail-closed and independently classified.\n- This PR intentionally does not change the runtime binding.\n\n## Provenance\n\n- [x] An agent produced this diff (agent-authored)\n


Note

Low Risk
Test, audit, and documentation only; router runtime code is unchanged. Main follow-up is upstream parity remaining recorded-unverified until full suite lanes land.

Overview
Introduces a React parity harness for @octanejs/tanstack-router: react-parity.json, UPSTREAM.md, test-classifications.json, and an adapted-types lane, with provenance pinned to @tanstack/[email protected] and recorded-unverified until pristine upstream suite lanes exist.

Differential tests run shared TSRX fixtures through Octane and compiled React (@tanstack/react-router) for initial render, navigation, and not-found. Framework-contract tests cover plain ref props, native link events, and separate devtools packaging. Differential setup fails closed via extracted fixture-compiler and harness unit tests.

Vitest splits TanStack Router into ordinary conformance shards, a react-parity differential project (with globalSetup), and a Node SSR project—SSR cases are explicitly Octane framework contracts, not React SSR oracles.

Shared binding-classifications-lib replaces hook-form–only classification verification; check.mjs validates any binding with a classification ledger. Binding status, CLI data, and docs refresh the SSR wording and verification date (2026-08-02).

No changes to the runtime router binding.

Reviewed by Cursor Bugbot for commit 97538ab. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 7, 2026 3:57pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:57pm

Request Review

@github-actions github-actions Bot added the test PR: tests only label Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 22:36 Inactive
@leonidaz
leonidaz marked this pull request as draft August 2, 2026 22:37
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 22:37 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:04 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:05 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/tanstack-router-react-parity-harness branch from a7db241 to 760bd8e Compare August 3, 2026 07:46
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:47 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:49 Inactive
Comment thread scripts/react-parity/check.mjs Resolved
Follow the hook-form pattern: tag parity lanes with
testExecution group react-parity, move differential tests into a
dedicated project with globalSetup precompile, and drop per-file
beforeAll compile hooks.
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 7, 2026 15:56 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 7, 2026 15:57 Inactive

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit b0a72db. Configure here.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread packages/tanstack-router/UPSTREAM.md Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 02:20
Address review feedback by splitting adapted Link divergences into a
dedicated file with mixed testExecution.include, moving SSR evidence into
a Node-only tanstack-router-ssr project, and keeping harness setup tests
in ordinary CI.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Parity ownership and Node SSR project feedback addressed; branch merged with main and Bugbot is clean on the current head.

READY FOR REVIEW

"testRoot": "packages/react-router/tests",
"license": "MIT",
"integrity": "sha256:921d54033a68692c3528658b6300573743e6a09bb3c316e14cdc513b6bee6c31",
"verification": "recorded-unverified"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Required lanes never execute: recorded-unverified makes the generic job validate this manifest without run-required. The manifest says the tagged repository has runtime and type suites, yet it supplies neither pristine upstream lanes nor one-for-one adapted suite lanes; npm tarball omission does not waive fetching the canonical tag. The current required runtime, SSR, and type entries are therefore metadata-only despite the package status claiming execution.

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.

recorded-unverified makes the generic job validate this manifest without run-required … supplies neither pristine upstream lanes nor one-for-one adapted suite lanes; npm tarball omission does not waive fetching the canonical tag.

Acknowledged. Ownership cleanup on this head removes the metadata-only adapted divergence/SSR required lanes and updates UPSTREAM.md / status.json so the tarball omission is no longer treated as a waiver. upstreamSuites still correctly reports present for the pinned tag, and provenance.verification remains recorded-unverified until pristine-upstream + one-for-one adapted suite lanes are fetched from 58c005fcb1a0618ec8c5b96b2b5fe3ccab5736c5 and registered.

Needs a call (scope):

  1. Expand this PR to vendor the tagged packages/react-router/tests tree, land required pristine-upstream + one-for-one adapted-octane (and type) lanes, then flip to verified so run-required executes them.
  2. Keep this PR as differential-harness + ownership/currency cleanup, and land the pristine/adapted suite fetch in a follow-up.

Lean: (2) for this PR — the tagged suite is ~30 runtime files plus type tests and is a separate porting track from the differential harness already here. Happy to switch to (1) if you want the suite lanes in #513 before the next review pass.

Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 12:30
Unpaired divergence and SSR framework-contract files stay in ordinary
shards; only the differential project remains parity-owned. Drop the
metadata-only adapted divergence/SSR lanes and stop treating the npm
tarball omission as a waiver for fetching the canonical tag.

Co-authored-by: Cursor <[email protected]>
@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 87cce2f69040 through consolidated PR #699.

@leonidaz leonidaz closed this Aug 12, 2026
kotarotaniguchi0523 pushed a commit to kotarotaniguchi0523/octane that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants