Skip to main content

Module execution_history

Module execution_history 

Source
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§

ExecutionEntry
A single execution entry recording phase durations.
ExecutionHistory
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.