Skip to main content

Module id_source

Module id_source 

Source
Expand description

Where a session’s identity comes from.

§Why a session needs an id at all

Two things need to say which session they are talking about: the event log, which interleaves the history of every open session, and the redaction rule that says a session id is never logged in full. Neither is possible without one, and both are why it is a value rather than an Arc<Self> a task can reach through.

§What this does not promise

Uniqueness within a process. A session id correlates one process’s work with itself; it is not a capability, not a secret, and not something a peer is ever asked to trust — the vendored revisions never say otherwise, and 2026-07-28 removes the header outright (SEP-2567).

A deployment that does want ids a peer cannot enumerate from one it has seen should use adapters::secondary::id_source::RandomIds, behind the random-ids feature. A path rather than an intra-doc link, because that module is optional and this one is not. It is not the default because a single-process embedding is better served by a reproducible counter, and this is a port precisely so it can have one.

Traits§

IdSource
Mints session identities.