1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! # paladin-battalion
//!
//! Multi-agent orchestration runtime for the Paladin framework.
//!
//! This crate provides all eight Battalion execution patterns and the Commander
//! strategy router. It depends only on `paladin-core` (domain types) and
//! `paladin-ports` (port trait contracts) — never on infrastructure SDKs,
//! database drivers, or LLM provider libraries.
//!
//! ## Patterns
//!
//! - [`formation_service`] — Sequential execution: output of agent N feeds input of agent N+1
//! - [`phalanx_service`] — Concurrent execution: all agents run in parallel
//! - [`campaign_service`] — DAG/graph execution: topologically sorted dependency graph
//! - [`chain_of_command_service`] — Hierarchical delegation: commander delegates to sub-agents
//! - [`conclave_execution_service`] — Mixture-of-experts synthesis
//! - [`council_service`] — Multi-agent discussion and consensus
//! - [`grove_service`] — Intelligent semantic routing
//! - [`maneuver`] — Flow DSL execution (domain types, parser, service, visualizer)
//! - [`commander`] — Strategy auto-detection router
//!
//! ## Utilities
//!
//! - [`error_aggregation`] — Collect and summarise errors across parallel agent runs
//! - [`retry`] — Exponential back-off retry helper
// Execution services
// Internal helpers
pub