← engineering notebook

The Cube decides on its own: working without a network, with a phone as courier

14 July 2026 · updated 28 November 2026 · 6 min read · architecture · offline · bluetooth
The Cube, royal blue with black edges, looks at a phone on its left; on its right, an electrical socket.

What does a connected device do when it is no longer connected? Too often, it waits. We turned the question around: what if the Cube never needed the network to decide, and the network served only to bring it instructions from time to time? This is the mode of operation we call “air-gapped”, and it changed the shape of the whole project.

The problem: a local decision that depends on distant machines

Until the summer of 2026, our Cubes followed the usual pattern for connected devices. The device joins a Wi-Fi or cellular network, opens a connection to a broker, that is, the messaging server that relays messages between the devices and the platform, then publishes its state to it and receives its orders from it. This pattern is tried and tested, and suits telemetry very well.

It is a poorer fit when the Cube has to act on the spot. Take a Cube that switches the power sockets in a workshop on or off, depending on rules and on whether an authorised badge is present. If the decision goes through the server, then the machine tool only starts if the workshop Wi-Fi, the internet link, the broker and the server are all working at the same moment. Each of these links rarely fails, but there are many of them, and none is in the hands of the person waiting at their machine.

There is also a question of trust. A device that listens to the network all the time can be called on all the time, by us or by anyone else. The less it listens, the fewer doors there are to watch.

What already exists

The idea of isolating a system is nothing new. The glossary of NIST, the US standards institute, defines an air gap as an interface between two systems that are not physically connected, and where data is only transferred manually, under a person’s control. This is standard practice on sensitive industrial networks, where files are carried by hand. Computing people have an affectionate name for it, sneakernet, the network in trainers.

Networking research has formalised the same idea as delay-tolerant networking. RFC 4838 describes nodes that keep messages in memory and forward them when a contact comes up, sometimes hours later. Our contribution is modest: we applied these two ideas to a small box, giving the courier’s role to an object everyone already has in their pocket.

What we chose: the Cube applies, the phone carries

The architecture document dates from 14 July 2026. It states that the Cube has no permanent network connection, and it splits the roles three ways.

  • The server prepares and signs. The rules are written online, then the server gathers them into a signed package, with a signature that the Cube can verify without consulting anyone.
  • The phone carries. It fetches the package when it has network coverage, then hands it to the Cube over Bluetooth Low Energy when it passes nearby. On the way back, it takes the Cube’s log to the server.
  • The Cube verifies, applies and decides. It takes every decision on the spot, with the latest rules received, and records it in its log.

The Cube also refuses to have an old, perfectly signed package pulled out of a drawer to restore rights that have since been withdrawn.

The reasons for this choice

The reasons written down at the time come down to two sentences. The first says we want to preserve “operational sovereignty (zero permanent cloud dependency) while keeping the rules agile”. The second, taken from our vision document, has become a principle: “Every policy is evaluated locally; the authority pushes, the Cube applies offline.”

We did not put this straight into the firmware. We first wrote and tested the logic on a PC standing in for the Cube, driving the real smart plugs, because a faulty rule is quicker to fix on a screen than on a board. We then ported it to the Walter board, and removed both Wi-Fi and MQTT from its boot sequence.

What we gain

For availability, the gain is direct: the decision no longer depends on any network. A router, ISP or server outage stops nobody working, since the Cube already has its rules. The server goes back to being what it should always have been, a place where things are prepared and looked up, and not a point everything has to pass through.

For trust, the change is more subtle. The phone does not need to be trusted, since it can neither forge a rule, being unable to sign it, nor replay an old one. Any authorised phone can therefore act as courier, and the Cube looks only at the server’s seal on the envelope. The Cube, for its part, no longer has an address on the internet: there is no listening service left to probe from a distance.

A note on vocabulary is needed here. Our Cube keeps a Bluetooth radio, so it is not an “air gap” in the strict sense of the definition quoted above, and we keep the quotation marks. We claim something more limited: no network is involved in the decision.

What this costs

None of this is free, and three bills arrived fairly quickly.

  • Time. A networked device sets its own clock. An isolated device has to receive the time some other way, and since rules depend on schedules, the time becomes sensitive data. Giving it a trustworthy clock is a job we have not finished.
  • Updates. Without a network, there is no remote update in the usual sense. In July, the Cube’s firmware was updated by cable, which is tolerable on a test bench and nowhere else. Since November 2026, the phone also carries the updates: an image encrypted for that one Cube, which the phone cannot read, and which the Cube verifies before installing it (see the article on updates).
  • The log. An event only reaches the server when someone comes by. So how long an alert takes depends on people’s comings and goings, and we wrote that down as an accepted property of the model. Since the Cube’s memory is finite, someone also has to come by regularly to collect this log: that is an operational constraint, not a detail.

What we ruled out, and what we are keeping

Along the way we ruled out embedding a small broker in the Cube to keep MQTT local: too heavy, we judged, for a microcontroller that already has plenty to do. That does not mean we are abandoning the connected model: it remains the right tool for a Cube that does telemetry, and we are keeping it for that use.

Where we stand.

This is a bench prototype that works end to end on real hardware: Cube, smart plugs, badge, phone and server. Since July, the Cube chains and then signs its log (see the article on the proof log). And we encrypt the conversation between the phone and the Cube (see the article on Bluetooth). It is not yet a product that could be installed outside a demonstration.

Updated on 21 November 2026. Secure boot has been active on the bench Cube since 19 November. We tried the phone-carried update on a computer, then the same day between a real phone and the real Cube (the write-up). Encrypting the board’s memory is still to be done, as is the trusted clock.

Updated on 28 November 2026. The same Cube also exists in a connected profile, and that is the one we have been running since 20 November. It still decides on the spot, but it sends its log to the server over 4G and receives a signed acknowledgement in return (see the article on the proof log). Two of the bills above are smaller as a result. First, the time: the connected Cube now receives it from the server, in a form it can verify. Second, the log: it no longer waits for someone to come by, and the server sends a notification to a phone when the Cube stays silent for more than fifteen minutes, or more than three minutes when the silence follows a sign of attack.

When the phone is out of range, the server can also relay a few maintenance commands over 4G. The Cube verifies them itself: the server cannot, on its own, make it execute a command. The isolated profile is still compiled without modem or network. One correction, finally: the previous paragraph said the phone-carried update had not yet been tried on the real Cube, when it had been that very day; we have put that right. What happens when the network or the service stops for good is covered in another article, and what the Cube verifies when a badge is presented, in The badge you cannot clone.

Sources

A question, an objection? contact@ops-devices.eu, or on Bluesky.