Expand description
Execution history facade for ETA estimation and persistence.
Responsibilities:
- Re-export execution history data models, storage helpers, and averaging logic.
- Keep persistence and weighted-estimation concerns split into focused companions.
Not handled here:
- Real-time progress tracking.
- UI or CLI ETA presentation.
Invariants/assumptions:
- Public re-exports preserve the existing
crate::execution_history::*API surface. - Persistence stays compatible with
.ralph/cache/execution_history.json.
Structs§
- Execution
Entry - A single execution entry recording phase durations.
- Execution
History - Root execution history data structure.
Functions§
- get_
phase_ averages - Get historical average durations for all phases.
- load_
execution_ history - Load execution history from cache directory.
- record_
execution - Record a completed execution to history.
- save_
execution_ history - Save execution history to cache directory.
- weighted_
average_ duration - Calculate weighted average duration for a specific phase.