Skip to content

test(streamdown): add bounded React parity harness - #504

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

jonkwheeler wants to merge 23 commits into
octanejs:mainfrom
jonkwheeler:jon/streamdown-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add eight exact same-fixture differential cases against [email protected] and the four pinned official React plugin packages
  • add exact adapted cases for native custom-component events and consolidated plugin subpaths
  • structure three intentional upstream corrections: per-block animation timing, balanced code classes, and consumed icon sizes
  • replace broad HTML regex normalization with exact per-element upstream/Octane assertions followed by narrowly scoped clone comparison
  • add provenance, full local-test classifications, fail-closed fixture compilation, and generated binding metadata

Verification

  • Streamdown + SSR suite: 12 files, 41 tests passed
  • package runtime and type checks passed; generated TSRX declarations and public types are current
  • both required lanes and exact-selection mutation checks passed
  • generated binding status and CLI data checks passed
  • global React parity audit passed: stable 5,345 cases; canary 5,413 cases
  • independent correctness, testing, and adversarial reviews clean after resolving normalization disclosure/scope findings

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Changes are mostly test harness, audit metadata, and documented rendering corrections against upstream 2.5.0; no auth, security, or core infrastructure paths.

Overview
Introduces a bounded React parity harness for @octanejs/streamdown: a new react-parity.json lane, upstream suite inventory, per-test classifications, and a dedicated streamdown-differential Vitest project under the react-parity job. Eight same-fixture differential scenarios compare pinned [email protected] (and official plugins) to Octane; comparisons use explicit per-element assertions for known differences instead of broad HTML normalization.

Documented intentional divergences (also reflected in binding status/CLI data): per-block animation timing (upstream shares sibling progress), balanced Tailwind arbitrary-value classes on code blocks, and icon size mapped to SVG width/height. Small source comments mark these in animate, code-block body, and icons.

Octane-only contracts stay on the main streamdown test project (divergences.test.ts, parity-plugins.test.ts, fixture compile limited to parity fixtures). React-parity check now verifies classifications for any binding with test-classifications.json and runs required lanes via selectHarnessAction (not gated on provenance verified).

Reviewed by Cursor Bugbot for commit 0287206. 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:56pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:56pm

Request Review

@jonkwheeler
jonkwheeler marked this pull request as ready for review August 2, 2026 19:21
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 19:22 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 19:23 Inactive
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 01:48
@jonkwheeler
jonkwheeler force-pushed the jon/streamdown-react-parity-harness branch from 3eff3bc to d5567df Compare August 3, 2026 07:39
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:40 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:41 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:56 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 7, 2026 15:56 Inactive
Comment thread vitest.config.js Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Resolve react-parity evidence conflicts after main landed livestore
checks, refresh vitest/lockfile digests, and keep livestore out of the
hook-form/streamdown classification verifier.

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

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merged origin/main to clear DIRTY; waiting on Cursor Bugbot for the new head before re-signaling ready.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread packages/streamdown/UPSTREAM.md Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 3 commits August 9, 2026 01:55
Correct leonidaz review: mark the pinned repository suite present with
explicit per-artifact exclusions, isolate parity-owned plugin evidence,
and leave framework-contract plus SSR tests on ordinary shards.

Co-authored-by: Cursor <[email protected]>
recorded-unverified manifests only validate in react-parity:check, so
react-parity ownership was orphaning the differential and adapted cases.
Leave those projects unmarked until provenance can execute required lanes.

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

Copy link
Copy Markdown
Contributor Author

Addressed leonidaz review + Bugbot orphan finding; branch is current with main.

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.

React-parity/Vitest setup review only; tests were not run.

Comment thread vitest.config.js Resolved
"artifacts": 104,
"runtimeTests": 101,
"support": 3,
"excluded": 104

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.

No upstream execution: this inventory marks all 104 artifacts excluded, including the core and official-plugin suites, with reasons that repeatedly say “until” future lanes are added. That is a gap, not a rule-supported disposition for an existing pinned suite. Framework-neutral suites should run unchanged; React-facing cases need pristine/one-for-one adapted execution or specific incompatibility reasons. Register those lanes instead of treating wholesale deferral as an explicit exclusion.

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.

Framework-neutral suites should run unchanged; React-facing cases need pristine/one-for-one adapted execution or specific incompatibility reasons. Register those lanes instead of treating wholesale deferral as an explicit exclusion.

Agreed this inventory disposition is a real gap under the port rules. Closing it means vendoring the pinned upstream suite and registering executable pristine/adapted lanes (remend unchanged; React-facing suites adapted case-by-case or given concrete incompatibility reasons) — that expands this PR past the bounded differential harness and needs an explicit scope call before I do that here vs in a follow-up.

Options:
(a) Expand this PR now into full upstream-suite lane registration/execution.
(b) Keep this PR differential-only and open a follow-up for remend pristine + streamdown pristine/adapted lanes before verified provenance.

Lean: (b), so the differential ownership/execution fixes can land without bundling a multi-package suite port.

jonkwheeler and others added 2 commits August 9, 2026 12:05
Address leonidaz feedback by routing the generic harness on required
executable lanes, owning streamdown-differential under react-parity, and
dropping the octane-only adapted lane from parity evidence.

Co-authored-by: Cursor <[email protected]>
jonkwheeler and others added 2 commits August 9, 2026 12:11
Resolve mechanical vitest/lockfile evidence-hash conflicts and keep
required-lane harness routing with the new solana-react verifier.

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 801143d. Configure here.

Comment thread vitest.config.js Resolved
@leonidaz

Copy link
Copy Markdown
Collaborator

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