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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! # crackle-runtime
//!
//! *The crackle glaze forms in the cooling, not the firing.*
//!
//! A task execution framework where tasks have a **firing phase** (hot execution)
//! and a **cooling phase** (deferred pattern detection). During cooling, the runtime
//! detects emergent patterns across completed tasks that weren't visible during execution.
//!
//! ## Core Metaphor
//!
//! In pottery, the most beautiful moment is not the firing — it's the cooling. The glaze
//! and clay contract at different rates, producing craze lines: unique, unrepeatable
//! patterns that record the history of the transformation. You cannot design these cracks.
//! You can only create the conditions for them and get out of the way.
//!
//! Similarly, `crackle-runtime` executes tasks (firing) and then observes what patterns
//! emerge across completed tasks during a cooling phase — patterns that were invisible
//! during the heat of execution.
//!
//! ## Quick Start
//!
//! ```
//! use crackle_runtime::{CrackleTask, Kiln, ThermalProfile, GlazeLayer, TaskOutput};
//! use std::time::Duration;
//!
//! /// A simple task that produces a number
//! struct NumberTask { value: f64 }
//!
//! impl CrackleTask for NumberTask {
//! type Output = f64;
//!
//! fn fire(&self) -> TaskOutput<Self::Output> {
//! TaskOutput::new(self.value, vec![("magnitude".into(), self.value.abs())])
//! }
//! }
//!
//! // Build a kiln with fast cooling (more cracks, more patterns)
//! let mut kiln = Kiln::new(ThermalProfile::fast_cooling());
//!
//! // Fire tasks
//! kiln.fire_task(NumberTask { value: 3.14 });
//! kiln.fire_task(NumberTask { value: 2.71 });
//!
//! // Let the kiln cool and detect patterns
//! let patterns = kiln.cool();
//!
//! // Inspect what emerged
//! for pattern in &patterns {
//! println!("{:?}: {}", pattern.kind(), pattern.description());
//! }
//! ```
pub use ;
pub use GlazeLayer;
pub use ;
pub use ;
pub use ;
pub use ;