AI Agents Now Test on Production Data. What Did You Forget to Mask?

Database branches inherit your masking policies, and every gap in them

Build an audience that pays you back.

Great newsletters aren't built overnight, but they can start earning sooner than you think.

Grow your list, launch a paid tier, sell a digital product or bring in sponsors, all from one platform. But hurry, because beehiiv’s biggest sale of the year ends Cyber Monday.

In partnership with

Your best ideas shouldn't live in drafts.

You've got the ideas. Your audience is out there. What's missing is one place to bring them together.

beehiiv offers everything you need to build your content business. Grow your newsletter, launch a custom website, host your podcast, and sell digital products, all from one platform. But hurry, because our biggest sale of the year ends Cyber Monday.

Most organizations treat testing as the safety net for AI agents. If an agent's database change passes its tests before it ships, the thinking goes, production is protected.

The larger problem is what the agent is testing against. AWS announced database branching for Amazon Aurora PostgreSQL yesterday, in preview, built for "developers and AI coding agents" to "safely test database changes against production data before shipping them." Every developer, agent and pull request can get its own isolated branch, and each branch inherits the parent cluster's encryption, IAM controls, database roles and dynamic data masking policies, so that, in AWS's words, "sensitive data stays protected."

That promise rests on one assumption: that your masking policies already know where all your sensitive data lives. In most estates they do not. Masking covers the columns someone tagged. It says nothing about the customer notes field, the free-text claim description or the JSON blob a vendor integration has been filling for years.

And it gets harder as agents multiply. A copy of production used to be a rare, supervised event. Now it can be a routine step in every pull request, created by an agent, read by an agent and deleted on a timer, and every gap in your metadata travels into every copy.

AWS's bet is that agents should do real work on your behalf, quickly and safely, while you get on with your day. That is what OpenMap does, and it is now live: from shopping to planning a group trip, ask in your own words and your agent does the legwork. Try it free at openmap.ai.

OpenMap is live. Shopping, group trips and more: ask in your own words and your agent does the legwork. Try openmap.ai.

What Did AWS Actually Launch?

A fast, cheap, disposable copy of your production database for every agent that wants one.

According to the announcement, each branch gets its own serverless compute that scales to zero, and uses copy-on-write storage, so it shares unchanged data with the parent and stores only what changes. "Changes made during testing do not affect production data," AWS says. iTWire's keynote coverage reports that a branch is ready in about a minute.

The economics are designed to remove any reason to hold back. There is no additional charge for branching; you pay only for the compute a branch uses and the data it changes. Branches can be created from the console, the CLI, the SDKs and the AWS MCP Server, which means an agent can request its own. Aurora deletes each branch when its time-to-live expires.

A developer's walkthrough of the preview documentation adds the scale: up to 50 branches per cluster and 2,000 per account, each with a required time-to-live of between one hour and 90 days. The preview runs on Aurora PostgreSQL 17 and higher in three regions: US East (Ohio), Europe (Frankfurt) and Asia Pacific (Mumbai).

The launch sat inside a keynote with a clear message. "Agents are built on data," AWS's Swami Sivasubramanian said, according to the keynote transcript. "The ones that make it are those that are built on the right data infrastructure."

The part most teams will skip

Read the masking line again. Branches inherit dynamic data masking policies. They do not create them.

A branch is exactly as protected as the parent's policies, and the parent's policies are exactly as complete as your knowledge of your own data. If a sensitive column was never found, never tagged and never given a policy, the branch hands it to the agent in full, every time, at no extra charge.

AI agents each working on their own branch copy of a production database, with one unmasked field slipping through

Why Doesn't Inherited Masking Protect Everything?

Because masking is a rule about known columns, and the riskiest data usually lives in columns nobody thinks of as sensitive.

Picture a retail bank that switches on branching for its customer platform. The security team did good work two years ago: national ID numbers, card numbers, dates of birth and email addresses are all masked by policy. The audit passed.

