Repository navigation
test(tanstack-form): add bounded React parity harness - #511
jonkwheeler wants to merge 26 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
8349266 to
1b90e1f
Compare
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.
…ct-parity-harness
Address leonidaz feedback by routing available required lanes through run-required, owning the adapted upstream wrappers under react-parity, and leaving Octane-only divergences/SSR in ordinary shards. Pristine repository-suite lanes remain open follow-up before verified provenance. Co-authored-by: Cursor <[email protected]>
Resolve vitest.config.js evidence hashes and keep selectHarnessAction routing alongside solana-react type verification from main. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Addressed maintainer ownership/execution feedback, merged main, and cleared the Bugbot finding on the current head. READY FOR REVIEW |
Split StrictMode-adapted and repository-only regressions out of react-parity ownership so faithful adapted wrappers remain the only parity-owned evidence. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
SSR is ordinary Octane-only evidence, so the stale @parity-case tag must not claim a react-parity lane that this PR removed. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React-parity/Vitest conformance re-review only; tests were not run.
| - npm tarball SHA-256: `db24c9288d56428e8f67742ca9e0fcf314917c21c8d8d4ff095aee8043602606` | ||
|
|
||
| The canonical tagged repository contains runtime and compile-time suites. The | ||
| published npm artifact contains source and declarations but omits those tests, |
There was a problem hiding this comment.
This still defers a required deliverable. The npm archive omitting tests is explicitly not an exemption: fetch the complete runtime/type suites from this canonical tagged repository, vendor and run the pristine lanes, adapt or disposition every file/case one-for-one, and add the required structural inventories and negative controls. Bounded adapted/differential evidence cannot replace that suite-level proof.
There was a problem hiding this comment.
Bounded adapted/differential evidence cannot replace that suite-level proof.
Agree this is the binding gap. Expanding this PR into full pristine runtime/type suite vendoring (hook-form/livestore shape) is a parity-scope call beyond the bounded harness this branch was opened for. Leaving this open for a maintainer decision on whether to expand here or track as follow-up before verified provenance.
Options:
(a) Expand this PR to vendor the tagged repository suites, add pristine lanes, one-for-one dispositions, inventories, and negative controls.
(b) Keep the bounded harness as interim evidence and track suite-level proof as explicit follow-up before promoting provenance.
Lean: (a) if this binding must clear the same gate as hook-form/livestore before merge; otherwise (b) with a hard follow-up issue.
| "sha256": "5d18b502d695f01378454bd2957bea590d931e1f1bd8a57c27f2702476547e9e" | ||
| }, | ||
| { | ||
| "path": "packages/tanstack-form/tests/conformance/createFormHook.test.ts", |
There was a problem hiding this comment.
This lane hashes only the two-line wrapper while the actual assertions and scenarios live in tests/_fixtures/upstream/*.tsrx, none of which are manifest support files or structurally compared with the pinned originals. Those bodies can drift while the claimed evidence hashes stay current. Inventory/hash every adapted fixture, map its assertion groups to the vendored pristine file under an explicit transformation ledger, and add deleted/renamed/skipped assertion negative controls.
There was a problem hiding this comment.
Inventory/hash every adapted fixture, map its assertion groups to the vendored pristine file under an explicit transformation ledger, and add deleted/renamed/skipped assertion negative controls.
Valid, and it requires the vendored pristine originals from the suite-level thread. Without that pin under upstream/, a fixture ledger would still have nothing authoritative to map against. Leaving open alongside the suite-vendoring decision so we do not invent a half ledger.
There was a problem hiding this comment.
Inventory/hash every adapted fixture, map its assertion groups to the vendored pristine file under an explicit transformation ledger, and add deleted/renamed/skipped assertion negative controls.
Partial interim: pinned sha256 evidence for the four adapted TSRX fixtures on the tanstack-form-adapted-upstream lane so fixture body drift fails integrity. Still does not add the transformation ledger / negative controls / pristine mapping — that remains blocked on the suite-vendoring decision in the UPSTREAM.md thread.
Record the supported pin and React oracle versions, classify the two-line wrappers as adapted-upstream-suite in the generic verifier, and keep the type-contract lane optional until suite-level type parity exists. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
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 f1e57c4. Configure here.
Pin the TSRX assertion fixtures used by the adapted-upstream lane so fixture drift cannot leave claimed evidence hashes unchanged, and refresh lockfile integrity after merging main. Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
TanStack Form now has bounded, executable React-parity evidence instead of relying on the presence of differential tests alone. The manifest pins
@tanstack/[email protected], authenticates exact cases and support files, classifies every local test, and keeps the claim truthfullyrecorded-unverifiedbecause the published artifact omits the canonical upstream suites.The repository-wide audit now executes every available required lane for both verified and recorded-unverified bindings. Its negative controls prove a required-lane failure propagates, while TanStack Form directly exercises differential interactions, documented divergences, SSR, and adapted type contracts.
Session-settled decisions carried from planning: use one master ledger with one PR per binding (user-approved); treat evidence cohorts as triage rather than conclusions; default incomplete retrofits to recorded-unverified; keep evidence binding-local; and make available required lanes fail CI regardless of verification status.
Validation
pnpm format:check(not run repository-wide; changed files were formatted with the installed Prettier binary)pnpm typecheck(covered by the manifest's adapted type lane; repository-wide typecheck not run)pnpm test(targeted package and harness suites used instead)Risk / follow-ups
recorded-unverified; the manifest does not claim pristine upstream runtime or type-suite verification.Post-Deploy Monitoring & Validation
No additional operational monitoring required. This PR changes test evidence, metadata, generated inventories, and CI verification behavior only; CI is the production signal. Treat any required parity-lane failure, stale generated output, or marker error as a rollback/mitigation trigger during the PR and first main-branch run. Validation owner: binding maintainer, through the first completed main-branch CI run.
Provenance
agent-authored)Note
Low Risk
Changes are limited to tests, audit metadata, Vitest/CI wiring, and docs; no published adapter runtime or API surface is modified.
Overview
Adds bounded React-parity evidence for
@octanejs/tanstack-form: a manifest pins@tanstack/[email protected], inventories 73 adapted upstream runtime cases, classifies every local test, and wires required differential and adapted-upstream Vitest lanes (optional adapted-types). Provenance staysrecorded-unverifiedbecause pristine upstream suites are still follow-up; bindings docs, CLI data, andUPSTREAM.mdreflect that.CI and audit behavior now run all available required manifest lanes via
selectHarnessAction, not only when provenance isverified. Port test-classification checks are generalized to any binding withtest-classifications.json. Vitest splits TanStack Form react-parity conformance (four upstream wrapper projects) from ordinary shards (StrictMode divergences, repo regressions, SSR).Other bindings pick up manifest hash refreshes and formatting-only parity JSON tweaks; hook-form classifications move to the shared binding helper.
Reviewed by Cursor Bugbot for commit 3029d56. Bugbot is set up for automated code reviews on this repo. Configure here.