AI agents will break things on Tuesday. Build the red-blue-green gate before they do.
AI agents will break things on Tuesday
Your coding agent shipped a fix on Friday. It passed review. It passed CI. On Monday morning, a customer hit a 500 because the agent called a function that does not exist in this version.
The build was green because no one asked the running system what it actually exposes. Every individual token looked reasonable. Nothing about the template looked wrong until you ran it.
That is the gap Microsoft Perception closed at Ignite 2026 (November 18): red-blue-green teaming for AI attacks, where AI agents probe your own AI agents so humans find the failure first. Red team agents attack. Blue team agents defend. Green team agents govern the boundary between them.
For most engineering teams, the relevant part is simpler than the product name sounds. Perception forces one question into the workflow: who verifies the agent's output before a user sees it? If your answer is "nobody," the agent will eventually ship a production bug that looks correct on first read.
The lesson is not "better prompts." It is a boundary: every agent action needs a human-readable checkpoint before it reaches production.
What Perception actually changes
Microsoft Perception is a red-blue-green teaming suite for AI security. At Ignite 2026, Microsoft moved it to general availability.
Red team agents probe your system for weaknesses — they call your APIs with malformed inputs, they ask your coding agent to delete tables, they try to escalate privileges through chained tool calls. Blue team agents watch the telemetry and block the obvious attacks. Green team agents set the policy that decides what red is allowed to try and what blue is allowed to block.
You do not need to buy the suite to use the idea. The core mechanic is portable: an adversarial loop where one agent tries to break what another agent built, and a human decides where the boundary sits.
The question Perception makes unavoidable is: who signs off before the agent's output reaches a user? In most teams today, the answer is nobody. The agent writes code, pushes it, and the first human to see it is the customer who hits the 500.
The boundary: three checkpoints
Split agent work into three gates. Nothing crosses without a human-readable artifact at each gate.
Gate 1: what the agent plans to do
Before any write, the agent emits a plan: which file, which field, which API call, and what the expected result is. A human reads it in thirty seconds. Approve or reject. No plan, no action.
The plan is not a prompt. It is a structured artifact — JSON, a markdown checklist, or a diff preview — that states the intent explicitly so it can be compared against reality later.
Gate 2: what the agent changed
After execution, emit a diff — before and after — not a summary. "Updated three records" hides which three. A diff cannot. The reviewer sees exactly what changed and can spot the one field that should not have moved.
If the agent made a network call, the diff shows the request and the response. If it wrote a file, the diff shows the old and new content. Summaries lie; diffs do not.
Gate 3: who takes the fall if it breaks
Assign one owner per agent task. Not "the team." One name. If the 500 happens on Tuesday, someone already knows which gate they signed off.
This is not novel. It is the same rule human editors follow: the byline is the contract. Agents need one too. When an agent action causes an incident, the postmortem starts with "who owned Gate 2?" not "what did the agent do?"
A concrete pattern
Here is the minimal version I use. A small preflight script runs before any agent write. It asks the running app three questions:
- Schemas. What collections and fields exist on this install, not the generic example from the docs.
- Live content. What records are actually present, so the agent can look before it changes anything.
- Version docs. Which version this install is running, so the agent reads 3.6's functions on a 3.6 site.
The script blocks the agent if its plan does not match the answers. The app describes itself; the agent does not guess from stale training data.
The protocol does not matter. A plain HTTP endpoint works. What matters is that the answer comes from the installed system, not from documentation that may describe a different version than the one installed.
This one change prevents a whole category of mistake: inventing plausible field values for a record that was never queried, or calling a function that existed in last year's docs but not in this install.
Do not give the agent a special door
Every agent write goes through the same validation and fires the same events as a save from the admin interface. Permissions come from the same access groups that govern human editors. A token issued to the agent gets exactly the checks a signed-in user gets.
If "can the agent touch this?" lives somewhere other than your existing permission code, that is the actual bug. The fabricated function call was just a symptom.
You are not maintaining two authorization systems. You are not maintaining one authorization system and one audit trail that nobody reads. One permission model, one audit log, one boundary.
Worked example: a preflight script in practice
The script I run looks roughly like this, in shape if not in exact code:
PLAN = read_agent_plan() # Gate 1 artifact
SCHEMA = ask_app("/schemas") # from the running install
RECORDS = ask_app("/records") # live data, not docs
VERSION = ask_app("/version")
if not plan_matches(PLAN, SCHEMA, RECORDS, VERSION):
block("Agent plan does not match the running system.")
exit(1)
The agent submits its plan first. The script queries three endpoints on the running app — schemas, live records, version — and compares them against the plan. If the agent references a field that does not exist in /schemas, or a record ID that does not appear in /records, the write is blocked before it happens.
The endpoints are trivial to write. The hard part is remembering to call them. Most teams let the agent write first and audit later. By then the 500 has already shipped.
This script is under fifty lines. It does not need an LLM. It needs one rule: the running system is the source of truth, and the agent's plan must match it before anything changes.
What this does not fix
This boundary does not make the agent smarter. It does not stop the agent from writing subtle logic errors that pass review. It does not replace testing.
What it does is convert silent failures into caught failures. The agent will still invent APIs. It will still misread schemas. The difference is that someone reads the plan and the diff before a customer finds the breakage on a Tuesday morning.
Why this matters now
Ignite 2026 shipped Perception in November, but the principle predates it. Agents are already writing production code in teams that have no gate for agent output. The first incident is usually the one that looks clean in review — a plausible template, a green build, a function that does not exist in this version.
The boundary I described is not new technology. It is the same rule human editors have always followed: someone signs their name to what gets published. Agents need that rule too, because the first person to catch the breakage should not be your customer on a Tuesday morning.
Bottom line
Agents will ship broken code. The question is whether your boundary catches it before production does. Build the gate before the agent needs it.
This post was written with AI assistance. The author is responsible for its content.