Skip to content
Developer Preview

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”.

read_session_durability(result: InitializeResult) -> SessionDurabilityProfile

Name Type Description
result The typed initialize result.

The durability profile every session opened under it inherits.

Source

clients/sdk-py/src/muse_code/facade/host_death.py:73