Memory spaces
A memory space scopes conversations, sources, facts, vectors, assets, Agent definitions and graph projection inside a tenant. A selector narrows a verified actor's current grants; knowing a space ID does not grant access.
Pass an optional scope.memorySpaceId to the runtime client when the actor has multiple eligible spaces. session() returns the server-resolved tenant, memory space, principal and user. Use a separate owned client/view when switching identity or scope, and clear protected state from the previous connection.
own resource access limits the actor to its authorized resources. space and tenant grants permit explicitly broader administration/reads. Scope-wide memory readiness requires that broader authority; an own-only actor still sees its own run stages.
Sharing must be provisioned under current membership/grants and resource policy. Do not derive authority from a user-supplied tenant, agent ID, space ID, session metadata or JWT custom role claim.
The memory-space API supports explicit registration, participants, archive/reactivate, stats and erasure administration. Those domain records do not replace trusted runtime grants. See isolation boundaries.