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-14 12:16:45 +01:00
2026-11-13 17:18:43 -08:00
2026-11-16 15:22:35 +05:30
2026-11-15 17:24:07 +01:00
2026-11-16 15:22:35 +05:30
2026-11-15 15:35:04 +01:00
2026-11-15 18:05:30 +01:00
2026-11-16 02:38:30 +01:00
2026-11-14 20:53:25 +01:00
2026-11-14 17:17:41 +01:00
2026-11-15 02:14:19 +01:00
2026-11-14 20:51:47 +01:00
2026-11-14 21:16:15 +01:00
2026-11-15 20:10:58 +01:00
2026-11-14 15:16:36 +01:00
2026-11-16 15:22:35 +05:30
2026-11-13 17:48:06 -08:00
2026-11-16 15:22:35 +05:30
2026-11-15 17:24:08 +01:00
2026-11-15 16:02:58 +01:00
2026-11-15 16:02:33 +01:00
2026-11-14 20:56:33 +01:00
2026-11-14 20:51:51 +01:00
2026-11-14 20:58:46 +01:00
2026-11-14 20:51:51 +01:00
2026-11-15 19:15:26 +01:00
2026-11-14 12:37:23 +01:00
2026-11-15 16:02:16 +01:00
2026-11-15 16:01:16 +01:00
2026-11-16 15:22:35 +05:30
2026-11-16 15:23:23 +05:30
2026-11-13 15:18:38 -08:00
2026-11-16 15:23:23 +05:30
2026-11-16 21:58:16 +05:30
2026-11-16 14:13:27 +05:30
2026-11-14 20:51:51 +01:00
2026-11-13 18:45:31 +00:00
2026-11-16 21:54:46 +05:30
2026-11-13 18:45:31 +00:00
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 15:40:08 +05:30
2026-11-14 15:40:13 +01:00
2026-11-14 15:40:13 +01:00
2026-11-13 18:45:31 +00:00
2026-11-16 15:40:08 +05:30
2026-11-13 17:32:23 -08:00
2026-11-13 14:44:32 +01:00
2026-11-13 14:44:32 +01:00
2026-11-16 21:54:46 +05:30
2026-11-14 14:42:50 +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 21:55:16 +05:30
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:40:08 +05:30
2026-11-16 15:22:35 +05:30
2026-11-16 21:55:16 +05:30
2026-11-14 16:10:52 +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-14 21:02:31 +01:00
2026-11-16 15:22:35 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 21:54:46 +05:30
2026-11-14 20:53:25 +01:00
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-16 21:55:47 +05:30
2026-11-14 21:08:34 +01:00
2026-11-16 15:22:35 +05:30
2026-11-13 00:23:39 -08:00
2026-11-13 19:23:33 +01:00
2026-11-16 17:43:16 +05:30
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-13 17:50:41 -08:00
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-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-16 21:58:16 +05:30
2026-11-16 21:58:16 +05:30
2026-11-13 17:06:19 +01:00
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-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-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-16 21:58:16 +05:30
2026-11-16 21:54:46 +05:30
2026-11-16 15:39:10 +05:30
2026-11-14 12:47:40 +01:00
2026-11-16 21:56:33 +05:30
2026-11-16 21:57:07 +05:30
2026-11-16 15:22:35 +05:30
2026-11-16 15:22:48 +05:30
2026-11-14 16:09:37 +01:00
2026-11-16 15:22:35 +05:30
2026-11-14 18:28:19 +05:30
2026-11-14 13:24:10 +01:00
2026-11-14 13:24:10 +01:00
2026-11-14 13:10:12 +01:00
2026-11-15 16:05:45 +01:00
2026-11-16 21:55:16 +05:30
2026-11-16 21:55:16 +05:30
2026-11-16 21:58:16 +05:30
2026-11-16 17:43:16 +05:30
2026-11-15 16:10:10 +01:00
2026-11-16 21:55:16 +05:30
2026-11-15 18:29:35 +01:00
2026-11-15 18:29:48 +01:00
2026-11-15 18:29:37 +01:00
2026-11-15 18:29:36 +01:00
2026-11-15 18:29:47 +01:00
2026-11-15 18:29:48 +01:00
2026-11-15 18:29:37 +01:00
2026-11-16 02:23:14 +01:00
2026-11-15 22:23:01 +01:00
2026-11-14 12:38:10 +01:00
2026-11-14 15:38:42 +01:00
2026-11-13 17:09:30 +01:00
2026-11-15 11:38:04 -08:00
2026-11-13 14:04:51 +01:00
2026-11-13 14:04:56 +01:00
2026-11-14 17:07:28 +01:00
2026-11-16 21:56:33 +05:30
2026-11-13 13:24:29 -05:00
2026-11-16 15:39:10 +05:30
2026-11-16 15:39:10 +05:30
2026-11-14 17:07:12 +01:00
2026-11-16 15:39:10 +05:30
2026-11-14 11:26:33 -08:00
2026-11-14 11:26:33 -08:00
2026-11-14 11:26:33 -08:00
2026-11-16 15:39:10 +05:30
2026-11-14 17:07:10 +01:00
2026-11-14 20:55:55 +01:00
2026-11-14 12:44:52 +01:00
2026-11-14 17:07:12 +01:00
2026-11-14 12:46:07 +01:00
2026-11-16 21:55:47 +05:30
2026-11-13 17:58:28 -05:00
2026-11-13 17:58:28 -05:00
2026-11-16 15:39:10 +05:30
2026-11-16 15:39:10 +05:30
2026-11-14 17:07:10 +01:00
2026-11-14 17:07:12 +01:00
2026-11-14 17:07:10 +01:00
2026-11-14 17:07:12 +01:00
2026-11-14 17:07:12 +01:00
2026-11-14 17:07:12 +01:00
2026-11-14 17:07:12 +01:00
2026-11-16 21:55:47 +05:30
2026-11-14 22:52:15 +01:00
2026-11-14 22:52:23 +01:00
2026-11-14 17:07:12 +01:00
2026-11-14 17:07:48 +01:00
2026-11-14 17:07:10 +01:00
2026-11-16 21:55:47 +05:30
2026-11-16 14:13:27 +05:30
2026-11-16 18:09:07 +05:30
2026-11-16 21:56:33 +05:30
2026-11-14 21:31:35 -08:00
2026-11-14 15:12:29 +01:00
2026-11-16 21:53:19 +05:30
2026-11-16 21:56:33 +05:30
2026-11-16 21:56:33 +05:30
2026-11-14 21:01:48 +01:00
2026-11-16 21:56:33 +05:30
2026-11-13 16:48:04 -08:00
2026-11-16 21:56:33 +05:30
2026-11-14 21:01:47 +01:00
2026-11-16 15:40:08 +05:30
2026-11-14 16:16:33 +01:00
2026-11-16 18:09:07 +05:30
2026-11-13 17:25:07 -08:00
2026-11-16 21:57:49 +05:30
2026-11-16 15:22:35 +05:30
2026-11-16 21:55:16 +05:30
2026-11-16 21:56:33 +05:30
2026-11-14 13:10:12 +01:00
2026-11-13 18:45:31 +00:00
2026-11-13 19:14:58 +01:00
2026-11-14 15:14:09 +01:00
2026-11-14 15:11:44 +01:00
2026-11-16 17:16:20 +05:30
2026-11-16 21:57:07 +05:30
2026-11-13 14:04:52 +01:00
2026-11-16 21:57:07 +05:30
2026-11-16 21:57:07 +05:30
2026-11-14 12:50:47 +01:00
2026-11-16 21:57:07 +05:30
2026-11-16 21:57:07 +05:30
2026-11-14 12:50:46 +01:00
2026-11-14 15:12:28 +01:00
2026-11-14 17:09:41 +01:00
2026-11-16 21:57:07 +05:30
2026-11-16 21:57:07 +05:30
2026-11-14 19:54:21 -05:00
2026-11-16 18:09:07 +05:30
2026-11-14 20:53:25 +01:00
2026-11-14 20:53:25 +01:00
2026-11-14 21:02:31 +01:00
2026-11-16 21:56:33 +05:30
2026-11-14 12:46:58 +01:00
2026-11-13 17:25:21 +01:00
2026-11-13 13:24:29 -05:00
2026-11-13 13:24:29 -05:00
2026-11-13 13:18:51 -05:00
2026-11-16 18:09:07 +05:30
2026-11-16 18:09:07 +05:30
2026-11-13 17:25:21 +01:00
2026-11-14 17:17:21 +01:00
2026-11-16 15:23:37 +05:30
2026-11-14 13:09:35 +01:00
2026-11-16 15:40:08 +05:30
2026-11-13 15:17:56 -08:00
2026-11-14 20:55:55 +01:00
2026-11-15 01:36:04 +01:00
2026-11-14 20:58:58 +01:00
2026-11-16 21:58:16 +05:30
2026-11-16 15:40:08 +05:30
2026-11-14 12:36:26 +01:00
2026-11-16 15:40:08 +05:30
2026-11-14 12:48:01 +01:00
2026-11-15 06:58:39 -05:00
2026-11-16 21:53:44 +05:30
2026-11-16 21:53:44 +05:30
2026-11-13 17:28:09 -08:00
2026-11-14 18:28:19 +05:30
2026-11-16 21:53:44 +05:30
2026-11-16 21:56:33 +05:30
2026-11-14 12:47:18 +01:00
2026-11-14 03:43:05 -08:00
2026-11-15 18:29:37 +01:00
2026-11-16 21:58:16 +05:30