Decode unknown wire exception names as `Exception`

Merged
SA
20d ago
+164-79

A peer from a newer release can raise an exception type this build predates (e.g. statistics.StatisticsError). Rejecting the name failed the whole frame, so a client discarded the worker and an old worker reported a protocol violation. Both decode paths, exception values in the arena and raised exceptions, now fall back to Exception with the original name leading the message; the arena path charges that message to the frame's decode budget.

ProtoConvertError::UnknownExcType is removed: nothing produces it now.

Claude-Session: https://claude.ai/code/session_018zfZ5yGFC6co6ymzi7CBgE


Summary by cubic

Decodes unknown wire exception names as Exception so a peer from a newer release can raise an exception type this build predates without ending the session. Previously the name was rejected and the whole frame failed, causing a client to discard the worker or an old worker to report a protocol violation.

  • Both decode paths, exception values in the arena and raised exceptions, now fall back to Exception with the original name leading the message.
  • The arena path charges the fallback message to the frame's decode budget, sizing the message once so it stays within that charge.
  • ProtoConvertError::UnknownExcType is removed, and the README documents the new behavior.