Commit Graph

28309 Commits

Author SHA1 Message Date
Teknium 83f8aaca60 refactor(agent/codex_responses_adapter): unify reasoning/compaction capture into _capture_encrypted_item 2026-09-02 22:35:35 -07:00
Teknium b3135ec7a8 refactor(agent/codex_responses_adapter): role-message default in preflight dispatch, drop _OutputScan._capture, collapse redundant guards 2026-09-02 22:32:36 -07:00
Teknium ef7230d58e refactor(agent/codex_responses_adapter): _as_list helper, merge reasoning/compaction preflight, inline single-use helpers 2026-09-02 22:21:28 -07:00
Teknium 7b699005c8 refactor(agent): AST-identical blank-line compaction in bedrock/codex/client_lifecycle 2026-09-02 21:55:10 -07:00
Teknium d0f1e6cf4b Merge branch 'simp/r3-04-w2' into simp/r3-04 2026-09-02 21:43:04 -07:00
Teknium c14ae92fea refactor(agent/context_compressor): fold derived-budget cache resets 2026-09-02 20:44:33 -07:00
Teknium ce4326c9a8 Merge branch 'simp/r3-04-w3' into simp/r3-04 2026-09-02 20:40:10 -07:00
Teknium bed463381f refactor(agent/context_compressor): class-qualify helper calls in _clear_compression_failure_cooldown (bare-stub binding) 2026-09-02 20:31:31 -07:00
Teknium 71bfa94ff9 refactor(agent/context_compressor): use the failure-kind dataclass directly; compact threshold/arg helpers 2026-09-02 20:23:47 -07:00
Teknium 932f7532ca refactor(agent/context_compressor): third AST-identical reflow pass at 118 cols 2026-09-02 20:19:10 -07:00
Teknium 5f7284e86e refactor(agent/context_compressor): repack historical-prefix and abort-message literals (values byte-identical) 2026-09-02 20:15:48 -07:00
Teknium 53800aab9d refactor(agent/conversation_compression): drop duplicated comments 2026-09-02 20:14:49 -07:00
Teknium 6082f7d442 refactor(agent/compression): join remaining fragmented log/warning literals (AST-identical) 2026-09-02 20:13:50 -07:00
Teknium 684fa87ad4 refactor(agent/context_compressor): fold parent-row rotation reads 2026-09-02 20:10:37 -07:00
Teknium 91cf271093 refactor(agent/context_compressor): second AST-identical reflow pass 2026-09-02 20:08:10 -07:00
Teknium 322f04f8fb refactor(agent/context_compressor): reflow docstrings/comments to width (every word preserved) 2026-09-02 20:04:00 -07:00
Teknium 551fe6ea78 refactor(agent/conversation_compression): fold heartbeat suppress predicate, lease-refresh swallow, cooldown capture ordering 2026-09-02 19:57:49 -07:00
Teknium 321e8a79b0 refactor(agent/context_compressor): one newest-first token walk shared by tail-cut and prune boundary 2026-09-02 19:53:45 -07:00
Teknium 3a1e4a7661 refactor(agent/compression): fold boundary bookkeeping locals; pack one-item-per-line call/def argument lists (AST-identical) 2026-09-02 19:51:06 -07:00
Teknium 3d17787a28 Merge branch 'simp/r3-04-w5' into simp/r3-04 2026-09-02 19:50:01 -07:00
Teknium 4c008def67 Merge branch 'simp/r3-04-w4' into simp/r3-04 2026-09-02 19:49:59 -07:00
Teknium e98cb83605 Merge branch 'simp/r3-04-w1' into simp/r3-04 2026-09-02 19:49:57 -07:00
Teknium d3b93c45c9 refactor(agent/context_compressor): flatten historical-media strip, summarizer part/tool-call rendering, orphan sanitizer 2026-09-02 19:49:48 -07:00
Teknium adbac330c7 refactor(agent/context_compressor): repack implicitly-concatenated string literals (values byte-identical) 2026-09-02 19:46:07 -07:00
Teknium 264cc6bd99 refactor(agent/conversation_compression): thread an _Attempt carrier through compress_context phases 2026-09-02 19:45:08 -07:00
Teknium 836fa5e08e refactor(agent/chat_completion_helpers): compact streaming call sites and tool-call accumulator 2026-09-02 19:43:52 -07:00
Teknium 7b8d547ffc refactor(agent/context_compressor): normalize blank lines (ruff E302/E303/E305) 2026-09-02 19:43:18 -07:00
Teknium 939305f186 refactor(agent/context_compressor): pack multi-line def signatures (AST-identical) 2026-09-02 19:42:06 -07:00
Teknium fa4fc3ea1b refactor(agent/compression): reflow docstrings/comment blocks to 118 cols (word-identical) 2026-09-02 19:39:34 -07:00
Teknium b233420b3d refactor(agent/context_compressor): shared real-user index helper, folded guard ladders, telemetry loop cleanup 2026-09-02 19:39:24 -07:00
Teknium ec0984c62b refactor(agent/conversation_compression): flatten _strip_stale_todo_snapshot list branch 2026-09-02 19:37:58 -07:00
Teknium 0419866f01 refactor(agent/conversation_compression): fold anchor placement, steer markers, orphan reopen, timeout config parsing 2026-09-02 19:37:08 -07:00
Teknium e0d7f18fc4 refactor(agent/compression): drop blank lines after function-local imports (AST-identical) 2026-09-02 19:31:44 -07:00
Teknium 64215c980c refactor(agent/conversation_compression): log-and-swallow try/except -> _swallow() context manager (27 sites) 2026-09-02 19:30:28 -07:00
Teknium a0e0705ae7 refactor(agent/chat_completion_helpers): compact bedrock/streaming helpers and relay metadata 2026-09-02 19:27:15 -07:00
Teknium 72f1e2e2c1 refactor(agent/codex_runtime,bedrock_adapter): fold assembler state, pending-call guard, toolUse block builder (-16 LOC) 2026-09-02 19:26:47 -07:00
Teknium 1d7fb737cd refactor(agent/context_compressor): prompt scaffolding helpers, shared real-usage reset, compact text/length helpers 2026-09-02 19:25:44 -07:00
Teknium 4fc0d74fe3 refactor(agent/compression): try/except-pass -> contextlib.suppress (21 sites) 2026-09-02 19:24:14 -07:00
Teknium c205b41a52 refactor(agent/chat_completion_helpers): drop _env_float duplicate of utils.env_float; compact kwargs builders and assistant-message helpers 2026-09-02 19:23:26 -07:00
Teknium db1214a406 refactor(agent/codex*,bedrock_adapter): share Mantle URL parse, billing identity, route flag unpacking; fold stream/tools preflight (-29 LOC) 2026-09-02 19:23:16 -07:00
Teknium 5f716407b9 refactor(agent/context_compressor): move per-section summarizer instructions into a keyed table (text byte-identical) 2026-09-02 19:21:58 -07:00
Teknium 7bd7c1114a refactor(agent/compression): join fragmented adjacent string literals (AST-identical) 2026-09-02 19:19:41 -07:00
Teknium 50dafd06b7 style(agent/codex*,bedrock_adapter): restore one blank line after nested defs 2026-09-02 19:18:13 -07:00
Teknium de1567095a refactor(agent/chat_completion_helpers): collapse defensive layers and compact call sites across the non-streaming region 2026-09-02 19:17:28 -07:00
Teknium a7e616ee5f refactor(agent/context_compressor): flatten _scan_window_handoffs around an early return 2026-09-02 19:17:16 -07:00
Teknium 17ce6b2686 refactor(agent/bedrock_adapter,codex_responses_adapter): unify reasoning-block absorb and role-aware image part builders 2026-09-02 19:16:48 -07:00
Teknium 4051b537e5 refactor(agent/compression_facade): lift pooled timeout run, marker mirror and caller rebind out of _compress_context 2026-09-02 19:16:38 -07:00
Teknium 4b0116025b refactor(agent/conversation_compression): lift durable lock acquire + contention sit-out out of _acquire_compression_lease 2026-09-02 19:13:27 -07:00
Teknium e468577b13 refactor(agent/context_compressor): shared content-part text helpers for handoff projection/unwrapping 2026-09-02 19:13:23 -07:00
Teknium 98ec26620c refactor(agent/bedrock_adapter,codex_responses_adapter): compact docstrings/comments, keep every WHY (-150 LOC) 2026-09-02 19:08:45 -07:00