agent: switch UnitStatePublisher to Clock interface