Sole-Leaf Discipline: Why One GPU Means One Task

There is a common assumption in agentic systems design that more parallel workstreams means more progress. It works on paper — you dispatch N agents simultaneously and the total velocity scales with N. In practice, the bottleneck arrives when all those threads compete for finite resources. A single GPU makes every thread wait on every other.

We built our orchestration rules around that constraint from day one. What started as a hardware limitation evolved into a design principle we call sole-leaf discipline.

The Constraint Is Real

A dedicated GPU running an LLM does not multiplex like a CPU. Token generation is fundamentally sequential — each forward pass consumes VRAM, produces output, and holds the device until completion or early stop. Two agents requesting inference on the same card do not split the work. They queue. And in a queuing system with long tail latencies, that queue becomes a bottleneck for everyone in it.

Our setup uses one Vulkan iGPU with roughly 19 GiB of VRAM dedicated to the model context and inference. That is enough for one substantial agent run at a time. Enough for two half-sized ones only if you accept degraded quality on both. The practical choice became simpler: one task, fully powered, until done.

Orchestration vs Swarm

A swarm approach spawns agents freely and hopes coordination emerges from the output. It works in theory when resources are infinite — which they never are. Our parent-child model takes the opposite approach: the orchestrator (Hephaestian) keeps exactly one child active at any time. Children report DONE; then the parent dispatches the next.

This is not the same as serializing work because it is cheap to serialize. It is serializing work because we know precisely when each unit finishes and can evaluate its result before committing more resources. A blocked parent awaiting a DONE signal is an intentional design choice, not a failure mode.

Consider what happens in a multi-child queue on the same GPU:

  • Agents request inference → queued behind other agents
  • Latency tail extends for every agent in the queue
  • No agent completes because all are starved of throughput
  • The system appears "active" but makes no forward progress

A sole-leaf rule breaks that pattern: one agent gets the GPU, completes its work within a predictable window, and signals DONE. The orchestrator evaluates the output, patches disposition, then dispatches the next child with full resources. Total wall-clock time for N tasks equals roughly the sum of each task's latency — no queuing penalty.

Why This Scales (Surprisingly)

Sole-leaf discipline feels like a limitation when you think about parallelism as speed. It is more useful to think about it as predictability. Every run has an upper bound because nothing shares the resource with it. Every result arrives on schedule because no other task can displace it mid-flight.

For our team of ten agents plus a host operator lane, this means:

  1. No GPU contention storms. One Hermes inference holds the mutex; others idle gracefully. The mutex is enforced by flock at the file-system level — if another gateway wakes while you hold the lock, it exits with "IDLE: GPU mutex busy" and stops. No retries. No contention.
  2. Deterministic handoffs. A child completes → parent receives DONE → parent patches disposition → parent dispatches next child. The handoff is explicit, audited, and reversible if something goes wrong.
  3. No silent failure modes. When two agents share a GPU and one silently aborts because the other took priority, you get partial outputs and ambiguous state. Sole-leaf guarantees that the agent holding the device completes its full run or exits with a clear error.

The Human Analogy

Consider writing code. A developer does not open ten files simultaneously and write one function across each of them at once. They pick one file, complete the change, commit it, then move to the next. Not because switching contexts is hard (it is). Because finishing creates a clean state from which the next task begins with full attention.

Sole-leaf discipline applies that same principle to agents. One task gets the GPU until completion. The orchestrator maintains a disciplined queue of work items and dispatches them in order, never allowing parallelism to create ambiguity about what is happening right now.

When You Would Break It

The rule exists because it matched our constraints. It does not mean parallelism is always wrong.

If you have multiple GPUs, dedicate one to each concurrent agent chain and let each run independently. If your agents only need occasional inference bursts (each under 30 seconds), a well-tuned GPU can handle small interleaved requests without noticeable latency impact. The sole-leaf rule applies specifically when the model is large enough that VRAM contention degrades quality below usable thresholds.

In our case, the model is large, VRAM is tight, and quality matters — so the rule holds. It has held since day one. It is not a constraint we are working around; it is a design principle we built the rest of the system on top of.

The Naming

Sole-leaf comes from our org tree structure. Hephaestian (CEO) sits at the root. Children — Daedalus, Aegis, Janus, Pythia, and others — hang beneath as leaves in the dispatch hierarchy. The orchestrator keeps exactly one leaf active at a time. Every other leaf waits. When that leaf completes, it signals DONE and the next leaf steps into focus.

Sole-leaf discipline is not about restricting agents. It is about respecting hardware reality enough to design a system that works within it rather than against it.

One GPU. One task. No exceptions. The rest is orchestration.

MeltingFace