Repository navigation
test(base-ui): add React parity harness - #532
jonkwheeler wants to merge 26 commits into
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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]>
Regenerate lockfile hashes and inventory for base-ui. Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root package scripts while keeping base-ui coverage.
Regenerate lockfile hashes and inventory for base-ui.
…s#634) * perf: cache stable renderable regions and prune sync warming * fix: preserve uppercase-prefixed custom hook state
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]>
|
@leonidaz Ready for the Checklist:
Fork token cannot apply labels ( |
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 b205cf2. Configure here.
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]>
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]>
|
READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
Reviewed for React-parity and Vitest conformance only.
| "verification": "recorded-unverified" | ||
| }, | ||
| "upstreamSuites": { | ||
| "runtime": "present", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 onlypackages/react(1,129 files). A pristine Vitest run also needspackages/utils, rootvitest/testsetup, 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-tscwith inventories + negative controls (hook-form pattern).
Options before I continue:
- 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.
- Split: keep this PR as harness/ownership/currency, open a follow-up that adds the three required lanes before any
verifiedclaim.
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.
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]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
Addressed the Vitest ownership/currency feedback from the latest review:
|
|
Thank you for your contribution! This pull request was incorporated into |

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-unverifiedbindings, 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-exactpnpm typecheck— not run separately; the Base UI Vitest projects compile the exercised TypeScript surfacespnpm test— full React parity audit passed: 80 harness tests, stable React 5,345 tests, canary React 5,413 testsRisk / 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
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-uiinstead of relying on implicit differential-test scope. The pin is@base-ui/[email protected]with vendored upstream bytes (SHA256SUMS),UPSTREAM.md, andaudit/upstream-crosswalk.jsonclassifying 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), plusaudit/react-parity.jsonlanes, four structured divergences (native-event-semantics,ref-as-prop-class-composition,unported-internal-hover,number-field-interaction-gaps) tied to@parity-case/OCTANE DIVERGENCEmarkers in sources and tests. Scripts regenerate inventories and verify the crosswalk against vendored evidence;tests/parity/contracts.test.tsruns the crosswalk check in CI.Docs/status (
docs/bindings-status.md,status.json) now describe bounded evidence andrecorded-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.