Cotal TypeScript packages
    Preparing search index...

    Function retireManagerInstanceIdentity

    The persisted identity records of a root (manager, sibling and auth-plane instance identities, seat writer generations) and the record reader they share live in auth-identity.ts; they are re-exported here so every importer of this module keeps its path.

    • Delete this root's persisted manager instance identity for space, only when the stored record is the complete expected identity (instanceId, serve nkey id and serve seed).

      It refuses, throwing an error that starts with manager-instance-identity-retire-refused, when the entry is not regular, does not parse, is malformed, or holds another identity. A missing record returns absent and never establishes ownership. The record is renamed to a private name in its own directory and checked again there before deletion. A changed captured record is linked back only if the canonical path is still free; on a collision both records are preserved.

      This establishes only which record was deleted. It is not proof that a manager stopped: the caller must hold its own stop and ownership evidence before retiring. A normal restart keeps the identity, and retirement is for failed-new-space compensation or terminal retirement.

      Parameters

      Returns ManagerInstanceIdentityRetirement