A coding agent picks up a ticket to speed up the collections dashboard. It creates a branch, rewrites a slow query, and runs it against realistic data to check the results. To prove the change works, it writes a handful of sample rows into a test fixture and attaches them to the pull request.

One of those rows comes from a column called contact_notes. Collections staff have typed into it for a decade. It holds phone numbers, the name of a customer's employer, and a line about a recent bereavement that explains a missed payment.

The masking policy worked.

The data still left the database.

Nobody in this story did anything wrong. The agent tested against production data, exactly as the feature intends. The masking policy protected every column it knew about. The gap sat in a place no policy covers on its own: the knowledge of what is actually inside each field, and who is responsible for knowing.

This is not a masking problem. It is a metadata problem.

A human developer might have recognized a notes field as risky and skipped it. An agent sees a column with no policy and treats it as fair game, because as far as the database is concerned, it is.

Masked structured columns next to an unmasked free-text notes column holding personal details

What Does a Passing Test on a Branch Actually Prove?

Less than it appears to, and the gap is a data quality question as much as a security one.

Now picture an insurer. An agent is asked to fix duplicate policyholder records in the claims database. It writes a change that merges records when the name, date of birth and email match. It creates a branch, runs the change and checks the result. Duplicates fall sharply. The tests pass, and the pull request is approved.

Two things went unseen.

First, the date of birth and email columns on the branch were masked. Masking replaces real values with placeholders, and many masking rules return the same placeholder for every row. On the branch, the agent's matching logic was comparing placeholders. The test proved the code ran. It did not prove the code matched the right people.

Second, the branch held only the claims database. It did not hold the reserving report in the warehouse that counts policyholders by region, the fraud model that scores households, or the customer service agent that looks up a policy by email. A merge that looks clean inside one database can quietly change numbers in three places downstream.

The change passed its tests.

The business found out on the next month-end.

A branch is an excellent way to test a database. It was never designed to test everything that depends on one. Knowing what depends on a column is a lineage question, and the branch cannot answer it.

Before agents can safely test against copies of production, your team usually has to:

  • Find every column that holds personal or regulated data, including free-text, notes and JSON fields, not just the obvious ones

  • Give each sensitive asset a named owner who confirms its classification is still right when the schema changes

  • Make sure every classification has a matching masking policy on the parent database before branching is switched on

  • Map lineage from each table and column to the reports, models and agents that read it, so a passing test can be checked against its real impact

  • Know which matching and quality rules depend on real values, so they are validated somewhere masking does not hide them

  • Keep a record of which branches exist, who or what created them, and what data they exposed before they expired

None of these tasks are particularly difficult. They are slow, manual, and usually start only after a test fixture full of customer notes turns up in a code review, or a month-end report stops reconciling.

Why Does Faster Testing Raise the Stakes for Your Data?

Branching is a genuine improvement. Shared staging databases are slow, stale and fought over, and testing against realistic data catches problems that synthetic data misses. AWS is solving a real problem.

But speed changes who does the work and how often it happens. A copy of production used to need a ticket, an approval and a database administrator. Now a branch is one call to an MCP server, at no extra charge for branching, ready in about a minute. That is the point of the feature, and it is also why your metadata has to carry more of the load.

Most organizations are not ready to rely on it. Gartner's survey of 298 infrastructure and operations leaders, as reported by CASRAI, found that 95% had an agent-related incident in the previous 12 months, while 70% believed their agents operate safely. Among the controls Gartner recommends is a human approval gate for high-impact actions such as production database schema changes.

That gate is only as good as what the approver can see. A reviewer looking at a pull request sees the SQL. They do not see that the column being changed feeds a regulatory report, or that the sample rows in the fixture came from an untagged notes field. Without lineage and classification in front of them, the approval is a signature, not a check.

The size of most estates makes this harder. In the same keynote, AWS described Rio Tinto mapping a legacy system of more than 5,000 tables, 80 schemas and 140 applications. Few teams could say from memory which of 5,000 tables hold free-text customer data.

The result is not fewer copies of production.

It is more copies, made faster, by more agents, each one inheriting whatever your metadata forgot.

