Skip to content

feat(wasm): add private threaded root execution - #39

Merged
zackees merged 7 commits into
mainfrom
feat/34-threaded-root-execution
Aug 27, 2026
Merged

zackees merged 7 commits into
mainfrom
feat/34-threaded-root-execution

Conversation

@zackees

@zackees zackees commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a private Wasmtime threaded-root execution substrate for admitted ThreadedRustV1 modules
  • cache one SharedMemory/prelink per admitted sketch while creating a fresh root Store per run
  • expose semantic outcomes/errors only; close imports, validate P1 memory access, contain proc_exit, and deterministically reject child thread spawning until feat(wasm): bootstrap owned threaded guest instances #35

Security model

  • execution rejects non-threaded admission profiles before allocation/preparation
  • the host supplies the caller-owned kernal_api::async_engine::RuntimeHandle; no runtime is constructed in the Wasm layer
  • host state, engine, module, Store, Instance, and SharedMemory remain private; only bounded façade diagnostics cross the API

Validation

Windows/Soldr:

  • soldr cargo fmt --all -- --check
  • private threaded-root preparation/runtime-observation unit test
  • soldr cargo test --locked --features wasm-sketch-host --test threaded_root_execution (5 passed)
  • soldr cargo test --locked --features wasm-sketch-host --test threaded_artifact_profile (2 passed)
  • soldr cargo clippy --locked --no-default-features --features wasm-sketch-host --all-targets -- --deny warnings

Managed Linux/Bosn 0.1.3 (CARGO_BUILD_JOBS=1):

  • fmt job j1-b44c5aef, lint job j2-42fb08a1, test job j3-a9510f78 (all return 0)
  • focused threaded-root and threaded-artifact Soldr test jobs (both return 0)

GHA is intentionally not awaited: local Windows and managed Linux validation passed.

Refs #34

Cargo-built real Rust threaded-artifact execution remains blocked by soldr#2919; this PR does not close #34.

@zackees
zackees merged commit 9aacf67 into main Aug 27, 2026
21 of 25 checks passed
@zackees
zackees deleted the feat/34-threaded-root-execution branch August 27, 2026 11:08
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): add private threaded root execution substrate

1 participant