FrankenTerm

WASM Extension Surface (type substrate; runtime not yet wired)

192 words1 min read3 subsectionsFrom the README at ft 0.15.21

On this page3
Why ship the types firstIntended capabilities (when wired)Intended constraints

ft has a typed extension contract surface in extensions.rs designed for out-of-process WASM execution via wasmtime (component-model, async, std). The wasmtime runtime itself is not yet wired in the current shipped build — the source explicitly notes: "The actual WASM runtime (wasmtime) is a future addition; these types..." The substrate is in place so the ABI freezes early; the live execution path is pending.

Why ship the types first

  • Letting the contract shape stabilize while implementation evolves means external authors can start writing against it.
  • Replay determinism, fuel budgets, and policy-gating story can be designed before the runtime arrives.
  • extensions.rs lives in frankenterm-core and is compiled into every build; it holds contract types only, with no runtime behind them.

Intended capabilities (when wired)

  • Custom detection rules (compiled regex or richer logic)
  • Custom workflow handlers
  • Custom search rewriters

Intended constraints

  • No filesystem or network access outside host-mediated APIs
  • No cross-extension state access
  • No policy-gate bypass
  • wasmtime fuel-budget enforcement so runaway extensions can't lock up the host

When tracking issue: the WASM execution path is part of the broader extension-system roadmap; this README will be updated when wasmtime is wired and a working example ships.