Gofer propagates all uncaught exceptions raised from within agent method implementation on the agent.  Here the *agent* refers to pulp's gofer plugin.  The pulp agent handler framework is designed to catch and report exceptions raised in the handlers.  So, in almost all cases, errors raised by our making calls to the agent are not reported as raw exceptions here.  However, nothing is perfect and this code catches and reports cases where the agent reports an uncaught exception.  I don't see a way to provide more context.  That said, I think reporting the traceback is not helpful.  It's only being done to conform to the task dispatcher API.  I think wrapping this as a common Error (like defined in your branch) would make more sense.

All raised exceptions are reported in agent.log.