Skip to content

test(zustand): add React parity harness - #521

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

jonkwheeler wants to merge 22 commits into
octanejs:mainfrom
jonkwheeler:jon/zustand-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • record the immutable Zustand 5.0.14 upstream pin, suite disposition, and test classification ledger
  • add exact React/Octane differential, adapted divergence, and public type lanes
  • make fixture compilation fail closed and generalize the repository-wide parity audit to every binding manifest

Verification

  • Zustand Vitest project: 5 files, 21 tests passed
  • all three Zustand harness lanes passed
  • focused parity helper tests passed
  • generated binding status and parity-gap checks passed
  • global React parity audit passed (stable: 5,345 cases; canary: 5,413 cases)

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Changes are test harness, audit metadata, and CI wiring; no runtime changes to the Zustand binding implementation in this diff.

Overview
Adds a recorded-unverified React parity story for @octanejs/zustand against [email protected]: upstream ledger (UPSTREAM.md), react-parity.json lanes (byte-identical differential counter/multistore, adapted public types), and a test-classifications ledger that separates differential evidence from Octane-only conformance (including unstable-selector divergence).

Differential fixture compilation is fail-closed via a shared fixture-compiler and setup tests; parity cases are tagged in parity.test.ts. The unstable-selector case moves out of extras.test.ts into its own conformance file so it stays ordinary CI, not parity-owned evidence.

Repo-wide parity checks now use binding-classifications-lib (binding name parameter) for every package with audit/test-classifications.json, not only hook-form. Vitest splits Zustand into ordinary conformance shards vs a react-parity group for parity.test.ts only.

Collateral updates: Zustand verified date in docs/CLI/status, refreshed user-apps-v1 grader digests, and vitest.config.js checksums in other bindings’ parity manifests.

Reviewed by Cursor Bugbot for commit 391c0f6. 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 7, 2026 3:58pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:58pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 00:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 00: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
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 01:49
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:13 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:14 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/zustand-react-parity-harness branch from b6315fa to adf8dcb Compare August 3, 2026 07:56
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:58 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:58 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
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:57 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 7, 2026 15:58 Inactive
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

@leonidaz Ready for the READY FOR REVIEW label (staying in draft per CI capacity guidance).

Checklist:

  • Still draft (not marking GitHub ready-for-review)
  • No unresolved review threads
  • Current with main / mergeable (CLEAN)
  • Cursor Bugbot completed on current head with no open feedback

I can't apply labels from the fork — please add READY FOR REVIEW when convenient.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Bugbot findings addressed; branch updated onto main; Cursor Bugbot completed on current head with no unresolved findings.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is no longer merge-clean with main (DIRTY/CONFLICTING). Withdrawing ready signal while currency is repaired.

REVIEW WITHDRAWN

jonkwheeler and others added 2 commits August 8, 2026 21:41
Resolve react-parity conflicts after main landed livestore checks and
shared vitest digest drift; keep binding classifications for zustand/hook-form.

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

Copy link
Copy Markdown
Contributor Author

Merged latest main (resolved react-parity conflicts + refreshed digests/sync). Cursor Bugbot completed on current head with no unresolved findings; still draft and merge-clean.

READY FOR REVIEW

@leonidaz leonidaz left a comment

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.

React parity configuration review.

Comment thread packages/zustand/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:32
Move the unstable-selector divergence into a dedicated file and mark only
that path plus differential/parity.test.ts as parity-owned so ordinary
conformance and setup cases stay in the regular CI shards.

Co-authored-by: Cursor <[email protected]>
The dedicated unstable-selectors file brings the port-authored suite to six
tests; keep the binding classification helper assertion in sync.

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

Copy link
Copy Markdown
Contributor Author

Addressed leonidaz ownership feedback, merged latest main, and cleared the follow-up Bugbot classification-count finding. Cursor Bugbot completed on the current head with no unresolved threads; merge state is CLEAN while staying draft.

READY FOR REVIEW

"testRoot": "tests",
"license": "MIT",
"integrity": "sha256:c1fad9e123a79d12f56b4ef8aece6abd6036df164b01d7ffb52d40b08956e96b",
"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.

recorded-unverified provenance prevents the generic job from executing every required lane. Runtime and types are recorded present, but the required pristine upstream suites and one-for-one adapted copies are not represented. Please verify provenance and add executable paired suite evidence.

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 provenance prevents the generic job from executing every required lane. Runtime and types are recorded present, but the required pristine upstream suites and one-for-one adapted copies are not represented. Please verify provenance and add executable paired suite evidence.

Agreed this blocks accepting the harness as verified parity. This PR was intentionally scoped as a recorded-unverified retrofit (differential + public typetests) and does not yet vendor or execute the pin's pristine/adapted runtime and type suites.

Need a call on scope before I expand the branch:

  • (a) Expand this PR into full verified zustand parity (vendor pin tests, pristine + one-for-one adapted runtime/types, inventories, runners) — multi-day binding work.
  • (b) Keep this PR as the recorded-unverified harness and land verified paired suites in a follow-up.

Lean (a) if you want the generic job to run required lanes before merge; otherwise (b) keeps this PR reviewable as harness scaffolding only.

Comment thread vitest.config.js Resolved
jonkwheeler and others added 3 commits August 9, 2026 12:52
Review feedback: octane-only-divergence coverage must stay in ordinary shards
and cannot serve as adapted React parity evidence.

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

@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 073e6a9. Configure here.

Keep the unstable-selector pin in ordinary shards as framework-contract
coverage, and refresh vitest.config.js evidence hashes after ownership change.

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 8ebd39b466cd 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 test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants