Skip to content

test(nuqs): add React parity harness - #528

Closed
jonkwheeler wants to merge 59 commits into
octanejs:mainfrom
jonkwheeler:jon/nuqs-react-parity-harness
Closed

jonkwheeler wants to merge 59 commits into
octanejs:mainfrom
jonkwheeler:jon/nuqs-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • pin Nuqs v2.9.1 provenance and add a fail-closed same-fixture React/Octane differential
  • authenticate all four documented integration divergences with exact executed cases
  • add dedicated Node server and adapted type lanes plus binding-wide classifications

Verification

  • Nuqs project: 7 files, 29 tests passed
  • Nuqs server project: 1 file, 1 test passed
  • All four manifest lanes passed through the parity harness
  • Global React parity audit passed (stable: 5,345 cases; canary: 5,413 cases)

Review gate

This PR intentionally opens as a draft. Keep it in draft until CI and Cursor review feedback have settled and all actionable feedback is addressed.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Changes are mostly tests, audit manifests, and CI/Vitest wiring; no production nuqs runtime behavior is altered in this diff.

Overview
Adds a fail-closed React parity harness for @octanejs/nuqs (nuqs v2.9.1): provenance in UPSTREAM.md, react-parity.json (manifest still recorded-unverified), test classifications, and synced status/docs/CLI metadata with tighter divergence and SSR wording.

Evidence lanes: a same-fixture differential (TSRX fixtures compiled to React via _setup / fixture-compiler, compared with mountDifferential); pristine vs adapted public-API typetests with hashed inventories and verifyNuqsTypes; a dedicated Node nuqs-ssr project for the react-free server entry; and conformance tests that bind the four documented divergences via @parity-case / OCTANE DIVERGENCE markers (RSC cache check moved out of core conformance into parity/rsc-cache.test.ts).

Tooling: binding-classifications-lib gains configurable discoveryRoots and runs for every binding with a classifications file; parity harness accepts conformance: case ids for divergences; global react-parity/check.mjs wires verifyNuqsTypes; Vitest splits nuqs into ordinary, differential (react-parity group), and SSR projects. Many packages only refresh vitest.config.js SHA pins in audit JSON.

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

@vercel

vercel Bot commented Aug 3, 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 3, 2026 8:09am
octane-website-mcp Ready Ready Preview Aug 3, 2026 8:09am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 02:27 Inactive
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 3, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 02:27 Inactive
Comment thread packages/nuqs/status.json Resolved
Comment thread packages/nuqs/status.json Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:33 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:33 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/nuqs-react-parity-harness branch from 3fbeaeb to 1aac4c9 Compare August 3, 2026 08:07
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 08:08 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 08:09 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 08:30
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 08:49
Comment thread scripts/react-parity/check.mjs Resolved
Comment thread packages/nuqs/typetests/tsconfig.json 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.
Comment thread vitest.config.js Resolved
Comment thread packages/nuqs/audit/react-parity.json Resolved
Comment thread packages/nuqs/audit/react-parity.json Resolved
Comment thread scripts/react-parity/nuqs-types-lib.mjs Resolved
jonkwheeler and others added 2 commits August 10, 2026 11:03
Verify both pristine and adapted tsconfigs select the inventoried
.type-d.ts probes, and reject an emptied include mutation.

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

Copy link
Copy Markdown
Contributor Author

Addressed leonidaz type-lane membership feedback (exact tsconfig program membership + emptied-include mutation), merged origin/main, and confirmed Cursor Bugbot SUCCESS on the current head with no unresolved threads.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merging origin/main to clear conflicts; prior ready signal no longer applies.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merge conflicts with main resolved; Cursor Bugbot completed on the current head with no unresolved findings.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merging origin/main to clear conflicts; prior ready signal no longer applies.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merge conflicts with main resolved; Cursor Bugbot completed on the current head with no unresolved findings.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Branch is BEHIND main; withdrawing readiness while updating branch.

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

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 84846b1. Configure here.

Comment thread scripts/react-parity/nuqs-types-lib.mjs Resolved
Stop filtering compiler-selected pristine paths out of adapted type
membership checks so widened tsconfig includes cannot pass silently.

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

Copy link
Copy Markdown
Contributor Author

Merged main via update-branch, fixed Bugbot finding on adapted type membership (ecc0bd0), and Bugbot is clean on the current head.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit ad10c113c4db 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

agent-authored Diff or issue body substantially produced by an AI agent READY FOR REVIEW REVIEW COMPLETE test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants