Motivation
Multi-agent systems fail when agents operate in isolation without shared state or governance. As systems grow, informal coordination collapses — agents produce incompatible outputs, governance becomes inconsistent, and debugging is impossible.
The Squad pattern introduces a formal coordination layer between orchestrators and individual agents. A Squad defines a sequential execution flow, maintains a shared context that grows progressively richer as each agent contributes, and enforces governance at the squad boundary.
Structure
- Orchestrator loads and invokes a Squad by ID
- Squad defines a sequential flow of named agents
- Each agent executes and writes its result to a named key in the shared context
- The next agent receives the enriched context as input
- Governance is enforced before and after each step