Skip to content

test(radix): add React parity harness - #535

Closed
jonkwheeler wants to merge 24 commits into
octanejs:mainfrom
jonkwheeler:jon/radix-react-parity-harness
Closed

jonkwheeler wants to merge 24 commits into
octanejs:mainfrom
jonkwheeler:jon/radix-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Radix now has binding-local, auditable React parity evidence for the exact unified [email protected] release. The harness pins release commit eb8b851619a655e278c819b959be0d3924b0ada8, vendors and checksum-authenticates the complete 61-package transitive boundary (452 files, including 207 source files and 38 canonical runtime tests), and keeps the result recorded-unverified because the canonical suites are preserved but not adapted in full.

All 16 existing same-fixture differential cases are now exact required cases. Separate ordinary, differential, and audit projects prevent framework-only tests from being counted as React parity, while audit contracts make the Slot descriptor and ref-as-prop adaptations structured and executable.

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 check passed; vendored upstream bytes remain checksum-exact
  • Radix ordinary project: 21 files, 113 tests passed
  • Radix parity projects: 2 files, 19 tests passed
  • manifest validation and both required lanes passed
  • 61-package / 452-file upstream ledger passed byte and inventory verification
  • negative control proved a renamed differential case fails validation
  • 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. The 38 canonical upstream tests are preserved as provenance but are not adapted or executed by Octane. The 16 jsdom differential cases do not exhaustively prove portals, focus management, pointer geometry, observers, SSR, hydration, or every upstream primitive behavior. The draft also changes shared Vitest integrity and must be refreshed after preceding parity-harness PRs merge.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Documentation and test/audit infrastructure only; runtime Radix behavior is unchanged. Main effect is honest verification status and a large vendored upstream snapshot in the repo.

Overview
Introduces binding-local React parity evidence for @octanejs/radix against pinned [email protected], and tightens public claims so the package is surface-present and recorded-unverified rather than “complete” parity.

The harness vendors the full transitive upstream tree under packages/radix/upstream/ with SHA256SUMS, documents the pin in UPSTREAM.md, and adds check-upstream-ledger.mjs plus audit/export-crosswalk.json, audit/react-parity.json, and audit/test-classifications.json so package graph, bytes, root exports, and test lanes stay aligned. tests/parity/contracts.test.ts runs the ledger checker and keeps Slot/ref divergences explicit; the 16 differential cases in parity.test.ts gain @parity-case IDs and a more reliable settleRaf helper. Pristine/adapted type smokes land under typetests/. status.json, docs/bindings-status.md, packages/cli/.../octane-data.json, and README.md are updated to match the new verification story (16 bounded differentials; 38 canonical upstream tests preserved but not adapted).

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

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:06 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 05:06 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 06:29
@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:48 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:49 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:57 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:57 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:12 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:13 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 10:27
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 11:17
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 7, 2026 18:23
jonkwheeler and others added 4 commits August 7, 2026 15:21
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping radix coverage.

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

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

Co-authored-by: Cursor <[email protected]>
@jonkwheeler
jonkwheeler marked this pull request as draft August 7, 2026 19:49
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping radix coverage.
Regenerate lockfile hashes and inventory for radix.
Regenerate lockfile hashes and inventory for radix.
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Missing test classification entry

Fixed in 7faa7eab2: added packages/radix/tests/production-bundle.test.ts to test-classifications.json as octane-only-framework-contract, satisfying radix-controls.test.mjs completeness.

Comment thread packages/radix/audit/react-parity.json Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Stale shared parity integrity pins

Fixed: refreshed packages/radix/audit/react-parity.json lockfileSha256 via generate-lockfile-integrity.mjs to match the post-merge workspace lockfile.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Bugbot clean on current head; branch merged with main and mergeable.

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.

Scoped review: documented React parity rules and root Vitest ownership only. Tests were not run, as requested.

}
},
"adaptedRuntimeSummary": {
"inventoryEntries": 0,

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 confirms that none of the 38 canonical runtime test files has been adapted (inventoryEntries: 0). Vendoring those files is provenance, not executable parity evidence: the repository rules require running the pinned upstream suite and porting it case-by-case while preserving assertions and recording concrete incompatibilities individually. Please add pristine React execution where feasible and an adapted Octane lane; the 16 repo-authored differential scenarios do not replace the upstream 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 confirms that none of the 38 canonical runtime test files has been adapted (inventoryEntries: 0).

Agreed this is still the gap. This pass landed the export crosswalk, type lanes, audit-group ownership, and deterministic rAF settle — but adapting all 38 vendored Vitest suites into pristine React + adapted Octane lanes (with inventory and per-case incompatibilities) is a larger porting slice than I want to rush into this draft.

Options:

  1. Keep this PR as the harness/ledger/type/differential foundation and open a follow-up for the pristine+adapted runtime suite.
  2. Expand this PR now to scaffold those lanes and start adapting case-by-case until inventory is non-zero / verified.

Lean: (1) so this draft stays reviewable and the suite port gets its own focused validation. Happy to take (2) if you want the suite work on this branch before READY.

Comment thread packages/radix/audit/react-parity.json Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 5 commits August 8, 2026 22:07

@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 2 potential issues.

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 63c5793. Configure here.

Comment thread packages/radix/audit/react-parity.json Resolved
Comment thread packages/radix/audit/react-parity.json Resolved
@leonidaz

Copy link
Copy Markdown
Collaborator

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