Skip to content

test(tanstack-form): add bounded React parity harness - #511

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

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

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

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 truthfully recorded-unverified because 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)
  • targeted tests:
    • all four required TanStack Form manifest lanes
    • TanStack Form runtime and SSR projects: 10 files, 87 tests passed
    • React parity helper negative controls passed
    • test-marker, bindings-status, CLI-data, and parity-gap checks passed
    • global React parity audit passed after rebase: 5,345 stable and 5,413 canary cases

Risk / follow-ups

  • Provenance remains recorded-unverified; the manifest does not claim pristine upstream runtime or type-suite verification.
  • No published runtime behavior, dependency, or public API changes; no changeset is required.

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

  • An agent produced this diff (agent-authored)

Compound Engineering


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 stays recorded-unverified because pristine upstream suites are still follow-up; bindings docs, CLI data, and UPSTREAM.md reflect that.

CI and audit behavior now run all available required manifest lanes via selectHarnessAction, not only when provenance is verified. Port test-classification checks are generalized to any binding with test-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.

@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:58pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:58pm

Request Review

@jonkwheeler
jonkwheeler marked this pull request as ready for review August 2, 2026 21:40
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 21:41 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 21:41 Inactive
@leonidaz
leonidaz marked this pull request as draft August 2, 2026 22:25
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:05 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:05 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/tanstack-form-react-parity-harness branch from 8349266 to 1b90e1f Compare August 3, 2026 07:43
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:44 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:45 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:58 Inactive
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 7, 2026 17:43
Comment thread vitest.config.js Resolved
@jonkwheeler
jonkwheeler marked this pull request as draft August 7, 2026 19:49
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
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]>
Comment thread packages/tanstack-form/status.json Resolved
jonkwheeler and others added 2 commits August 9, 2026 12:26
Resolve vitest.config.js evidence hashes and keep selectHarnessAction
routing alongside solana-react type verification from main.

Co-authored-by: Cursor <[email protected]>
Comment thread packages/cli/src/data/octane-data.json Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Addressed maintainer ownership/execution feedback, merged main, and cleared the Bugbot finding on the current head.

READY FOR REVIEW

Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 15:49
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]>
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]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

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/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,

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.

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.

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.

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.

Comment thread packages/tanstack-form/UPSTREAM.md Resolved
"sha256": "5d18b502d695f01378454bd2957bea590d931e1f1bd8a57c27f2702476547e9e"
},
{
"path": "packages/tanstack-form/tests/conformance/createFormHook.test.ts",

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.

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.

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.

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.

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.

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.

jonkwheeler and others added 3 commits August 9, 2026 18:15
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]>

@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 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]>
@leonidaz

Copy link
Copy Markdown
Collaborator

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