You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an Agent on that Harness and check that memory works interactively.
In the UI, create a schedule for that Agent with any prompt (e.g. Answer Hello to my Hi) and trigger it, or wait for it to fire.
The execution's session shows agent run failed: preload memory search failed: memory requires caller identity.
🤔 Expected Behavior
The scheduled execution runs as the schedule's creator, the same identity that owns the schedule and its Session. Memory is then read and written for that user, as in an interactive Session.
As far as I can tell, scheduled runs never pass the creator's identity to the runtime.
Interactive messages carry the HTTP auth session. The gateway forwards it as X-User-Id, and UserIDCallInterceptor turns that into the caller that memory needs.
The scheduled run controller (go/core/internal/controller/scheduledrun/controller.go) calls c.gateway.SendStreamingMessage(dispatchCtx, ...) with a context that has no auth session. So the runtime sees no user, and memoryUserID fails with "memory requires caller identity".
Proposed fix: attach an auth session for execution.GetCreator() to dispatchCtx before the send, so the run executes as the schedule's creator, as the issue expects. I'd add a controller test that checks the forwarded identity is the creator.
Happy to take it if that matches how you want scheduled runs to authenticate. Or would you rather they use a service identity?
Activity
atishay-kasliwal commentedon Dec 1, 2026
As far as I can tell, scheduled runs never pass the creator's identity to the runtime.
X-User-Id, andUserIDCallInterceptorturns that into the caller that memory needs.go/core/internal/controller/scheduledrun/controller.go) callsc.gateway.SendStreamingMessage(dispatchCtx, ...)with a context that has no auth session. So the runtime sees no user, andmemoryUserIDfails with "memory requires caller identity".Proposed fix: attach an auth session for
execution.GetCreator()todispatchCtxbefore the send, so the run executes as the schedule's creator, as the issue expects. I'd add a controller test that checks the forwarded identity is the creator.Happy to take it if that matches how you want scheduled runs to authenticate. Or would you rather they use a service identity?