Policy JSON
What It Does
- Restricts memory writes to
requestandsessionscopes only - Blocks writes to
user,shared, andglobalscopes - Purges all session data when the session ends — no data persists beyond the conversation
- Default scope is
session— if no scope is specified, data goes to session memory
Example
Agent attempts to write to global memory: Decision object:Install
Customize
TealMemory supports 5 scopes:
request (single call), session (conversation), user (per-user persistent), shared (team-level), and global (application-wide). This policy restricts to the two shortest-lived scopes.Related
- Classification — Internal — Add data classification to memory writes
- Deny Secrets in Memory — Block sensitive data from any memory scope
- Code Assistant Starter — Uses session-only memory by default
- TealMemory Documentation — Full API reference

