notes

The hung component: the caller a hang strands

Name: provisional.

An appendix to notes/hung-component.md, whose question 3 it supports. Milestone 133 (ending a permanently blocked thread, and deciding who may) lets the region holder end a blocked server. Milestone 254 (a caller stranded by a server that died) wakes the callers of a server that dies or is ended with moho_abi::Error::Gone. A server that is hung and alive, and that nobody ends, still strands its caller exactly as below.

The path, from the code:

So a blocked caller ends in one of four ways: its endpoint is destroyed, its server replies, its server dies, or its server's region is destroyed. A hung server that nobody destroys is none of them.

And the operator cannot answer on the component's behalf. The one-shot Reply capability naming that caller is minted WRITE without GRANT (§12 (Call/Reply IPC), and the system call layer says why: "minted without GRANT, so it could not have been delegated here in the first place"), it lives in the hung component's capability table, and it is consumed on use. It cannot be delegated to the supervisor, forged, or reached by revoking anything. What the operator can do is end the component, and the kernel then answers the caller for it.

The hung test runs that path. The operator DESTROYs the hung incumbent's region after the replacement has started; milestone 133 finishes the incumbent in place without waking it, and the reclaim's removal phase runs strand_callers_of, so the client's swallowed request returns Gone. The client asks again and the replacement answers. CL_WAS_GONE is the client's own record of it. The finishing never wakes the incumbent, which is what keeps its stale Reply from forging an answer to a later call (milestone 133's block has the hazard).

Consequences a design has to carry, not a footnote: