Repository navigation
test(tanstack-ai): add bounded React parity harness - #507
jonkwheeler wants to merge 19 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
a8eeb42 to
40f26fb
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.
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 5500717. Configure here.
Regenerate lockfile hashes and Vitest evidence for tanstack-ai.
…ss' into jon/tanstack-ai-react-parity-harness
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN Branch is DIRTY vs main; resolving merge conflicts before re-signaling ready. |
Resolve react-parity audit conflicts by keeping the generalized binding classifications path, preserving livestore-specific verifiers, and refreshing vitest.config.js support hashes. Co-authored-by: Cursor <[email protected]>
Keep the React parity harness environment hash aligned with the merged pnpm-lock.yaml. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
…ership Move declared React-parity cases into dedicated conformance/parity files with testExecution.include, and keep differential cases only on the dedicated tanstack-ai-differential project so ordinary shards keep the rest. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Addressed ownership/differential feedback and merged main; Bugbot is clean on the current head. READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React-parity/Vitest setup review only; tests were not run.
| published npm artifact contains source and declarations but omits tests. The | ||
| binding therefore records provenance as unverified rather than claiming a | ||
| pristine-upstream run. Required evidence executes a same-fixture differential | ||
| chat scenario against the pinned React package, exact Octane adaptation and SSR |
There was a problem hiding this comment.
Existing upstream suite is not executable evidence: UPSTREAM.md acknowledges the canonical Vitest suite but only says provenance is unverified; there is no complete artifact disposition, pristine lane, or one-for-one adapted lane. The binding parity rules require the pinned suite to run unchanged and its React-facing cases to be ported/crosswalked. Add that evidence rather than substituting one bounded local differential plus Octane contracts.
There was a problem hiding this comment.
Add that evidence rather than substituting one bounded local differential plus Octane contracts.
Agreed — inventory alone is not executable evidence. I inventoried every packages/ai-react/tests artifact at the pin in audit/upstream-suite-artifacts.json and demoted the Octane-only substituted lanes, but closing this thread still requires vendoring the pinned suite and registering pristine / one-for-one adapted lanes (or specific per-case incompatibility reasons).
Needs a call before I expand scope on this PR:
- Keep this PR as differential-only + inventory (recorded-unverified), and open a follow-up for pristine/adapted upstream execution.
- Expand this PR now to vendor
packages/ai-react/testsat9ca37065…and land executable pristine + adapted lanes.
Lean: (1) — the false-oracle demotions and run-required routing are already landed; pristine/adapted is a distinct porting effort.
Address leonidaz feedback by routing the generic harness on required executable lanes, keeping only the differential project under react-parity, and moving Octane-only adaptation/SSR/type contracts back to ordinary shards. Inventory the pinned upstream suite disposition without claiming pristine execution yet. Co-authored-by: Cursor <[email protected]>
Resolve react-parity conflicts by keeping selectHarnessAction routing and refreshing vitest.config.js evidence hashes. Co-authored-by: Cursor <[email protected]>
Keep selectHarnessAction and Solana type verification together, and refresh vitest evidence hashes left conflicted in the merge commit. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
TanStack AI now has a bounded React parity contract pinned to the official
@tanstack/[email protected]release tag and commit. The manifest registers exact streamed-chat differential evidence, consumer-facing adaptation and SSR cases, the checked hook type contract, and a classification for every local runtime test.The npm artifact omits the canonical upstream Vitest suite, so provenance remains truthfully
recorded-unverified. The global audit now executes required lanes for that state and validates classification ledgers generically instead of allowing recorded bindings to remain metadata-only.Validation
pnpm format:checkpnpm typecheckpnpm testuseAudioRecorderresultsRisk / follow-ups
The canonical tagged repository contains runtime tests, but the published package omits them. A future verified lane must vendor and authenticate that suite rather than promoting this manifest based only on adapted evidence.
Post-Deploy Monitoring & Validation
No operational monitoring is required because this changes repository audit/test infrastructure and a type-equivalent hook signature, not deployed runtime behavior. During the PR validation window, watch the React parity, TanStack AI, typecheck, and generated-output CI checks. Healthy signal: all declared lanes execute, 146 package tests pass, and stable/canary counts remain 5,345/5,413. Failure signal: any required lane is skipped, any evidence hash drifts, or the
useAudioRecordertype assertions fail; mitigation is to revert or repair the manifest/evidence pair before merge. Owner: PR author.Provenance
agent-authored)Note
Low Risk
Changes are test infrastructure, audit metadata, and a type-equivalent hook signature refactor; no production runtime or auth paths are modified.
Overview
Adds a bounded React parity contract for
@octanejs/tanstack-aipinned to@tanstack/[email protected], includingreact-parity.json, upstream inventory, per-test classifications, andUPSTREAM.md. Provenance staysrecorded-unverifiedbecause the npm tarball omits the repo Vitest suite; the manifest still runs the required streamed-chat differential lane (tanstack-ai-differentialVitest project,react-paritygroup).CI / audit behavior changes so parity jobs run required lanes whenever they exist, not only when provenance is
verified(selectHarnessAction). Port test classification checks are generic per binding (not hook-form-only) and run for any package withaudit/test-classifications.json.Conformance tests for documented Octane divergences move under
tests/conformance/parity/; differential setup compiles a singleparity.tsrxfixture.useAudioRecorderis refactored to a single generic overload with default transform typing; typetests cover default vs transformed output. Docs,status.json, and CLI binding data reflect 145 runtime + 1 SSR tests and refreshed evidence hashes (vitest.config.jsincluded in parity manifests).Reviewed by Cursor Bugbot for commit ca4a825. Bugbot is set up for automated code reviews on this repo. Configure here.