Skip to content

test(aria): add React parity harness - #531

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

jonkwheeler wants to merge 22 commits into
octanejs:mainfrom
jonkwheeler:jon/aria-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Aria's existing React compatibility claims are now bounded by executable, fail-closed evidence instead of relying on the package's broad historical test suite. The retrofit records the coordinated React Spectrum pin, accounts for all 1,294 public exports and 185 upstream test artifacts, and runs representative React/Octane differentials plus documented divergence contracts through the repository-wide parity job.

The export ledger deliberately reports 767 symbols as surface-present-unverified, not behaviorally verified, and leaves 527 explicit gaps. Differential preparation now runs only in a dedicated React-parity Vitest project, so ordinary package shards do not repeat or inherit its fixture compilation.

Validation

  • Scoped Prettier check
  • pnpm typecheck — not run; the change is parity metadata, tests, and test infrastructure
  • pnpm test — replaced by the focused package and repository parity gates below
  • Aria ordinary projects: 41 files, 336 tests passed
  • Aria differential project: 8 files, 37 tests passed
  • All three required Aria manifest lanes passed
  • React parity control-plane tests: 81 tests passed
  • Repository-wide React parity audit passed, including Hook Form full-suite/type lanes
  • pnpm sync

pnpm ci:workflow:test has one local Node 22 failure because an existing workflow test imports packages/three/src/config.ts directly; the repository's CI contract runs on Node 24. The other 17 workflow tests passed locally.

Risk / follow-ups

  • This remains recorded-unverified: the canonical React Spectrum runtime and type suites are inventoried but not vendored or adapted case-by-case.
  • The crosswalk validates the exact clean upstream commit and live Octane entry-point surface, but surface presence is not a behavioral parity claim.
  • No additional operational monitoring required; this changes test/audit infrastructure and generated compatibility metadata, not production runtime behavior. Validation owner: PR author during review; rollback trigger: any parity, package, or shard-ownership regression.

Provenance

  • An agent produced this diff (agent-authored)

Compound Engineering


Note

Low Risk
Documentation and test/audit infrastructure only; binding remains explicitly recorded-unverified with no production runtime changes.

Overview
Adds fail-closed React parity evidence for @octanejs/aria: an upstream ledger (UPSTREAM.md), audit/react-parity.json (pinned React Spectrum commit, differential lane inventory with SHA-256 case fingerprints, recorded-unverified status), and audit/test-classifications.json (which tests count as differential vs Octane-only contracts).

docs/bindings-status.md reformats @octanejs/aria known divergences into stable IDs (native-input-event-wiring, ref-as-prop, valid-hoisted-identifiers, server-rtl-direction) and bumps scope/evidence last checked to 2026-08-02. No Aria runtime or component behavior changes—compatibility claims are now bounded by the repo-wide parity job and a dedicated differential Vitest project instead of implying full upstream suite execution.

Reviewed by Cursor Bugbot for commit be58a8d. 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:15am
octane-website-mcp Ready Ready Preview Aug 3, 2026 8: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 03:39 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 03:39 Inactive
Comment thread packages/aria/audit/react-parity.json Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 04:27 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 04:28 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:04 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:05 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/aria-react-parity-harness branch from 5b3c222 to 7d157ae Compare August 3, 2026 08:12
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 08:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 08:15 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 08:30
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 08:48
jonkwheeler and others added 2 commits August 7, 2026 15:19
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping aria coverage.

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

Co-authored-by: Cursor <[email protected]>
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping aria coverage.
Regenerate lockfile hashes and inventory for aria.
Regenerate lockfile hashes and inventory for aria.
Comment thread packages/aria/audit/react-parity.json Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Wrong Aria lockfile digest

Fixed in 67672e4d4: refreshed packages/aria/audit/react-parity.json lockfileSha256 to match the post-merge pnpm-lock.yaml via generate-lockfile-integrity.mjs, aligning with hook-form and react-map-gl.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

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

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is CONFLICTING with main again after newer main commits landed; withdrawing readiness until currency is repaired and Bugbot is clean on the new head.

REVIEW WITHDRAWN

Resolve react-parity check conflict by keeping binding classifications and main's livestore verifiers, classify Aria package-boundary tests, and refresh stale evidence digests.

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

Copy link
Copy Markdown
Contributor Author

Merged latest main (conflict in scripts/react-parity/check.mjs resolved), refreshed Aria classifications / parity digests, and Bugbot is clean on 6524501a3.

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 packages/aria/audit/react-parity.json Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 02:53
Address review feedback: drop Octane-only adapted/ssr lanes from the
parity job, keep only the differential project ownership, and stop
presenting crosswalk/divergence contracts as completed suite evidence.

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

Copy link
Copy Markdown
Contributor Author

Addressed leonidaz review: differential-only React-parity ownership, Octane-only contracts back in ordinary shards, main merged with refreshed vitest.config.js hashes. Bugbot clean on current head; merge state CLEAN.

READY FOR REVIEW

"testRoot": "packages/react-aria/test; packages/react-aria-components/test; packages/react-stately/test",
"license": "Apache-2.0",
"integrity": "sha256:dcad3293f0f7438705f72cdd7df03351476aeaba7d0d2743c7ad6d8130aff56f",
"verification": "recorded-unverified"

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.

recorded-unverified provenance makes the generic React parity job validate this manifest without executing any required runtime, differential, browser, or type lane it declares. Please complete provenance verification so every available required lane is actually executed.

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.

recorded-unverified provenance makes the generic React parity job validate this manifest without executing any required … lane it declares. Please complete provenance verification so every available required lane is actually executed.

On this branch that execution gap is already closed: scripts/react-parity/check.mjs always runs run-required for every binding manifest (including recorded-unverified), covered by check-lib.test.mjs. Aria’s only available required lane today is aria-runtime-differential, and that path is what the generic job executes.

Flipping provenance.verification to verified while keeping upstreamSuites.runtime/types: present is a different, larger call — harness validation then requires full pristine-upstream + adapted-octane + pristine/adapted type lanes for those present suites (or we reclassify suites as absent and add inertia-style repo-authored adapted/type lanes). The PR deliberately stayed recorded-unverified after the prior review so we do not overclaim completed suite evidence.

Need a quick align before changing that contract: keep the current always-run + recorded-unverified bound, or expand into verified with the matching lane set?

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

# Conflicts:
#	packages/hook-form/audit/react-parity.json
#	packages/react-map-gl/audit/react-parity.json

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

Comment thread packages/aria/audit/react-parity.json Resolved
jonkwheeler and others added 2 commits August 9, 2026 13:29
Bugbot found run-required -t filtering only the eight declared cases while
aria-differential is wholly parity-owned, leaving the rest unexecuted in CI.
Register every differential identity with matching @parity-case markers.

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 743e32ce7fc5 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