Understudy Rehearse an infrastructure change before it reaches production.
Gemini + real GCP Pre-production rehearsals for infrastructure changes

Find out what your infrastructure change breaks before production does.

Infrastructure changes now come from engineers and from coding agents, faster than anyone can review them. A Terraform plan says 1 to change. It doesn't say that checkout will stop taking payments.

Understudy applies the real change to a live, isolated copy of the system and probes the user journey it puts at risk. You get evidence, a diagnosis, and a fix that has been rehearsed too. A person approves evidence instead of reading a diff, and an agent can call Understudy itself over MCP.

See it in seconds

Open a finished rehearsal (instant)

These are real rehearsals on this deployment, recorded when they ran. Each opens the full result: Gemini's plan, the probes, the evidence, the diagnosis, the rehearsed correction and the verified restore. A new one takes 3–5 minutes.

How it works

From a pull request to a verified fix

Gemini decides what to test and explains the evidence. The engine does everything that touches infrastructure, and a person makes the call.

  1. GeminiReads the change It interprets the plan and the PR text, states a hypothesis, and picks the user journey most exposed.
  2. EngineRehearses it for real It applies the change to a warm, isolated topology, probes the journey and collects logs. The verdict is deterministic.
  3. GeminiDiagnoses and corrects It explains the evidence, citing evidence IDs, and proposes a typed correction. A policy validates it.
  4. Engine youVerifies, then asks you The correction is rehearsed. The topology is restored and checked. Only a verified change can be approved.
Evidence, not claims

Measured on the deployed system

30/30verdicts correct across 30 real rehearsals
29/30diagnoses correct (rubric-scored)
20/20proposed corrections rehearsed and verified
83.5 smedian time to a verdict (n = 30)

Three scenarios, 10 real trials each, 2026-09-26. Every restore was verified. The median time to a verified fix was 184.6 s (n = 20). Timings exclude provisioning of the warm topology, which is always on. The IAM-auth scenario was run separately: 10/10 on every measure. Everything runs on one reference topology (checkout → order → payment → Cloud SQL), not on your own infrastructure.

Try it live

Rehearse a real change

Each one is a pull request an engineer might write. Pick one: it runs for real on the warm topology, and the screen fills in as it goes (about 3–5 minutes). One runs at a time. If another is running, you watch it live instead.

chg-101

Harden payment egress: deny outbound TCP from payment-service to private ranges

by platform-security

Follow-up from the Q3 lateral-movement review. Payment instances can currently open TCP connections to anything in RFC1918 space inside the rehearsal VPC, which is far more reach than a payment API needs.

This adds an EGRESS deny rule for instances tagged `payment-service` covering 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, at priority 1000 so it takes precedence over the VPC's implied allow-egress. Ingress is unchanged. Payment's dependencies are managed services, so no service-to-service traffic should be affected.

chg-102

Point payment at new DB listener port

by data-platform

The data-platform team has put PgBouncer in front of the payments database. It listens on 6432, and new connections should go through it instead of straight to Postgres on 5432, so payment stops opening a fresh backend connection per request.

This only changes payment's DB_PORT from 5432 to 6432. Host, database, user and credentials are unchanged, and payment's connect timeout stays at 3 s. Rolls out as a new payment revision; no schema or client changes.

chg-103

Block payment egress to cache port 6379

by platform-security

Part of the Redis decommission. Nothing in the payment path should be talking to a cache any more, and the old cluster's range is being reassigned, so payment instances should not be able to open connections on 6379 at all.

Adds an EGRESS deny for tcp:6379 on instances tagged `payment-service`, covering the RFC1918 ranges, at priority 1000. Other ports and all ingress are unchanged.

chg-104

Move payment to Cloud SQL IAM database authentication

by platform-security

Security wants long-lived database passwords gone from Cloud Run. The DBA team has already enabled IAM database authentication on the payments instance, created the IAM database user for payment's service account and granted it the same table privileges the password user has.

This switches payment to log in as its service account: DB_AUTH=iam, the user becomes the IAM database user, and the password is replaced by a short-lived OAuth token from the runtime identity, over TLS. Host, port and database are unchanged. The password secret stays in place for now so we can roll back by flipping the variable.

Want to try your own? Compose a change in the playground. Or let your coding agent rehearse it over MCP.

Safety by design

Why you can trust what it shows

The LLM never touches infrastructure

Gemini returns structured output only. Every apply, probe, restore and verdict is deterministic engine code, and it runs only after a policy check. Corrections come from typed templates. Gemini never writes Terraform.

Isolated and restored

Rehearsals run in a separate GCP project, one at a time. Every run ends by restoring the baseline and probing it. A failed restore stops everything.

Evidence you can audit

Each step is an append-only record, hash-chained to the one before it. A diagnosis must cite evidence that exists, and its claim is that the evidence supports it, not that it is proven.

Rehearsals started here