Documentation
¶
Overview ¶
Package origin contains transport-supplied identity and pure routing helpers. It never discovers sessions, interfaces, applications or parent chats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Provider string
Namespace string
SessionID string
AnonymousCaller string
CallID string
Provenance Provenance
Locality Locality
Interface Interface
Hidden bool
}
Context is built by the transport, never decoded from model Payload. Namespace is a stable source namespace, not an application/configuration ID. AnonymousCaller is an explicit transport namespace, permitted only for none.
func (Context) Scope ¶
Scope separates anonymous caller namespaces from real session identities. The hash avoids expanding a 256-byte ID beyond the journal's key limit.
func (Context) Validate ¶
func (o Context) Validate(n notification.Navigation) error
type Provenance ¶
type Provenance string
const ( ClientMetadata Provenance = "client_metadata" CallerAsserted Provenance = "caller_asserted" )
type RoutePolicy ¶
type Target ¶
type Target struct {
Desktop notification.DesktopTarget
}
func ResolveCodex ¶
func ResolveCodex(o Context, p RoutePolicy) Target
ResolveCodex preserves unknown interface/provenance and routes only under explicit operator policy. It does not claim profile or store compatibility.