Niko1221
be58604387
Compaction reads the prompt size the model server measured, and a summary request always fits the window
...
The Harness prices a conversation at 4 characters a token; code, logs and JSON are about twice as dense. A new Harness plugin
(plugins/strata-context.mjs, arithmetic in context-budget.mjs) wraps the token meter so pressure is the last measured prompt plus what
came after, priced at the density that measurement showed. It also wraps the compaction summary request: when it would not fit the
window it is asked for in pieces (a message bigger than a piece is cut for the request, each piece builds on the summary before it, a piece
the server still refuses is halved). A chat the engine refused once (a 70K-token message in a 64K window) is no longer stuck: the next
message compacts and goes through. Tests run the real Harness against a scripted server that counts and refuses like the engine.
2026-10-22 14:40:20 +02:00
..
2026-10-22 14:40:20 +02:00
2026-10-15 14:18:13 +02:00
2026-10-18 20:40:33 +02:00
2026-10-18 00:58:54 +02:00
2026-10-15 17:28:33 +02:00
2026-10-18 20:55:06 +02:00
2026-10-17 19:11:09 +02:00
2026-10-19 19:40:57 +02:00
2026-10-19 23:52:04 +02:00
2026-10-19 11:29:40 +02:00
2026-10-16 22:32:11 +02:00
2026-10-16 22:32:11 +02:00
2026-10-20 14:12:04 +02:00
2026-10-19 23:38:49 +02:00
2026-10-18 12:52:12 +02:00
2026-10-20 16:57:27 +02:00
2026-10-15 10:24:09 +02:00
2026-10-15 14:18:13 +02:00
2026-10-18 20:47:43 +02:00
2026-10-18 13:04:09 +02:00
2026-10-18 20:46:09 +02:00
2026-10-17 19:11:09 +02:00
2026-10-20 14:17:31 +02:00
2026-10-19 23:38:49 +02:00
2026-10-15 10:24:09 +02:00
2026-10-20 18:52:30 +02:00
2026-10-19 23:38:49 +02:00
2026-10-15 10:24:09 +02:00
2026-10-15 10:24:09 +02:00
2026-10-15 10:24:09 +02:00
2026-10-20 16:57:27 +02:00
2026-10-19 19:40:57 +02:00
2026-10-18 03:14:46 +02:00
2026-10-20 14:12:52 +02:00
2026-10-19 23:38:49 +02:00
2026-10-15 10:24:09 +02:00
2026-10-20 15:30:37 +02:00
2026-10-18 14:41:11 +02:00
2026-10-20 14:03:26 +02:00
2026-10-19 19:54:47 +02:00
2026-10-15 10:24:09 +02:00
2026-10-20 14:03:26 +02:00
2026-10-16 14:19:31 +02:00
2026-10-20 23:59:31 +02:00
2026-10-18 21:36:51 +02:00
2026-10-15 10:24:09 +02:00
2026-10-19 19:56:01 +02:00
2026-10-21 00:23:09 +02:00
2026-10-19 19:29:39 +02:00
2026-10-20 00:11:11 +02:00
2026-10-18 21:55:51 +02:00
2026-10-19 19:54:48 +02:00
2026-10-18 12:59:05 +02:00
2026-10-15 12:31:49 +02:00
2026-10-20 14:12:52 +02:00
2026-10-19 23:38:49 +02:00
2026-10-16 10:10:43 +02:00
2026-10-15 14:18:13 +02:00
2026-10-19 19:54:47 +02:00
2026-10-15 10:24:09 +02:00
2026-10-18 14:14:18 +02:00
2026-10-15 10:24:09 +02:00
2026-10-20 15:29:51 +02:00
2026-10-15 10:24:09 +02:00
2026-10-15 10:24:09 +02:00
2026-10-16 14:21:32 +02:00
2026-10-15 10:24:09 +02:00
2026-10-19 23:38:49 +02:00
2026-10-18 20:55:06 +02:00
2026-10-20 15:14:01 +02:00
2026-10-15 10:24:09 +02:00
2026-10-15 10:24:09 +02:00
2026-10-19 21:05:20 +02:00
2026-10-19 21:05:20 +02:00
2026-10-17 05:02:30 +02:00
2026-10-16 13:15:12 +02:00
2026-10-19 23:38:49 +02:00
2026-10-19 19:40:05 +02:00
2026-10-19 19:40:05 +02:00
2026-10-16 22:32:11 +02:00
2026-10-18 13:07:03 +02:00
2026-10-18 20:53:37 +02:00
2026-10-18 20:53:37 +02:00
2026-10-16 10:35:36 +02:00