A session-scoped memory read or write without a real session refuses
The other identity scope, closing the same leak. A session scope that degraded would splice every identity-less execution path into one shared conversation history.
The rule
- Resolving the
sessionmemory scope MUST refuse whenever the execution context is absent, carries no session identifier, carries one that is not a usable identifier, or carries the identifier that denotes no session. - As with the
userscope, refusing MUST be distinct from resolving to the empty scope identifier, which selects the shared global bucket. - Scopes that are not identity scopes MUST resolve to the empty identifier.
- Every consumer MUST honour this refusal the same way it honours the
userone.
What it means
Refusing and resolving to the empty scope identifier look similar from the
outside — neither reads a caller-specific bucket — but they are different
answers. The empty identifier is a real resolution: it selects the one shared
bucket every identity-less execution reads and writes. Refusing means no
bucket is selected at all, and nothing is read or written under this scope
for this call. A session scope with no usable session identifier — absent,
empty, zero, or anything that is not a real identifier — refuses; it does not
fall through to the shared bucket the way a scope with no identity concept at
all does.
Every consumer of this scope honours the refusal the same way: none of them treat "no session" as license to read or write the global bucket instead.
Example
A read against the session scope, from an execution context that carries no
session identifier, with a fallback default of "fallback".
{"value": "fallback", "found": false, "scope": "session", "resolved_scope_id": ""}resolved_scope_id is the empty string, the same value the shared bucket
would use — but found stays false and value is the caller's own fallback,
never something read from storage: the empty string here names a refusal, not
a bucket that was actually read.
Why
Recorded under OPEN-25.