Once a company lets its AI workers "remember every interaction," the next question is not whether they remember enough, but whether they are remembering things they never should. A customer's national ID, an employee's health data, a sensitive conclusion from a negotiation—the moment these are written into long-term memory, they become a security and compliance time bomb. Research confirms this is not a theoretical risk: LLMs "memorize" their training or fine-tuning data, and credentials, API keys, and even personal data embedded in code can be reconstructed through extraction attacks (a 2025 IJCAI systematic survey on PII leakage catalogs multiple such attack paths). Memory makes AI understand you better the more you use it—but ungoverned memory leaves your company more exposed the more you use it. This article is not about how memory systems work; it is about a practical governance framework: what to remember, when to forget, and how to hold the line on data protection law.
First separate "should remember" from "should not"
The first step in memory governance is to classify data before it is written into memory, rather than storing everything and cleaning up afterward. This maps directly to the data minimisation principle in Article 5(1)(c) of the EU GDPR: collect only what is necessary to achieve the purpose. We recommend tagging each class of information along three dimensions—its value for reuse across conversations, its sensitivity, and the damage a leak would cause.
- Worth remembering long-term: customer preferences, business rules, decision context—low-sensitivity information that improves future service quality.
- Keep as working memory only: content temporarily needed to finish the current task but with no reuse value; purge it when the task ends.
- Do not remember, by default: national IDs, financial account numbers, and the special-category data enumerated in Article 6 of Taiwan's Personal Data Protection Act—medical records, healthcare, genetics, sex life, health checkups, and criminal records—which in principle may not be collected or processed unless there is a statutory basis or the individual's written consent.
Making "do not remember" the default—rather than "remember everything"—is the foundation of the whole framework. The most common mistake in practice is treating memory as "the more it remembers, the smarter it is," defaulting to writing every full conversation into long-term storage. Only when a security audit or a customer request arrives does the company discover it cannot even say whose data the AI has retained, or what.
Why "do not remember" is a red line: easy to write in, hard to delete
Making "do not remember" the default is not merely cautious—it reflects that technically, "writing in" is far easier than "getting out." Once sensitive data enters model parameters (for example, by fine-tuning on conversation logs), it can be memorized and reproduced under certain prompts. Researchers distinguish "extractable memorization," which any prompt can elicit, from "discoverable memorization," which reappears only when prompted with the exact prefix. Secrets like passwords and API keys in code are especially prone to being memorized. Want to remove them afterward? Machine unlearning remains an unsolved problem—the field created a dedicated benchmark for it at SemEval-2025—and retraining a large model from scratch costs millions of dollars in energy alone. The conclusion is blunt: rather than hoping to cleanly dig out sensitive memories later, simply keep them out of the persistence layer and training data in the first place.
Forgetting is a design choice: tiered retention and expiry
A memory system with no forgetting mechanism is a data lake that only takes in and never lets out—over time it becomes a disaster zone for audits and leaks. This is exactly what the "storage limitation" principle in GDPR Article 5(1)(e) requires: personal data kept in identifiable form no longer than is necessary for the processing purpose. The effective approach is to set explicit retention policies for each memory tier and automate expiry, rather than relying on periodic manual cleanup.
| Memory tier | Typical content | Suggested retention | On expiry |
| Conversation memory | Context of the current task | Task end or a few hours | Hard delete |
| User memory | Preferences, past decisions | Rolling window; fade if inactive | De-identify or delete |
| Knowledge memory | SOPs, business rules | Retire by version | Archive old versions |
| Sensitive PII | National ID, financial account | Per statutory/contractual basis | Delete once purpose ends |
It is worth stressing that "deletion" technically does not equal "invisible." If sensitive data lives simultaneously in a vector index, a cache, and logs, clearing only the copy in the main database still leaves the memory reconstructable from other corners; true expiry must cover every copy the memory is scattered across. Moreover, the EU AI Act (Regulation (EU) 2024/1689, whose high-risk provisions apply in full from 2 August 2026) requires deployers of high-risk systems to retain automatically generated operational logs for at least six months—so a forgetting strategy must satisfy both "forget what should be forgotten" and "keep the audit trail that must be kept," a pair of seemingly contradictory demands.
PII and data protection law: the compliance red line for AI memory
Article 11(3) of Taiwan's Personal Data Protection Act states plainly that "when the specific purpose of collection no longer exists or the retention period expires, the personal data shall, proactively or upon the data subject's request, be deleted or its processing or use ceased," unless it is necessary to perform a duty or business, or the data subject has given written consent. Applied to AI memory, this means: personal data the AI has remembered cannot be kept forever merely because it is "convenient."
The Act does not set a universal retention term; under Article 21 of its Enforcement Rules, continued retention counts as "necessary to perform a duty or business" only in situations such as another law mandating retention (for example, the statutory retention period for accounting vouchers). The correct approach is therefore not to pick a fixed number of years, but to map each class of personal data to its statutory or contractual basis, and where none exists, to fall back on "delete once the specific purpose is gone." Data subjects also have the legal rights to inquire, correct, cease use of, and delete their data, so an AI memory architecture must be designed to locate and remove a single individual's data rather than only wipe everything in bulk—consistent with the right to erasure in GDPR Article 17. For the special-category data under Article 6 mentioned earlier, the bar is higher still; without a statutory basis or explicit consent, the safest course is to have the AI never touch or remember it at all. In memory-governance compliance, the point is often not how tightly you protect the data, but not collecting what you never needed in the first place.
Make memory auditable: access control, trails, and framework alignment
Governance that cannot be verified is merely policy on paper. An AI memory system should have three audit capabilities: access control (which AI, in which role, may read or write which memory tier), read/write trails (which piece of sensitive data was recorded or retrieved, and when), and a queryable view that can answer "what does this AI remember about a given customer." These need not be figured out from scratch—mature frameworks exist for reference: the AI Risk Management Framework (AI RMF 1.0) published by the US NIST in 2023 builds a control checklist around four functions—Govern, Map, Measure, Manage—and over seventy subcategories; the international standard ISO/IEC 42001 folds data governance and auditability into the formal controls of an AI management system. Article 12 of the EU AI Act goes further, directly requiring high-risk systems to be fully traceable.
We recommend building these three capabilities directly into the AI adoption acceptance checklist, rather than bolting them on after an incident. Like security, the cost of designing memory governance up front is far lower than the cost of remediation and potential penalties later.
How Nerdtechnic helps you build a memory governance framework
When Nerdtechnic helps enterprises adopt AI workers, we treat memory governance as part of the design, not a compliance document patched on after launch. Starting from the client's business scenarios and applicable laws, we help define the memory tiers for each class of information, set retention and purging strategies, and establish access control and audit trails for special-category and PII data—implementing acceptance against frameworks such as NIST AI RMF and ISO/IEC 42001—so that an AI's memory becomes a controllable enterprise asset rather than a latent compliance risk. Letting AI remember the right things, and forget the right things at the right time, is the true precondition for memory to create value.
References
- Cheng, S. et al., "Understanding PII Leakage in Large Language Models: A Systematic Survey," IJCAI 2025. Source
- European Union, GDPR Article 5 (data minimisation and storage limitation, Art. 5(1)(c)(e)). Source
- Laws & Regulations Database of the Republic of China, Personal Data Protection Act, Article 6 (special-category data). Source
- "SoK: The Landscape of Memorization in LLMs" (arXiv:2507.05578), extractable/discoverable memorization definitions. Source
- SemEval-2025 Task 4, "Unlearning sensitive content from Large Language Models" (arXiv:2504.02883). Source
- European Commission, "EU AI Act — High-level summary" (high-risk provisions apply in full from 2 August 2026). Source
- EU AI Act, Article 26 (deployer obligations; logs retained at least six months). Source
- Personal Data Protection Commission (Taiwan), Personal Data Protection Act — Article 11 with official commentary. Source
- Taipei City Government Laws & Regulations, Enforcement Rules of the Personal Data Protection Act, Article 21. Source
- European Union, GDPR Article 17 (right to erasure). Source
- NIST, "Artificial Intelligence Risk Management Framework (AI RMF 1.0)," 2023. Source
- ISO, "ISO/IEC 42001:2023 — AI management systems." Source
- EU AI Act, Article 12 (record-keeping / full traceability). Source