Every ROS 2 action goal carries a UUID created by the action client. The identifier lets clients and servers correlate acceptance, feedback, status, cancellation, and result traffic for one protocol goal. It does not prove that a robot moved, that a gripper actually holds a part, or that an operation is physically complete. Those claims require a result contract and independent observations suited to the physical process.

The official ROS 2 action design assigns goal-ID generation exclusively to clients and uses UUIDs to reduce collisions between multiple clients. The send-goal request contains the UUID and the user-defined goal. The response says whether the server accepted the goal and records its acceptance time. Acceptance creates the server-side goal state machine; it is not completion.

Identity across several channels

A ROS 2 action is built from three services and two topics. Send Goal starts the exchange. Get Result returns a terminal status plus user-defined result data. Cancel Goal requests a state change. Feedback reports user-defined progress, and the status topic supports introspection. The UUID is the join key across these observations.

Store it as structured identity, not as a decorative log string. An audit record should include the action name and type, server identity or deployment instance, full UUID bytes, client request time, server acceptance response, acceptance time, and the exact goal payload or its stable digest. A UUID without its action namespace and server context can be ambiguous after logs from several systems are combined.

Do not manufacture a new UUID during an uncertain retry. If the client timed out after sending a goal, a new UUID describes a second protocol goal. The server may have accepted the first one even though the response was lost. Blindly submitting a second identity can create duplicate physical work. Reconciliation should first query or observe the original identity within the server's supported lifetime and application contract.

Acceptance is one observation

The Send Goal service is expected to return quickly. Its response indicates accepted or rejected. An accepted goal then moves through active states such as ACCEPTED and EXECUTING, followed by a terminal state: SUCCEEDED, ABORTED, or CANCELED. Feedback may appear between execution start and terminal completion.

None of these intermediate observations can be promoted into a terminal result. An ACCEPTED goal can wait indefinitely. EXECUTING says that the server's execution method is active, not that the mechanism has reached a target. A percentage in feedback has whatever meaning the action author defined; it is not automatically a measurement of physical distance remaining.

Even SUCCEEDED is a server-reported software outcome under the action definition. For an image-processing action, success may be fully established by result data and local validation. For a pick-and-place action, the result should state which conditions were evaluated: commanded pose reached within tolerance, gripper sensor threshold satisfied, object identity confirmed, fixture state checked, or another application-specific criterion.

Design the result as evidence

Avoid a result that contains only a Boolean success flag. Include a goal revision, completed step, error code, final measured state, tolerance, measurement timestamp, and the identifiers of observations used to decide success. If some evidence is unavailable, report that absence rather than converting it to success.

Separate command completion from physical verification. A motion controller can report that its trajectory execution ended. A cell supervisor can then confirm fixture occupancy or part presence through independent sensors. The final business operation may require both. One action can model the combined contract, or a workflow can retain several linked records, but the boundary must be explicit.

Do not treat a goal UUID as a transaction identifier for every downstream system unless that contract is deliberately implemented. A PLC sequence, database work order, and quality-inspection record may each have their own identity and retention policy. Store the mapping between identities and reject conflicting reuse.

Result caching has a lifetime

The ROS 2 action design calls for a server to cache completed results so multiple clients and introspection tools can retrieve them. The server discards results after a configurable timeout. A timeout of zero discards immediately after pending result requests are answered; minus one keeps results until the server shuts down.

Therefore, a later Get Result failure does not prove that the goal never existed or never completed. The result may have expired, or the server may have restarted. Conversely, finding a cached result proves what that action server reported; it does not reconstruct missing physical sensor evidence outside the result.

Choose retention from the recovery requirement. If clients must reconcile after long network outages, preserve a durable application audit beyond the action server's transient result cache. Record terminal results before acknowledging a higher-level work order. On restart, define whether the server can restore prior goal records, reject unknown UUIDs, or require a separate reconciliation service.

Test uncertain outcomes

Build a fault test around a harmless simulated action. Drop the Send Goal response after the server has accepted the goal. Verify that the client preserves the original UUID and enters an unknown-acceptance state rather than generating a replacement automatically. Restore communication and reconcile the original goal through supported status or result mechanisms.

Next, drop feedback while allowing the result to arrive. The terminal record should remain valid without inventing progress history. Drop the result response after execution, then retrieve the cached result before its timeout. Repeat after the timeout and confirm that the system reports result unavailable rather than not executed.

Restart the server at ACCEPTED, EXECUTING, and after SUCCEEDED. Document what state survives each restart. The ROS 2 goal UUID alone provides no persistence guarantee. Application storage and recovery logic determine whether the new server instance recognizes previous work.

For a physical action test, introduce independent observations. Command a simulated transfer with UUID G. Record the accepted goal, feedback, terminal result, robot-state sample, gripper or fixture observation, and higher-level work-order identity. Create cases where the server reports success but the independent simulated sensor disagrees. The workflow should flag evidence conflict, not erase it because the UUID matches.

Report the right claim

A defensible statement is: goal UUID G was accepted by server instance S; the server later returned SUCCEEDED with result R; observation records O1 and O2 satisfied the defined physical acceptance rule; and all records map to work order W. Each clause identifies its evidence.

The shorter statement "UUID G completed" hides identity scope, server outcome, result lifetime, and physical verification. A UUID is excellent for correlation. Use it to keep the protocol history coherent, then let the action result and independent measurements support the outcome that the robot system actually needs to claim.