liveBook · Manning

Persistence

As explained in Introduction to Generative AI, Second Edition

Persistent state is information about an application or agent that remains available across operations or interactions.

For an AI agent, persistent state is information—such as past actions, goals, or context—that remains available across sessions. It can support continuity, long-term planning, and coordination, unlike information limited to an ephemeral chat interaction. section 8.19

Retained information can also become a liability. False or malicious memories may shape later behavior, while sensitive details may resurface unintentionally. Because agents can act on stored information and use tools, these problems can be difficult to detect or contain. section 8.19 section 8.22

A poisoned memory

Researchers demonstrated that an attacker could plant hidden instructions through Discord inputs. An agent later made a fraudulent financial transfer, believing it was following a legitimate instruction in its stored history. section 8.19

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines persistent state and explains memory corruption, privacy exposure, and attack pathways without implementation detail.
Examples
Uses a Discord memory-poisoning attack that led an agent to make a fraudulent financial transfer.
What you can do after
Understand how retained agent information can support continuity while enabling manipulation, privacy exposure, and harder-to-contain failures.
How it connects
Links persistent state to AI agents, memory, prompt injection, tool use, privacy, and security.

Also explained in

Compare how 10 books explain persistence →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.