Skip to content

test(dnd-kit): add React parity harness - #534

Closed
jonkwheeler wants to merge 50 commits into
octanejs:mainfrom
jonkwheeler:jon/dnd-kit-react-parity-harness
Closed

jonkwheeler wants to merge 50 commits into
octanejs:mainfrom
jonkwheeler:jon/dnd-kit-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

dnd-kit now has auditable, binding-local React parity evidence instead of an implicit differential directory. The harness pins @dnd-kit/react 0.5.0, checksum-verifies the complete canonical adapter source, proves that the pinned package directory contains no upstream runtime or dedicated type suite, and keeps the result recorded-unverified because browser drag lifecycles remain broader than the current evidence.

The same-fixture keyboard drag scenario is now an exact required case. Separate differential and audit projects preserve ordinary conformance, hydration, and SSR coverage while executing provenance and structured renderer-adaptation contracts 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 takes priority; available required lanes fail CI regardless of verification status.

Validation

  • pnpm format:check — scoped formatter check passed; vendored upstream bytes remain checksum-exact
  • pnpm typecheck — no runtime or public type implementation changed
  • pnpm test — dnd-kit projects: 7 files, 19 tests passed; React parity harness: 77 tests passed
  • targeted tests:
    • manifest validation and both required lanes passed
    • 31 vendored upstream files passed integrity and public-entrypoint checks
    • 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 canonical adapter has no upstream suite at this pin, and one jsdom keyboard lifecycle cannot prove real pointer geometry, observers, or the complete browser drag lifecycle. 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
Changes are primarily tests, vendored upstream bytes, audit manifests, and documentation; runtime behavior is unchanged aside from parity annotations already describing known adapter divergences.

Overview
Adds binding-local React parity evidence for @octanejs/dnd-kit: pins and checksum-vendors the full @dnd-kit/[email protected] adapter tree, documents absent upstream runtime/type suites, and records parity as recorded-unverified in status.json, UPSTREAM.md, and bindings docs.

Introduces audit/react-parity.json, test classifications, ledger verification (check-upstream-ledger.mjs), a dnd-kit-parity-audit Vitest project, and scripts/react-parity/dnd-kit-controls.test.mjs. The differential lane now runs three declared cases against a pinned React 19.2.7 oracle (dnd-kit-react-oracle catalog): programmatic manager.actions drag lifecycle, static DragOverlay compiled-children equivalence, and explicit OptimisticSortingPlugin default divergence for useSortable. Differential setup is fail-closed and only precompiles declared fixtures.

Wires dnd-kit-differential into the shared react-parity CI group (excluded from sharding). Source gains inline OCTANE DIVERGENCE markers on DragOverlay and useSortable matching the structured divergence ledger.

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

Pin and checksum the complete @dnd-kit/react 0.5.0 adapter source, register bounded differential and audit lanes, and keep browser lifecycle gaps 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:12am
octane-website-mcp Ready Ready Preview Aug 3, 2026 7:12am

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:53 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 04:54 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:48 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:53 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:54 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:59 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:00 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:11 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:12 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 2 commits August 7, 2026 15:21
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping dnd-kit coverage.

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

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 8a2fdc9. Configure here.

Keep core/hooks conformance fixtures out of the React oracle cache so
Octane-only changes there cannot fail-closed the required differential lane.

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

Copy link
Copy Markdown
Contributor Author

Addressed Bugbot: differential setup now compiles only the declared differential.tsrx fixture so conformance fixtures cannot fail-close the required lane.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

jonkwheeler and others added 2 commits August 10, 2026 12:17
Align lockfile and vitest.config.js digests (plus dnd-kit differential
setup) so integrity validation matches the post-merge tree.

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

Copy link
Copy Markdown
Contributor Author

Merging origin/main to clear DIRTY conflicts; previous ready pass is void until Bugbot completes on the new head.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merge currency restored (origin/main merged, evidence digests refreshed). Bugbot completed on current head with no unresolved findings; mergeable CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is DIRTY against main; restoring merge currency via normal origin/main merge.

REVIEW WITHDRAWN

Resolve react-parity vitest.config.js digest conflicts against the
post-merge tree so integrity validation stays current.

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

Copy link
Copy Markdown
Contributor Author

Merged origin/main, resolved react-parity vitest.config.js digest conflicts, and refreshed evidence. Cursor Bugbot completed on the current head with no unresolved findings; merge state is CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is BEHIND main; restoring currency via update-branch. Previous ready pass is void until Bugbot completes on the new head.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch currency restored via update-branch (main merged into head). Cursor Bugbot completed on the current head with no unresolved findings; merge state is CLEAN.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants