pub struct SpanSummary {
pub model_id: String,
pub prompt_version: String,
pub summary_hash: ContentHash,
}Expand description
TR-7 (T20) audit metadata for a ReductionKind::TurnsCleared span whose
placeholder carries an LLM-generated summary. Recorded on the reduction
itself (persisted in the <name>.reduction.json sidecar-family file) so
the audit trail survives independent of the exact placeholder rendering
(SPEC.md TR-7 dev/04: “reduction log records model id, prompt version,
and summary hash for every summarized span”).
Fields§
§model_id: StringIdentifier of the model that generated the summary (e.g.
"claude-haiku-4-5"), taken verbatim from
summarize::SpanSummarizer::model_id.
prompt_version: StringVersion of the fixed, in-repo summarization prompt used
(summarize::PROMPT_VERSION at mint time) — never recomputed
later, so a prompt-wording change never rewrites history for spans
already summarized under an earlier version.
summary_hash: ContentHashblake3 hex digest of the summary paragraph text (BEFORE the honesty banner/id are appended) — verifiable independent of the placeholder’s exact surrounding punctuation.
Trait Implementations§
Source§impl Clone for SpanSummary
impl Clone for SpanSummary
Source§fn clone(&self) -> SpanSummary
fn clone(&self) -> SpanSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more