Change Plans: Multi-Stack Changes in Ordered Waves, Approved by Two Administrators
By Chirag Panchal · Founder & Lead Architect · · 7 min read
How a change that spans many environments becomes one plan of ordered waves: drafted by one person, approved by a different administrator, started one wave at a time, verified by post-apply drift checks, and halted on the first failure. Every apply inside it still passes the normal approval gate, and a rollback is drafted from what each wave replaced.
Development Status & Architectural Evolution: InfraOrcinus is in active development. Architecture specifications, internal interfaces, and operational protocols described herein reflect our current engineering design and are continuously refined to make InfraOrcinus robust, resilient, and enterprise-grade.
Most real changes do not touch one environment. Moving a base image, rotating a setting or resizing a tier means a dozen environments, and some depend on others. Done by hand, the order lives in someone's head and the checking lives in their patience.
A change plan writes the order down. It is one reviewable object that says which environments change, in which waves, with which variable values, and it enforces three rules the run-by-run workflow cannot: a second person must approve it, waves start in order, and a wave must be verified before the next one starts.
1. Waves
A plan has an ordered list of waves. Each wave names the environments it touches and, optionally, the variable values to set on each before their runs start. Plans have limits that are checked on every draft, including drafts written by an agent:
- At most 10 waves, 20 environments per wave and 50 environments in total.
- At most 200 changed variables, with bounded name and value lengths.
- No environment twice, and none that is archived.
Dependencies decide the order. If environment B consumes outputs from A, A must be in an earlier wave, and a rollback must put them back in the opposite order. A plan whose dependencies form a cycle is refused.
The plan also carries a rule-based risk score, shown to the approver as advice and not as a gate. Each factor is a plain sentence so the reason is visible: a staged rollout, variable values being changed, an environment that needs an administrator to approve its apply, or an auto-triggered dependent outside the plan whose runs the plan will not order.
2. Separation of Duties
Two rules are enforced on approval, and neither is a setting:
- The drafter cannot approve. Whoever created the plan, a person or an agent's token owner, is refused.
- The approver must be an administrator. A plan therefore needs two different people, one of them an administrator.
An AI agent can propose a plan through the MCP server, but a proposal is created as a draft and starts nothing, so the first human decision is always the approval of a different person.
3. A Plan Never Applies Anything by Itself
Approving a plan does not run it. A person starts one wave at a time. Starting a wave does three things in order:
- It checks the wave against policy first, so a wave that would be blocked does not start.
- It sets the wave's variable values, recording the value each one replaced.
- It starts an ordinary run for each environment in the wave.
Those are the same runs as anywhere else in the product. Each one validates, plans, and then waits at its own named human approval gate. The plan adds ordering and verification on top of the gate; it never removes a gate.
4. Verified Before the Next Wave
When every run in a wave has applied, the wave moves to verifying and InfraOrcinus starts a post-apply drift check for each environment. A wave is verified only when those checks show no drift. Only then can the next wave start.
If any run fails, is rejected or is cancelled, or any drift check finds remaining drift, the plan is halted. Nothing further starts, and the detail says which wave and why. The refresh that moves waves forward is idempotent, so it can be called repeatedly without double-starting anything.
A plan ends completed when every wave is verified, halted after a failure, or cancelled if it is withdrawn before it starts.
5. Rolling Back
Because starting a wave records what each variable held before, a halted or completed plan can produce a rollback plan: a new plan, of kind rollback, that walks the touched waves in reverse and restores each snapshot. It is a plan like any other, so it needs its own drafter and a different administrator, and its waves follow the same verify-then-continue rule. Only one rollback can be open for a plan at a time.
Two honest limits apply. A rollback restores variable values, not resources: it re-runs the environments with the earlier inputs, and what the infrastructure does with them is up to the engine. And a variable that was changed outside the plan after the wave started is restored to the value the plan recorded, not to whatever it was last.
6. Planning With AI, and Measuring It
The assistant can draft a change plan from a plain request, for example "move staging, then production, to the new image". Its output is not trusted. Environment names are resolved only inside the caller's scope, and the draft goes through the same validation as a human draft: limits, dependencies, variable names. The result is a draft that a person reads and a different administrator approves.
The checks around the model are tested, not assumed. The product ships golden scenarios for the agents (for example a plan that invents an operation it does not have, a plan with too many steps, and a request that contains a secret) and runs them with the model replaced by scripted replies on every build. That tests the parsing, refusal and repair logic around the model; a separate manual mode runs the same expectations against a real model before a prompt or model change.
Summary
A change plan turns a multi-environment change into ordered waves with variable changes, a risk score, and a dependency-aware order. It needs two different people, one an administrator; starts one wave at a time; leaves every apply at its own approval gate; and verifies each wave with a drift check before continuing. A failure halts it, and the recorded snapshots let a rollback be drafted, reviewed and approved the same way.