Commit Graph

6 Commits

Author SHA1 Message Date
Teknium 8226f74b68 refactor(gateway): run_agent_cache docstrings compacted to rule/why; eviction log+spawn lines folded 2026-09-02 23:03:13 -07:00
Teknium 67c52290cf refactor(gateway): run_agent_cache folds guards, shares _accepts_keyword and _tuple_agent, drops redundant locals 2026-09-02 21:53:34 -07:00
Teknium 55cb5a8fe8 refactor(gateway): table watcher route fields, single-hold identity claim, compact media/queued-response notes 2026-09-02 19:09:25 -07:00
Teknium 4f6595022f refactor(gateway): fold injection-adapter resolution, identity claim and release-thread spawn into helpers 2026-09-02 19:01:46 -07:00
Teknium 372434b3b6 refactor(gateway): unify override/lease/eviction helpers in run_agent_cache (1162→1018 LOC); pack bracket spans 2026-09-02 18:31:29 -07:00
Teknium 66366d3dab refactor(gateway): split GatewayRunner into 13 run_* mixins + TurnRunner module (run.py 31332 -> 6957)
AST-driven, body-identical move of 359 GatewayRunner methods into cohesive
mixin modules (gateway/run_{voice,adapters,topics,turn,shutdown,busy,
config_loaders,startup,watchers,notifications,inbound,goals,agent_cache}.py)
plus TurnRunner -> gateway/run_turn_runner.py. run.py-internal symbols are
imported lazily inside method bodies so patch('gateway.run.X') keeps
intercepting; neutral deps are top-level; logger name stays 'gateway.run'.
_UNSET moved to leaf gateway/run_common.py (def-time default-arg sentinel).
Whole-module inspect.getsource(gateway_run) AST-walker tests repointed to
the module that now holds the walked code.
2026-09-02 16:11:50 -07:00