Niko1221
991fe4fc5b
agent: leave a compaction range alone when a summary cannot bring the conversation under the limit
...
The Harness starts pressure compaction at a token count that depends on the window (profile.mjs compactionThreshold). A chat's fixed part (system
prompt and tools) is about 10.5K tokens (context-fit.mjs BASE_TOKENS). On a 16K window the threshold is 10,036, below that fixed part, so every step
started a compaction: a summary request over the conversation and a rewritten history that the engine reads again from the start (measured on an RTX
3060, SQ-20, one slot: cached_tokens 0 on every step, 31-36 s of prompt reading per step, plus 8-24 s per summary).
profile.mjs now also hands the plugin the limit of each route and model; strata-compaction.mjs skips a pressure compaction when the tokens outside the
range plus a minimal summary already reach that limit. The context-overflow trigger, ranges that do bring the conversation under the limit, models
without a limit, and an unmeasured total behave as before.
2026-12-02 00:07:01 +01:00
..
2026-12-02 00:07:01 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-22 14:15:07 +01:00
2026-11-30 01:02:00 +01:00
2026-11-20 07:11:56 +01:00
2026-11-30 23:25:57 +01:00
2026-11-30 23:25:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-25 10:53:45 +01:00
2026-11-22 14:15:07 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-29 16:24:02 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-30 21:53:58 +01:00
2026-11-30 23:25:57 +01:00
2026-11-19 13:10:56 +01:00
2026-11-17 13:19:21 +01:00
2026-11-23 14:03:23 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-21 00:14:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-12-01 15:35:41 +01:00
2026-11-19 01:30:07 +01:00
2026-11-26 20:31:30 +01:00
2026-11-27 16:05:03 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-19 10:56:06 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-27 00:49:59 +01:00
2026-11-17 13:19:21 +01:00
2026-11-22 14:15:07 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-22 14:15:07 +01:00
2026-11-30 23:25:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-23 12:38:49 +01:00
2026-11-17 13:19:21 +01:00
2026-11-19 13:12:17 +01:00
2026-11-17 13:19:21 +01:00
2026-11-22 14:15:07 +01:00
2026-11-23 13:54:32 +01:00
2026-11-17 13:19:21 +01:00
2026-11-21 20:56:15 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-20 07:11:56 +01:00
2026-11-22 14:15:07 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-29 14:57:33 +01:00
2026-11-17 13:19:21 +01:00
2026-11-25 11:01:26 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-29 16:24:02 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-30 21:53:58 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-29 14:43:54 +01:00
2026-11-19 01:30:07 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 19:32:44 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 18:51:25 +01:00
2026-11-22 18:53:59 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 01:02:00 +01:00
2026-11-30 01:02:00 +01:00
2026-11-30 01:02:00 +01:00
2026-12-01 21:58:25 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-17 13:19:21 +01:00
2026-11-30 23:25:57 +01:00
2026-11-30 23:25:57 +01:00
2026-11-30 23:25:57 +01:00