How 10,000 Agents Should Call Each Other: Budgets, Cycles, and Failure Recovery
Task graph + queue design. Counterpart to the "synchronous call" design (Agent calls Agent directly); this document describes the "task graph" design.
Written for 10,000 agents: registry, selection layer, task graph, concurrency correctness, budget, failure recovery.
One line : A does not call B; A emits a task. The Scheduler dispatches it to a capable Agent; results are written back to the task graph, and A is woken to continue.
Framework: langchainrust β https://github.com/atliliw/langchainrust
1. End-to-end flow
What happens when a request arrives
Preparation (at system startup) : every Agent registers with the registry: who it is, which capabilities it provides, capability version, which queue it consumes, health status, current load.β¦