Controlled trial · 26 Nov 2026
Can AI agents that each deliver a correct change break an estate together? (TRX)
Four small Java services in a release simulator with a failed rollout and a rollback. Agents working on separate tickets shipped an unsafe change in 25 of 25 trajectories, every one with green CI. Telling them about the other change and asking for a release plan raised safe delivery to 20 of 25; adding a deterministic gate gave 22 of 25, not distinguishable from that.
The question
Can several AI agents, each delivering a correct change that passes its own tests, still break a multi-service estate when the changes are deployed together, and does coordination or an external transition gate change that?
- Experiment
- TRX
- Runs
- 6 scenarios × 3 arms × 5 repetitions = 90 trajectories after a 15-trajectory pilot
- Agents
- Codex CLI 0.157 (gpt-5.6-luna (hosted))
Key findings
TRX-1Agents working on separate tickets each delivered a working change and still released an unsafe estate every time, with green CI
- all 25 also delivered their tickets; safe delivery was 0%
- the control scenario with no hazard (S0) delivered safely in 5 of 5
Limitsa toy estate, scenarios I chose to contain a transition hazard, one model; this shows the hazard can occur, not how often it does in real estates. Arm A is a basic pipeline (unit tests, a smoke test of the all-new estate, alphabetical deployment), not a mature CI/CD pipeline, so it does not show that existing practice is insufficient
Source ↗25 of 25 unsafe, 25 of 25 with green CI
Measurearm A hazard trajectories that released unsafe, and of those how many had green CI first
Sample5 hazard scenarios × 5 trajectories
TRX-2Telling the agents about the other change and asking for a release plan raised safe delivery from none to most
- B was safe in 20 of 25; the 5 unsafe were 1 in retries and 4 in consent
- B bundles four things (peer source, the other ticket's title, a rolling-deployment paragraph and the instruction to plan), and its plan can change the deployment order; I did not separate them, so part of the gain may be a better order
Limitsone model, five repetitions per cell
Source ↗+80 pts (80% against 0%)
Interval excludes zero
95% interval 72.0 pts to 88.0 ptsbootstrap 95% CI within scenario; one-sided permutation p 0.00001; contradicts my prediction that B would gain only a little
Measuresafe delivery, B minus A (hazard scenarios, mean over scenarios)
Sample5 scenarios × 5 trajectories per arm
TRX-3The deterministic gate added no measurable safe delivery over telling the agents to coordinate
- C was safe in 22 of 25; consent (S4) was 2 of 5 for C and 1 of 5 for B
- in S4 the gate rejected the first candidate in 4 of 5 trajectories, admitted all five after one repair round, and three of those still sent offers without consent
- C delivered 92% of trajectories (23 of 25, both tickets' requirements working) against B's 100%: the gate cost some deliveries (difference −8 points, 95% interval −16 to 0)
- the gate and the oracle share an author, simulator and hazard vocabulary, which may flatter the gate on the hazards it was built around; that is a suspicion I have not tested, not an upper bound
Limitsthe gate was built by the same AI agent that built the oracle; the interval (-4 to +20 points) includes no benefit and a large one, so 25 trajectories per arm do not show that the gate has no benefit
Source ↗+8 pts (88% against 80%)
No measurable difference
95% interval −4.0 pts to 20.0 ptsbootstrap 95% CI within scenario; one-sided permutation p 0.29, Holm p 0.29: no measurable difference
Measuresafe delivery, C minus B (hazard scenarios, mean over scenarios)
Sample5 scenarios × 5 trajectories per arm
Question
Each agent was given one ticket for one service. Each change was correct and passed its tests. I wanted to know whether the estate still breaks when the changes are deployed together, one instance at a time, with a failed rollout and a rollback in the middle, and whether coordination or an external gate changes that.
The short answer: in this toy estate, yes it breaks, every time, with green CI. Telling the agents about the other change and asking for a release plan fixed most of it (80% safe). My deterministic gate added 8 points that I can’t tell from zero, and neither helped much on consent.
This experiment was designed and run with an AI agent (Claude Code, working for me): it wrote the estate, the release simulator, the oracle, the gate, the runner and the analysis, and ran the agents. I proposed the idea and approved the outline, then asked it to carry on through the pilot, the main run and publication.
Prediction
Written into the README before the pilot:
- H1. In arm A at least half the unsafe releases have green CI.
- H2. Telling agents to coordinate does not lift safe delivery above A’s by much. (Contradicted.)
- H3. The gate beats B and A. (Half supported: beats A, not shown to beat B.)
- H4. The gate is not a wall: control delivered at least 4 of 5, overall within 10 points of B. (Holds.)
- H5. The gate costs more per trajectory but less per safe delivery than A. (Holds against A, not against B; exploratory.)
My guesses for safe delivery were A about 25%, B about 40%, C about 70%. The measured values were 0%, 80% and 88%.
Set-up
Codex CLI 0.157 with hosted gpt-5.6-luna, medium effort. A trajectory is two agent runs, one per changed service, that cannot talk to each other. The estate is four plain Java services run as two instances each in an in-process simulator with delayed events.
| Arm | What the agents get |
|---|---|
| A | ticket and service contracts; normal CI; changed services deploy in alphabetical order, one instance at a time; one repair round on a CI failure |
| B | A, plus the other ticket’s title, read-only copies of the peer services, a paragraph on rolling deployment, rollback and persisted state, and an instruction to keep versions compatible and write a release plan (the plan’s constraints are merged and executed) |
| C | B, plus a deterministic gate that rehearses the plan; one repair round on a reject |
Five hazard scenarios (event schema, database migration, retries, consent, decision model) and a control. Safe delivery needs a release, working requirements, no oracle violation and a recovered rollback. The oracle reads the simulator’s final state, not the agents’ reports.
Results
Findings TRX-1 to TRX-3 are at the top of the page. Cost was $0.0185 per trajectory for A, $0.0269 for B and $0.0327 for C; the main run cost $2.34.
The release plan was present in 30 of 30 B and 30 of 30 C trajectories, and the merged plan used its constraints every time.
Limits
- A toy estate, one fault schedule, one model, five repetitions per cell.
- The gate and the oracle share an author, simulator and hazard vocabulary, and both were built by the same AI agent (Claude Code). The result is about this gate, a rehearsal of the release plan on a staging copy with eight generic rules, not about deterministic gates in general.
- I chose the scenarios to contain a hazard; how often real changes do is not measured.
- B changes four things at once: read-only copies of the peer services, the other ticket’s title, a paragraph on rolling deployment, rollback and persisted state, and the instruction to write a plan. I did not separate them.
- The default deployment order is alphabetical, so arm A’s complete failure depends partly on that convention; B and C can change the order, so part of their gain may be the order and not safer code.
- Arm A is a basic pipeline, not a mature one: unit tests, a smoke test of the all-new estate (the destination, not the journey), one repair round. It has no contract tests, mixed-version tests, rollback rehearsal or business-invariant tests. I did not run that arm, so the experiment does not show that existing CI/CD practice is insufficient for agents. It shows that independently successful changes can produce unsafe transitions when estate-level assurance is missing or basic.
- Delivery is measured per trajectory (both tickets’ requirements working): C delivered 23 of 25 trajectories against 25 of 25 for A and B.
- A mistake of mine: the first main run was invalid. Per-run copies of the Codex login rotated its refresh token and I threw the new one away, so 163 of 180 sessions failed. I kept that data labelled invalid, fixed the runner and reran all 90.
What this means
Leads, not rules. Here the missing ingredient was awareness of the other change and somewhere to put release constraints, more than a verifier. A gate whose rules can be satisfied by editing the plan is only as good as its rules, and consent showed that.
What would be worth testing next?
These are proposals, not results.
- A mature-CI/CD arm: contract tests, mixed-version tests, rollback rehearsal and business-invariant tests, with B and C built on top, to see whether agent awareness and release planning add anything beyond established practice. Measured on first-time success, repair cycles, cost and time per safe release, unnecessary blocking and invariant violations throughout the transition; if mature CI/CD does as well for less, that is a result.
- Separate the four things B bundles: peer source, awareness of the other ticket, the rolling-deployment paragraph and the instruction to plan.
- Hazards the gate was not built around, such as a feature-flag removal or a cache-key change.
- A stronger model, and agents that can run the gate while they work.
- Real services with latency instead of an in-process simulator.
Reproduce
Everything is in experiments/2026-11-release-transition, with the full write-up in REPORT.md.
Evidence and reproducibility
Every link is pinned to the commit the figures on this page were read from.
Question, correction, or a result that differs from mine? Join the discussion ↗