Skip to main content

Module summary

Module summary 

Source
Expand description

A deterministic model-facing view of history. Source transcripts stay lossless.

Structs§

SummaryEntry
TranscriptSummary

Enums§

SummaryRole

Constants§

ARCHIVE_HANDOFF_PREAMBLE
Opening sentence of a hand-off written when an archived session is restored from the SessionWiki index. The restored session has no workspace from the old one, so it is marked apart from a cross-harness resume.
DEFAULT_SUMMARY_BYTES
FULL_TOOL_CALLS
HANDOFF_PLACEHOLDER
What a prior handoff turn contributes to a new compaction. The transcript already carries the pre-resume lineage as ordinary turns, so repeating the handoff body would only spend budget on a summary of a summary.
HANDOFF_PREAMBLE
Opening sentence of every handoff this module writes. Generation and detection share it so a later resume can always recognize its own prior handoff turns.
LEGACY_HANDOFF_PREAMBLE
Opening sentence of the byte-truncating handoff this pipeline replaced. Sessions resumed by that build still carry it in their transcripts.
SUMMARY_VERSION
Change when derived indexing content changes, even without a source update.

Functions§

excerpt
A head/tail excerpt with an explicit byte omission count, never broken UTF-8.
indexed_tool_call
Reconstruct indexed summary content without treating serialized detail as a tool name. Legacy indexes contain only titles and have no recoverable tool payload.