From ff5a545404e87945d2bfe3bd0268d07400a957a4 Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Sun, 17 May 2026 09:21:16 +0000 Subject: [PATCH] config: example for context.summarize_every_n_turns (#101) Documents the new cadence-summarization keys (summarize_every_n_turns, summarize_keep_recent) inline with the existing Phase 5 eviction summarize block. Notes the composition with summarize_on_evict and the Norris suppression parity. Config-only commit. Co-Authored-By: Claude Opus 4.7 (1M context) --- config.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.lua b/config.lua index fa1d7a1..dbb8ff3 100644 --- a/config.lua +++ b/config.lua @@ -358,6 +358,17 @@ return { -- summarize_on_evict = true, -- summarizer_model = "fast", -- model name in models{} -- max_summary_chars = 2000, + -- + -- -- #101 (proactive periodic summarization). When set, + -- -- enforce_cadence fires every N appends (before + -- -- enforce_budget) and folds turns OLDER than + -- -- summarize_keep_recent into ctx.summary. Goal: keep the + -- -- wire prompt tight from the start so small local models + -- -- aren't fed near-budget context until eviction. Composes + -- -- with summarize_on_evict (same summarize_fn closure; + -- -- different trigger). Suppressed in Norris (R-C4 parity). + -- summarize_every_n_turns = 10, -- nil = disabled (default) + -- summarize_keep_recent = 4, -- }, -- When summarize_on_evict is true, evicted turn pairs are fed to -- summarizer_model and the result lives on ctx.summary, appended to