AWESOME-OS ENGINEERING BLOG
18 — The Inference Manager: Execution <-> Projection as a First-Class OS Peer to Task Manager
18 — The Inference Manager: Execution ↔ Projection as a First-Class OS Peer to Task Manager
Anchored Code:
- PortableB8G-SECT-1Core:intersections/inference-manager/index.mts
- Unified CLI & NativewgpuDashboard (bin\b8g-infer.ps1):intersections/inference-manager/cli.host.mts
- Run this post live: .\bin\notebook.ps1 run 18
1. The Blind Spot in Legacy OS Task Managers
Classic Task Managers only measure CPU %, RAM, and OS threads. In an AI-native OS running local B8G Xenon 1B kernels and multi-agent swarms, an entire fleet of agents streaming tokens, waiting on a swarm board, or blocked on a shell permission prompt looks like "0% CPU — nothing is happening."
intersections/inference-manager/ makes Inference Execution a first-class OS peer to processes, bound 1:1 to a live Projection (wgpu, tui, dev-catalog, notebook, remote-http):
- Unified State Machine:
streaming(tok/s,TTFT) ·reasoning·tool-exec·awaiting-permission·swarm-wait·rate-limited·error·killed. - Direct Control Plane: Click
[Approve],[Xenon-1B](model switch), or[Kill]right inside the nativewgpudashboard (bin\b8g-infer.ps1 wgpu) or drive it viabin\dev-catalog.ps1. - Zero-Copy Observability: Composed with
TelemetrySection+TraceSection(InferenceManagerIntersection) so every stall and permission wait emits spans onto the universal observability bus.
2. Live Executable Cell (.\bin\notebook.ps1 run 18)
blade InferenceSlot @sab-ring { tokPerSec: float64, contextPct: float64 }
blade ProjectionBinding @sab-ring { projectionKind: string(24), needsAttention: boolean }
manifold InferenceMgr = InferenceSlot ^ ProjectionBinding
chart InferDashboard = InferenceMgr |> host(diagnostic, 8000ms) -> wgpu