Skip to content

test(base-ui): add React parity harness - #532

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

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

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Base UI now has auditable, binding-local React parity evidence instead of a differential test directory whose scope and upstream relationship were implicit. The harness pins Base UI v1.6.0, checksum-verifies the vendored React-facing source and tests, reconstructs the API crosswalk from that evidence, and records the remaining gaps without claiming full verification.

The required lanes execute the complete 98-test differential suite and 34-test adapted-upstream suite, while focused case mappings tie representative behavior to four structured divergences. Shared harness validation now also runs required lanes for recorded-unverified bindings, so an incomplete parity claim cannot suppress available CI evidence.

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 and upstream suites take priority; available required lanes fail CI regardless of verification status.

Validation

  • pnpm format:check — scoped formatter check passed for every changed non-vendored file; vendored upstream bytes remain checksum-exact
  • pnpm typecheck — not run separately; the Base UI Vitest projects compile the exercised TypeScript surfaces
  • pnpm test — full React parity audit passed: 80 harness tests, stable React 5,345 tests, canary React 5,413 tests
  • targeted tests:
    • Base UI projects: 21 files, 202 tests passed
    • crosswalk and 1,129-file upstream checksum verification passed
    • manifest validation and all required full-suite/focused lanes passed
    • negative controls proved renamed cases and an incorrect upstream commit fail validation

Risk / follow-ups

This intentionally remains recorded-unverified: 34 public surfaces have bounded evidence and nine remain explicit gaps. The repository CI workflow contract test requires the repository's Node 24 toolchain; local Node 22 cannot import its TypeScript dependency directly, so CI is the authoritative result for that one contract.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Mostly audit manifests, vendored checksums, test metadata, and documentation; no runtime behavior changes beyond explicit divergence comments.

Overview
Adds binding-local React parity evidence for @octanejs/base-ui instead of relying on implicit differential-test scope. The pin is @base-ui/[email protected] with vendored upstream bytes (SHA256SUMS), UPSTREAM.md, and audit/upstream-crosswalk.json classifying 35 present vs 8 gap subpaths and 348 upstream test artifacts.

Executable lanes are locked to inventories: 98 same-fixture differential cases (audit/differential-runtime.json) and 49 adapted Accordion/Collapsible/Tabs cases (audit/adapted-runtime.json), plus audit/react-parity.json lanes, four structured divergences (native-event-semantics, ref-as-prop-class-composition, unported-internal-hover, number-field-interaction-gaps) tied to @parity-case / OCTANE DIVERGENCE markers in sources and tests. Scripts regenerate inventories and verify the crosswalk against vendored evidence; tests/parity/contracts.test.ts runs the crosswalk check in CI.

Docs/status (docs/bindings-status.md, status.json) now describe bounded evidence and recorded-unverified (not full upstream suite parity). Coverage is stated as 35/43 subpaths with Tabs at 4/5 (Indicator unported).

Reviewed by Cursor Bugbot for commit b0a73e5. Bugbot is set up for automated code reviews on this repo. Configure here.

Vendor and authenticate the pinned Base UI evidence, execute complete differential and adapted inventories, classify local tests, and keep recorded-unverified bindings runnable through the shared parity audit.
@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:17am
octane-website-mcp Ready Ready Preview Aug 3, 2026 7:17am

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 04:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 04:26 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:31
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:05 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:05 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:15 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:17 Inactive
jonkwheeler and others added 2 commits August 7, 2026 15:20
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping base-ui coverage.

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

Co-authored-by: Cursor <[email protected]>
github-actions Bot and others added 2 commits August 7, 2026 23:07
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Regenerate lockfile hashes and inventory for base-ui.
Merge origin/main and refresh Base UI upstream crosswalk, adapted-runtime,
and test-classifications ledgers for Tabs plus support-root artifact kind.

Co-authored-by: Cursor <[email protected]>
The delay-group test lives outside adaptedRoots.tests and is not counted as React parity evidence per UPSTREAM.md.

Co-authored-by: Cursor <[email protected]>
@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

Fork token cannot apply labels (AddLabelsToLabelable 403) — please add READY FOR REVIEW when convenient.

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

jonkwheeler and others added 3 commits August 8, 2026 21:56
TabsIndicator.test.tsx had no adapted cases and Indicator is unported, so keep it not-adapted and correct the status/ledger counts.

Co-authored-by: Cursor <[email protected]>
Resolve conflicts in react-parity check imports and regenerated eval corpus hashes; refresh evidence digests after the Tabs.Indicator crosswalk correction.

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.

Reviewed for React-parity and Vitest conformance only.

"verification": "recorded-unverified"
},
"upstreamSuites": {
"runtime": "present",

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.

The manifest declares the upstream runtime and type suites present, but it has no pristine upstream runtime lane, no pristine type lane, and no one-for-one adapted type lane. UPSTREAM.md says the pin contains 273 runtime test files and 35 type-test files while only 49 selected adapted cases run. A vendored crosswalk and representative/differential subset do not satisfy the repository rule to execute the pinned suite unchanged and port it case-by-case with inventories and negative controls; add those required lanes instead of describing the selected subset as a full suite.

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.

The manifest declares the upstream runtime and type suites present, but it has no pristine upstream runtime lane, no pristine type lane, and no one-for-one adapted type lane

Agreed this is required — a vendored crosswalk plus the current 49-case adapted/differential subset is not enough. I stopped describing that subset as the pin-wide suite in UPSTREAM/notes, but I have not landed the three missing lanes yet.

What I found blocking a same-PR implementation:

  • Current upstream/ vendors only packages/react (1,129 files). A pristine Vitest run also needs packages/utils, root vitest/test setup, and @mui/internal-test-utils (createRenderer stack).
  • Upstream types use tsgo -b / *.spec.* with a tsconfig graph that is not in the vendor tree today.
  • One-for-one adapted types means porting all 35 specs under tsrx-tsc with inventories + negative controls (hook-form pattern).

Options before I continue:

  1. Land pristine-upstream + pristine-types + adapted-types in this PR (vendor expansion + livestore-style Vitest wrapper + hook-form-style type inventories). Larger change, longer CI.
  2. Split: keep this PR as harness/ownership/currency, open a follow-up that adds the three required lanes before any verified claim.

Lean: (1) if you want this PR to carry the full contract; otherwise (2) and leave this thread open until the lanes exist. I will not mark READY while these lanes are missing.

Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 3 commits August 9, 2026 02:58
Move crosswalk/gap contract tests out of react-parity ownership so only
differential and adapted-upstream projects remain parity-owned, and stop
describing the selected adapted inventory as the full pinned suite.

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

Copy link
Copy Markdown
Contributor Author

Addressed the Vitest ownership/currency feedback from the latest review:

  • Moved parity audit contracts into the ordinary base-ui project (no longer react-parity owned)
  • Merged main and refreshed manifest/config hashes
  • Left the pristine-runtime / pristine-types / adapted-types lane request open — needs a scoped call on in-PR vs follow-up before I can finish that work

@leonidaz

Copy link
Copy Markdown
Collaborator

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

3 participants