feat(gate): Pyodide differential parity gate (Phase 2)#8
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…e-file PRs) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 2 of the Pyodide-target conformance flow (spec:
docs/superpowers/specs/2026-06-16-pyodide-conformance-flow-design.md, §4/§6). Adds a CI gate that runs the transpiler inside real wasm32 Pyodide and proves it behaves identically to native CPython on both branches:over a 275-fixture corpus (260 valid strategies + 15 failure families). Locally:
gate:full→ PARITY OK over 275; canary selftest 8/8 in ~0.1s.Pieces
PYODIDE_TARGET(314.0.0) — single source of truth; Python/Emscripten derived from Pyodide's lock at gate time.package.json:pyodide+tar).gate/glue.py(canonical glue, runtime-equivalent to the app worker),gate/oracle.py(native, one process, captures unexpected exceptions),gate/compare.mjs(pure comparator),gate/run-gate.mjs(pack → Pyodide → compare →release.json),gate/selftest.mjs(canary).tests/gate-corpus/{ok,err}/corpus..github/workflows/gate.yml— dispatch + nightly + gate-file PRs.PYTHONHASHSEED=0; pinned action SHAs.Deliberate deferrals (Phase 3)
needs:of release) — Phase 3 with npm delivery. The gate generatesrelease.jsonhere; it does not block tags yet.Test plan
gate.ymlruns green on this PR (clean runner, native Python 3.14 oracle vs wasm32 Pyodide).gate:fullPARITY OK over 275;gate:selftest8/8; existing pytest suite unaffected.🤖 Generated with Claude Code