Skip to content

test(wasm): characterize fuel and epoch interruption boundaries #44

Closed

Description

@zackees

Parent: #27. Depends on #42 and #43.

Scope

Characterize the resolved Wasmtime 45 fuel and epoch boundaries for the threaded profile. Use only private raw/real artifact fixtures and facade-owned observations. Hand off blocked waits to #28.

RED → GREEN

  • RED: demonstrate absent deterministic fuel exhaustion and absent finite epoch deadline observation for root/child compute.
  • GREEN: fuel exhaustion is deterministic for a bounded compute fixture and reported per Store without backend errors leaking.
  • GREEN: epoch deadline interruption is documented/tested as nondeterministic but finite for running compute, with root/child semantic terminal records.
  • GREEN: cancellation/epoch paths drain cooperative workers and feat(wasm): enforce bounded per-session fuel and execution permits #42 reservations; root failure remains primary over child/report diagnostics.
  • GREEN: atomic.wait and host-blocked-call fixtures do not falsely pass as interrupted; they produce an explicit containment-required classification for feat(wasm): add killable threaded-sketch worker containment #28.
  • GREEN: focused Linux/macOS/Windows x86-64/ARM64 evidence and default-feature isolation are recorded.

Non-goals

No worker containment, force-kill, async resources, or broad WASI authority.

Activity

  1. added
    enhancement
    on Aug 27, 2026
  2. zackees commented on Aug 27, 2026

    @zackees
    CollaboratorAuthor

    Authoritative scope decision after merged #43 (PR #47): #44 characterizes the already-landed Wasmtime 45 fuel and epoch mechanisms; it does not redesign them. For running plain compute, exact wall-clock interruption timing is scheduling-dependent (therefore nondeterministic) but finite under the configured epoch tick/deadline. The terminal winner and facade mapping are deterministic: cancellation wins a same-tick deadline, and actual fuel exhaustion remains OutOfFuel.\n\n#44 owns the real �tomic.wait killable-subprocess characterization. It should reuse #43's host-block subprocess harness and facade-owned ContainmentRequired classification, but must never claim in-process interruption or cleanup of blocked native execution; process containment/reaping remains #28.\n\nRecord platform evidence as a matrix that distinguishes native ran evidence from compile-only/not-run evidence for Linux/macOS/Windows and x86-64/ARM64. See the parent clarification in #27 and the implementation boundary in #43 / #28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions