From 997d80bc69a6363e8c65a987dace0e30d761522d Mon Sep 17 00:00:00 2001 From: t Date: Mon, 31 Aug 2026 10:17:11 -0600 Subject: Expose background workflow activity events Bracket each background workflow with lifecycle events and emit its primary wake before completion so integrations do not report a premature idle state. --- spec/test_luatool.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spec/test_luatool.lua') diff --git a/spec/test_luatool.lua b/spec/test_luatool.lua index e7f2294..ee0a79e 100644 --- a/spec/test_luatool.lua +++ b/spec/test_luatool.lua @@ -112,7 +112,9 @@ return { assert(record.agents.review.status == "completed") assert(#handle.submissions == 1, "completion wakes the primary once") has(handle.submissions[1], id) - assert(handle.emitted[1] == "agent_submission", "the host pipeline is explicitly woken") + assert(table.concat(handle.emitted, ",") == + "background_work_start,agent_submission,background_work_end", + "background work brackets the primary wake") end) end }, -- cgit v1.3