Skip to main content

Module init

Module init 

Source
Expand description

Idempotent local-identity creation.

init_self_idempotent is the single writeable identity-creation entry point safe to expose to agents (via MCP wire_init / auto-init) and to the invite-accept path: it can’t change an operator’s existing identity. It lived in pair_session historically (the SAS pairing module) but is not SAS-specific — it only ensures the local keypair + agent-card + relay slot exist. Relocated here when the SAS flow was removed (RFC-005 follow-on).

Functions§

init_self_idempotent
MCP-callable init: idempotent if already inited under the same handle, errors on different-handle conflict, accepts optional –relay binding.