Path of the capture written for one turn of one session. Legacy/live path. Attempts (review R9) live at `turn-{turn}.attempt-{n}.json` and are created exclusively — a retried commit appends a new attempt instead of overwriting the previous attempt's evidence.
(sessions_dir: &Path, session_id: &str, turn: u32)
| 87 | /// commit appends a new attempt instead of overwriting the previous |
| 88 | /// attempt's evidence. |
| 89 | pub fn capture_path(sessions_dir: &Path, session_id: &str, turn: u32) -> AgentResult<PathBuf> { |
| 90 | Ok(capture_dir(sessions_dir, session_id)?.join(format!("turn-{turn}.json"))) |
| 91 | } |
| 92 | |
| 93 | fn attempt_capture_path( |
| 94 | sessions_dir: &Path, |
no test coverage detected