All lessons in AI Engineering: From Foundation Models to Evaluated Applications

Audit Memory Across Long Tasks

Test compaction, retrieval, stale facts, and owner isolation with controlled interventions.

90 minutes · Members lesson · preview

What you will learn

  • Design tests that distinguish useful memory from stale, unsupported, or cross-user state.
  • Compare compaction and retrieval by completed-task outcomes and reacquisition cost.
  • Investigate a suspected memory failure with a controlled intervention.

An agent can finish a short task and still fail after a long interruption. It may forget an unresolved error, retain an obsolete fact, or treat a previous user's decision as a current instruction. Extend your agent evaluation packet with long-task checkpoints and controlled memory changes.

Budget 90 minutes: 15 for the state contract, 50 for fixtures and interventions, and 25 for the comparison. You can use a deterministic controller and synthetic records to validate boundaries. If you test a model's compaction behavior, identify the actual model run separately from those control tests.

Choose another lesson