WhistleDev All articles
AI Governance

Autocomplete With a Memory: What Your AI Reviewer Keeps After the Pull Request Closes

WhistleDev
Autocomplete With a Memory: What Your AI Reviewer Keeps After the Pull Request Closes

Photo: Microsoft corporation / Wikipedia., Public domain, via Wikimedia Commons

The prompt looked harmless: a pasted stack trace, a few lines of the handler, and a question about whether the authorization check was bypassable. The assistant answered helpfully. The session closed. Eighteen months later, nobody in the room could say with confidence where that text had gone.

That is the ordinary condition of AI-assisted software work in 2026. The tools are useful, widely sanctioned, and governed by contracts most engineers have never read and could not easily audit if they tried.

The Prompt Is the Payload

Everything you type into a coding assistant or submit to an automated reviewer becomes input to a third-party system. That includes the diff, the surrounding file context the tool retrieves automatically, your review comments, the error output, sometimes environment variables and request samples pasted in for debugging, and — critically — your own description of what you suspect is wrong.

A comment reading this looks like an IDOR on the invoice endpoint, please do not merge is not merely a review note. It is a vulnerability disclosure, transmitted to a vendor, stored on infrastructure your security team may not control, and potentially visible to an administrator in your own company.

Reading the Contract You Actually Signed

The differences between tiers are enormous and rarely explained to the people using them. Enterprise agreements frequently include a no-training clause, a defined retention window, and an option for zero data retention. Consumer and individual tiers often do not, and their default settings may permit use of submitted content to improve models.

Even zero-retention arrangements carry caveats. Many vendors retain prompts briefly for abuse monitoring, a legitimate safety practice that nonetheless means your text exists somewhere for a fixed period. Subprocessors may sit in other jurisdictions. Administrators may be able to review usage logs, and those logs may include prompt text or enough metadata to reconstruct it.

Ask directly, and get answers in writing:

Those last two matter more than they appear. A vendor whose model updates without notice can change what your code review flags, and a contract without genuine confidentiality language leaves your proprietary logic in a weaker position under the Defend Trade Secrets Act.

Shadow AI and the Individual Account

Most organizations now have a sanctioned enterprise instance and a meaningful number of engineers who use a personal account anyway, because the sanctioned tool is slower or the license request is stuck. Every pasted production snippet in that scenario leaves the corporate boundary alongside the data processing agreement.

If you are drafting a vulnerability report, the difference between the sanctioned and unsanctioned path is the difference between a controlled disclosure and an unlogged one. Use the approved channel, and if none exists, say so in writing.

When Security Watches the Same Window

Here the story becomes more complicated. The same tooling that helps you write code can be instrumented to monitor you. Data loss prevention layers scan prompts for secrets, keywords, and patterns. A prompt containing the words vulnerability, unpatched, or breach may generate an alert naming the employee who typed it.

Sometimes that is exactly right — it is how a company catches live credentials pasted into a chat window. Sometimes it is the mechanism by which a developer who tried to raise a concern internally becomes the subject of an investigation instead of the reporter of one.

If you are drafting a disclosure, understand which window you are in. Prefer the designated secure channel. Minimize the reproduction case. Redact identifiers and replace real customer records with synthetic data. Describe the flaw in behavioral terms rather than pasting the exploit.

And keep your own record. A date-stamped note that you reported the issue through the official channel is worth more than any recollection, and a log kept outside the vendor's system is the one that cannot be altered by a settings change.

Confidentiality, Export, and Regulated Code

Pasting sensitive material into a third-party tool can itself be the incident. If the code touches protected health information, a business associate agreement must cover the vendor. If it is export-controlled, transmission may implicate federal export rules regardless of intent. If it contains live credentials, you have created a disclosure event with a clock attached under state breach notification statutes.

The uncomfortable overlap is this: a developer trying to do the right thing by asking an AI reviewer about a suspicious pattern may inadvertently disclose the vulnerability more broadly than the original flaw would have. The tool is not a confidential channel, no matter how private the interface feels.

A Workable Practice

Treat prompts as discoverable, retained, and potentially reviewed. Use sanctioned instances. Turn off training where the contract permits it. Prefer zero-retention configurations for security-sensitive work. Never paste production secrets, and rotate immediately if you do. Keep a separate, dated record of any disclosure you make through official channels.

None of this argues against the tools. It argues for knowing which door your words just went through, and who holds the key on the other side.

All Articles

Related Articles

The Passive Voice Is the Point: Reading a Postmortem for What It Deletes

The Passive Voice Is the Point: Reading a Postmortem for What It Deletes

Flagged as Fixed: Why a Disabled Code Path Is Not a Remediated Vulnerability

Flagged as Fixed: Why a Disabled Code Path Is Not a Remediated Vulnerability

Downtime by Design: The Maintenance Window That Swallowed a Data Breach

Downtime by Design: The Maintenance Window That Swallowed a Data Breach