Teknium
05b51c846c
fix(process): promote waits only for the completion's owner, from effective config
...
Independent review of 7978c07 found two ways the wait/poll policy promised a completion
message that never arrives, so the agent ended its turn and lost the result:
- It read terminal.process_wait_auto_notify and display.background_process_notifications
from the raw config.yaml. The completion consumers (gateway _load_gateway_config, TUI
_load_cfg) read the effective config: managed overlay and ${VAR} expansion. A managed
"off" or an env-expanded "off" suppressed delivery while promotion still fired, and a
managed process_wait_auto_notify: false was ignored. Both settings now go through
load_user_config_effective, and the gateway's HERMES_BACKGROUND_NOTIFICATIONS override
is honoured the same way.
- It checked that the caller could receive completions, not that it would receive THIS
one. Session B polling session A's process got the stop-polling promise; A got the
notice. A parent polling a subagent's un-handed-off process got the promise while the
child-owned notice is suppressed. Promotion now requires the consumers' own routing
predicates (ProcessRegistry._owns_event on the caller's session key, then
should_surface_notification); otherwise the caller keeps plain polling. Ownership is
never moved to make the promise true.
Tests: a new invariant test for the foreign-session case, and the existing opt-out test
now sets the opt-out through a managed config. Both fail on 7978c07.
2026-10-17 04:35:05 -07:00
..
2026-10-10 15:20:13 +02:00
2026-10-16 14:21:39 -07:00
2026-10-16 14:31:11 -07:00
2026-10-16 19:42:34 -07:00
2026-10-14 00:29:11 +05:30
2026-10-16 19:42:20 -04:00
2026-10-06 14:22:13 -07:00
2026-10-16 21:35:53 +00:00
2026-10-08 17:22:54 +02:00
2026-10-07 06:48:09 -07:00
2026-10-16 15:21:07 -04:00
2026-10-08 12:07:00 -07:00
2026-10-16 19:42:20 -04:00
2026-10-13 11:35:14 -04:00
2026-10-10 15:20:13 +02:00
2026-10-16 17:42:48 -04:00
2026-10-16 07:09:45 -07:00
2026-10-08 19:54:07 +02:00
2026-10-16 07:19:04 -07:00
2026-10-09 10:24:04 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 22:12:28 +02:00
2026-10-09 02:04:29 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-06 14:24:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:25:53 -07:00
2026-10-15 09:25:53 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:25:53 -07:00
2026-10-15 09:25:53 -07:00
2026-10-12 03:18:48 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 13:29:32 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:26 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 17:49:54 -04:00
2026-10-09 17:31:52 +02:00
2026-10-11 16:53:57 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-16 22:10:26 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:29:11 +05:30
2026-10-12 16:55:20 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-05 16:46:53 -05:00
2026-10-12 13:41:29 -04:00
2026-10-09 17:31:52 +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-17 04:23:04 -07:00
2026-10-17 04:23:04 -07:00
2026-10-13 16:27:55 -04:00
2026-10-17 04:23:04 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 21:38:54 -07:00
2026-10-17 04:23:04 -07:00
2026-10-12 13:41:29 -04:00
2026-10-08 19:54:07 +02:00
2026-10-05 01:15:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 15:36:14 -04:00
2026-10-08 17:22:54 +02:00
2026-10-07 11:19:10 +05:30
2026-10-02 20:24:01 -05:00
2026-10-13 01:35:42 +05:30
2026-10-13 01:35:42 +05:30
2026-10-14 00:32:21 +05:30
2026-10-08 21:38:05 +02:00
2026-10-03 10:26:12 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 18:25:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 14:19:55 -07:00
2026-10-14 05:52:49 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:17:14 -04:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 14:09:29 -07:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-12 18:25:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-14 05:52:49 -07:00
2026-10-12 19:13:09 -07:00
2026-10-13 01:04:38 -07:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 13:41:29 -04:00
2026-10-11 04:37:57 -07:00
2026-10-11 04:37:57 -07:00
2026-10-11 19:31:36 -07:00
2026-10-06 00:00:57 -04:00
2026-10-16 20:25:10 -07:00
2026-10-08 19:08:59 -07:00
2026-10-10 15:20:13 +02:00
2026-10-17 04:35:05 -07:00
2026-10-07 10:57:33 -07:00
2026-10-17 04:35:05 -07:00
2026-10-10 15:20:13 +02:00
2026-10-14 14:09:29 -07:00
2026-10-13 11:35:14 -04:00
2026-10-07 01:03:03 +05:30
2026-10-16 07:09:45 -07:00
2026-10-16 19:42:34 -07:00
2026-10-16 19:42:34 -07:00
2026-10-09 10:24:04 -07:00
2026-10-13 23:55:10 +05:30
2026-10-14 00:06:58 +05:30
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 13:41:29 -04:00
2026-10-09 17:34:36 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 04:37:57 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 13:58:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-15 22:12:28 +02:00
2026-10-09 13:58:16 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 14:25:07 -07:00
2026-10-15 21:01:31 +02:00
2026-10-15 21:01:31 +02:00
2026-10-12 22:48:29 -07:00
2026-10-15 21:01:31 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 10:24:04 -07:00
2026-10-11 16:53:57 -07:00
2026-10-17 04:23:31 -07:00
2026-10-17 04:23:31 -07:00
2026-10-11 16:53:57 -07:00
2026-10-02 22:42:55 -05:00
2026-10-08 19:42:29 +02:00
2026-10-05 20:08:11 +05:30
2026-10-17 04:23:31 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 17:21:07 +05:30
2026-10-08 17:22:54 +02:00
2026-10-16 15:03:56 -07:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-13 01:35:42 +05:30
2026-10-07 01:02:34 +05:30
2026-10-07 01:02:34 +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-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-05 12:37:46 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +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-09 17:34:38 +02:00
2026-10-09 02:34:03 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +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-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:14 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 07:09:45 -07:00