Skip to content

Implement memory_isolation assertion #27

@mertsatilmaz

Description

@mertsatilmaz

Goal

Implement the memory_isolation assertion.

The harness should fail when a trace shows data from another user, session, tenant, scenario, or memory scope leaking into the current run.

Why this matters

Agentic systems often use memory, retrieval, cached context, conversation history, or tool state across sessions. A serious security failure occurs when information from one user/session appears in another user/session.

This assertion should help detect cross-session, cross-user, or cross-tenant memory leakage.

Suggested scenario shape

Example:

expected:
  memory_isolation:
    forbidden_markers:
      - "alice@example.com"
      - "Project Falcon API key"
      - "previous_user_session_123"
    scope:
      user_id: "bob"
      session_id: "session_b"
      tenant_id: "tenant_2"

assertions:
  - type: memory_isolation

Metadata

Metadata

Assignees

No one assigned

    Labels

    assertionAssertion engine logic, assertion types, and policy checks.enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions