Teknium
0913885250
fix(delegation): summary headroom uses the aggregator's own prompt size; unknown usage means the static ceiling, never zero context
...
Independent review found two holes in the first fix. A parent with no usage
row yet was treated as 0 tokens used, so a 190K/200K prompt received a
384K-char dynamic summary budget instead of ~4K; the budget now returns None
(static ceiling only) when nothing is known. And under MoA the folded usage
includes advisor prompts that are not in the parent's context, over-stating
the prompt size and wrongly truncating summaries; turn_usage now records the
aggregator's pre-fold prompt_tokens as _last_prompt_size_tokens and the
budget reads that first.
Tests (2 new): unknown usage -> None; MoA-folded and unfolded parents with
the same real prompt get the same budget.
2026-09-05 06:18:41 -07:00
..
2026-09-03 13:49:57 -07:00
2026-09-03 15:50:55 -07:00
2026-09-05 00:10:26 -07:00
2026-09-02 00:44:19 -07:00
2026-09-03 19:33:28 -07:00
2026-09-03 13:22:51 -07:00
2026-09-03 19:33:28 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 17:28:02 -07:00
2026-09-05 10:54:19 +05:30
2026-09-03 23:55:56 -07:00
2026-08-31 01:04:11 -07:00
2026-09-05 11:05:17 +05:30
2026-09-04 20:24:51 -04:00
2026-09-03 16:35:01 -07:00
2026-09-03 15:07:39 -07:00
2026-09-04 00:53:42 -07:00
2026-09-03 13:38:36 -07:00
2026-09-03 13:29:35 -07:00
2026-09-01 14:11:55 +05:30
2026-09-04 07:17:00 -07:00
2026-09-04 15:58:59 -07:00
2026-09-03 13:38:36 -07:00
2026-09-05 10:54:19 +05:30
2026-09-02 00:06:01 -07:00
2026-09-02 10:33:43 -07:00
2026-08-30 04:53:39 -07:00
2026-09-03 16:35:01 -07:00
2026-09-05 06:18:41 -07:00
2026-09-03 15:15:53 -07:00
2026-09-04 07:17:00 -07:00
2026-09-01 09:28:01 -07:00
2026-09-03 13:28:22 -07:00
2026-08-31 09:56:43 -07:00
2026-08-31 12:36:33 -07:00
2026-09-02 18:41:26 -07:00
2026-09-02 19:20:44 -07:00
2026-09-03 14:21:52 -07:00
2026-09-02 13:29:46 -07:00
2026-08-30 01:20:27 -07:00
2026-09-03 13:29:55 -07:00
2026-09-04 00:15:16 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:28:22 -07:00
2026-09-02 19:53:29 -07:00
2026-09-01 08:36:03 -07:00
2026-09-02 00:44:19 -07:00
2026-08-31 10:05:13 -07:00
2026-09-02 06:19:03 -07:00
2026-09-03 13:12:50 -07:00
2026-09-02 15:03:42 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 05:03:04 +05:30
2026-08-31 09:56:43 -07:00
2026-09-02 15:03:42 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 02:06:56 +05:30
2026-09-02 15:03:42 -07:00
2026-09-03 16:35:01 -07:00
2026-08-31 09:56:04 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:16:47 -07:00
2026-08-31 10:00:38 -07:00
2026-09-02 17:26:25 -04:00
2026-09-01 09:28:01 -07:00
2026-09-01 09:28:01 -07:00
2026-09-01 09:28:01 -07:00
2026-08-31 10:00:55 -07:00
2026-08-31 10:53:18 -07:00
2026-08-31 10:53:18 -07:00
2026-09-01 11:25:10 -07:00
2026-09-03 13:48:14 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 15:07:39 -07:00
2026-09-02 17:07:24 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:48:49 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:28:22 -07:00
2026-08-31 10:03:34 -07:00
2026-09-03 17:45:53 -07:00
2026-09-04 04:56:11 -07:00
2026-09-04 01:28:31 -07:00
2026-09-04 20:24:24 -04:00
2026-09-04 20:24:24 -04:00
2026-09-03 19:33:28 -07:00
2026-09-03 14:21:52 -07:00
2026-08-31 05:56:18 -07:00
2026-09-03 13:46:50 -07:00
2026-08-31 09:56:04 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 13:46:50 -07:00
2026-09-02 07:26:52 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 16:35:01 -07:00
2026-09-03 13:46:50 -07:00
2026-08-31 09:58:40 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 17:00:26 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 14:21:52 -07:00
2026-09-03 14:18:25 -07:00
2026-09-03 13:12:50 -07:00
2026-09-03 13:12:50 -07:00
2026-09-03 13:12:50 -07:00
2026-08-31 09:56:43 -07:00