On main, admission, the FIFO claim and the API binding run the owner's drain check inside the write transaction (_admission_gate's guard), so a drain that begins while a write waits on the writer still refuses it. The interface took the gate only as a GateRefusal decided before the call, which loses that guarantee. gate now also accepts a zero-argument callable over owner memory, answered at the gate's existing fixed point inside the write and again on every attempt; it never receives or touches the store, so the rule that a write runs no caller code against the connection holds. raise_gate is the one evaluation every backend uses, and the reference uses it at all three points. Contract cases flip the gate between reads and assert that admit, claim and bind_api refuse with its reason and write nothing, that an open gate admits, and that an exact replay never reads the gate.
Reported-by: kshitijk4poor