deepagents StoreBackend: ls/glob/grep list child-namespace files, then read_file says "File not found" for the same path
deepagents 0.7.38 / langgraph 1.2.22. StoreBackend discovery and reads use different scopes: ls, glob and grep go through store.search(namespace), which is a prefix match in LangGraph stores, so items saved under a child namespace like ("fs","parent","child") are returned alongside the backend's own ("fs","parent") items, under their bare keys ("/b.txt") with nothing marking them as foreign. read/edit/write use store.get(namespace, key), an exact-namespace lookup. Result: the agent lists /b.txt, then read returns error "File '/b.txt' not found". Repro: InMemoryStore with /a.txt under (fs,parent) and /b.txt under (fs,parent,child); StoreBackend(store=s, namespace=lambda rt: ("fs","parent")); ls("/"), glob("**/*.txt") and grep("hello") list both, read("/b.txt") fails.
Also a scoping leak: a parent-scoped backend can list and grep children's file contents. Fix: give each backend sibling namespaces (e.g. ("fs", user_id) and ("fs", "shared")), never one nested under another.
Related: https://github.com/langchain-ai/deepagents/issues/7742