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
//! Pure execution planning module for workflow orchestration
//!
//! This module contains pure functions for planning workflow execution without
//! performing any I/O operations. Following the "functional core, imperative shell"
//! pattern, these functions:
//!
//! - Take inputs and return outputs deterministically
//! - Have no side effects (no file system, network, or database operations)
//! - Are easily testable without mocks
//! - Enable composable execution planning
//!
//! # Architecture
//!
//! The module is organized into three submodules:
//!
//! - `mode_detection`: Determines the execution mode from configuration
//! - `resource_allocation`: Calculates resource requirements for execution
//! - `execution_planning`: Composes mode detection and resource allocation into execution plans
//!
//! # Example
//!
//! ```ignore
//! use prodigy::core::orchestration::{plan_execution, ExecutionPlan, ExecutionMode};
//!
//! let config = CookConfig { /* ... */ };
//! let plan = plan_execution(&config);
//!
//! assert_eq!(plan.mode, ExecutionMode::MapReduce);
//! assert_eq!(plan.parallel_budget, 10);
//! ```
// Re-export main types and functions
pub use ;
pub use ;
pub use ;