Teknium
e729055a56
test(delegate): regression for #86632 — cron sync fallback must return after child completes
...
End-to-end #86632 reproduction: a real AIAgent child (mocked LLM) with the
post-turn skill-review trigger armed, dispatched through
delegate_task(background=True) on a session runtime where async delivery is
unsupported and no origin session id is bound (cron, post-#66617) — forcing
the synchronous fallback. Asserts (1) delegate_task returns the child's
result, and (2) the automatic background-review fork never spawns inside the
delegated child (the wedge site: the fork replayed the conversation on the
child's finalize path, and _child_future.result(timeout=None) never returned;
heartbeat went stale after 15 idle cycles and the cron watchdog killed the
job).
Verified RED on pre-fix main (fork spawns and wedges), GREEN with the
_delegate_depth guard in AIAgent._spawn_background_review.
Fixes #86632
2026-08-15 02:44:38 -07:00
..
2026-08-10 12:28:10 -07:00
2026-08-12 19:20:03 -07:00
2026-08-12 02:43:23 -07:00
2026-08-14 20:24:32 -07:00
2026-08-14 21:19:15 -07:00
2026-08-15 02:51:59 +05:30
2026-08-13 02:38:28 -07:00
2026-08-13 02:38:28 -07:00
2026-08-12 19:13:32 -07:00
2026-08-15 12:53:37 +05:30
2026-08-13 02:38:28 -07:00
2026-08-13 02:38:28 -07:00
2026-08-15 00:33:01 -07:00
2026-08-14 16:22:38 -07:00
2026-08-14 21:24:36 -07:00
2026-08-13 01:19:42 -05:00
2026-08-14 17:48:28 +05:30
2026-08-09 22:09:49 -04:00
2026-08-12 17:42:34 +05:30
2026-08-09 22:09:49 -04:00
2026-08-12 15:36:23 +05:30
2026-08-09 22:09:49 -04:00
2026-08-12 21:53:11 -07:00
2026-08-14 20:46:50 -07:00
2026-08-14 20:46:50 -07:00
2026-08-13 09:34:36 -07:00
2026-08-15 02:44:38 -07:00
2026-08-14 21:39:31 -07:00
2026-08-09 14:35:02 -07:00
2026-08-10 01:23:34 -07:00
2026-08-12 01:16:34 -07:00
2026-08-10 00:23:45 -07:00
2026-08-12 15:21:47 +05:30
2026-08-12 15:21:47 +05:30
2026-08-12 11:04:45 -07:00
2026-08-09 22:09:49 -04:00
2026-08-12 15:21:47 +05:30
2026-08-13 20:30:26 -07:00
2026-08-13 10:47:40 -07:00
2026-08-14 22:33:44 -07:00
2026-08-09 22:09:49 -04:00
2026-08-09 22:09:49 -04:00
2026-08-12 19:44:17 -07:00
2026-08-10 10:40:19 -07:00
2026-08-08 23:56:46 -07:00
2026-08-14 21:15:08 -07:00
2026-08-12 15:21:47 +05:30
2026-08-12 19:01:30 -07:00
2026-08-14 01:08:13 -07:00
2026-08-14 21:41:26 -07:00
2026-08-10 12:07:50 -07:00
2026-08-10 01:28:57 -07:00
2026-08-09 23:40:15 -07:00
2026-08-10 01:23:34 -07:00
2026-08-09 23:30:02 -07:00
2026-08-09 23:35:07 -07:00
2026-08-11 09:56:13 +10:00
2026-08-13 01:34:00 +05:30
2026-08-14 22:34:51 -07:00
2026-08-12 16:27:19 -07:00
2026-08-15 07:07:40 +05:30
2026-08-09 22:09:49 -04:00
2026-08-12 16:27:19 -07:00
2026-08-13 20:30:26 -07:00
2026-08-15 00:34:29 -07:00
2026-08-13 01:06:51 -05:00
2026-08-09 22:09:49 -04:00
2026-08-09 23:14:18 -07:00
2026-08-13 11:09:51 -07:00
2026-08-12 02:56:33 -07:00
2026-08-10 10:40:19 -07:00
2026-08-12 19:01:30 -07:00
2026-08-12 19:44:45 -07:00
2026-08-09 22:09:49 -04:00
2026-08-12 13:57:59 +05:30
2026-08-09 22:09:49 -04:00
2026-08-14 20:24:42 -07:00
2026-08-14 20:24:42 -07:00
2026-08-09 22:09:49 -04:00
2026-08-09 22:09:49 -04:00
2026-08-13 20:30:26 -07:00
2026-08-15 12:53:37 +05:30
2026-08-10 01:23:38 -07:00
2026-08-15 12:53:37 +05:30
2026-08-09 22:09:49 -04:00
2026-08-09 22:09:49 -04:00
2026-08-14 01:08:13 -07:00
2026-08-13 23:36:25 -07:00
2026-08-09 22:09:49 -04:00