agent: update Initialize docstring
heart: only long if err != nil