Skip to content

test(tanstack-pacer): add React parity harness - #537

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

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

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

TanStack Pacer now has an auditable React parity harness pinned to @tanstack/[email protected] and tag commit a894009100aeb373965d4121eb92a1af634af012. The PR vendors and checksum-authenticates the complete 52-file adapter package, accounts for all 16 published entrypoints, and verifies that the tagged repository contains no adapter runtime test suite and no dedicated type assertions.

A new same-fixture, real-timer differential executes debounce expiry, leading/trailing throttling, size-triggered batching, and cancellation of pending work during teardown against both the Octane and pinned React adapters. With no pristine upstream runtime suite, the result remains recorded-unverified.

Session-settled decisions carried from planning: one master ledger with one PR per binding (user-approved); incomplete retrofits default to recorded-unverified; binding-local evidence takes priority; available required lanes fail CI regardless of verification status.

Validation

  • scoped Prettier and test-marker checks passed; vendored bytes remain checksum-exact
  • package project: 1 file, 7 tests passed
  • differential and audit projects: 2 files, 3 tests passed
  • package typecheck passed
  • manifest validation and every required lane passed
  • 52-file upstream ledger and 16-entrypoint crosswalk checks passed
  • negative control proved a renamed differential case fails validation
  • generated binding, CLI, package, and eval inventories are current
  • repository-wide React parity audit passed: stable React 5,345 tests and canary React 5,413 tests

Risk / follow-ups

This intentionally remains recorded-unverified. Upstream provides no adapter runtime suite, and the representative scheduler lifecycle does not exhaustively prove every sync/async hook family, provider, render-prop subscription, state/value helper, or option combination. The draft changes the lockfile and shared Vitest integrity and must be refreshed after preceding parity-harness PRs merge.

The pinned upstream README contains intentional trailing whitespace; it remains byte-exact and is covered by SHA256SUMS rather than formatter output.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Mostly test harness, docs, and checksum metadata; runtime API behavior is unchanged aside from parity coverage and differential rig timing fixes.

Overview
Adds an auditable React parity harness for @octanejs/tanstack-pacer pinned to @tanstack/[email protected]: adapted Octane scheduler lifecycle tests, a same-fixture differential lane against the React adapter (debounce, throttle, batching, teardown, useDebouncedValue), and react-parity.json / audit inventory wiring. Public binding status moves from Complete to surface-present with provenance recorded-unverified because upstream ships no adapter runtime suite.

CI and shared test infra: root bindings:typecheck now includes packages/tanstack-pacer/typetests/octane-only. The shared differential rig (packages/octane/tests/differential/_rig.ts) advances Vitest fake timers so Octane/React HTML parity steps settle under fake timers.

Metadata churn: lockfile and vitest.config.js digest updates propagate through many react-parity.json files, eval train manifests, and octane-data.json / docs/bindings-status.md.

Reviewed by Cursor Bugbot for commit 888072a. 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 7:15am
octane-website-mcp Ready Ready Preview Aug 3, 2026 7:15am

Request Review

@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-mcp August 3, 2026 05:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 05:28 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 06:30
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 06:30
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:51 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:56 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:13 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:15 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 10:26
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 11:18
jonkwheeler and others added 9 commits August 7, 2026 15:22
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping tanstack-pacer coverage.

Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for tanstack-pacer.

Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping tanstack-pacer coverage.

Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for tanstack-pacer.

Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping tanstack-pacer coverage.
Regenerate lockfile hashes and inventory for tanstack-pacer.
Resolve inventory and root scripts while keeping tanstack-pacer coverage.
Regenerate lockfile hashes and Vitest evidence for tanstack-pacer.
TypeScript wildcards surface sibling .tsrx.d.ts stubs, so membership now
follows include/exclude for authored .tsrx sources instead of accepting the
declaration substitute alone.

Co-authored-by: Cursor <[email protected]>
configSelectsPath no longer treats a missing include as **/* when files
alone defines the program roots, so mapped .tsrx sources cannot pass via
sidecar stubs listed in files.

Co-authored-by: Cursor <[email protected]>
jonkwheeler and others added 2 commits August 10, 2026 12:44
Include the full adapted inventory in the files-only tsconfig and only
swap PacerProvider.tsrx for its .d.ts sidecar so the assertion targets
that fail-open path.

Co-authored-by: Cursor <[email protected]>
Align vitest.config.js and differential _rig.ts support digests across
binding manifests after the main merge moved those shared files.

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

Copy link
Copy Markdown
Contributor Author

Merge currency restored (origin/main merged), Bugbot findings on the new head resolved, and Cursor Bugbot completed cleanly on the current SHA with no unresolved threads.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is DIRTY against main; restoring merge currency.

REVIEW WITHDRAWN

jonkwheeler and others added 2 commits August 10, 2026 13:50
Resolve foreign react-parity and eval manifest conflicts in favor of main,
then refresh shared vitest.config.js and differential _rig.ts evidence digests.

Co-authored-by: Cursor <[email protected]>
Align foreign package react-parity lockfileSha256 digests with this
branch's pnpm-lock.yaml after resolving the origin/main merge.

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 bf88e5f. Configure here.

With absent upstream runtime evidence and insufficient types, verified
overstated the representative scheduler-lifecycle coverage. Align the
manifest, ledger, status, and contracts with recorded-unverified.

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

Copy link
Copy Markdown
Contributor Author

Merge currency restored (origin/main merged), Bugbot finding on overstated verification fixed, and Bugbot completed clean on the current head with no unresolved threads.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is BEHIND main; restoring merge currency.

REVIEW WITHDRAWN

Restore tanstack-pacer recorded-unverified bindings text and sync
eval/cli generated outputs after update-branch incorporated main.

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

Copy link
Copy Markdown
Contributor Author

Branch currency restored via update-branch (CLEAN), pnpm sync refreshed generated docs after main merge, Cursor Bugbot SUCCESS on current head, no unresolved threads.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

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

2 participants