TL;DR: A personal assistant can remember prior turns and call other registered reasoners when each chat is bound to a stable session id and session-scoped memory, according to AgentField. That design makes conversation continuity a routing problem, not a model capability problem.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on AgentField's blog post: Personal assistants become stateful by combining a stable session id with session-scoped memory and tool discovery across registered reasoners.
Why it matters: Identity and access practitioners need to see that conversational state, tool reach, and per-chat isolation are governance decisions, not just application features.
Context
A personal assistant only feels continuous when the system can bind each message to the right conversation and keep that history separate from every other one. In this design, the core problem is not prompting, but session routing and state isolation across a small agent mesh.
The control question is whether a chat-scoped memory boundary can be enforced consistently while the assistant is also allowed to reach other registered reasoners. Enterprise-managed authorisation for AI agents becomes relevant because tool reach and conversation scope have to be governed together, not as separate concerns.
That matters most when the same assistant is exposed from a phone, because a thin bridge can become the policy boundary for every inbound message.
Key questions
Q: How do I prevent chat history from leaking between users?
A: Use strict session isolation so each user gets a separate conversation store, tenant key and access token, with server-side checks that reject any cross-session reads. Prevent accidental reuse by expiring session state on logout, binding history to the authenticated subject, and sanitising logs, caches and exports so prior prompts and responses are not replayed to another user.
Q: What is the difference between session memory and model context?
A: Session memory is the per-user conversation state retained across turns within one authenticated session. Model context is the information currently supplied to the model for inference, which may include recent messages, retrieved documents and tool outputs; context can be rebuilt each turn, while session memory persists outside the prompt and must be access-controlled separately.
Q: How should teams govern runtime tool discovery in assistants?
A: Govern runtime tool discovery with an allowlist, explicit tool registration and policy checks before an assistant can invoke anything new. Each discovered tool should be bound to a named owner, scoped permissions, human approval where needed, and revocation controls, so the agent cannot expand its own access or call unauthorised APIs at runtime.
Q: What should a chat bridge log to support incident review?
A: Log the authenticated user, session identifier, agent or service account identity, tool calls, timestamps, message boundaries, retrieved records, prompt versions and any approval or denial decisions. Exclude secrets, tokens and unnecessary personal data, and keep tamper-evident records so incident reviewers can reconstruct what the bridge forwarded, altered or exposed.
Technical breakdown
How session id routing binds memory to one conversation
The assistant uses an incoming session identifier to decide which memory bucket to read and write. That makes state a property of the request context, not of the model itself. Each turn is appended to a history list, the latest turns are passed back into the model, and the updated history is written back under the same session key. The important mechanism is separation: two chats can use the same assistant code path while never sharing memory because the key differs. This is a classic state partitioning pattern, but in assistant design it also becomes a governance boundary because identity, context, and action all travel together.
Practical implication: Treat the session identifier as a control boundary and verify that it cannot be reused across users, devices, or conversations.
Why discovery changes an assistant from static prompt to live orchestrator
Discovery lets the assistant resolve available reasoners at runtime instead of hardcoding a fixed tool list. That means the assistant can reach whichever registered capabilities are live at the moment of the request, including services that read calendars, triage repositories, or perform other delegated work. Operationally, this shifts the assistant from a single-purpose chat interface to an orchestration layer that can assemble action from multiple back-end capabilities. The control challenge is not the model call itself, but who can register tools, what those tools can do, and how the assistant decides which ones to invoke in response to a user message.
Practical implication: Constrain discovery to approved capabilities and review which downstream reasoners become reachable through the assistant's runtime registry.
How a thin bridge becomes the policy edge for chat apps
The bridge is simply the transport layer between an external chat platform and the local control plane. It long-polls for messages, forwards each one with a per-chat session id, and returns the assistant's reply. That looks minimal, but it makes the bridge the place where authentication, message mapping, retry behaviour, and error handling all converge. Because the bridge is user-owned code, it also becomes the de facto enforcement point for whether a message belongs to the right chat and whether it should reach the assistant at all. In practice, the bridge is not just plumbing; it is part of the trust boundary.
Practical implication: Review the bridge as an identity-aware integration, not as a harmless transport script, and validate its message-to-session mapping.
NHI Mgmt Group analysis
Session scope is the real trust boundary for conversational assistants: The assistant does not become stateful by magic; it becomes stateful because the system decides which turns belong to which session. That boundary is what keeps one chat's context from leaking into another, and it is also what allows the assistant to feel persistent without becoming globally shared. The governance question is whether that boundary is enforced everywhere the request can enter, not just in the model wrapper.
Tool reach must be governed at the same moment as memory: An assistant that can discover other reasoners is no longer just retaining history, it is also assembling capability. That means session identity and tool authorisation are coupled, because the same request that loads context can also unlock downstream action. Practitioners should read this as a single control plane problem, not two separate features.
Chat assistants create a new class of integration risk at the bridge: The small relay code that maps chat messages into control-plane calls becomes the place where identity, context, and execution are stitched together. If that mapping is loose, the assistant can carry the right content with the wrong trust boundary. The operational lesson is to treat bridge logic as part of the identity stack, not as disposable glue.
Per-chat memory is useful only when it remains per-chat: The design works because the assistant writes history back under the same session key that read it. That is a simple pattern, but it is also the difference between local continuity and accidental cross-session correlation. The practitioner implication is to test isolation as a first-class requirement before exposing the assistant to any real user data.
What this signals
Conversation state will increasingly become an access-control problem: As assistants pick up more delegated capabilities, the main question will not be whether they can remember a chat, but whether that memory is safely scoped to one identity, one device, and one business purpose. Programme owners should expect session design to sit closer to IAM than to prompt engineering.
Bridge code will matter more as assistants absorb real work: The narrow integration layer between messaging apps and local control planes will define where trust starts and ends. Teams that already run agents should watch for the point where the bridge stops being a convenience script and starts acting like an authorisation and audit boundary.
For practitioners
- Validate session boundary enforcement Prove that each inbound chat maps to exactly one session id and that the same id cannot be reused to read another user's history.
- Review runtime tool discovery Inventory which registered reasoners become reachable through discovery and remove any capability that should not be callable from a conversational assistant.
- Harden the chat bridge Treat the bridge as a security boundary by checking message provenance, input handling, error paths, and retry behaviour before deployment.
- Test memory isolation under restart Restart the assistant and confirm that session-scoped history persists only inside the intended chat bucket and does not bleed across sessions.
Key takeaways
- The article's central design lesson is that assistant memory is a governance feature, not just a model feature.
- Per-chat isolation depends on a stable session boundary and a bridge that preserves that boundary on every message.
- Once an assistant can discover other reasoners at runtime, access control and conversational continuity have to be managed together.
Related NHI Mgmt Group resources: Enterprise-Managed Authorisation for AI Agents (ID-JAG and Cross App Access) · Self-Hosted Personal AI Agent Security Guide · Vertex AI Agent Engine security guide · Self-hosted CI/CD Runners and Build Agents
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | Session-bound assistant access depends on the session id being enforced as a trusted identity boundary. |
| Recommendation — Enforce strong session binding so chat state cannot be read or reused outside the intended conversation. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Runtime discovery and delegated actions can expand what the assistant is able to do beyond the original chat request. |
| Recommendation — Limit reachable tools and review delegated privileges before enabling runtime discovery. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Per-chat memory and tool reach both depend on tightly governed permissions and entitlements. |
| Recommendation — Map assistant sessions and tool access to explicit authorisation rules, then test that they are enforced. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | The bridge and session key pattern depends on controlled use of authenticators and request-scoped identity. |
| Recommendation — Manage session-linked authenticators so they are unique, scoped, and revocable when conversations end. | ||
Key terms
- Session-Scoped Memory: Session-Scoped Memory is conversation state that exists only for one active user session. It is tied to a session identifier or authentication context and is discarded or isolated when the session ends, so later users, requests or tenants cannot read the retained messages, tool results or other transient state.
- Chat Bridge: A chat bridge is middleware that passes messages between chat systems, bots or channels. It translates formats, routes events and may preserve conversation state, so administrators usually control its authentication, message logging, filtering and integration permissions to limit unintended forwarding or data exposure.
- Tool discovery: The process by which an AI agent learns what functions or actions are available to it at runtime. It becomes a security issue when discovery is broader than entitlement, because the agent can map capabilities even when it should not be able to use them.
- Session ID: A session ID is the identifier a server issues after successful authentication to track a user session. It lets the application recognize subsequent requests as belonging to the same user. If exposed, reused, or stored insecurely, it becomes a direct path to session hijacking and unauthorized access.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an identity security programme, it is worth exploring.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org