Commit Graph

28276 Commits

Author SHA1 Message Date
Teknium fdd42fc8f8 Merge branch 'simp/r3-03-rth' into simp/r3-03 2026-09-02 21:19:21 -07:00
Teknium 7e7ac989d8 Merge branch 'simp/r3-03-review' into simp/r3-03 2026-09-02 21:19:18 -07:00
Teknium 61893464dc Merge branch 'simp/r3-03-init' into simp/r3-03 2026-09-02 21:19:17 -07:00
Teknium 96fb75621b refactor(agent/anthropic_*,background_review): final density pass — walrus guards, single-line SDK errors, screenshot placeholder hoist, run-token latch folds 2026-09-02 20:45:26 -07:00
Teknium 219f4b5b7d refactor(agent/agent_init): repoint micro-compaction source pin to table entry 2026-09-02 20:37:46 -07:00
Teknium 1bc8337bd0 refactor(agent/background_review,anthropic_*): inline request-phase finisher, walrus pin/prefill folds, drop intra-function padding 2026-09-02 20:27:46 -07:00
Teknium 395327c16f refactor(agent/agent_init): fold fallback-chain banner; drop redundant aux-context pre-init 2026-09-02 20:23:31 -07:00
Teknium 3728e76093 refactor(agent/agent_init): compact compression summary + context-engine tool injection 2026-09-02 20:20:49 -07:00
Teknium 1bb0ebf47c refactor(agent/agent_runtime_helpers): final defensive collapses (debug dump, pool rebind, tool-name repair) 2026-09-02 20:17:58 -07:00
Teknium 336fd952d6 refactor(agent/agent_init): fold custom-provider model-match + key-filter ladders 2026-09-02 20:17:33 -07:00
Teknium 03bf62ae39 refactor(agent/anthropic_adapter,message_convert): fold stream/create kwarg filtering, tool-result content resolution, replay helpers; drop blank-line padding inside builders 2026-09-02 20:17:22 -07:00
Teknium 2c85a124f2 refactor(agent/agent_init): fold route normalizer + memory-provider warn branch 2026-09-02 20:16:07 -07:00
Teknium 963b0e2eef refactor(agent/agent_init): tighten route-url, run-budget and extra_body helpers 2026-09-02 20:13:57 -07:00
Teknium 45e070d23e refactor(agent/background_review): prompt-scope dispatch table, _tool_messages iterator, fold metadata/usage builders, compact docstrings 2026-09-02 20:11:43 -07:00
Teknium 1c1fa21d17 refactor(agent/api_request_hooks,activity_tracking): try/except-pass → suppress 2026-09-02 20:10:26 -07:00
Teknium db579c75a9 refactor(agent/agent_runtime_helpers): collapse marker prepend, cursor prefix, ttl predicate 2026-09-02 20:10:03 -07:00
Teknium dc5bd74cfb refactor(agent/agent_init): try/except-pass → contextlib.suppress (26 sites) 2026-09-02 20:05:54 -07:00
Teknium 58ae7dcff6 refactor(agent/agent_runtime_helpers): compact transport recovery, user-merge, reset gate, turn tripwire 2026-09-02 20:05:25 -07:00
Teknium 5dc9c223e1 refactor(agent/anthropic_adapter,message_convert): compact tables and docstrings, _assistant_block_lists iterator, _carry_cache_control copy mode, collapse predicate ladders 2026-09-02 20:01:36 -07:00
Teknium d85caa9360 refactor(agent/agent_runtime_helpers): compact cache-plan/MoA/custom-route helpers 2026-09-02 20:01:00 -07:00
Teknium 45e204a48e refactor(agent/agent_init): extract _apply_openai_header_policy; reuse identity table; fold display-config ladders 2026-09-02 20:00:03 -07:00
Teknium 78a9babc48 refactor(agent/agent_runtime_helpers): tighten repair passes and content flattening 2026-09-02 19:56:34 -07:00
Teknium 9065fb15fa refactor(agent/agent_init): pack init_agent signature (AST-neutral) 2026-09-02 19:53:20 -07:00
Teknium a2fb880d79 refactor(agent/agent_runtime_helpers): flatten pool walk, steer requeue, error-context, orphan classifier 2026-09-02 19:51:54 -07:00
Teknium 1defa76992 refactor(agent/agent_init): flatten tool-loading banner branches; single model section lookup 2026-09-02 19:49:23 -07:00
Teknium f9d27dfcd0 refactor(agent/agent_runtime_helpers): flatten auth recovery, socket walk, payload predicate, heal-log state 2026-09-02 19:47:44 -07:00
Teknium d5b0a85c93 refactor(agent/agent_init): repoint turn-base-anchor source pin to _USAGE_STATE table 2026-09-02 19:46:07 -07:00
Teknium 429b7895e6 refactor(agent/background_review): factor shared do-not-capture prompt tail into _DO_NOT_CAPTURE_BLOCK (assembled bytes verified identical), compact fork attribute setup 2026-09-02 19:45:48 -07:00
Teknium 574d04e3cc refactor(agent/agent_init): CompressionSettings as SimpleNamespace; bool-gate loop; drop dead _emit_warning hasattr; tighten lazy-import blanks 2026-09-02 19:44:33 -07:00
Teknium 63f77f9f34 refactor(agent/agent_init): compact function docstrings (AST-neutral) 2026-09-02 19:41:35 -07:00
Teknium d1b0553203 refactor(agent/agent_runtime_helpers): compact comments and intra-function blank lines 2026-09-02 19:41:28 -07:00
Teknium a7b48544da refactor(agent/agent_init): session + usage state as default tables 2026-09-02 19:38:50 -07:00
Teknium e758eb2e0f refactor(agent/agent_runtime_helpers): contextlib.suppress, dedupe-pass single alias map, pack log calls 2026-09-02 19:37:48 -07:00
Teknium 09eb9c01eb refactor(agent/background_review): repack review prompt literals at sentence/paragraph boundaries (bytes verified identical) 2026-09-02 19:35:20 -07:00
Teknium f7e89504dd refactor(agent/agent_init): control/turn/stream state as declarative default tables (_set_defaults) 2026-09-02 19:30:33 -07:00
Teknium bfd8f12c13 refactor(agent/anthropic_*,background_review): tool_choice table, shared block helpers (_split_blank_text_blocks, _carry_cache_control, _block_ids), predicate collapse in endpoints, suppress() for swallow-all guards 2026-09-02 19:26:25 -07:00
Teknium ee1ef6acb6 refactor(agent/agent_runtime_helpers): collapse small helpers, compact docstrings/comments (WHYs kept, issue refs dropped) 2026-09-02 19:22:29 -07:00
Teknium 51cec303ad refactor(agent/agent_init): collapse getattr on always-present provider; simplify anthropic key fallback 2026-09-02 19:21:40 -07:00
Teknium 8a0be6af2a refactor(agent/agent_init): compact inline comments to WHY-only (AST-neutral) 2026-09-02 19:17:01 -07:00
Teknium bea9bc1ab9 refactor(agent/agent_runtime_helpers): AST-neutral layout pass (hug/pack bracket spans, blank runs) 2026-09-02 19:12:43 -07:00
Teknium f106dd6374 refactor(agent/background_review,anthropic_adapter): drop dead is_background_review_enabled (tests repointed to load_background_review_settings), share _new_sdk_client, table call-detail defaults 2026-09-02 19:12:32 -07:00
Teknium 25207b1d8b refactor(agent/agent_runtime_helpers): client/invoke_tool/debug-dump/ack/steer helpers; compact async_utils + aux_accounting 2026-09-02 19:11:28 -07:00
Teknium 9f1ab5a7f2 refactor(agent/agent_init): fix model_thresholds parse on absent key; repoint banner source-pin test to _print_key_banner 2026-09-02 19:11:16 -07:00
Teknium 658b292805 refactor(agent/anthropic_credentials,account_usage,azure_identity_adapter): fold single-use branches, compact docstrings 2026-09-02 19:07:53 -07:00
Teknium a5e537cfa9 refactor(agent/agent_init): wip checkpoint — phase-helper split of init, param tables, header factory table, compression parse helpers; mixin compaction 2026-09-02 19:07:13 -07:00
Teknium 776220640f refactor(agent/anthropic_adapter): _auth_style classifier replaces header ladder, extract _stream_final_message, trim re-export block to externally used names 2026-09-02 19:03:53 -07:00
Teknium 5eb0f4f7d1 refactor(agent/anthropic_message_convert): share _strip_thinking, extract latest-turn thinking filter, compact docstrings; endpoints docstrings 2026-09-02 19:03:50 -07:00
Teknium 512ea3b0c6 refactor(agent/agent_runtime_helpers): helper extraction for arg sanitizer, user-merge, heal log, socket walk, error-context regexes 2026-09-02 18:58:17 -07:00
Teknium 83f2fb0984 refactor(agent/account_usage,anthropic_credentials,azure_identity_adapter,acp_openai_bridge): outcome table, env lookup helper, compact literals and docs 2026-09-02 18:56:06 -07:00
Teknium 92c5101c78 refactor(agent/agent_runtime_helpers): trajectory/strip_think/extract_reasoning helpers + pattern tables; drop dead _tool_call_id_variants 2026-09-02 18:51:04 -07:00