Future Exploration: Execution Frontiers
Document ID: FUT-004
File Path: docs/18-roadmap/future/B4-execution-frontiers.md
Version: 1.0.0
Status: Exploratory — research bet, not committed
Owner: Tool Runtime Team
Last Updated: 2026-07-05
1. Purpose
Section titled “1. Purpose”Flesh out the “Execution Frontiers” research bet (future.md §2.4, PRD-002 §6.4): faster cold starts, GPU-aware scheduling, edge/regional inference, and a WASM component model — all riding the existing sandbox isolation contract, never around it.
Exploratory — graduates only via an ADR.
2. Problem & Opportunity
Section titled “2. Problem & Opportunity”The tool runtime has a mature isolation spectrum
(native → wasm → container → gVisor → microVM), warm pooling, and egress
lockdown (wovyr-tools). The frontiers
are about speed, hardware, locality, and portability without giving up
isolation:
- Snapshot/restore sandboxes for near-instant cold starts (extending warm pooling — tool-runtime futures).
- GPU-aware scheduling for model/inference workloads.
- Edge/regional inference pools for locality and residency.
- A WASM component model for portable, polyglot plugins.
3. Current Baseline (what this would build on)
Section titled “3. Current Baseline (what this would build on)”- Sandbox spectrum + trust floors —
SandboxBackend,TrustClass, andSandboxManager::detect/select_backendalready pick the strongest of preference/floor/trust and check node capability. Any new backend slots in here. - Warm pooling + autoscaling —
SandboxPool(semaphore-boundedacquire,PooledSandboxreturn-on-drop,AutoscalePolicy) is the base that snapshot/restore accelerates. - microVM + WASI backends —
FirecrackerSandbox(one-shot block-device protocol) and thewasi-gatedWasiSandbox(Wasmtime, fuel/epoch/memory limits) already exist; the WASM component model extends the latter and theWasiCapabilityRuntimeinwovyr-plugin. - Fair scheduling — the
FairScheduler(smooth weighted round-robin) is where GPU-aware scheduling must integrate.
4. Direction (design sketch, non-committal)
Section titled “4. Direction (design sketch, non-committal)”- Snapshot/restore: capture a warmed sandbox’s state and restore it on
acquire, turning cold starts into restores. ExtendsSandboxPool, not a new isolation model. - GPU scheduling: GPU as a schedulable resource inside the
FairSchedulerfairness model, not a side channel — so tenant fairness and admission still hold for GPU workloads. - Edge/regional pools: pools tagged by region; placement honors residency (ties into ABAC/residency, encryption §7).
- WASM component model: move plugin capabilities from raw
wasm32-wasimodules to the component model for portable, typed, polyglot interfaces.
5. Requirements
Section titled “5. Requirements”5.1 Functional
Section titled “5.1 Functional”- A new backend is selectable through
SandboxManager(preference/floor/trust + capability probe), never bypassing it. - GPU workloads schedule through the
FairScheduler’s admission/fairness. - Snapshot/restore is transparent to callers (same
acquirecontract).
5.2 Invariants to preserve
Section titled “5.2 Invariants to preserve”- Isolation floor is non-negotiable. A faster or GPU-enabled backend may not
lower the
TrustClassfloor an untrusted workload is held to. - Egress control holds — a new backend still enforces
NetworkPolicy/ egress lockdown. - Determinism of scheduling — the scheduler stays deterministic and caller-driven.
6. Key Risks & Open Questions
Section titled “6. Key Risks & Open Questions”- A faster backend weakening isolation — the central risk; speed must not buy a weaker sandbox for untrusted code.
- Snapshot state leakage — a restored snapshot must not carry another tenant’s residue.
- GPU sharing isolation — multi-tenant GPU use is a hard isolation problem.
- Component-model maturity — toolchain/runtime readiness across languages.
7. Graduation Gate
Section titled “7. Graduation Gate”Per-backend; each becomes an ADR + roadmap slot only when:
The new/faster backend passes the adversarial escape and isolation test battery (the v0.3 sandbox-escape precedent — security-testing §5) before it is selectable, and (for snapshot/restore) proves no cross-tenant state carryover.
8. Dependencies
Section titled “8. Dependencies”- The existing sandbox-escape test battery (security-testing §5) — extended to each new backend as its gate.
9. Related Documents
Section titled “9. Related Documents”18-roadmap/future.md§2.4 — origin01-product/prd-future.md§6.407-tool-runtime/overview.md07-tool-runtime/security-isolation.md
10. Revision History
Section titled “10. Revision History”| Version | Date | Description |
|---|---|---|
| 1.0.0 | 2026-07-05 | Initial exploration doc for the execution-frontiers research bet |