`retrieve_agent_memory` searches chosen routes, records what it touched, then decides whether fallback is needed.
1
Caller scope
Searches `agent/` unless workspace strict mode is on.
SEARCH
2
Workspace scopes
Searches explicit project keys like `workspace/palaceoftruth`.
SEARCH
3
Delegated agent scopes
Only authorized `include_agent_scope_keys` are appended to the route list.
POLICY
4
Tenant shared
Included immediately, never, or only when selected routes are empty.
OPTION