Skip to main content

build_chat_turn_capture

Function build_chat_turn_capture 

Source
pub fn build_chat_turn_capture(
    expected_project: &ProjectId,
    history: TerminalTurnHistory,
    retention: RetentionClass,
) -> Result<ChatTurnCapture, CaptureBuildError>
Expand description

Build one bounded capture from a typed terminal history snapshot.

Foreign provenance rejects the entire capture, even when attached to an otherwise forbidden item. Forbidden content is never copied into the capture. Secret sensitivity and never_persist disclosure fail closed.