Join our Newsletter — 33% off our NHI Course

Conversation Context

Conversation context is the prior information an AI agent uses to interpret a current message and keep a task coherent. In agentic systems, it may include recent prompts, tool outputs, user preferences, policy state, and retrieved data, which together shape response relevance, continuity, and risk of misinterpretation.

What Conversation Context Does in an AI System

Conversation context is the working memory of the interaction. It lets an AI system interpret pronouns, preserve task intent across turns, and avoid treating each message as if it arrived in isolation.

In practice, context can be made up of recent dialogue, tool results, stored preferences, policy state, retrieved documents, and other signals that shape what the system believes is happening now. The quality of those inputs directly affects coherence, relevance, and whether the assistant continues the right task.

Why Conversation Context Matters for Agentic Behaviour

In agentic systems, context is not just a convenience layer, it is part of how the system decides what to do next. A small change in context can change the interpretation of an instruction, the selection of a tool, or the meaning of a follow-up request.

That makes context a control surface as much as a memory store. If stale, incomplete, or conflicting information remains in scope, the system may continue an obsolete assumption, repeat an earlier mistake, or combine incompatible instructions into a wrong action.

What Belongs in Conversation Context

Useful context is usually selective, not exhaustive. The best context is the information that materially improves continuity: what the user asked for, what has already been done, what the system learned from a tool call, and any durable preferences or constraints that should persist for the task.

Not everything should be carried forward. Unfiltered conversation history can add noise, inflate token use, and preserve details that are no longer relevant. The design challenge is deciding which facts remain task-relevant and which should be summarized, aged out, or isolated from the active turn.

How Conversation Context Fails

Context failures usually appear as inconsistency rather than obvious breakdown. The model may answer a later turn using an earlier assumption, confuse one user request with another, or over-trust retrieved data that does not actually match the current objective.

Those failures become more serious when context includes policy decisions, permissions, or tool outputs. If the system treats outdated context as current truth, it can produce misleading responses, continue an action the user no longer wants, or carry forward a risk condition that should have been cleared.

Risk and Threat Considerations

Conversation context creates exposure when untrusted or stale information is allowed to steer the next decision. In agentic systems, attackers can exploit that by poisoning context, injecting misleading instructions, or smuggling in content that changes how the system interprets later messages.

Failure mechanism: The system reuses prior turns, retrieved content, or tool output without enough validation, so a malicious or stale fragment shapes later reasoning, tool selection, or policy interpretation.

Impact: The agent can mis-handle sensitive data, take the wrong action, continue a compromised task flow, or become easier to manipulate across multiple turns.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 ASI06 — Memory & Context Poisoning Conversation context is directly affected by memory poisoning and corrupted prior state.
Recommendation — Constrain retained context so poisoned or stale state cannot drive later agent decisions.
MITRE ATT&CK T1204 — User Execution Context abuse often relies on a user or system acting on manipulated instructions or content.
Recommendation — Hunt for instruction abuse patterns that steer users or systems into unsafe actions.
NIST SP 800-53 Rev 5 AU-6 — Audit Review, Analysis, and Reporting Persistent conversation state and tool outputs need reviewable traces to spot misuse or drift.
Recommendation — Review conversation and tool-use records to detect anomalous or misleading context reuse.
OWASP Non-Human Identity Top 10 NHI-10 — Human Use of NHI Conversation context can carry human instructions that affect non-human actors and their authority.
Recommendation — Separate human intent from machine-held context before allowing non-human actions to proceed.

Practitioner Guidance

Why practitioners should care: Conversation context is where continuity is built, but it is also where drift starts. Teams should treat context design as part of system safety, not just prompt engineering, because the wrong retained detail can be enough to change behaviour in subtle ways.

What to watch for: Pay close attention to context windows that mix user intent, tool output, and policy state without clear separation. The most reliable systems make it easy to tell which facts are durable, which are temporary, and which must be revalidated before reuse.