The Short Answer
Blanket redaction fails legal AI because it deletes the relationships a model needs: who wrote to whom, who signed, what happened when. Structure-aware masking swaps each real name for a consistent placeholder, so the reasoning survives. On ibl.ai you own all the code and the data, so a firm can run the model inside its own perimeter and decide how much context to keep.
Most law firm AI policies start from one instinct: strip everything identifying before a document goes near a model. It feels like the safe answer to Rule 1.6.
It is often the wrong one. A redacted discovery set protects the client and also stops the analysis the firm wanted, because in legal work the identities and the dates are the facts.
Why does blanket redaction break AI analysis of legal documents?
Blanket redaction breaks legal AI because it removes identity without preserving sameness. Once every name becomes the same token, a model cannot tell one custodian from another, and the relationships that decide a matter disappear.
The default replace behaviour in Presidio, the open-source de-identification toolkit that began at Microsoft, swaps a detected value for its type, for example <PHONE_NUMBER>, per its anonymizer documentation. ibl.ai's own Redact action works the same way, replacing a value with its type label.
That is fine for a support chat. It is destructive for a discovery set. Here is an illustrative email thread, with invented names, processed three ways:
| Version | What the model reads | Can it answer "who knew first?" |
|---|---|---|
| Original | Dana Ruiz emails Tom Klein on 3 March 2025; Klein forwards it to Priya Shah on 9 March | Yes |
| Blanket redaction | [PERSON] emails [PERSON] on [DATE]; [PERSON] forwards it to [PERSON] on [DATE] | No. Three people became one token, and the six-day gap is gone |
| Structure-aware masking | <PERSON_1> emails <PERSON_2> on Day 0; <PERSON_2> forwards it to <PERSON_3> on Day 6 | Yes, and the answer maps back to real names inside the firm |
The table is our illustration, not a benchmark. The point it makes is structural: a model reasoning about knowledge, notice, sequence or authority needs to know which person is which and how far apart events sit.
For a deeper look at how this plays out when the data is used for training rather than review, see why PII redaction breaks enterprise AI.
What is structure-aware masking, and how is it different from redaction?
Structure-aware masking hides who a person is while keeping that they are the same person everywhere they appear. It is pseudonymisation applied with the document's structure in mind: people, organisations, dates and roles each get a treatment that preserves what the model needs.
Presidio publishes a pseudonymization sample that does the core move. A custom operator replaces each value with a unique identifier, keeps a mapping, and can reverse it afterwards. Its sample output reads <PERSON_1> gave his book to <PERSON_2>.
Its documentation also describes a salted hash operator and notes that to "maintain referential integrity across records/calls", you provide a consistent salt. That is the property that matters across a 10,000-document production: Klein is the same pseudonym in every file.
| Element | Blanket redaction | Structure-aware masking |
|---|---|---|
| People | One shared token | One consistent pseudonym per person, across every document |
| Organisations | One shared token | Distinct pseudonyms, so the counterparty stays distinct from the client |
| Dates | Removed | Kept in order, with intervals preserved, for example by one consistent offset |
| Roles | Lost with the name | Kept as text: "General Counsel", "the buyer", "the guarantor" |
| Reversal | Impossible | Possible, with a mapping the firm alone holds |
The European Data Protection Board makes the same observation in its Guidelines 01/2025 on pseudonymisation, adopted on 16 January 2025 for public consultation.
It says pseudonymised data "can often be usefully analysed" and that pseudonyms enable "the linkage of various records" about the same person without the additional information.
Do the courts already redact this way?
Yes. The federal courts' own privacy rule for filings is structure-aware rather than blanket. It keeps a deliberate slice of each identifier so a filing still makes sense to the reader.
Federal Rule of Civil Procedure 5.2(a) says a filing may include only the last four digits of a Social Security or taxpayer-identification number, the year of an individual's birth, a minor's initials, and the last four digits of a financial-account number.
Those four rules each protect a person while keeping enough to tell records apart. A minor's initials keep two children distinct; a year of birth keeps an age. It is the same design principle structure-aware masking applies to an AI pipeline.
Does the ABA require lawyers to redact client data before using AI?
No. ABA Formal Opinion 512, issued on 29 July 2024, does not tell lawyers to redact everything. It asks them to assess the risk that information relating to a representation is disclosed outside the firm, and to act on that assessment.
Under Model Rule 1.6, a lawyer must make reasonable efforts to prevent the inadvertent or unauthorized disclosure of, or access to, client information. Opinion 512 applies that duty to generative AI tools.
As summarised in The Bar Examiner's analysis, the opinion says that for self-learning tools "a client's informed consent is required prior to inputting information relating to the representation".
It also notes that tools differ in how they protect information, so the risk assessment is fact based.
Redaction is one way to make that assessment come out safely. It is not the only one, and it is the one that costs the most usable context. Where the model runs, and who can see its inputs, is the other lever.
We covered the rule itself in ABA Model Rule 1.6 compliant AI. This is a summary, not legal advice; each firm's ethics counsel decides.
Is a pseudonymised legal document still personal data under GDPR?
For the firm holding the key, yes. GDPR treats pseudonymisation as a safeguard, not an exit. A masked document still carries obligations for the controller that can reverse it.
Article 4(5) of the GDPR defines pseudonymisation as processing so that data can no longer be attributed to a person without additional information kept separately. Recital 26 says such data should still be considered information on an identifiable person.
The EDPB guidelines repeat that pseudonymised data "remains information related to an identifiable natural person, and thus is personal data". In September 2025 the EU Court of Justice added a nuance in EDPS v SRB (C-413/23 P).
As Covington's Inside Privacy summarises, the court held that pseudonymised data must not be regarded as personal data "in all cases and for every person": a recipient that cannot re-identify may be outside it. The controller that holds the key is not.
For a law firm with EU matters, that makes two practical points. Structure-aware masking reduces risk without removing GDPR duties. And the place the mapping key lives, inside the firm or inside a vendor, is part of the analysis.
When does a law firm not need to mask documents before AI at all?
When the model, its logs and its storage all run inside the firm's own perimeter, the disclosure risk Opinion 512 describes changes shape. Nothing leaves the firm, so masking stops being a precondition for using the model and becomes a choice made per matter and per agent.
Opinion 512 still applies inside the perimeter: a self-learning tool can disclose one client's information to other lawyers at the same firm, and for those tools it requires the client's informed consent wherever the model runs.
That is the real trade. A firm sending documents to an external API has to strip context to stay safe. A firm running an open-weight model on its own infrastructure can keep the names, the dates and the relationships, and still control who sees them.
Masking still has a job inside the perimeter: ethical walls between matters, least-privilege access for agents, and cleaner outputs when a summary goes to a wider audience. For the most sensitive work, see air-gapped AI for law firms.
The subpoena question is separate and worth reading too. The NYT v. OpenAI discovery filings showed how chat logs held by a vendor can become discoverable.
How does ibl.ai handle client data in legal AI agents?
ibl.ai lets a firm decide, per agent, whether personal information reaches the model untouched, redacted, masked or blocked, and it logs each detection without copying the data. Because the firm self-hosts the platform, that decision happens inside its own perimeter.
Every agent carries a Privacy tab with PII filtering across thirteen entity types, from Person and Date / Time to IBAN and Passport, and four actions: Allow, Redact, Mask and Block. An optional second pass filters the agent's own responses.
Since 25 September 2026, detections are recorded in a read-only privacy-flags audit log that stores entity types only, never raw values. The filter also covers uploaded files, including OCR and pixel-level redaction on images.
Be precise about what that means for legal work. The built-in Redact action is the type-label kind, which is right for a chat agent and wrong for a discovery review.
For matter analysis on a model running inside the firm, Allow with detection logging keeps the full context and still records what was seen.
Where a firm wants entity-consistent pseudonyms before a document reaches an external model, that layer is built on top. Because you own all the code and the data, the masking layer and the mapping key that reverses it stay on the firm's infrastructure, not a vendor's.
The platform is model-agnostic, so the same firm can route public research to a hosted frontier model and privileged review to a local one. It deploys anywhere, from your own cloud to a fully air-gapped network, with no per-seat pricing.
See ibl.ai for legal, or the flagship Agentic OS the agents run on. ibl.ai is family-owned and operated from New York, NY, and our team works with legal departments and firms as a long-term partner, from the first agent through every model change that follows.