Platform · operations

Storage you can reason about.

The state volume is private platform data. Apps address resources; the platform resolves paths and owns the update boundary.

9 min readUpdated 2 December 2026A/B updates · signed bundles

Volumes

AreaPurpose
State volumePlatform database, accounts, operations, app settings, secrets and asset roots
App assetsPublished immutable web assets under the installation root
App dataProvider-managed storage disclosed through logical resources
Recovery stateDiagnostics, quarantine and recovery settings behind the recovery broker

The state volume is not a public web root. App hosts serve only their own published asset tree; shell APIs never route to arbitrary host paths.

Schema safety

  • Database representations stay outside domain types.
  • Migrations are ordered and validated against the current schema.
  • A provider snapshot precedes a schema migration; a failed health check rolls back with the runtime.
  • Apps cannot choose a host path, DSN or database engine.
  • Uninstall retains data in an inaccessible state until an explicit purge policy exists.

System updates

The platform checks the fixed repository github.com/rumahl/rumahl. Releases are selected by channel: stable releases are not pre-releases; beta includes pre-releases and -beta/-rc tags. The channel and stable auto-download are device settings.

  • The platform fetches the release list, downloads the signed A/B bundle named rumahl-update-<version>.tar.zst and verifies its digest. The full disk image is a reflash artifact and is never applied in place.
  • A bundle is a zstd-compressed tar with a manifest.json, rootfs.ext4 and bzImage. The manifest is signed with Ed25519 over the version and both payload digests.
  • Applying requires an administrator. The platform asks the root host-config broker; the privileged updater verifies the signature against /etc/rumahl/system-update-keys.json, verifies both digests, writes the inactive slot and its kernel, and arms the GRUB environment block.
  • GRUB boots the new slot once. rumahl-boot-ok.service marks a successful start; two unsuccessful starts switch back to the previous slot. The running slot is never written.
  • An unsigned bundle, an unknown key or a digest mismatch is rejected before any partition is written. CI only builds the bundle as *.tar.zst.unsigned; a maintainer signs it offline with scripts/sign-system-update.sh.
  • An image without A/B slots or the updater reports system updates as unsupported and disables install. Debug builds and RUMAHL_OS_CHANNEL=dev never contact the release repository.

The release workflow builds the UEFI image on a v* tag, compresses it to rumahl-os-<version>.img.zst, builds the unsigned update bundle, publishes SHA256SUMS and creates the GitHub release. The installed version comes from RUMAHL_OS_VERSION in the image environment.

App update boundary

An app update needs more than replacing files: provider snapshot, schema migration, health check and rollback must agree. The platform must not advertise a new version before the updated runtime passes its health check.

update contract
stage update
  → provider snapshot
  → migrate
  → start updated runtime
  → health check
  → commit or rollback runtime + data together

Backups and recovery

Recovery has its own Rust-served surface and a separate trust boundary. Host power and maintenance actions require the recovery broker, peer-UID checks and an explicit operator allowlist. A shell session does not grant maintenance rights.

Next