Sends task response
PUB{agent-base-topic}/exec/response
The Swarm Leader relays the selected executor's official WARA-PS task response on the Swarm Unit's own execution boundary. A pending-capacity rejection is response failed with fail-reason 'pending task capacity exceeded'. A command received while the newly elected Swarm Leader is warming up (one liveness window after it took over) is not queued: it is response failed with fail-reason 'leader warming up'. A pause, continue, or enough signal received before assignment is rejected with fail-reason 'signal not applicable before assignment' and no terminal task feedback. Correlation identifiers are preserved. A task that fails after queue admission is relayed as response failed with the delegation failure-reason (no-bid, missing executor topic, executor acknowledgement timeout, executor refused, or task aborted by commander); ingress with an invalid task payload fails with 'invalid task payload'. A Swarm Move (move-to with params.swarm true) is refused with response failed and fail-reason 'no formation' when the formation is none, or 'task-already-running' when another Swarm Move is active; delegated move-to tasks are unaffected. A task whose params.agent-count is invalid, or combined with params.swarm true, fails with fail-reason 'invalid-agent-count'; a task type that gives an agent-count above one no meaning fails with 'agent-count-unsupported'; an agent-count above the Swarm roster size fails with 'insufficient-agents'; a search-area whose agent-count is above the number of lawnmower tracks its area holds fails with 'area-too-small'. These are refused before bidding and before the task takes a pending-queue place. A Parent Task whose leader was lost after its Commit is failed by the new Swarm Leader as response failed with fail-reason 'leader lost', under the Parent Task's task-uuid and the com-uuid it answers; the new leader first aborts the Parent Task's Sub-Tasks, which it finds in the members' direct_execution_info, and it adopts or resumes none of them.
MQTT
| QoS | 1 |
|---|---|
| retain | false |
Message message
{
"agent-uuid": "2d5082f9-3dca-498c-9157-f152456f9179",
"com-uuid": "5f3e2c1a-8b7d-4e6f-9a1b-2c3d4e5f6789",
"task-uuid": "1a2b3c4d-5e6f-4789-9abc-def012345678",
"response": "running",
"sub-task-uuids": [
"7d1c2b3a-4e5f-4a69-8b7c-0d1e2f3a4b5c",
"8e2d3c4b-5f60-4b7a-9c8d-1e2f3a4b5c6d"
]
}