diff options
| author | t <t@tjp.lol> | 2026-08-31 10:17:11 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-09-02 08:26:58 -0600 |
| commit | 997d80bc69a6363e8c65a987dace0e30d761522d (patch) | |
| tree | 9b5a991a920cbee0d6e8c4e841ec7d28912d2f3a /spec | |
| parent | 7a31ae2163f4ce1c6807da1737203d1063839c14 (diff) | |
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.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/test_luatool.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 }, |
