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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! Runner module - thin execution shell
//!
//! The runner is a thin orchestration layer that:
//! - Accepts invocations
//! - Passes to Kernel
//! - Wires callbacks
//! - Returns streams
//!
//! Core execution logic lives in the kernel module.
//! Context types are in the context module.
//!
//! ## CRITICAL INVARIANT: Runner Never Mutates State
//!
//! Runner is a thin orchestration shell. All execution semantics live in kernel/.
//!
//! Runner MUST NOT:
//! - Mutate execution state directly
//! - Retry steps (kernel handles retries)
//! - Handle backoff (kernel handles backoff)
//! - Skip nodes (kernel handles node execution)
//!
//! If Runner starts doing these things → duplicated kernel logic (architectural leak).
//!
//! **What Runner Does:**
//! - Wires services (session, memory, artifacts)
//! - Handles callbacks (before/after hooks)
//! - Delegates execution to ExecutionKernel
//! - Streams events to clients
//!
//! **What Runner Does NOT Do:**
//! - Mutate execution state directly
//! - Implement execution semantics
//! - Make policy decisions
//!
//! @see docs/TECHNICAL/01-EXECUTION-TELEMETRY.md
//! @see docs/TECHNICAL/25-STREAM-PROCESSORS.md
// Runner types
pub use ;
// Protected runner (feat-09: Guardrails)
pub use ;
// Re-export from kernel (kernel owns parallel/interrupt logic)
pub use crate;
// Re-export from context
pub use crate;