Skip to content

test(cmdk): add React parity harness - #533

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

jonkwheeler wants to merge 47 commits into
octanejs:mainfrom
jonkwheeler:jon/cmdk-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

cmdk now has auditable, binding-local React parity evidence instead of an implicit differential test directory. The harness pins cmdk 1.1.1, checksum-verifies the canonical source and complete Playwright suite, inventories every upstream spec, and keeps the result recorded-unverified because those canonical cases have not yet been adapted exhaustively.

The existing same-fixture React/Octane scenarios are now exact required cases with structured divergence markers. Separate differential and audit projects preserve all ordinary package coverage while making evidence-integrity contracts executable through the generic parity runner.

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 — no runtime or public type implementation changed
  • pnpm test — cmdk projects: 6 files, 59 tests passed; React parity harness: 77 tests passed
  • targeted tests:
    • manifest validation and both required lanes passed
    • 30 vendored files and all seven upstream Playwright specs passed integrity/inventory checks
    • negative control proved a renamed declared 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 seven canonical Playwright specs and their Next.js fixtures are vendored and individually dispositioned, but the current behavioral claim is limited to two repo-authored differential scenarios. This draft also changes shared Vitest integrity; it must be refreshed from the latest base and recomputed after preceding parity-harness PRs merge.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Mostly documentation, test layout, and CI parity metadata; no production API changes beyond existing cmdk port behavior already covered by tests.

Overview
Adds binding-local React parity infrastructure for @octanejs/cmdk: pinned [email protected] upstream ledger (UPSTREAM.md, vendored sources + Playwright specs, check-upstream-ledger.mjs), audit/react-parity.json with declared differential lanes and divergence records, and test-classifications.json so every package test is classified once. Provenance is explicitly recorded-unverified until canonical Playwright cases are adapted.

Evidence and tests: Expands shared differential fixtures and parity cases (force-mount, batcher, asChild, dialog defaultOpen, SSR empty, etc.), wires OCTANE DIVERGENCE markers in implementation sources to case IDs, splits the monolithic command test file into focused suites plus _command-helpers, and hardens differential React precompile (declared fixtures only, cache wiped each run, compile errors fail closed). Dev dependency React for cmdk tests moves to a dedicated catalog:cmdk-react-oracle pin.

Docs and metadata: Updates bindings-status, status.json, CLI octane-data.json, and README to reflect bounded differential evidence, revised divergence wording, and 2026-08-03 verification date. Apollo-client audit lockfile SHA is refreshed in passing.

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

Pin and checksum the canonical cmdk 1.1.1 source and Playwright suite, register bounded differential and audit lanes, and keep unadapted upstream coverage explicit instead of overstating parity.
@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:08am
octane-website-mcp Ready Ready Preview Aug 3, 2026 7:08am

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:42 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 04:43 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:03 Inactive
Comment thread packages/cmdk/audit/react-parity.json Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:36 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:36 Inactive
Comment thread packages/cmdk/audit/react-parity.json Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:47 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:48 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:56 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:08 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:08 Inactive
@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:20
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping cmdk coverage.

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

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

Co-authored-by: Cursor <[email protected]>
Comment thread packages/cmdk/audit/react-parity.json Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

jonkwheeler and others added 2 commits August 10, 2026 11:10
Isolate duplicate-value warnings and dialog portals per runtime, and
drop unauthenticated registration/unscored ledger divergence claims.

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 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 b83b5e0. Configure here.

Comment thread packages/cmdk/audit/react-parity.json Resolved
Align the ledger and differential case with the authenticated React
rethrow vs Octane console.error behavior, not unproven sibling flush work.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Restoring merge currency with origin/main; prior ready signal is void until Bugbot clears the new head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread packages/cmdk/UPSTREAM.md Resolved
Merge origin/main (CommonJS package conditions, parity execution group fix),
resolve react-parity digest conflicts via pnpm sync, and stop claiming the
differential lane pins ref-as-prop behavior without a paired observation.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Checklist:

  • Still draft (not marking GitHub ready-for-review)
  • No unresolved review threads
  • Mergeable/CLEAN vs main after merging origin/main (0965748)
  • Cursor Bugbot completed SUCCESS on current head with no open findings

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Branch is DIRTY vs main (Version Packages #682 + react-parity docs plan). Merging origin/main and refreshing parity digests before re-signaling.

Merge Version Packages (octanejs#682) and react-parity docs plan; regenerate
evals manifest via pnpm sync after conflict resolution.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Checklist:

  • Still draft (not marking GitHub ready-for-review)
  • No unresolved review threads
  • Mergeable/CLEAN vs main after merging origin/main (21fc873)
  • Cursor Bugbot completed SUCCESS on current head with no open findings

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 637152fd47b9 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 READY FOR REVIEW test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants