Skip to content

test(mantine-hooks): add React parity harness - #480

Closed
jonkwheeler wants to merge 15 commits into
octanejs:mainfrom
jonkwheeler:agent/mantine-hooks-parity-harness
Closed

jonkwheeler wants to merge 15 commits into
octanejs:mainfrom
jonkwheeler:agent/mantine-hooks-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a same-fixture React differential lane for counter, disclosure, and list-state hooks
  • pin Mantine Hooks 9.5.0 source and artifact provenance
  • document the bounded evidence level while preserving the complete-surface claim and native runtime differences

Validation

  • parity manifest validation and mantine-state-differential lane
  • all Mantine Hooks client/SSR tests (19 passing)
  • source and public typetest projects
  • generated bindings status and diff checks

The manifest remains recorded-unverified until pristine upstream suites are vendored and adapted one-for-one.


Note

Low Risk
Test and documentation/metadata only; no production hook implementation changes in this diff.

Overview
Adds React parity evidence for @octanejs/mantine-hooks without changing hook runtime behavior.

A new differential Vitest project (mantine-hooks-differential) runs a shared state-hooks.tsrx fixture through Octane and through React (@tsrx/react compile + import rewrites to @mantine/hooks). The test steps through increment, disclosure open, and list append and asserts both stacks stay in sync. audit/react-parity.json records the lane, file hashes, and upstream pin (@mantine/[email protected], commit + npm integrity); verification stays recorded-unverified because full pristine upstream suites are not vendored yet.

UPSTREAM.md, status.json provenance, and bindings docs bump the verified date to 2026-08-02. package.json wires the differential project into test and adds @tsrx/react for the React-side compile path.

Collateral updates refresh lockfile SHA-256 entries in other parity manifests and the evals train manifest after the lockfile change.

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

@vercel

vercel Bot commented Aug 2, 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 7, 2026 3:58pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:58pm

Request Review

@github-actions github-actions Bot added the test PR: tests only label Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 08:07 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 08:07 Inactive
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.
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 7, 2026 15:57 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 7, 2026 15:58 Inactive
Comment thread vitest.config.js Resolved
Resolve merge conflicts and regenerate binding catalog and parity metadata.
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 3 commits August 8, 2026 10:31
Restore adaptedRoots include regexes, add the differential Vitest project
to the package test script, register @tsrx/react in pnpm-lock.yaml, and
drop react-parity ownership while the manifest stays recorded-unverified.

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

Copy link
Copy Markdown
Contributor Author

Babysit pass complete: resolved Bugbot feedback, merged main, and Bugbot is clean on the current head.

READY FOR REVIEW

@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 0d96f32. Configure here.

jonkwheeler and others added 3 commits August 8, 2026 15:25
Refresh sister react-parity lockfileSha256 values after the lockfile change,
and mark mantine-hooks-differential as react-parity owned.

Co-authored-by: Cursor <[email protected]>
Keep hook-form and react-map-gl react-parity support digests aligned
after marking mantine-hooks-differential as parity-owned.

Co-authored-by: Cursor <[email protected]>
Replace only the vitest.config.js support digests in hook-form and
react-map-gl manifests, preserving existing JSON formatting.

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

Copy link
Copy Markdown
Contributor Author

Babysit pass complete: unresolved Bugbot/review threads addressed on the current head; Cursor Bugbot finished with no open findings.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is no longer merge-clean with main (DIRTY / conflicting). Withdrawing readiness until currency is repaired and Bugbot is clean on the new head.

REVIEW WITHDRAWN

Resolve sister react-parity digest conflicts against the merged
vitest.config.js and pnpm-lock.yaml contents.

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

Copy link
Copy Markdown
Contributor Author

Babysit pass complete: merged origin/main (sister react-parity digest conflicts resolved to post-merge vitest/lockfile hashes), Cursor Bugbot finished on the current head with no open findings, and the PR is merge-clean while remaining draft.

READY FOR REVIEW

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

@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.

"verification": "recorded-unverified"
},
"upstreamSuites": {
"runtime": "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.

This manifest declares both upstream runtime and type suites present, but registers only a single repo-authored differential lane. The parity contract requires a present runtime suite to have required pristine full-suite and one-for-one adapted Vitest lanes/inventories, and a present type suite to have pristine/adapted compiler lanes with assertion inventories, a transformation ledger, and omission/deletion/@ts-expect-error negative controls. UPSTREAM.md explicitly says those suites were not vendored or adapted, so this harness cannot establish the package’s complete-surface claim. Please bring both upstream suites into executable parity evidence rather than leaving the manifest recorded-unverified.

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.

Please bring both upstream suites into executable parity evidence rather than leaving the manifest recorded-unverified.

Agreed — with upstreamSuites.runtime/types: present and only the repo-authored differential lane, this harness cannot establish the package’s complete-surface claim. UPSTREAM.md already says the pristine suites were not vendored/adapted; schema allows that under recorded-unverified, but that does not satisfy the parity contract you described.

At pin bb3d25ca… (@mantine/[email protected]) the runtime suite is ~62 files / ~520 cases (renderHook / RTL / jest.fn). There is no upstream typetest suite in that package tree, so types: present looks incorrect as well — type evidence would need an honest absent/insufficient disposition plus repo-authored pristine/adapted compiler lanes if we stay on the verified path.

Need a call before expanding this PR past its bounded differential scope:

  • (a) Expand this PR now: vendor packages/mantine-hooks/upstream/, wire required pristine + one-for-one adapted Vitest runtime lanes/inventories, fix the type-suite disposition, promote verification when green.
  • (b) Keep this PR as differential-only evidence: correct upstreamSuites / surface wording so it does not claim complete-surface via present suites, and land the full suite port in a follow-up.

Lean (a) — that matches the review ask and the binding parity contract; (b) is only if we want to land the differential harness first without blocking on the full port.

@leonidaz

Copy link
Copy Markdown
Collaborator

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

test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants