Teknium
acfa6e3691
refactor(agent): pass-2 structural compaction of prompt_caching and native_compaction
...
- prompt_caching: fold _count_cache_markers' nested _marked into one sum over
[*messages, *parts, *tools]; collapse the open-turn guard + endpoint append in
_completed_transaction_endpoint_indexes into one predicate; enumerate() in
apply_anthropic_cache_control's non_sys scan; effective_cache_ttl tail -> one
conditional; pack wrapped calls/comprehensions to <=120 cols; tighten
docstrings (every WHY kept).
- native_compaction: resolve_compact_threshold upper -> one conditional expr;
warn-once guard -> single if; _extract_item_text part loop drops the str/dict/
else ladder (candidates default (part,), non-str filtered by the same isinstance
check); _retain_summary early-return -> guarded body; pack wrapped calls and
docstrings.
Zero behavior change: E corpus (224MB) and C corpus byte-identical vs base
113f04616bd; extra corpus for warn-once/_extract_item_text edges identical;
68 test files / 1359 tests green; no symbol added/removed vs pass 1.
2026-09-02 21:44:48 -07:00
..
2026-09-02 18:32:02 -07:00
2026-09-02 18:58:26 -07:00
2026-09-02 19:46:38 -07:00
2026-09-02 19:12:59 -07:00
2026-09-02 13:29:46 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 16:36:10 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:52:52 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:34 -07:00
2026-09-02 13:29:31 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:46 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:30:15 -07:00
2026-09-02 13:33:04 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:52:52 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:29:36 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:29:46 -07:00
2026-08-21 21:53:11 +05:30
2026-09-02 13:29:40 -07:00
2026-09-02 13:53:58 -07:00
2026-09-02 13:29:38 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:58 -07:00
2026-09-02 13:29:37 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 16:36:10 -07:00
2026-09-02 13:29:45 -07:00
2026-09-02 09:33:05 -07:00
2026-09-02 13:29:45 -07:00
2026-09-02 13:52:52 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:53:58 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:36 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:52:52 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 17:07:36 -07:00
2026-09-02 13:30:25 -07:00
2026-08-23 18:25:19 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 18:29:05 -07:00
2026-09-02 19:05:15 -07:00
2026-09-02 19:50:13 -07:00
2026-09-02 19:50:13 -07:00
2026-09-02 18:28:38 -07:00
2026-09-02 18:28:38 -07:00
2026-09-02 19:50:13 -07:00
2026-09-02 19:50:13 -07:00
2026-09-02 19:21:50 -07:00
2026-09-02 19:10:21 -07:00
2026-09-02 19:41:04 -07:00
2026-09-02 19:18:35 -07:00
2026-09-02 18:33:06 -07:00
2026-09-02 21:44:48 -07:00
2026-09-02 19:12:17 -07:00
2026-09-02 19:05:15 -07:00
2026-09-02 19:05:15 -07:00
2026-09-02 18:58:26 -07:00
2026-09-02 18:25:58 -07:00
2026-09-02 19:10:21 -07:00
2026-09-02 19:10:21 -07:00
2026-09-02 18:22:01 -07:00
2026-09-02 19:05:15 -07:00
2026-09-02 19:05:15 -07:00
2026-09-02 18:28:38 -07:00
2026-09-02 19:07:30 -07:00
2026-09-02 21:44:48 -07:00
2026-09-02 18:33:06 -07:00
2026-09-02 19:10:21 -07:00
2026-09-02 18:44:36 -07:00
2026-09-02 19:10:21 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:46 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:29:46 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:53:58 -07:00
2026-07-29 15:28:15 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:57 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 17:07:35 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:53:58 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 16:57:55 -07:00
2026-09-02 17:28:22 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 16:43:08 -07:00
2026-09-02 16:42:25 -07:00
2026-09-02 13:30:20 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 16:43:09 -07:00
2026-09-02 16:43:09 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 17:07:35 -07:00
2026-09-02 16:57:55 -07:00
2026-09-02 13:29:48 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 17:07:35 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 13:30:23 -07:00
2026-09-02 13:30:23 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 17:28:22 -07:00
2026-09-02 16:37:14 -07:00
2026-09-02 13:29:46 -07:00
2026-09-02 13:30:23 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 17:28:22 -07:00
2026-09-02 13:30:21 -07:00
2026-09-02 13:30:23 -07:00
2026-09-02 13:30:16 -07:00
2026-09-02 13:52:51 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:30:25 -07:00
2026-09-02 13:29:47 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:29:40 -07:00
2026-09-02 13:53:28 -07:00
2026-09-02 13:53:28 -07:00