Skip to main content

record_transcript_path

Function record_transcript_path 

Source
pub fn record_transcript_path(
    session_dir: &Path,
    transcript_path: &str,
) -> Result<(), Error>
Expand description

Store transcript_path in the session’s metadata.json, which is where tracevault check looks for the transcript it counts tool calls from. Without it every session reports no tool calls, and a “must call X” policy can never pass. Other keys in the file are kept. An empty path (Codex before its first record) writes nothing, and an unchanged path skips the write. The file is replaced atomically: parallel tool hooks of one session run concurrently, and check must never read a half-written file.