Expand description
Typed, terminal-only continuous-memory chat capture (task C1).
The builder accepts TerminalTurnHistory, not streaming state. It rejects
foreign-project provenance before inspecting content, filters forbidden
classes, bounds every retained body, and derives a deterministic source
digest / capture id from canonical source data.
Structs§
- Canonical
Capture Item - One item from canonical completed history, already classified by the host.
- Capture
Disclosure - Exact disclosure classes present after filtering, in deterministic order.
- Capture
Id - Capture
Segment - Chat
Turn Capture - Compaction
Source - First-class provenance for a compaction summary linked to this turn.
- Conversation
Summary Capture - First-class compaction memory. It links to (and never substitutes for) the source range whose full provenance remains on the compacted session.
- Message
Range Digest - Prompt
Stack Digest - Terminal
Turn History - Canonical history after the engine has produced exactly one terminal
TurnOutcome. Partial stream accumulators are a different type and cannot be passed tobuild_chat_turn_capture. - Tool
Capture Summary
Enums§
- Capture
Build Error - Capture
Content Class - Host classification of one canonical history item. Only the first three variants can produce captured content; all other variants are forbidden.
- Capture
Schema Version - Compaction
Schema Version - Compaction
Summary Origin - Redaction
Policy - Sensitivity
- Summary
Capture Build Error
Constants§
- CAPTURE_
SEGMENT_ MAX_ BYTES - MAX_
TOOL_ SUMMARIES - SUMMARY_
CAPTURE_ MAX_ BYTES - TOOL_
NAME_ MAX_ BYTES - TOOL_
SUMMARY_ MAX_ BYTES
Functions§
- build_
chat_ turn_ capture - Build one bounded capture from a typed terminal history snapshot.
- build_
conversation_ summary_ capture - Build the bounded first-class memory emitted after a persisted compaction transition. The source digest and session are copied from the transition’s typed provenance rather than recomputed from the post-compaction history.