Ryan McCue

Staging lies, ship small changes to production

Getting lots of small, isolated changes live in production regularly is still the most important thing in building a great product fast, and coding agents make it matter even more.

If you had to pick the single most important thing in software development right now, I think it is getting lots of small changes live in production regularly. That harkens back to the Agile Manifesto and early, continuous delivery, and in my opinion it matters even more in the age of AI.

At a previous company, we switched from shipping on a release cycle to deploying changes immediately. That change cut deployment issues substantially and got updates in front of users dramatically quicker.

In an earlier post, I wrote about how most of my changes don't wait for a reviewer anymore. Cutting the wait before a merge is a huge advantage, but it only gets you halfway if those merged changes still sit around waiting for a release window.

Small changes keep deploys boring

Releasing small, isolated changes de-risks deployments because you are putting one small change into production at a time. You know exactly what went out, it is easy to monitor, and if something breaks you can roll it back quickly without untangling anything else.

Batching used to be manageable when a week of work meant a handful of changes from a team. But now, with engineers running coding agents in parallel and landing dozens of PRs a week, a release cycle bundles a ton of diffs into one deploy. If production breaks, figuring out which change caused it, or reverting one piece without breaking five others that landed on top of it, gets messy fast.

There is a catch with agents here too. Keeping changes small used to happen almost naturally because writing code by hand took time, whereas an agent will happily edit twenty files in one pass if you let it. Keeping diffs small and isolated is something I have to push for on purpose now.

Staging will lie to you

A lot of teams treat staging as the safety net before production, and in my experience staging can lull you into a false sense of security. Unless your system is pretty simple, you almost never have an exact 1:1 copy of production. The data, the traffic, the third-party quirks, and even the infrastructure topology drift apart.

That problem gets worse when agents are doing the verifying. Your agent can run the tests, deploy to staging, watch the logs, and report back that everything is working great. That still does not mean production is going to work.

I ran into this while building out horizontal scaling for a service. The change worked fine in dev because the datastore backing it there only had a single node, so quorum writes were off. It sat for a few days before going out to production, where the datastore runs as a multi-node cluster with quorum enabled. As soon as multiple instances of the service started writing concurrently in production, the change failed because it was assuming one datastore node for saving data with quorum, and we had to roll it back.

Dev (Checks passed): Instance 1 and Instance 2 (change assumes 1 datastore node) writing to a single datastore node (1 node, quorum: off). Looks healthy: Writes succeed with quorum off. Agent sees passing checks. Production (Failed on deploy): Instance 1 and Instance 2 (change assumes 1 datastore node) writing to a multi-node cluster (Multiple nodes, quorum: on). Quorum writes failed: Concurrent writes from both instances failed right away, forcing a rollback.

A horizontal scaling change ran cleanly in dev against a single datastore node with quorum off, then failed as soon as multiple instances wrote concurrently to production's clustered datastore with quorum enabled.

Dev stayed green the whole time. And because the change waited days between merge and production, neither I nor the agents saw the real failure until long after the work had been merged.

Agents need real production feedback

That gap between merge and deploy is a huge problem for coding agents. Giving agents real feedback loops by letting them see how their changes actually perform in production gives them the context they need to work much more autonomously and make better decisions. When a change sits unshipped for days, the agent session is long gone by the time real behavior shows up, so the agent cannot easily learn from what it shipped and iterate on it.

Two tracks share one timeline from Day 1 to Day 5 with the same four PRs merging at the same times. Top track, Batched release (Days to prod): PR 1 through PR 4 queue in staging while checks pass until a single deploy on Day 4 fails, leaving four changes to bisect days after PR 2's agent session closed. Bottom track, Small continuous deploys (Minutes to prod): each change gets a live production check right after merge. PR 2 fails on Day 2, rolls back right away, and ships fix 2b with a passing check in the same session, well before PR 3 and PR 4 land.

The same four PRs on one timeline. Batching queues them behind passing staging checks until one deploy breaks days later, after the agent session has closed. Shipping each change on its own catches PR 2 right away so it rolls back and ships a fix in the same session.

I lean on that production loop regularly, both for performance improvements and for feature development.

On a personal app I'm building, I recently asked an agent to look directly at live production data shape and logs to see what needed fixing. Right away it caught real-world issues that never showed up in tests or local runs: extra CORS preflights and idle background polling hammering the database, and real data import edge cases. Instead of bundling all of that into one big release, it split the fixes into five small PRs, shipped them straight to production, and verified live production after they landed.

Getting small changes into production quickly helps on the product side too. With AI it is easy to stack days of follow-up work on top of a feature before a real user ever touches it, and getting small pieces live early keeps you from building in the wrong direction at ten times the speed.

What makes it safe

Shipping small changes straight to production is not about being reckless, and how you ship is still up to the individual engineer and the change.

We pay engineers a lot of money, and if you picked the right ones, you should be able to trust them to set up the systems to push changes safely and own how they behave in production. Putting slow release cycles and staging sign-offs in front of everyone adds a ton of friction without actually catching the edge cases that only happen under real traffic.

Before a change goes out, I make sure my agents test it thoroughly and hit the service with prod-like data to be confident it handles real inputs. And when a real regression still gets through, two things keep it from turning into a disaster: we can roll the change out slowly and roll it back quickly, and the systems I work with are resilient, so even when something fails like that scaling change did, data is just delayed instead of actually lost.

The Agile Manifesto had this right a long time ago. With AI making code faster to generate than ever, getting lots of small, isolated changes live in production regularly is still what lets you build a great product fast.