alt-glitch
43dc9a0a28
refactor(delegation): siblings read config from its owner, not back through the facade
...
The delegate_tool_* siblings imported names back from tools.delegate_tool
inside functions only so tests could patch `tools.delegate_tool.<name>`
(routes said so: "the facade is the patch seam"). That kept a facade <->
sibling import cycle and a function-level import at each read.
- child_run owns the heartbeat/stale-grace constants (only it reads them)
and imports _get_child_timeout, _get_subagent_approval_callback,
_get_worktree_isolation, _resolve_workspace_hint and terminal_tool's
set_approval_callback at module top.
- config drops `_cfg()` (a loop back to its own `_load_config`) and the
loop back for `_get_max_concurrent_children`, defined in the same file.
- routes, dispatch and continue import their config getters at module top.
- `_load_config` is read through `delegate_tool_config._load_config` by the
facade, continue, results and process_registry_notifications, so one
patch target reaches every reader, as the facade target did before.
- cronjob_tools, process_registry_notifications and subagent_lifecycle read
these names from their owner; the facade stops importing the names its
body never used, so a stale facade patch now fails instead of silently
doing nothing.
Tests move their patches to the module whose code reads the name. Two
worktree tests that patched `_resolve_workspace_hint` on the facade relied
on it reaching both the facade's prompt build and child_run's worktree
setup, so they now patch both readers. Every delegate_tool* module imports
cleanly as the first import in a fresh interpreter.
2026-11-16 21:58:16 +05:30
..
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:55:47 +05:30
2026-11-16 21:56:33 +05:30
2026-11-16 14:55:12 +05:30
2026-11-16 21:54:46 +05:30
2026-11-08 11:53:54 -08:00
2026-11-13 17:18:43 -08:00
2026-11-15 17:24:08 +01:00
2026-11-15 16:02:36 +01:00
2026-11-13 16:53:03 +01:00
2026-11-16 15:22:35 +05:30
2026-11-15 18:29:46 +01:00
2026-11-15 22:23:01 +01:00
2026-11-16 21:54:30 +05:30
2026-11-16 21:54:30 +05:30
2026-11-15 02:14:19 +01:00
2026-11-15 19:15:25 +01:00
2026-11-15 20:10:57 +01:00
2026-11-15 20:10:41 +01:00
2026-11-16 21:54:30 +05:30
2026-11-12 01:04:33 -08:00
2026-11-14 20:51:51 +01:00
2026-11-15 22:07:16 +01:00
2026-11-15 22:07:16 +01:00
2026-11-15 16:01:26 +01:00
2026-11-16 21:54:30 +05:30
2026-11-15 20:10:57 +01:00
2026-11-15 16:01:25 +01:00
2026-11-15 22:07:16 +01:00
2026-11-15 22:23:01 +01:00
2026-11-16 21:54:30 +05:30
2026-11-11 18:52:25 -08:00
2026-11-13 00:03:31 -08:00
2026-11-16 21:58:16 +05:30
2026-11-16 15:40:08 +05:30
2026-11-14 15:40:13 +01:00
2026-11-13 18:45:31 +00:00
2026-11-13 17:32:23 -08:00
2026-11-14 14:42:50 +01:00
2026-11-16 21:54:46 +05:30
2026-11-07 09:46:07 -08:00
2026-11-07 12:54:11 -08:00
2026-11-14 14:42:50 +01:00
2026-11-16 21:54:46 +05:30
2026-11-06 22:59:41 -08:00
2026-11-14 01:28:18 -08:00
2026-11-16 21:55:16 +05:30
2026-11-16 21:55:16 +05:30
2026-11-05 23:12:42 -08:00
2026-11-05 23:12:42 -08:00
2026-11-05 23:12:42 -08:00
2026-11-16 15:40:08 +05:30
2026-11-10 22:29:30 -08:00
2026-11-10 22:29:30 -08:00
2026-11-13 18:45:31 +00:00
2026-11-14 16:09:37 +01:00
2026-11-14 15:34:38 +01:00
2026-11-16 21:55:16 +05:30
2026-11-16 21:55:16 +05:30
2026-11-16 21:55:16 +05:30
2026-11-16 15:39:38 +05:30
2026-11-14 21:08:34 +01:00
2026-11-16 21:58:16 +05:30
2026-11-16 15:23:23 +05:30
2026-11-16 21:58:16 +05:30
2026-11-16 21:58:16 +05:30
2026-11-16 21:58:16 +05:30
2026-11-16 21:58:16 +05:30
2026-11-11 18:29:48 -08:00
2026-11-16 15:23:23 +05:30
2026-11-13 00:03:31 -08:00
2026-11-16 21:58:16 +05:30
2026-11-13 00:03:31 -08:00
2026-11-16 21:58:16 +05:30
2026-11-06 22:07:09 -05:00
2026-11-16 21:58:16 +05:30
2026-11-11 18:29:48 -08:00
2026-11-16 21:54:46 +05:30
2026-11-16 15:39:10 +05:30
2026-11-06 22:59:41 -08:00
2026-11-13 14:04:52 +01:00
2026-11-16 21:56:33 +05:30
2026-11-14 18:28:19 +05:30
2026-11-14 13:24:10 +01:00
2026-11-16 15:22:48 +05:30
2026-11-14 13:10:11 +01:00
2026-11-16 15:22:48 +05:30
2026-11-11 10:22:54 -05:00
2026-11-16 21:56:33 +05:30
2026-11-11 10:22:54 -05:00
2026-11-16 21:55:16 +05:30
2026-11-12 22:33:52 -08:00
2026-11-11 10:22:54 -05:00
2026-11-14 18:28:19 +05:30
2026-11-11 19:07:27 -08:00
2026-11-16 15:40:08 +05:30
2026-11-14 22:20:39 +01:00
2026-11-14 01:03:00 -08:00
2026-11-16 15:39:10 +05:30
2026-11-16 15:39:10 +05:30
2026-11-14 11:26:33 -08:00
2026-11-14 12:46:07 +01:00
2026-11-16 15:39:10 +05:30
2026-11-16 15:39:10 +05:30
2026-11-12 14:09:07 +05:30
2026-11-14 12:44:52 +01:00
2026-11-08 11:53:54 -08:00
2026-11-14 12:50:49 +01:00
2026-11-14 17:07:10 +01:00
2026-11-16 15:39:10 +05:30
2026-11-14 22:52:16 +01:00
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-14 22:52:23 +01:00
2026-11-14 11:26:33 -08:00
2026-11-14 20:55:55 +01:00
2026-11-14 11:26:33 -08:00
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-11 10:22:54 -05:00
2026-11-10 22:29:30 -08:00
2026-11-14 13:24:10 +01:00
2026-11-14 02:11:02 -08:00
2026-11-16 21:54:30 +05:30
2026-11-14 21:31:35 -08:00
2026-11-14 21:01:48 +01:00
2026-11-14 01:11:55 -08:00
2026-11-10 15:44:11 +05:30
2026-11-10 15:47:18 +05:30
2026-11-11 10:22:54 -05:00
2026-11-16 21:58:16 +05:30
2026-11-11 10:22:54 -05:00
2026-11-11 10:22:54 -05:00
2026-11-15 11:49:27 -08:00
2026-11-16 21:56:33 +05:30
2026-11-16 15:40:08 +05:30
2026-11-11 17:20:00 +01:00
2026-11-06 22:59:41 -08:00
2026-11-16 21:57:49 +05:30
2026-11-14 20:51:50 +01:00
2026-11-14 15:13:36 +01:00
2026-11-15 22:07:17 +01:00
2026-11-16 15:24:44 +05:30
2026-11-14 12:50:47 +01:00
2026-11-14 16:12:05 +01:00
2026-11-16 21:57:07 +05:30
2026-11-14 12:50:47 +01:00
2026-11-11 12:09:17 +05:30
2026-11-15 01:36:04 +01:00
2026-11-16 15:24:44 +05:30
2026-11-16 15:24:44 +05:30
2026-11-14 17:09:40 +01:00
2026-11-12 21:17:47 +01:00
2026-11-16 15:24:44 +05:30
2026-11-12 21:17:47 +01:00
2026-11-16 15:24:44 +05:30
2026-11-12 21:17:47 +01:00
2026-11-16 21:57:07 +05:30
2026-11-13 18:45:31 +00:00
2026-11-13 14:04:52 +01:00
2026-11-09 17:07:28 -08:00
2026-11-14 21:02:31 +01:00
2026-11-16 21:53:44 +05:30
2026-11-16 15:23:37 +05:30
2026-11-14 13:09:34 +01:00
2026-11-16 21:56:33 +05:30
2026-11-15 11:38:04 -08:00
2026-11-10 13:36:37 +05:30
2026-11-15 16:09:33 +01:00
2026-11-11 10:22:54 -05:00
2026-11-15 11:38:04 -08:00
2026-11-13 13:24:29 -05:00
2026-11-13 13:24:29 -05:00
2026-11-15 11:49:27 -08:00
2026-11-14 11:26:33 -08:00
2026-11-16 21:54:30 +05:30
2026-11-10 22:29:30 -08:00
2026-11-16 15:40:08 +05:30
2026-11-11 17:20:00 +01:00
2026-11-10 20:05:34 -08:00
2026-11-10 23:20:02 -08:00
2026-11-16 21:54:46 +05:30
2026-11-14 12:48:01 +01:00
2026-11-16 21:53:44 +05:30
2026-11-16 15:38:52 +05:30
2026-11-10 07:10:19 +00:00
2026-11-15 06:58:39 -05:00
2026-11-16 21:53:44 +05:30
2026-11-11 22:31:15 -08:00
2026-11-14 14:41:27 +05:30
2026-11-16 21:53:44 +05:30
2026-11-13 17:28:09 -08:00
2026-11-10 22:29:30 -08:00
2026-11-13 11:57:27 +05:30
2026-11-16 15:38:52 +05:30
2026-11-16 15:38:52 +05:30
2026-11-16 21:53:44 +05:30
2026-11-14 12:47:18 +01:00
2026-11-14 03:43:05 -08:00
2026-11-12 19:29:02 -08:00
2026-11-14 01:20:57 -08:00
2026-11-10 22:29:30 -08:00