Cross-Agent Knowledge Leakage

The Problem

Information from one agent's conversations or private knowledge base inadvertently appears in another agent's responses, violating data boundaries.

Symptoms

  • ❌ Agent B references Agent A's conversation

  • ❌ Private knowledge appears in wrong agent

  • ❌ Cross-contamination between agents

  • ❌ Shared memory causes leakage

  • ❌ Cannot guarantee isolation

Real-World Example

Setup:
→ Sales Agent: Access to sales pipeline, deals, pricing
→ Support Agent: Access to help docs only

User asks Support Agent: "What discounts are available?"

Support Agent responds: "We recently offered AcmeCorp a 25%
discount for enterprise plan (as discussed in sales pipeline)."

Problem:
→ Support Agent accessed Sales Agent's private data
→ Confidential pricing leaked
→ Data isolation failed

Deep Technical Analysis

Shared Infrastructure Risks

Single Vector DB:

Conversation History Contamination:

Metadata Filtering Failures

Incomplete Tagging:

Filter Bypass:

Session/User Context Confusion

User Switches Agents:

Multi-Agent Workflows:


How to Solve

Use separate vector DB namespaces or indexes per agent + enforce mandatory agent_id filtering at query time + isolate conversation history by agent + implement access control validation layer + audit cross-agent queries + clear session context when switching agents. See Cross-Agent Isolation.

Last updated