Receives parent task decision
SUB{agent-base-topic}/task/{task-id}/decision
For a Parent Task (a move-to with params.agent-count above 1), where task-id is the Parent Task's uuid. After every Sub-Task has been assigned and its executor has accepted it into planning, the elected Swarm Leader publishes decision commit, which releases every held Sub-Task of the Parent Task at once. If the Parent Round fails, it publishes decision release instead, and every Agent holding a Sub-Task of that Parent Task drops it and reports it aborted. Nothing flies before the commit. If a Sub-Task's winner refuses or never accepts it, the leader re-bids that Sub-Task once under a new task-id; the failed Sub-Task keeps its failed assignment. If the replacement also fails or finds no bidder, the leader publishes release and fails the Parent Task, with the replacement's failure reason (insufficient-agents when nobody bid). After the commit, a Sub-Task that fails is replaced once the same way, a new Sub-Task re-run from the start whose executor holds it in planning until the leader publishes decision commit again; the failed Sub-Task keeps its failed record and a finished Sub-Task is never replaced. A held Sub-Task that hears neither within twice N times the sum of the bid window and the acknowledgement timeout plus one more acknowledgement timeout, N being the agent-count announced with it, releases itself. A leader lost before the commit leaves held Sub-Tasks that release themselves the same way; the new leader does not adopt them.
MQTT
| QoS | 1 |
|---|---|
| retain | false |
Message message
{
"swarm-id": "2d5082f9-3dca-498c-9157-f152456f9179",
"parent-task-id": "1a2b3c4d-5e6f-4789-9abc-def012345678",
"leader-id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"decision": "commit"
}