core(rollout): extract rollout module, add listing API, and return file heads (#1634)

- Move rollout persistence and listing into a dedicated module:
rollout/{recorder,list}.
- Expose lightweight conversation listing that returns file paths plus
the first 5 JSONL records for preview.
This commit is contained in:
Ahmed Ibrahim
2025-09-03 00:39:19 -07:00
committed by GitHub
parent 9ad2e726fc
commit d77b33ded7
6 changed files with 708 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
//! Rollout module: persistence and discovery of session rollout files.
pub(crate) const SESSIONS_SUBDIR: &str = "sessions";
pub mod list;
pub mod recorder;
pub use recorder::RolloutRecorder;
pub use recorder::SessionStateSnapshot;
#[cfg(test)]
pub mod tests;