AI actuating physical infrastructure.
A wrong action on a grid isn't a customer complaint — it's a blackout. Every control step had to be bounded, reversible, and operator-overridable.
Most energy-forecasting AI shows a pretty dashboard. The operator still has to act. We built a forecasting agent for a regional utility that closes the loop — minute-ahead forecasts trigger constrained control actions within safety envelopes, and every action is reversible within two ticks.
The utility's forecast models were accurate — they just weren't connected to anything. Operators still adjusted manually, with lag, from a dashboard. Meanwhile the renewable mix kept climbing and the control loop kept getting harder. We built a closed-loop forecaster + controller that acts inside a safety envelope the ops team defines.
A wrong action on a grid isn't a customer complaint — it's a blackout. Every control step had to be bounded, reversible, and operator-overridable.
Forecasts were accurate. They weren't connected to anything. Renewable volatility outpaced human reaction time. Demand response needed sub-minute action.
The ops room had to accept this running on real electrons. That meant explainability, envelopes, and a manual override that's always on top.
The industry convinced itself for years that AI couldn't touch a control loop. We took that as a design brief, not a limit — and built everything that had to be true for the ops room to say yes.
The Forecasting & Control tier is the brain. The Safety & Actuation tier is the reason the ops room trusts it. The digital twin is the reason operators signed off on v1 — every change gets proven in the shadow before touching electrons.
A real five-second control tick. A real MPC proposal. A real envelope check that made the action smaller, and a real reversibility check that confirmed it could be undone. Every step is logged. Every step is replayable in the twin.
Load: rising 3.2% above forecast. Solar: 220 MW, falling as cloud bank crosses eastern substations. Battery SoC: 62%. Market: $94/MWh ahead of next clearing. DR opt-in 2,400 homes available.
proposal = mpc.optimize({
horizon: 15, // minutes
objective: cost + carbon,
actions: {
battery_dispatch: -18 MW,
curtailment: 0 MW,
dr_signal: 1200 homes,
},
});
envelope.bound(proposal);
// battery_dispatch capped: -15 MW
// (envelope max: ±20 MW · ramp: 5 MW/tick)
reversibility.check(proposal);
// pass · undoable within 2 ticksSix steps. Five seconds. The envelope and reversibility checks are the steps that made the ops room say yes — and the digital twin is what keeps them saying yes after each model update.
15,000 SCADA points, weather, market, and DR opt-in states sampled every tick.
Load, solar, wind, and grid-state models emit a distribution 15 minutes ahead.
MPC + economic optimizer proposes actions that minimize cost and carbon under physics constraints.
Every proposed action is bounded by a safety envelope and checked for reversibility within two ticks.
Battery, curtailment, and DR signals dispatched. Operator override can halt at any moment.
Next tick reads the outcome. Digital twin compares to prediction; drift flagged for the model team.
The envelope guard is what convinced the ops room. The digital twin is what convinced the engineering team. The per-action explainer is what convinced the regulator. All three shipped on day one.
Model-predictive control optimizes actions across a 15-minute horizon, respecting physics constraints. Rolling horizon, rolling tick — the grid stays a step ahead.
Every action is bounded by a human-defined safety envelope — ramp rates, absolute limits, substation-specific constraints. The agent cannot take a step outside it.
Before actuation, the controller confirms the action can be undone within two ticks if wrong. No action passes the gate if it would lock the grid into a harder state.
A shadow environment mirrors the grid. Every model update and envelope change is tested against a week of real data in the twin before reaching production.
Every action has a rationale — what forecast drove it, what alternatives were considered, why the envelope shrank the command. Ops room reads it; regulator may read it.
The ops room always has a halt button. Overrides are logged with the operator's rationale and fed back into training — so the agent learns when humans disagreed.
Measured across six months of production on the regional grid. The override rate is the metric the ops team watches — under 0.1% means the agent and the humans are converging, not drifting.
Rust for the controller — memory-safe, deterministic, no GC pauses in a 5-second tick. Python for the models. TimescaleDB for the grid timeline. On-prem compute with AWS Outposts for model updates. The SCADA bridge is where physics meets software.
We were told for years that AI couldn't touch our control loop. It's been six months, zero envelope breaches, and our renewable waste is down by a third. This is what ops AI looks like when it's built seriously.
The forecasting agent isn't a demo — it's in the control loop, running every five seconds, saving real money on real electrons. Safety-first, reversibility-aware, operator-overridable. A template for AI in critical infrastructure.
Tell us what you're trying to build. We'll be honest about what's hard, what's worth it, and whether we're the right partner for the job.