Skip to content

Kernel Phase 1: WASM sandbox with fuel metering#9

Merged
aeswibon merged 2 commits into
masterfrom
kernel-phase-1
Jul 2, 2026
Merged

Kernel Phase 1: WASM sandbox with fuel metering#9
aeswibon merged 2 commits into
masterfrom
kernel-phase-1

Conversation

@aeswibon

@aeswibon aeswibon commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Add wasm_sandbox.rs — fuel-metered in-process WASM execution (memory limits, wall-clock timeout)
  • Route backend: "wasm" in run_isolated; fuel via AUTONOMIC_WASM_FUEL (default 500M instructions)
  • Propagate fuel_consumed / memory_peak_bytes on ExecuteResult
  • Bump to 0.5.9 with CHANGELOG

Depends on agent-body PR #13 — merge and tag v0.5.17 before merging this PR.

Test plan

  • cargo test -p agent-immune (12 tests, including wasm_sandbox)

Route backend wasm through wasmtime with shared module cache, memory limits,
and AUTONOMIC_WASM_FUEL defaults; propagate fuel stats in ExecuteResult.
CI cannot resolve tag v0.5.17 before agent-body PR merges. Pin
agent-body-core to branch kernel-phase-1.
@aeswibon aeswibon merged commit 0feaa40 into master Jul 2, 2026
11 checks passed
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.

1 participant