The Watchdog That Freezes With the Humanoid Twin
A command watchdog can inherit simulated time from the same launch configuration as a humanoid digital twin, then stop aging commands precisely when the simulation stalls. The timeout code passes review because its comparison is correct. Its clock dependency makes the protection ineffective.
A valid setting in the wrong component
Consider a deployment where a physics simulator supplies observations to an embodied foundation model, while a command gateway admits its manipulation targets to a physical robot controller. A shared launch configuration enables `use_sim_time` across the application, including a gateway whose watchdog measures command age with its node clock. ROS time follows the simulation clock when configured accordingly and can remain stationary when simulation pauses, as documented in the ROS clock design. If observation production stops with that clock, the watchdog can keep reporting the last target as fresh while the physical controller continues executing it. This survives review because synchronized timestamps are desirable for contact reconstruction and policy evaluation, and ordinary integration tests keep simulation advancing. The defect appears only when the clock that defines command expiry shares the dependency whose loss should trigger expiry.
Keep the protective path alive
When the twin stops advancing, the system must retain local feedback control and revoke the learned policy’s command authority through a deadline mechanism that can still execute.
Inspect the deployed clock today
From a shell connected to the running robot graph, execute `ros2 param get /command_guard use_sim_time`, replacing `/command_guard` with the actual gateway node name. A true result identifies a dependency to investigate, not proof of a defective watchdog, because the implementation may already use a separate monotonic clock; a false result likewise does not establish that the timer and elapsed time calculation use an appropriate clock. Trace both the clock used to timestamp accepted commands and the scheduler that invokes expiry checks, then reproduce the dependency loss on a bench with physical actuation inhibited. Configure a command expiry interval of 100 ms as an illustrative bench parameter, stop policy command production, and pause the simulator’s clock while leaving the gateway running. Record the last accepted command, revocation event and downstream controller acknowledgement using an independent monotonic clock, measuring through acknowledgement rather than merely checking that a warning appeared. Apply this release rule: reject the deployment if command authority remains active beyond the configured interval when simulation time is frozen, even if every process health check remains green.
Make expiry a controller contract
Repair the dependency by measuring the interval since the last accepted fresh command with a local steady clock and scheduling expiry checks independently of simulation progress, while retaining simulation timestamps for observation alignment and replay. Give the protective path execution capacity independent of blocking inference or co-simulation callbacks, and enforce command expiry at the receiving controller as well, so revocation does not depend solely on another message from the gateway. Acceptance must include freshness and progression checks, because repeatedly forwarding a cached target must not renew its authority merely by refreshing its arrival timestamp. For dexterous manipulation and humanoid balance, expiry should select a locally executable, validated fallback appropriate to the contact state, since zero torque can drop a payload or remove support. Keep that fallback latched until fresh state and explicit reauthorization establish a valid control context, accepting interrupted tasks during simulation pauses as the cost of preventing a frozen twin from retaining authority over moving hardware.