read_session_durability
Reads sessionDurability off the handshake result.
Function in muse_code
Two readings are easy to conflate and must not be:
- ABSENT reads as
durable, decidable rather than fabricated: the member is optional only so the addition was additive, and no server that omits it has the ephemeral profile. - An UNRECOGNIZED value is NOT durable.: a client that does not know the value must infer no durability guarantee from it and must not fall through to the absent-means-durable rule — that rule keys on the member being MISSING, not on its value being unfamiliar. The open enum makes the conservative read “assume nothing survives this host”.
Signature
Section titled “Signature”read_session_durability(result: InitializeResult) -> SessionDurabilityProfile
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
result |
The typed initialize result. |
Returns
Section titled “Returns”The durability profile every session opened under it inherits.
Source
clients/sdk-py/src/muse_code/facade/host_death.py:73