Agentify Your Machine · xArm 850 · Page 2 of 6
The Task Board
The agent talks to the factory through its task board and MIX. The board's protocol is the factory's; keep everything about the connection in configuration, so the agent's code never names a topic, a host or a login.
What the Course Asks
- Connect to MIX with the agent's own credentials and approved topics; check in; publish identity, capabilities, availability and status; subscribe to the relevant Task Board messages; publish task responses and execution updates1.
- Disconnect or time out safely when the authorization expires1.
The Factory's Protocol
| Topic | Use |
|---|---|
{prefix}/{agent}/task | Assignments addressed to this agent; it subscribes2 |
{prefix}/{agent}/status | Its availability and task progress; it publishes2 |
{prefix}/{agent}/result | Its task outcomes and outputs; it publishes2 |
{prefix}/general, {prefix}/alerts | Shared announcements and alerts; it subscribes2 |
- Every message is one JSON object with the same eleven fields, from
typeandsendertomessageanddata; unused fields are null, extra inputs and outputs go insidedata3. - Every publish, the Last Will included, is at QoS 1 with retain false3.
- Progress (accepted, running, waiting) goes on the status topic; the outcome (completed, failed, rejected) on the result topic, and only once it is verified4.
- Online once per connection, offline once on shutdown, the Last Will if the connection drops; no heartbeats5.
The Agent's Side
- The agent reaches the board only through a port. Every topic, field name and word, and how its answers map onto the protocol, comes from the module's configuration file, never from the code6.
- At check-in it connects with its Last Will, subscribes to its task topic, general and alerts, and publishes one online report holding a summary of its identity and capabilities7.
| The Agent's Answer or State | On the Board |
|---|---|
| Accept | accepted on the status topic8 |
| Request information, request approval | waiting on the status topic8 |
| Reject, unavailable | rejected on the result topic8 |
| Running; paused or waiting | running; waiting8 |
| A run a person reported complete, safe state included | completed on the result topic, naming who verified it8 |
| A fault, a stop, a declined request | failed on the result topic8 |
Its own decision, reason code and state travel inside data8.
Duplicates and a Safe Close
- A task id seen before is never passed on again, whether a redelivery, a retry or a conflicting reuse, except the new version of a task awaiting information; the seen ids survive a restart74.
- When its authorization ends or is refused, or the board stays unreachable past a configured time, the agent takes no new task, stops the running one or lets it finish by its executor's rule, publishes offline where it can and disconnects. No move ever depends on the board7.
Logins, Text and Approvals
- No credential or key is in the agent's code or configuration: the logins are read only from the system's credential directory9.
- Text from the board, MIX or a model is data, never instructions, and a message's sender field is not authentication910.
- No approval, pause or cancel is ever taken from the board: the protocol defines none, and only a person's role may approve, operate or reset910.
- An alert never authorizes a machine action, and the emergency stop stays independent of the broker10.
Printed from https://www.anotherplace.com/learn/en/xarm-850/agentify/board. Every line cites its source on that page.