Commit Graph

28237 Commits

Author SHA1 Message Date
Teknium fa06ccf236 refactor(agent/relay_runtime): _operation() context manager for tracked Relay calls 2026-09-02 20:51:04 -07:00
Teknium c6b813e9d6 refactor(agent/relay): hoist relay_tools guard closure; suppress/tuple-swap micro-collapses 2026-09-02 20:47:01 -07:00
Teknium c378c7f632 refactor(agent/relay): shared canonical JSON encoder; ManagedLlmStream startup teardown collapsed to one guard 2026-09-02 20:44:09 -07:00
Teknium 720a4d46ef refactor(agent/relay_runtime): end_turn accounting via suppress+lock; logical-call unwind pops from the tail 2026-09-02 20:37:43 -07:00
Teknium b121ac4a83 refactor(agent/relay_llm): execute/execute_async default to the inherited turn's session; execute_current(_async) become aliases 2026-09-02 20:29:43 -07:00
Teknium 5adb74fd24 refactor(agent/relay_runtime,transports): inline single-use _push_session_scope; get_transport rediscovery predicate 2026-09-02 20:23:21 -07:00
Teknium 2fb2402678 refactor(agent/relay_llm): one _rewrite_tools helper for the three codec tool-shape translations 2026-09-02 20:16:58 -07:00
Teknium ec3ad0c7e6 refactor(agent/relay_llm): drop dead _relay_observes_chunks branch; _ManagedAttempt._complete; fold stream_current fast paths 2026-09-02 20:14:42 -07:00
Teknium 38534b92a1 refactor(agent/relay_runtime): plugin configuration acquire = preflight-or-activate; drop _remember; reflow boolean spans 2026-09-02 20:07:59 -07:00
Teknium 9d0586c275 refactor(agent/relay_runtime): resolve_execution_context reuses relay_instrumentation_enabled; tighter turn unwind/profile key 2026-09-02 19:59:48 -07:00
Teknium c83de74cb7 refactor(agent/relay): pack call/signature spans to 120 cols 2026-09-02 19:55:45 -07:00
Teknium bc224e648d refactor(agent/relay): RelayRuntime._lookup for locked registry reads; first-close-error helper; subagent parent predicate leans on active_turn 2026-09-02 19:52:58 -07:00
Teknium ff4d896e50 refactor(agent/relay,transports): fold docstring whitespace (text unchanged) 2026-09-02 19:49:06 -07:00
Teknium b162ef97b1 refactor(agent/relay_runtime): contextlib.suppress for swallow-only excepts; shared timeout message; daemon-thread outcome box 2026-09-02 19:46:01 -07:00
Teknium 46f696c48b refactor(agent/relay,transports): anthropic build_kwargs default table + thinking-type set; compact accumulator/logical-scope plumbing 2026-09-02 19:43:35 -07:00
Teknium 76292b6385 refactor(agent/relay_llm): ManagedLlmStream provider stream/finalizer become methods (drop 90-line closure factory) 2026-09-02 19:40:20 -07:00
Teknium 552c5b62ca refactor(agent/relay_runtime): remove dead emit_mark (module fn + RelayRuntime method; only a test asserted its False path) 2026-09-02 19:31:18 -07:00
Teknium e58175139d refactor(agent/relay): drop _safe in favour of _warn_on_error/suppress; pack spans to 110 cols; strip intra-function separator blanks 2026-09-02 19:24:48 -07:00
Teknium 2ed4135398 refactor(agent/relay_runtime): _warn_on_error fail-open helper for telemetry paths; conversation/compaction bodies lifted out of try blocks 2026-09-02 19:12:37 -07:00
Teknium be3a659b14 refactor(agent/relay): compact relay/transport docstrings and comments (keep every invariant); reflow boolean spans; drop no-op helpers 2026-09-02 18:53:45 -07:00
Teknium a560fd840c refactor(agent/relay): fold execute/execute_async invoke into _ManagedAttempt; stream() = ManagedLlmStream; codec tool normalizer table; plugin acquire preflight/activate split; pack call/signature spans 2026-09-02 18:35:48 -07:00
Teknium 113f04616b Merge branch 'simp/r2-state' into simp/integration2
# Conflicts:
#	hermes_state_messages.py
2026-09-02 17:49:43 -07:00
Teknium f07ff1026f Merge branch 'simp/r2-update-doctor' into simp/integration2 2026-09-02 17:49:26 -07:00
Teknium 9c65ca8a02 Merge branch 'simp/r2-models-runtime' into simp/integration2 2026-09-02 17:49:26 -07:00
Teknium 56202613ef Merge branch 'simp/r2-loop' into simp/integration2 2026-09-02 17:49:25 -07:00
Teknium 56c5798203 Merge branch 'simp/r2-kanban' into simp/integration2 2026-09-02 17:49:25 -07:00
Teknium 06fb390212 fix(integration): restore stdin=DEVNULL on computer_use subprocess calls dropped in simplification 2026-09-02 17:48:26 -07:00
Teknium 135973b5b6 Merge branch 'simp/r2-state-b' into simp/r2-state
# Conflicts:
#	hermes_state_messages.py
2026-09-02 17:35:13 -07:00
Teknium 1113b65f3e Merge branch 'simp/r2-state-c' into simp/r2-state 2026-09-02 17:34:33 -07:00
Teknium 37e0e1a76d refactor(kanban-cli): split the subcommand spec list so no function exceeds 300 LOC 2026-09-02 17:30:13 -07:00
Teknium f9f87d9876 refactor(kanban-cli): compact docstrings/comments in kanban.py keeping every rationale 2026-09-02 17:30:13 -07:00
Teknium 37b160d04e refactor(kanban-cli): extract dispatcher/maintenance verbs to kanban_ops; unify single-mutation ok/err reporting 2026-09-02 17:30:13 -07:00
Teknium c7f3578521 refactor(kanban-cli): extract boards cluster to kanban_boards; unify goal-gate, id/reason, run-state and config helpers across handlers 2026-09-02 17:30:12 -07:00
Teknium 62a1607fbf refactor(kanban-cli): extract data-driven argparse tree to kanban_parser and output helpers to kanban_output 2026-09-02 17:30:12 -07:00
Teknium 7dc43c94d1 refactor(turn): sub-split handle_api_error / check_api_response / run_tool_round so no new turn_* function exceeds 300 LOC 2026-09-02 17:28:22 -07:00
Teknium d52d8f988f Merge branch 'simp/r2-state-b' into simp/integration2 2026-09-02 17:27:36 -07:00
Teknium 857cf925b3 Merge branch 'simp/r2-tools-a' into simp/integration2 2026-09-02 17:27:36 -07:00
Teknium b1b171c0fe Merge branch 'simp/r2-gw-rest' into simp/integration2 2026-09-02 17:27:35 -07:00
Teknium 464ee35248 refactor(kanban-db): compact docstrings/comments in the four split modules (AST-identical, every WHY kept) 2026-09-02 17:27:14 -07:00
Teknium 8dca2031d3 Merge branch 'simp/r2-cli-rest-setup' into simp/integration2
# Conflicts:
#	hermes_cli/setup.py
2026-09-02 17:27:09 -07:00
Teknium e93960b47c Merge branch 'simp/r2-gw-rest-rooms' into simp/r2-gw-rest 2026-09-02 17:26:37 -07:00
Teknium 7d0f4ce3aa Merge branch 'simp/r2-state-b' into simp/integration2
# Conflicts:
#	hermes_state_messages.py
2026-09-02 17:26:25 -07:00
Teknium d858b95945 Merge branch 'simp/r2a-mcp' into simp/r2-tools-a 2026-09-02 17:25:08 -07:00
Teknium 831f2e542c refactor(state): fold small get_messages/reaction/publish shapes; hug trailing closers (AST-identical) 2026-09-02 17:20:16 -07:00
Teknium 696662997b Revert "refactor(gateway/hosted_rooms): reflow multi-line SQL constants (whitespace-only, parity-verified)"
This reverts commit fa827f596e.
2026-09-02 17:18:13 -07:00
Teknium 921362cbfa Merge branches 'simp/r2-rooms-v1', 'simp/r2-rooms-v2' and 'simp/r2-rooms-v3' into simp/r2-gw-rest-rooms 2026-09-02 17:17:31 -07:00
Teknium ae04a3d62d Merge simp/r2-update-cmd-sub: update_cmd.py deep split + god-method lifts 2026-09-02 17:17:27 -07:00
Teknium 1c281abfd5 refactor(kanban-db): lift decompose children validation into _validate_children_graph 2026-09-02 17:17:21 -07:00
Teknium 1991695511 refactor(state): _cooldown_row shape helper; per-model usage kwargs via field set; small folds 2026-09-02 17:17:16 -07:00
Teknium 52a3543d3b refactor(kanban-db): compact hook/constant/TTL docstrings and comments in origin (AST-identical) 2026-09-02 17:16:23 -07:00