Skip to content

test(three): add React parity harness - #529

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

jonkwheeler wants to merge 29 commits into
octanejs:mainfrom
jonkwheeler:jon/three-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • register Three with the repository React parity harness
  • classify all 25 port-authored test files and all 10 documented divergences
  • add differential runtime, adapted divergence, browser OffscreenCanvas, type, and pinned upstream crosswalk evidence
  • generalize classification and required-lane checks for every registered binding

Verification

  • Three manifest validation and all four declared lanes passed
  • classification and parity check unit tests passed
  • global React parity audit passed: stable 5,345 cases; canary 5,413 cases
  • git diff check passed

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Changes are mostly audit metadata, test annotations, and CI routing; Three runtime behavior is unchanged. Low risk aside from ensuring parity/CI jobs stay green after digest and config hash updates.

Overview
@octanejs/three is wired into the repo-wide React parity system: a new react-parity.json manifest pins R3F v9.6.1 provenance and declares differential, adapted-divergence, browser OffscreenCanvas, adapted-types, and upstream-crosswalk lanes, with structured entries for all 10 known divergences.

Port tests gain @parity-case / OCTANE DIVERGENCE[…] markers, plus test-classifications.json (25 files) and adapted-types.json. A upstream-crosswalk Vitest runs the existing checker so 90 exports / 157 upstream tests stay classified.

Docs and status.json / CLI data now list divergences as stable `id`: description keys instead of prose-only bullets. CI runs packages/three/tests/browser/** only on Chromium-capable jobs; shared vitest.config.js and eval grader digests update where parity audits reference that config.

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

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 02:49 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 02:50 Inactive
Comment thread packages/three/status.json Resolved
@jonkwheeler
jonkwheeler force-pushed the jon/three-react-parity-harness branch from d1dbbca to a5ae938 Compare August 3, 2026 03:18
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 03:19 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 03:19 Inactive
Comment thread packages/three/audit/react-parity.json Resolved
Comment thread packages/three/audit/react-parity.json Resolved
Comment thread packages/three/audit/react-parity.json Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:26 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:33 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:34 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:43 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/three-react-parity-harness branch from 40aef2e to ecd867c Compare August 3, 2026 08:10
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 08:11 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 08:11 Inactive
Comment thread .github/workflows/ci.yml Resolved
Comment thread packages/three/audit/react-parity.json Resolved
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.
Comment thread benchmarks/baselines/ratios.json Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Removed duplicate todomvc/row_class_writes_complete25 ratio guard; merged latest main.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged latest main; removed duplicate TodoMVC ratio guard; Bugbot clean on current head.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is DIRTY vs main (merge conflicts). Withdrawing readiness until conflicts are resolved and Bugbot is clean on the new head.

REVIEW WITHDRAWN

jonkwheeler and others added 2 commits August 8, 2026 21:52
Resolve conflicts in hooks.test.ts and react-parity check.mjs while keeping the Three parity harness and livestore audit wiring.

Co-authored-by: Cursor <[email protected]>
Keep react-parity validate-only green by updating merged evidence hashes and accepting livestore's adapted-upstream-suite disposition in the shared classifications checker.

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

Copy link
Copy Markdown
Contributor Author

Merged latest main; refreshed react-parity evidence hashes after the merge; Bugbot clean on current head.

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.

Comment thread .github/workflows/ci.yml Resolved
Comment thread vitest.config.js Resolved
Comment thread packages/three/audit/react-parity.json Outdated
"integrity": "sha256:01177da508a5551b38908e3da7ce51601f140fd35497e3b3daf73af58f75e67c",
"verification": "recorded-unverified"
},
"upstreamSuites": { "runtime": "present", "types": "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.

Both upstream suites are declared present, but this manifest has no pristine upstream runtime lane, no one-for-one adapted full-suite lane/inventory, and no pristine type lane; the registered Octane divergences and repo-authored type matrix are not substitutes. Please run and inventory the pinned R3F suite unchanged, port it case-by-case, run pristine/adapted type suites with the transformation ledger and negative controls, and keep Octane-only divergence/framework-contract tests outside parity ownership.

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.

Both upstream suites are declared present, but this manifest has no pristine upstream runtime lane, no one-for-one adapted full-suite lane/inventory, and no pristine type lane…

Needs a human scope call before this PR can honestly claim readiness.

What you asked for is the full hook-form-style contract for R3F 9.6.1:

  1. pristine upstream runtime lane + inventory (byte-exact R3F suite)
  2. one-for-one adapted full-suite lane/inventory (case-by-case ports)
  3. pristine + adapted type lanes with transformation ledger and negative controls
  4. keep Octane-only divergence/framework-contract tests outside parity ownership (which also means the current adapted-octane / browser evidence shape is not a substitute)

Options:

  • A. Expand this PR into the full pristine/adapted R3F suite port (large; vendoring + inventory + type ledger).
  • B. Split follow-up PRs for pristine runtime, adapted runtime, and type lanes; keep this PR limited to ownership/wiring only after adjusting claims so they do not say upstreamSuites.*.present without those lanes.
  • C. Park Three parity registration until the upstream suite work lands.

Lean: B — do not leave present claims without executable pristine/adapted lanes, and do not try to finish the full R3F suite inside this babysit pass.

Leaving this thread open until you pick a path.

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.

Update after the Bugbot round on 08c177270:

  • Ownership/wiring feedback is addressed (no package-specific Playwright in lint; ordinary three out of parity ownership; differential lane → three-differential; browser not wholly parity-owned).
  • False upstreamSuites: present claim corrected to { runtime: "insufficient", types: "absent" }.
  • Branch merged with main and is CLEAN / MERGEABLE.
  • Still blocked on your scope call for pristine + one-for-one adapted R3F runtime/type lanes. Bugbot’s “Octane-only tests in parity lanes” finding is the same wall: divergence markers currently require those cases to stay on required lanes.

Ready signal withheld until that scope is decided and implemented.

Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 02:48
Remove package-specific Playwright install from lint, keep ordinary three
outside parity ownership, point the differential lane at three-differential,
and narrow three-browser ownership to the OffscreenCanvas parity file.

Co-authored-by: Cursor <[email protected]>
Resolve react-parity evidence hash conflicts and refresh lockfile digests
after bringing in animejs and other main updates.

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 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 49d74d2. Configure here.

Comment thread packages/three/audit/react-parity.json Resolved
Comment thread packages/three/audit/react-parity.json Resolved
Mark runtime as insufficient and types as absent until pristine/adapted
upstream lanes exist, and drop three-browser parity ownership so ordinary
browser framework-contract suites are not wholly parity-owned.

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

Copy link
Copy Markdown
Collaborator

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

4 participants