Files
ruflo/v3/@claude-flow
ordinary being ce509ccb84 fix(swarm): make ephemeral agent termination idempotent (#4323)
* fix(swarm): make ephemeral agent termination idempotent

FederationHub terminateAgent() counted every call, completeAgent() counted again if followed by termination, and unregisterSwarm()/TTL cleanup re-terminated already settled agents. Guard terminated agents and skip stat/event/lifespan accounting when completion was already counted; make completeAgent() idempotent.

* test(ci): stabilize two unrelated full-suite checks

message-bus.event-driven waited a fixed 2ms for the first retry invocation; under a loaded worker it can arrive later. Poll for the invocation with a bounded timeout instead. mods-cli-bin skipped only on bin/cli.js, which always exists; require the built dist/src/index.js so source-only checkouts skip the built-CLI suite rather than failing it.
2026-10-20 09:28:29 -04:00
..