core / pragma.session / stampRequestId /

stampRequestId #

private fun ExternalMessage.Builder.stampRequestId(requestId: Int): ExternalMessage.Builder

Defense-in-depth: every executor stamps the request id onto the answer it builds (valid responses and errors alike, including bad-session/no-permission, which now receive the id), but every request also flows through this one choke point on the way out, so a future executor that forgets still cannot emit an answer a client is unable to correlate. Belt to the executors’ suspenders.