mirror of
https://github.com/multica-ai/multica.git
synced 2026-09-28 13:23:48 +08:00
CI runs every backend package concurrently against one database, and IssueWakeupService.Tick dispatches every ready wakeup in it. The handler child_done tests' runWakeupTick therefore dispatched rules owned by concurrently running service tests, consuming their pending receipts mid-assertion: TestIssueWakeupPendingEventsAreBoundedAndLegacyInputsDrain failed on main with "unbounded pending receipts: 1" (reproduced locally 2/40 with the handler tests running alongside, 0/20 alone). Give ListReadyWakeups an optional workspace filter and add TickWorkspaces for tests; production Tick passes no filter and is unchanged. Scope the handler helper, the busy-rule test and the expiry candidate check to the workspaces they own. Co-authored-by: J <bohan@devv.ai> Co-authored-by: multica-agent <github@multica.ai>