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