Repository navigation
test(styled-components): add bounded React parity harness - #505
jonkwheeler wants to merge 24 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
81bba9e to
caa9644
Compare
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.
Resolve merge conflicts preserving PR intent and the react-parity vitest differential split; refresh lockfile and vitest integrity hashes. Co-authored-by: Cursor <[email protected]>
Resolve inventory and root scripts while keeping styled-components coverage.
Regenerate lockfile hashes and Vitest evidence for styled-components.
…-harness' into jon/styled-components-react-parity-harness
|
READY FOR REVIEW |
|
Branch is conflicting with main; withdrawing readiness until currency is restored. REVIEW WITHDRAWN |
Resolve react-parity check and audit hash conflicts: keep generalized binding classifications, retain livestore verifiers from main, and refresh vitest.config.js integrity digests.
|
Ownership feedback addressed (dedicated adapted files + mixed testExecution.include), branch merged with origin/main, Bugbot clean on current head. READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React-parity/Vitest setup review only; tests were not run.
Address leonidaz feedback by routing required lanes through run-required regardless of provenance verification, owning only the differential project under react-parity, and leaving Octane-only DOM/SSR/type contracts as ordinary package tests until pristine and adapted upstream suites land. Co-authored-by: Cursor <[email protected]>
Resolve parity manifest conflicts, keep selectHarnessAction routing, and refresh lockfile/vitest evidence digests after the main merge. Co-authored-by: Cursor <[email protected]>
|
Addressed leonidaz React-parity review (differential-only evidence + run-required routing), merged origin/main, refreshed lockfile digest, and Bugbot is clean on the current head. READY FOR REVIEW |
…ness Isolate each engine's StyleSheet and compare sheet CSS after every step so parity evidence covers consumer-visible rules, not only container HTML. Narrow the keyframes case onto a styled dynamic prop so both DOM and sheet change on update. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]> # Conflicts: # packages/hook-form/audit/react-parity.json # packages/react-map-gl/audit/react-parity.json # packages/solana-react/audit/react-parity.json
Co-authored-by: Cursor <[email protected]>
Keep sibling binding manifests pinned to the live shared Vitest config hash after the styled-components differential project landed. Co-authored-by: Cursor <[email protected]>
|
Addressed leonidaz stylesheet-oracle feedback (isolated StyleSheetManager differential rig + narrowed keyframes case), refreshed shared vitest.config.js digests across sibling parity manifests, merged origin/main, and Bugbot is clean on the current head. READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
React-parity/Vitest conformance re-review only; tests were not run.
| forward-ref, hook, JSX, and server-sheet boundaries are adapted to Octane. | ||
|
|
||
| The canonical pinned repository contains runtime and type suites, but the | ||
| published npm artifact does not contain them. This repository therefore records |
There was a problem hiding this comment.
This remains nonconformant with the documented binding workflow. Missing tests from the npm archive are specifically not an exemption: the canonical tagged repository must supply the complete runtime/type suites, which must be vendored/pinned, run pristine, adapted one-for-one or dispositioned with reasons, and protected by the required structural inventories/negative controls. Describing that work as follow-up while registering bounded differential evidence does not satisfy the upstream-suite deliverable.
There was a problem hiding this comment.
Missing tests from the npm archive are specifically not an exemption: the canonical tagged repository must supply the complete runtime/type suites, which must be vendored/pinned, run pristine, adapted one-for-one or dispositioned with reasons...
Need a call on scope before I expand this PR. This branch was intentionally the bounded differential harness; vendoring the full styled-components runtime/type suites from the tagged repo (pristine + one-for-one adapted/dispositioned inventories) is a separate upstream-suite deliverable. Options: (a) keep this PR as differential-only evidence and open a follow-up for the full suite, or (b) expand this PR to vendor/pin and classify the complete suites now. Leaning (a) unless you want the full suite in #505.
…anejs#505) Record React/ReactDOM oracle pins, classify typetest roots in the shared verifier, and harden differential stylesheet observation with empty-sheet and update-step negative controls. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
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 7986812. Configure here.
…octanejs#505) Exercise assertSheetParity with empty and altered React sheets so the oracle path is proven to reject, instead of a tautological string compare. Co-authored-by: Cursor <[email protected]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
Styled Components now has a fail-closed React parity contract instead of relying on package-local tests that could pass without proving the pinned React behavior. Six exact differential fixtures, adapted DOM/SSR/type lanes, immutable upstream provenance, and one-to-one evidence for all eight documented divergences make missing or renamed cases fail the repository audit.
The global audit now executes required lanes for recorded-unverified bindings and validates classification ledgers generically, so this binding cannot silently opt out of its declared evidence.
Validation
pnpm format:checkpnpm typecheckpnpm testRisk / follow-ups
The canonical upstream repository contains runtime and type suites, but the published npm artifact omits them, so provenance remains
recorded-unverified. A future verified lane must vendor and authenticate those canonical suites before claiming pristine execution.Post-Deploy Monitoring & Validation
No additional operational monitoring is required because this changes repository audit/test infrastructure only. During the PR validation window, watch the React parity and Styled Components CI checks for missing-case, hash-drift, classification, or exact-selection errors. Healthy signal: all declared lanes execute and stable/canary counts remain 5,345/5,413. Failure signal: any required lane is skipped, any manifest hash drifts, or inventory counts change unexpectedly; mitigation is to revert or repair the manifest/evidence pair before merge. Owner: PR author.
Provenance
agent-authored)Note
Low Risk
CI/audit and test infrastructure only; no production styled-components runtime behavior change beyond test fixture and comment edits.
Overview
Adds a bounded React parity contract for
@octanejs/styled-components:audit/react-parity.json,UPSTREAM.md,test-classifications.json, and status/docs updates (verified 2026-08-02, provenance recorded-unverified). Six same-fixture differential cases run in a dedicated Vitest project (styled-components-differential,react-paritygroup) viamountStyledDifferential—comparing normalized DOM and per-engine isolated stylesheet output; the keyframes fixture shifts dynamic styling offcreateGlobalStyleso the oracle stays meaningful.Test layout: documented adaptations move into
tests/adapted/andtests/ssr/adapted-divergences.test.ts; differential setup precompiles a fixed fixture list and fails on compile errors. Source comments reframe Octane divergences as ordinary package contracts.Global audit:
selectHarnessActionruns required lanes whenever any exist—not gated onprovenance.verification === 'verified'—so recorded-unverified bindings still execute CI. Port test classification checks generalize tobinding-classifications-lib.mjsfor every binding with a ledger (including hook-form typetests). Other packages only refreshvitest.config.jshashes in parity manifests.Reviewed by Cursor Bugbot for commit 8a0233f. Bugbot is set up for automated code reviews on this repo. Configure here.