Expand description
JSONL-based transcript persistence for sub-agent conversations.
Each sub-agent session writes a <task_id>.jsonl file of TranscriptEntry lines
and a companion <task_id>.meta.json sidecar with TranscriptMeta.
Files are created with 0o600 permissions on Unix to prevent other users from
reading conversation history.
The sweep_old_transcripts function prunes the oldest .jsonl files when a
configurable maximum count is exceeded.
Structs§
- Transcript
Entry - A single entry in a JSONL transcript file.
- Transcript
Meta - Sidecar metadata for a transcript, written as
<agent_id>.meta.json. - Transcript
Reader - Reads and reconstructs message history from JSONL transcript files.
- Transcript
Writer
Constants§
- CHAIN_
DOMAIN - Domain-separation tag for this subsystem’s hash chain (issue #6360) — distinct from
zeph-session’s so a chain from one subsystem can never verify against the other, and folded into every genesis hash viazeph_common::hash_chain::genesis.
Functions§
- configure_
anchor_ store - Configure (or disable, with
None) the vault-anchor store for everyTranscriptWriter/TranscriptReaderoperation in this process from this point forward. Seeconfigure_history_integrity’s doc for the single-set-at-startup contract this mirrors. - configure_
history_ integrity - Configure (or disable, with
None) history-chain verification for everyTranscriptWriter/TranscriptReaderoperation in this process from this point forward. - sweep_
old_ transcripts - Delete the oldest
.jsonlfiles indirwhen the count exceedsmax_files, plus each deleted file’s companion.meta.jsonsidecar.