
The breaking-change list for .NET 11 is mostly behavioural, which means the compiler stays quiet. Six xUnit canaries, passing on net10.0 today, tell you which ones your code depends on.

A 90-line xUnit scanner, a startup check and one user-secrets command that keep agent-written ASP.NET Core code from committing credentials. About 15 minutes to try, and it works with any agent.

A parity test grades the agent's migration against the old serialiser, and every difference needs a written reason. About 15 minutes to set up, C# on .NET 10.

Agents write SSRF checks that compare host strings and then fetch. Here's a failing test table first, a guard that checks the address actually dialled, and a prompt that makes any agent keep it. About 40 minutes, no accounts needed.

Agents write validators like ^(\w+\s?)*$ that pass every example and then pin a CPU core on 40 characters of input. Here's how to make that fail in CI, fix it without changing what the pattern accepts, and stop the next one at build time. About 20 minutes.

C# 14's field keyword removes hand-written backing fields. The refactor is easy to ask for and easy to get subtly wrong. Pin behaviour first, turn two warnings into errors, and it takes about 15 minutes.

An agent-written update endpoint loses data the moment two clients edit the same record. Here's the failing test, the ETag and If-Match fix for ASP.NET Core and EF Core, and a guard that stops the next endpoint shipping without it. About 15 minutes to try.

System.Text.Json in .NET 11 reads unions natively, but two object-shaped cases throw until you add a classifier, and the classifier accepts a payload with a field missing. Eight xUnit tests close both gaps, and they work with any agent.

A failing xUnit suite shows an agent-written payment endpoint double-charging under retries and concurrent duplicates, then drives an endpoint filter that fixes it. About 15 minutes to try.

Eight bad request bodies, one xUnit theory and seven System.Text.Json settings. The corpus fails nine of ten checks on a default ASP.NET Core API, and gives the agent a target to harden against. About 15 minutes to try.

A 40-line walk-every-page check shows duplicated and missing rows in an offset-paged EF Core endpoint, and gives the agent a failing target for the keyset rewrite. About 15 minutes to try.

Annotating a request record does nothing until AddValidation is called, and nothing tells you so. Four tests catch it, in about 15 minutes.

Agent-written C# reaches for DateTime.UtcNow by default. A fake clock, three boundary tests and one analyzer rule fix it in about 20 minutes.

Agent-written caches look thread-safe and aren't. A start-gate harness and three tests make the failures repeatable. About 15 minutes to try.

Agents add endpoints that work and forget who may call them. A single xUnit theory and a route-coverage guard make that a red build. About 20 minutes to set up.

An equivalence test says a faster version is still correct, BenchmarkDotNet says it's actually faster, and a 20-line script turns both into an accept or reject. About 15 minutes to set up.

A 30-line interceptor and one xUnit test turn 'this endpoint feels slow' into a failing build. About 15 minutes to add.

A written spec with examples becomes failing xUnit tests, the agent codes until they pass, and a mutation run names the boundaries nobody pinned. About 30 minutes, .NET 10 and any agent.

An agent's first test suite for old code usually checks what you'd expect, not what the code does. Mutation testing shows the difference in under a minute.

A bug prompt in three parts, a failing test you can read in ten seconds, and a reusable command so you never skip the step. About fifteen minutes to set up.