How to Make Your Data Safe for Agent Branches in 30 Days?

You do not need to redesign your data platform, or delay branching for a year, to let agents test against production data safely.

Within the first month, focus on the databases where agents are most likely to branch first, usually the ones behind active development, and the domains where exposure or a wrong merge is expensive: customers, payments, claims and anything that feeds regulatory reporting.

Week 1: Inventory what agents will be able to copy

Start by listing every database where branching could be switched on, and every agent or pipeline that will be allowed to create branches. For each database, pull the current masking policies and compare them with the full list of columns. The gap between the two lists is your first backlog.

Week 2: Discover the sensitive data you have not tagged

Discover the metadata that already exists across schemas, catalogs and documentation, then scan for sensitive data in the places tags usually miss: free-text fields, notes, comments, JSON and legacy columns with vague names. Map lineage from each sensitive column to the reports, models and agents that read it.

Week 3: Name owners and close the policy gaps

Give every sensitive table and column a named owner who approves its classification. Add masking policies on the parent for everything newly found, before any branch inherits from it. Identify the quality rules, such as matching and deduplication, that must be tested on real values in a controlled environment rather than on masked branches.

Week 4: Put the context in front of agents and approvers

Next, expose this context through a single knowledge layer that agents, pull request reviewers and approval gates all read from. A reviewer should see which downstream assets a change touches, and an agent should know which fields it must never copy into fixtures or logs. Then rerun one week of agent pull requests against it and count what would have been caught.

DataManagement.AI accelerates this process by automatically discovering metadata, mapping lineage across the modern data stack, identifying downstream dependencies, and creating a centralized knowledge layer that stays continuously updated as your environment evolves. It unifies master data, governance and operational trust into one continuously maintained system, resolves duplicate and conflicting records, and makes sure ownership and policy travel with every entity, including into every copy an agent makes.

One governed knowledge layer whose classifications and owners flow into every agent's database branch

Instead of auditing every branch after the fact, your team decides once what each field contains, who owns it and what depends on it, and every branch, agent and reviewer inherits the same answer.

Agent Branching Is Actually a Metadata Problem

Database branching is good news. Isolated copies, inherited permissions and automatic cleanup are exactly what data leaders have wanted for agent testing, and AWS has made them cheap enough to use everywhere.

But a branch can only inherit what the parent already knows. It cannot find the sensitive field nobody tagged, or show the report that breaks when a merge goes live. That knowledge has to exist somewhere a machine can read it, with an owner who keeps it true.

Organizations that scale AI agents successfully do not just give every agent its own copy of production. They make sure they know what is in production before the first copy is made.

Forward Deployed Watch: Persistent Puts Evals in the FDE Job Description

Persistent Systems has launched a Forward Deployed Engineering program built on Microsoft Foundry, Azure and Copilot, embedding its engineers inside client organizations in banking, healthcare, manufacturing and hi-tech. The announcement, dated December 1, lists establishing evaluation frameworks for agentic AI performance, reliability and safety among the program's deliverables, alongside reference architectures for how agents use enterprise data and security controls.

That is a useful signal. Another large services firm now treats evaluation as part of the FDE job rather than an afterthought. Microsoft's Puneet Chandok framed the goal as "the security, governance, and trust required for production-scale adoption."

For data leaders, the question is what happens after go-live. An eval framework is written against the data and schema of launch day. Then agents start branching, merging and changing that schema every week, as the story above describes. Each change can move an agent's accuracy without any error being raised. Someone has to own the evals, rerun them when the data changes, and notice when results drift.

That is the gap Derisk360 works in. It embeds trained pods of Forward Deployed Engineers (FDEs), who build governed agentic systems inside your own cloud, alongside Forward Deployed Eval Engineers (FDEEs), who own trust after go-live: eval harnesses, red teaming, guardrails, drift monitoring and audit-ready evidence. Every engineer is trained in the Derisk360 FDE and FDEE Factory. Derisk360 reports go-live in under 12 weeks and a mean time to detect drift of under 1 hour.

Warm regards,

Shen and Team