Update docs/design/DDR-session-summarization.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Boris Bliznioukov 2026-03-06 16:03:09 +01:00 committed by GitHub
parent bbb1ed6033
commit b0bd077d7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ Session context grows without bound during long conversations. The original impl
- `MaybeSummarize(key)` — threshold check + async dispatch.
- `ForceCompression(key)` — emergency drop of older half.
- `ApplySummarization(key, summary, snapshotLen, keepLast)` — atomic merge that compares `snapshotLen` to current message count, preserving messages appended during async work.
- `summarizeSession(ctx, key)` — unexported, handles single/multi-part batching.
- `summarizeSession(sessionKey string)` — unexported, handles single/multi-part batching.
2. **MUST** define a `Summarizer` interface in `pkg/session`: