Skip to content

feat: integrate callable contracts and numeric correctness for 0.11 - #362

Merged
bbopen merged 239 commits into
mainfrom
codex/tywrap-0-11-implementation-20260920
Sep 20, 2026
Merged

bbopen merged 239 commits into
mainfrom
codex/tywrap-0-11-implementation-20260920

Conversation

@bbopen

@bbopen bbopen commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Python integers outside JavaScript's safe range now reject before JSON encoding, and NumPy/Torch float16 values decode to numbers. A pure callable compiler shares resolved argument, overload, conversion, capability, and validation decisions with generated wrappers. Node and Pyodide await coroutine results.

Clean package-consumer tests, real Pyodide/browser execution, scientific oracles, and overload tests verify the selected behavior. Bigint, Point/dataclass, and explicit runtime binding remain bounded design prototypes.

The runtime also preserves the working bridge when configured Python sources change during reload preparation. Subprocess replacement detaches retired callbacks, handles late stream errors, and clears old write backpressure. Python ASCII framing avoids per-character scanning without changing the wire format or performance limits.

Validation

Implementation head: 6eec0d47caa1fabe3620a4898272497a76a41afa. Component changes and the final corrections received independent review. The positional-only regression covers actual Python extraction, generated typing, keyword rejection, and selected-result validation.

The versioned companion at 5039e3104d60b9f353bc4c908b082b2923dea75d passed local CI=1 npm run check:all: 1,396 tests passed and 237 skipped. Dedicated CI jobs install scientific and browser prerequisites. Implementation CI and complete candidate CI passed.

This PR retains current package versions. PR #354 prepares npm 0.11.0 and Python 0.3.1 after this implementation. This PR merged as 43f111b43fbb0ce31dcb59f8fb489e8dadf3f191 with CodeRabbit approval and green required checks. Final checks, publication, and fresh registry installs remain required before closing release issues.

Tracks #331–#345. Companion release PR: #354.

@bbopen

bbopen commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
❌ Action failed

Review failed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@bbopen

bbopen commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Sep 20, 2026

Copy link
Copy Markdown
✅ Action performed

Comments resolved and changes approved.

@bbopen
bbopen merged commit 43f111b into main Sep 20, 2026
28 checks passed
This was referenced Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Area: CI and automation area:codegen area:docs Area: documentation area:runtime area:types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant