Skip to content

feat(wasm): enforce bounded per-session fuel - #46

Merged
zackees merged 8 commits into
mainfrom
feat/42-fuel-execution-permits
Aug 27, 2026
Merged

zackees merged 8 commits into
mainfrom
feat/42-fuel-execution-permits

Conversation

@zackees

@zackees zackees commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • enable Wasmtime fuel accounting and enforce bounded root/child fuel partitions per logical root generation
  • install fuel before module start, root _start, and each owned child entry; map OutOfFuel to facade-owned semantic outcomes
  • reject exhausted child credit before TID, Store, instance, or native spawn; preserve deterministic child results and reset accounting for reuse
  • finalize root/child remaining-fuel telemetry on every Store terminal path and prevent generation wraparound

Closes #42

Validation

  • Windows Soldr: formatting, focused threaded-root/fuel coverage, no-default isolation, all-features CI-equivalent tests with the two established PDB skips, and warnings denied.
  • Managed Linux Bosn (immutable 0.1.3 commit 55bb78e19b373d061b1768a5c8de1592cde40c1d, CARGO_BUILD_JOBS=1): format, lint, and all-features tests (282 library tests plus integration suites), including fuel/threaded-root coverage.

GHA was intentionally not awaited; local and managed-Linux validation completed successfully.

@zackees
zackees merged commit 01b1ab9 into main Aug 27, 2026
21 of 25 checks passed
@zackees
zackees deleted the feat/42-fuel-execution-permits branch August 27, 2026 14:39
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): enforce bounded per-session fuel and execution permits

1 participant