Expand description
Shared actor-identity resolution (issue #567).
Single source of truth for “who is the caller”, consumed by the gate check, storage-token minting, comm attribution, and MCP strict-mode enforcement: those four sites must agree, so drift here is a silent trust-boundary bug.
Functions§
- actor_
is_ unattributed - True when
actoris the backward-compatible anonymous/local fallback and therefore unsafe for multi-actor comm attribution or strict-mode serving. - resolve_
actor - Resolve an optional configured/request actor id string into the
ActorRefused for gate checks,NamespaceTokenminting, and comm attribution. - should_
warn_ unattributed_ actor - Startup warning / strict-mode predicate for serving paths that load the
commpack: true when the resolved actor is unattributed AND"comm"is among the loaded packs.