Resolves a user-facing error message for a classified agent error.
For errors that benefit from additional context (e.g. org name), the optional
resolveContext callback is invoked lazily — only when the error type
needs it. Non-contextual errors return the backend message as-is.
Resolves a user-facing error message for a classified agent error. For errors that benefit from additional context (e.g. org name), the optional resolveContext callback is invoked lazily — only when the error type needs it. Non-contextual errors return the backend message as-is.