Commit Graph
213 Commits
Author SHA1 Message Date
ciregenz 36626be089 [eric] backend: one-line comments + collapse blank runs across backend root + tests (AST-verified, 1 test skipped: embedded #-lines) 2026-06-25 03:04:16 -07:00
ciregenz 0d093cc5f8 [eric] backend: one-line every comment + collapse 3+ blank runs across apps/ (AST-verified identical, -lines); CLAUDE.md one-line-comment rule 2026-06-25 02:29:04 -07:00
ciregenz 87db6a8a2b [eric] agents: drop orphaned compaction comment block (code moved in refactor) + tighten a 15-line narrow-wrapped comment to 3 2026-06-25 01:57:12 -07:00
ciregenz 448c0deafd [eric] agents: rename cryptic names — LivePartial->PartialReply, session/lifecycle.py->resume_and_duplicate.py (it held resume/duplicate, and collided with SessionLifecycle) 2026-06-25 00:58:57 -07:00
ciregenz b9cea6c647 [eric] agents: drop the Mixin suffix, name the 9 manager classes by domain (Messaging, SessionLifecycle, ...) + AgentManagerState -> AgentManagerProtocol 2026-06-25 00:50:47 -07:00
ciregenz d0dd5e799b [eric] agents: typed AgentManagerState mixin base re-enables pyright attr-access + fixes 2 broken outputs imports (pyright caught them) 2026-06-25 00:32:16 -07:00
ciregenz 6419ed6436 [eric] agents: bind turn + stderr before build_agent_options so the no-provider error path doesn't UnboundLocalError 2026-06-24 21:00:44 -07:00
ciregenz 6bf543831f [eric] agents: rename single-export modules to match their export (handle_run_error, register_builtin_mcp_servers) 2026-06-24 01:03:55 -07:00
ciregenz 553b307a57 [eric] agents: run/ decomposition follows conventions (naming, @typechecked+types, p-private) 2026-06-24 00:33:21 -07:00
ciregenz a18b99cc84 [eric] agents: extract per-turn options build into manager/run/run_options.py (RunOptionsMixin) + helpers (web-mcp/web-hint/thinking/pre-send-guard); agent_manager 933->256, now UNDER the 300 ceiling 2026-06-24 00:03:15 -07:00
ciregenz 70b4cae84f [eric] agents: extract streaming-turn + capacity-retry into manager/run/turn_runner.py (TurnRunnerMixin); agent_manager 933->709, trim now-unused imports 2026-06-23 22:45:15 -07:00
ciregenz b3e1fe224e [eric] agents: extract run-error classification (long-context/capacity/free-trial/auth/unknown-model cards) into manager/run/error_cards.py; agent_manager 1166->932 2026-06-23 22:37:38 -07:00
ciregenz 6ab6217ac7 [eric] backend: final leading-_ cleanup, file-local shorts + move session cancel-event to manager-side table (off the pydantic model, kills the last underscore); naming linter now 0/0 2026-06-23 21:57:20 -07:00
ciregenz 71b2b33fae [eric] tools_lib: leading-_ -> p_/public across tools_lib/mcp_config/mcp_discovery/oauth_tokens/tool_taxonomy; promote cross-file public (load_all_tools/sanitize_server_name/discover_mcp_tools_*), fix re-export + attr test refs 2026-06-23 20:30:14 -07:00
ciregenz 751bb77032 [eric] agents: publicize cross-mixin members (p_run_agent_loop, p_build_mcp_servers, etc.) + safe_resp_text so the decomposition passes p-private 2026-06-23 16:44:41 -07:00
ciregenz 8c0a5010e1 [eric] agents: split bulk startup/shutdown persistence into SessionPersistenceMixin (one-session vs all-sessions) 2026-06-23 14:40:20 -07:00
ciregenz 5c725ed52d [eric] agents: extract no-SDK mock loop into MockAgentMixin (AgentLaunchMixin now under ceiling) 2026-06-23 14:37:55 -07:00
ciregenz e792fb3370 [eric] agents: split session-control ops out of MessagingMixin (turn-producing vs control), drop dead analytics stubs 2026-06-23 14:35:26 -07:00
ciregenz c3b8f53619 [eric] agents: error_classify convention-clean (6 is_* funcs + 2 pattern consts off leading-_, @typechecked) 2026-06-23 14:13:39 -07:00
ciregenz 830d5dd36e [eric] agents: FIX masked App Builder sidebar name-flip (dropped _load_all import -> p_load_all NameError) 2026-06-23 13:02:22 -07:00
ciregenz 9b0116ca41 [eric] agents: session_store convention-clean (5 funcs off leading-_) + FIX auth/signout _save_session import bug 2026-06-23 12:16:38 -07:00
ciregenz 027c6ac311 [eric] agents: history_compaction convention-clean (4 funcs off leading-_, typing, @typechecked) 2026-06-23 12:08:05 -07:00
ciregenz 79bc62bca5 [eric] agents: remove 38 dead imports (autoflake) + restore the 3 dynamic re-exports + repoint a test 2026-06-23 12:03:25 -07:00
ciregenz 75db4d7ded [eric] agents: FIX latent NameError on cwd sessions (ensure_cwd_git_repo import mismatch) + clean workspace_git + regression test 2026-06-23 11:55:39 -07:00
ciregenz b7c264863e [eric] agents: extract the provider env/route config into provider_env (gated by the 7 env tests) 2026-06-23 11:44:52 -07:00
ciregenz 534f83c89d [eric] agents: extract built-in MCP-server registration into builtin_mcp_servers + tests 2026-06-23 11:22:15 -07:00
ciregenz 5a6273ec8e [eric] agents: extract the per-turn tool-allowlist gate into permissions/effective_tools + tests 2026-06-23 05:28:06 -07:00
ciregenz f9eee6cbbe [eric] agents: p_ the loop's nested helpers (stderr_cb, run_streaming_turn); loop fully leading-_ free 2026-06-23 05:17:15 -07:00
ciregenz a1cbaaeabb [eric] agents: @typechecked + typed signature on the loop, p_ the live-partial mirror (convention) 2026-06-23 05:15:34 -07:00
ciregenz 94172d6fc1 [eric] agents: alias the manager's leading-_ top-level imports to clean names (convention) 2026-06-23 05:13:02 -07:00
ciregenz 446b73e4e2 [eric] agents: p_-rename the run-loop's private locals (convention; loop body now leading-_ free) 2026-06-23 05:08:55 -07:00
ciregenz 97afe997aa [eric] agents: split per-run support methods into RunSupportMixin + p_-rename the private methods (convention-clean) 2026-06-23 04:58:29 -07:00
ciregenz 1ffb582464 [eric] agents: split launch/invoke/mock entry points into AgentLaunchMixin (convention-clean) 2026-06-23 04:46:15 -07:00
ciregenz f04c050b16 [eric] agents: model the live-partial stream mirror (LivePartial) + type the streaming dict params 2026-06-23 04:29:39 -07:00
ciregenz 5629f70c11 [eric] agents: extract ResultMessage handler (token/cost/reset) into streaming/result_message + tests 2026-06-23 04:24:18 -07:00
ciregenz 64f68c6eb4 [eric] agents: extract AssistantMessage handler + upsert_message into streaming modules + tests 2026-06-23 04:19:24 -07:00
ciregenz 2f0c101d6a [eric] agents: extract StreamEvent (incremental stream) handler into streaming/stream_event + tests 2026-06-23 03:54:45 -07:00
ciregenz 19f21693f0 [eric] agents: split user-facing message ops into MessagingMixin 2026-06-23 03:46:40 -07:00
ciregenz 2004a79fdd [eric] agents: split session lifecycle + query methods into SessionLifecycleMixin 2026-06-23 03:42:38 -07:00
ciregenz 51bd37f987 [eric] agents: model the approval decision (kill dict) + tool_catalog helpers off leading-_ 2026-06-23 03:22:55 -07:00
ciregenz f7f37766b4 [eric] agents: extract web-MCP-need provider decision into tools/web (should_register_web_mcp) 2026-06-23 02:52:55 -07:00
ciregenz 44832b2b13 [eric] agents: prompt_context public fns lose leading-_ (convention); drop dead delegators 2026-06-23 02:44:46 -07:00
ciregenz 4fadac987a [eric] agents: extract per-turn system-prompt assembly into system_prompt module 2026-06-23 02:39:19 -07:00
ciregenz bbf76a0b9f [eric] agents: lift Stop hook (App Builder render gate) into stop_hook module 2026-06-23 02:15:58 -07:00
ciregenz 678472023d [eric] agents: lift PostToolUse hook into tool_result_hook (drops 2 dead local computations) 2026-06-23 02:11:52 -07:00
ciregenz 2be4620453 [eric] agents: extract view-builder render state into its own module 2026-06-23 02:04:05 -07:00
ciregenz aa3ce99978 [eric] agents: lift permission/pre-tool SDK hooks into gate_hooks + HookContext 2026-06-23 01:59:14 -07:00
ciregenz 0678ce3f77 [eric] agents: move tool-name enumeration into tool_catalog (drops loop upward dep) 2026-06-23 01:52:18 -07:00
ciregenz 020c79319c [eric] agents: convention pass on loop split (Optional over | None, no leading-_ locals) 2026-06-23 01:43:45 -07:00
ciregenz 0adddb1f05 [eric] agents: extract permission policy + HITL approval into manager/permissions/decision (Phase C) 2026-06-23 01:32:00 -07:00