Search⌘ K
AI Features

Assessment on Memory Security Audits and Eval Regressions

Diagnose memory security failures in a shared AI assistant by tracing incidents to provenance, namespace isolation, TTL, and evaluation-gate defenses. Patch session handling, team-scoped recall, agent memory writes, and CI checks, then verify each fix with tests and regression evaluations.

We'll cover the following...

In this chapter, we built five defenses for the on-call assistant. The provenance gate decides which sources may write to memory. Server-side namespaces keep each team’s memory apart. Versions and rollback undo a bad fact without hiding it. A time to live (TTL) expires facts nobody verified. And a CI gate fails a change when the eval scores drop.

Each defense answers one narrow question, and passing one says nothing about the others. In this assessment, you’ll audit a version of the assistant where several defenses are half-built. You’ll read four incident reports, find which defense failed for each one, patch the code, and prove the patch with tests.

Four incident reports

The assistant is shared by the checkout and payments teams. In one week, engineers filed these reports:

  • Report 1: We found a request from a payments engineer that claimed to come from checkout. The memory service treated it as a checkout request.

  • Report 2: We saw a checkout engineer’s answer mention a confidential payments incident about a leaked API key.

  • Report 3: We found that the agent’s own unverified claim, a 2.0-second tax-service timeout, never expired. It’s now stored as verified.

  • Report 4: We merged a refactor that removed the freshness filter from search. CI passed, and the stale Redis runbook came back.

Before you look at the code, answer three questions about where to look.

Find the Failing Defense

Q1. Report 1: a request carried “team”: “checkout” but came from a payments engineer's login. Which defense failed?

Do you find this helpful?
...