Teknium
fcc895496e
fix(worker): ordinary managed runs register the session's shell hooks and webhooks
...
Shell hooks and outbound webhooks are callbacks on the process-local plugin manager. The owner
registers them (gateway startup; --accept-hooks consent via accept_launch_hooks), but a managed
turn's tools and model calls run in the worker child, whose plugin manager had none: only the
Kanban path called shell_hooks.register_from_config (bind_worker_context), and no worker ever
registered outbound webhooks. A probe on r6-base recorded 1 shell-hook fire + webhook deliveries
per turn in process and 0/0 for the same turn managed.
gateway/session_policy.register_worker_hooks registers both from the session's frozen config in
the worker, before MCP/tool discovery and agent construction:
- consent = the session's --accept-hooks launch flag (request_json) or the Kanban attempt's
context (always consents, as before); otherwise register_from_config resolves the usual
HERMES_ACCEPT_HOOKS / hooks_auto_accept / existing allowlist, with no TTY prompt in the child;
- bypass sessions (config-only/safe) register nothing, matching accept_launch_hooks; the safe
policy also refuses inside both registrars.
The Kanban-only call in bind_worker_context is folded into this single worker seam (Kanban
workers now also get outbound webhooks, as the classic one-shot CLI worker registered both).
Red/green (tests/gateway/test_managed_worker_hooks.py):
- test_managed_turn_fires_shell_hooks_and_webhooks_in_the_worker (real daemon, loopback model,
real `sh` hook + loopback webhook receiver, sessions created with accept_hooks=True): against
the previous commit `'managed': {'shell_pids': [], 'webhooks': []}` vs in-process 1 fire +
pre_llm_call delivery; green: both fire, and the managed hook's parent pid is the worker, not
the owner.
- test_worker_hook_registration_follows_the_session_policy: consent sources and bypass refusal.
tests/gateway/test_session_kanban.py stays green.
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5462648005
2026-10-08 19:08:59 -07:00
..
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 18:04:50 +02:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-05 16:42:57 -05:00
2026-10-08 17:22:54 +02:00
2026-10-05 14:02:38 -05:00
2026-10-05 14:02:38 -05:00
2026-09-28 12:53:29 -05:00
2026-10-08 17:22:54 +02:00
2026-10-07 10:57:32 -07:00
2026-10-08 12:09:24 -07:00
2026-10-07 00:07:02 -05:00
2026-10-07 18:15:29 +05:30
2026-10-08 17:22:54 +02:00
2026-09-30 20:01:49 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-02 00:18:00 +05:30
2026-10-02 00:18:00 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-29 23:54:34 +05:30
2026-10-08 17:22:54 +02:00
2026-10-03 13:38:29 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-17 09:07:51 -07:00
2026-10-08 17:22:54 +02:00
2026-10-07 13:20:42 +05:30
2026-10-08 17:22:54 +02:00
2026-10-05 23:33:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-05 16:00:18 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-02 16:44:56 -07:00
2026-09-19 09:28:45 -07:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-23 18:29:35 -05:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-09-20 14:29:39 -07:00
2026-10-08 17:22:54 +02:00
2026-09-24 15:58:19 +05:30
2026-09-19 09:53:48 -07:00
2026-09-24 15:58:19 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 14:10:45 -07:00
2026-10-02 01:24:41 +05:30
2026-10-07 01:03:03 +05:30
2026-10-08 17:22:54 +02:00
2026-10-03 16:54:06 +05:30
2026-10-02 00:50:20 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 10:57:33 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-19 10:28:34 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 13:20:42 +05:30
2026-10-08 17:22:54 +02:00
2026-09-23 23:06:15 +05:30
2026-10-05 16:18:47 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 12:09:24 -07:00
2026-09-27 14:46:18 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 10:57:33 -07:00
2026-10-08 19:08:58 -07:00
2026-10-08 17:22:54 +02:00
2026-09-26 17:59:52 -05:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 01:03:03 +05:30
2026-10-02 22:21:27 -05:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-29 19:31:49 -05:00
2026-09-28 10:21:41 -07:00
2026-09-20 17:00:43 -07:00
2026-10-04 02:12:57 +05:30
2026-10-08 17:22:54 +02:00
2026-10-01 02:26:02 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 03:07:33 +05:30
2026-09-28 14:16:18 -07:00
2026-09-28 14:16:18 -07:00
2026-09-28 14:16:18 -07:00
2026-09-17 13:52:36 +05:30
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 00:41:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 19:29:35 +05:30
2026-09-16 17:48:17 -07:00
2026-10-08 17:22:54 +02:00
2026-10-01 09:26:00 -04:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-09-30 23:10:24 -05:00
2026-09-24 08:51:52 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:08:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 19:29:35 +05:30
2026-10-08 17:22:54 +02:00
2026-09-18 20:56:35 -07:00
2026-10-02 20:28:55 -05:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-18 01:43:35 +05:30
2026-10-07 19:22:43 +05:30
2026-10-08 17:22:54 +02:00
2026-10-07 12:58:10 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-19 10:56:19 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-07 03:46:20 -07:00
2026-10-08 17:22:54 +02:00
2026-09-22 16:15:34 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-09-28 10:21:41 -07:00
2026-10-06 12:31:21 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-26 17:59:52 -05:00
2026-10-07 11:27:35 +05:30
2026-09-26 22:21:47 +05:30
2026-10-06 13:01:39 +05:30
2026-09-27 02:48:48 -05:00
2026-09-25 21:28:32 +05:30
2026-10-08 17:22:54 +02:00
2026-10-07 00:18:10 +05:30
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-06 12:31:21 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 11:29:49 -05:00
2026-09-27 01:10:56 +05:30
2026-10-08 19:08:58 -07:00
2026-10-08 19:08:58 -07:00
2026-10-08 09:10:49 -07:00
2026-10-08 19:08:59 -07:00
2026-09-29 14:53:00 -05:00
2026-10-08 17:22:54 +02:00
2026-09-19 10:38:30 -07:00
2026-10-02 13:50:23 -04:00
2026-10-08 12:09:24 -07:00
2026-10-07 06:48:09 -07:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-07 03:05:26 +05:30
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-02 04:09:57 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 18:15:29 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-26 20:40:40 -05:00
2026-10-01 23:50:31 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 12:43:03 -07:00
2026-09-18 10:03:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 12:43:03 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-18 01:43:35 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-02 00:18:00 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 06:41:07 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-05 16:43:19 -05:00
2026-09-26 23:49:25 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00