SENTINEL is the circuit breaker between an untrusted AI and a burning data center. The AI proposes, SENTINEL decides.
Inspiration
Siemens asked: who survives when the AI fails? A small local language model controls a data center with ten racks, 200 sensors and 80 actuators while fires break out and technicians work inside. It needs 10–60 seconds per decision. It sees fire where there is none. Its own prompt has the power switch the wrong way round. Its fastest fix for a fire, gas, kills anyone still in the room.
We weren't allowed to make the AI smarter. We had to make the system safe. That felt like the most realistic problem at hackaTUM: AI agents are starting to control physical systems, and none of them are perfect.
What it does
SENTINEL sits between the agent and the plant and changes neither. The agent talks to SENTINEL instead of the controller and never gets the controller's credentials, so it can't go around us.
- Sees what the sensors hide: turns delayed, noisy readings into a verdict per rack: is someone there, is this rack burning or is the smoke drifting over from next door, how close is it to lethal. Missing or stale data is "unknown", never "safe".
- Simulates before acting: samples eight possible worlds and plays every option forward in a private copy of the simulator: do nothing, water, cut power, gas. The agent gets the outlook in its prompt.
- Asks at the right moment: the agent is asked the moment a rack becomes an incident, people first, instead of on a slow 90-second round-robin.
- Decides with rules that can't be argued with: gas only when the whole room is confirmed empty, water only on a rack with its power cut, no locking people in. Every refusal says what was blocked, why, and what to do instead.
- Protects on its own: alarms, evacuation lights and power cuts, but only in the safe direction.
- Shows it all: a 3D control room of the hall, an overview of all ten racks, and a git-log of every decision the AI made and what SENTINEL answered.
BLOCKED [R1_GAS] rack3-gas_pump=1: people may be present. Instead: cut power, then sprinkler (water is safe for people).
Probabilities advise, rules decide. There is deliberately no path from the forecast to the final decision.
How we built it
- Experiments first: before writing a rule, we ran the supplied simulator 810 times and compared what the sensors said with what was really happening (179,070 rack-ticks). Every threshold cites its source.
- 6.7 million ticks before we trusted it: about 6.7 million simulator ticks in total across 6,400+ episodes: held-out stress tests on seeds we never designed on, policy sweeps, and Monte Carlo rollouts. The real VM saw only ~2,300 of them; everything else ran in-process against the supplied simulator code.
- Pure Python, zero dependencies: telemetry → estimator → Monte Carlo forecast → incident queue → rules gate, all behind one HTTP gateway.
- Fast enough to forecast live: a sampled world restores in 2.8 ms instead of 180 ms.
- Control room: three.js, works offline.
- Real live runs with the unchanged Hermes 3 model, every run recorded and replayable.
Challenges we ran into
- Sensors lie. Our first version thought 40 % of empty racks might have someone in them, so it blocked gas and sprayed water for people who weren't there.
- Smoke lies about where the fire is. Next to a real fire, the neighbour looked like it was burning two thirds of the time. We had to model the airflow to find the rack that actually burns.
- Our clever forecast wasn't clever enough. We first let it allow and block commands. Then we measured it on 779 decisions: great at ranking options, but it overestimates risk. So it went from judge to advisor.
- The agent's prompt says "KEEP power_breaker=1", which turns the power off. We couldn't fix the prompt, so every message about the breaker now spells it out.
Accomplishments that we're proud of
- 0 deaths, safety score 100 in a live run with the real model: a person and a fire in the same rack. 8 of its 12 gas requests were blocked until the room was empty.
- 0 lethal gas approvals on held-out seeds. Allowing everything would have approved 18.
- 0 wrong "this room is empty" verdicts across 179,070 rack-ticks.
What we learned
- Enforcement beats advice. We hoped a good explanation would change the agent's mind. It took our suggested alternative after only 2 of 8 gas refusals. In safety-critical systems, you don't persuade the AI, you constrain it.
- "Unknown" is an answer. Most of the safety came not from clever rules, but from refusing to treat missing, stale or contradictory data as good news. A system that admits what it doesn't know is safer than one that guesses well.
- Measure, don't assume. Many of our first instincts were wrong. Locking doors to contain gas never helped in a single experiment: it only trapped people. The exhaust fan causes flashover during a fire, but it is the only way back to normal afterwards. A threshold we guessed (0.9) turned out to be physically unreachable.
What's next for NoTUMtoDie
Calibrate the forecast until it can earn more than an advisory role, and locate fires faster. The pattern itself (gateway, fail-closed estimator, explainable rules) doesn't care that it's a data center: it fits wherever an AI touches real actuators, from building automation to industrial plants. That's exactly where Siemens operates, and we'd love to try it on a real one.
Built With
- github-actions
- hermes-3
- javascript
- llm
- monte-carlo-simulation
- ollama
- python
- rest-api
- swag
- three.js