Choose a Fleet Topology Pattern
mainSelect a topology based on your workload requirements and concurrency needs:
Scenario A: Pure Orchestration
- Mechanism: A single orchestrator agent calls
advance_itemto move children through the pipeline. Noclaim_itemis used. - Best for: Single-developer or low-concurrency sequential pipelines.
Scenario B: Pure Claim, Flat Items
- Mechanism: Independent items with no hierarchy. Agents call
claim_item(selector=...)to drain a shared queue. - Best for: Horizontally scalable, truly independent parallel tasks.
Scenario C: Pure Claim, Chains (Anti-pattern)
- Mechanism: Dependent items (A→B→C) where each is independently claimed.
- Warning: Suffers from a post-completion race. Once A completes, B becomes immediately available to all agents, potentially causing the wrong agent to pick up B and losing context continuity.
- Best for: Simple chains where notes provide sufficient handoff and races are tolerable.
Scenario D: Hybrid (RECOMMENDED)
- Mechanism: Agents claim at the feature level (top-level items) using
claim_item. They then orchestrate the sub-tree usingadvance_item(notclaim_item) for all children. - Benefits: Prevents post-completion races, ensures full chain-context continuity, and protects sub-trees from being accidentally claimed by other agents.
- Best for: Feature-based development work.