Skip to content

feat(wasm): stream Blob through bounded guest memory - #256

Merged
zackees merged 1 commit into
mainfrom
feat/blob-stream-controls
Sep 14, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/blob-stream-controls

Conversation

@zackees

@zackees zackees commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #13.

  • Lower Blob to bounded stream_read, stream_write, and stream_close controls.
  • Keep Blob data out of scalar ABI payloads and validate the generated contract at admission.
  • Pin fp-bindgen to the reviewed immutable revision with ordinary and shared Wasmtime memory support.
  • Return broker/quota rejection as a guest-visible semantic error rather than a Wasmtime trap.

Validation:

  • bash ci/check_wasm_abi_generation.sh
  • generator test suite
  • wasm_guest_facade integration suite
  • targeted host stream tests
  • full wasm-host lib suite: 367 pass, 3 ignored; one pre-existing GNU build-ID environment failure.

@zackees
zackees merged commit a95ae0b into main Sep 14, 2026
44 of 72 checks passed
@zackees
zackees deleted the feat/blob-stream-controls branch September 14, 2026 13:29
zackees added a commit that referenced this pull request Sep 17, 2026
write_available had no Windows backend, so PtySession fell back to a
blocking WriteFile. Once a child stopped reading its console input the
stdin pipe filled and the write parked, and nothing on the host side could
release it: the same slot leak #256 fixed on Unix, still open on Windows.

The ConPTY master now keeps a duplicate of the stdin pipe handle when the
writer is taken. A bounded write switches that pipe end to PIPE_NOWAIT, where
a byte-mode WriteFile takes only what fits, retries a full pipe every 5 ms
until the deadline, and restores PIPE_WAIT before returning.

Refs FastLED/cli#259

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(wasm): prove a streamed kernal-api Rust sketch runtime with zccache and extension2 cores

1 participant