Skip to content

Updates and channels

On this page: release channels, what a box checks before it installs an update, the self-test and automatic rollback, how a remote update is started today, and the planned fleet roll-out.

Channels

Every combination of board and build has two channels:

Channel Meaning
beta Every tagged release lands here first, after the full test suite and a manual approval
stable A beta version that has been promoted deliberately, per board and build

So there are six channels: poe_8di8do/read, rs485_can/read and poe_8di8do/switching, each with beta and stable. A switching build can be promoted to stable independently of the read build. See Builds.

Rules per channel:

  • A version lower than the one in the channel is refused (except with an explicit rollback option at promotion).
  • The same version with different files is always refused: a fix needs a new patch version.
  • A mistake in beta is fixed with a new patch version, not by rolling back: a box that already has the newer version refuses an older one anyway.

To be confirmed

Which channel the web flasher offers by default (beta or stable) per board and build, and when the first stable versions are promoted.

Release path

  1. The version is raised in the source and merged to the main branch.
  2. A release tag lite-vX.Y.Z on that commit starts the release workflow.
  3. The workflow checks that tag and version match, runs all tests and builds all three builds.
  4. After approval, each build is signed in AWS KMS (the private key never leaves KMS), its manifest is published in its beta channel, and the signed image is stored for remote updates.
  5. Promotion to stable is a separate, approved step per board and build. It verifies files, build identity and signature, and cannot sign anything itself.

What a box checks

Before an update is activated, the box checks:

Check Rule
Signature Signed with the same Lutra key as the running firmware
Version Strictly MAJOR.MINOR.PATCH, newer than the running version; older only with an explicit downgrade in a signed command; versions that were rolled back on this box are refused forever
Build and board Same build and board as the running firmware, checked before anything is written and again before activation
Source For remote updates, only the Lutra firmware download host
Night window Remote updates install between 02:00 and 05:00 local time, and only with a valid clock

Self-test and rollback

  1. The box writes the new firmware to the other of its two firmware slots (A/B).
  2. In the switching build all outputs are switched off before the restart (event stopped_for_update).
  3. After the restart the new version runs on probation. Its self-test requires what worked just before the update (network, cloud) and at least 20 seconds of stable running.
  4. Passed: the version becomes permanent (event ota_ok).
  5. Failed, or a restart during the self-test: the bootloader returns to the previous version (event ota_rollback), and the box puts the failed version on its block list.

Because the self-test only requires what worked before, an update on site at a pool without internet does not roll back for lack of a cloud connection.

Starting a remote update today

A remote update is always a command from outside; a box does not poll a channel by itself. Today an update is sent as the signed command ota_check with a temporary download link. In the portal, administrators and technicians can send "check for update" from the Remote panel.

Planned fleet roll-out

To be confirmed

The design foresees automatic updates per channel in waves (own development board, then 5 %, 25 %, 100 %), with an automatic stop when more than 2 % fail, an option for the partner to postpone updates per pool (at most one season), emergency fixes by Lutra with a reason in the audit log, and short release notes for the owner. This roll-out service does not exist yet.

Last reviewed: 2026-11-24. Applies to Lutra Lite 0.4.1.