Skip to content

Compatibility and versioning

A Calimero Cloud cluster upgrades by adding nodes on the new release and moving each app onto them (Upgrade the cluster’s release), so for a while two releases replicate the same apps, and the new nodes take over log entries and snapshots the old ones wrote. Apps deployed months ago keep running, and clients released alongside an earlier node keep calling the newer one. This page says what holds across releases, how each surface says which version it is, and how a change that cannot keep it is declared.

Surface Version now Where it is declared Who reads it
Node release (merod, meroctl, the SDK) 1.0.0-rc.39 [workspace.metadata.workspaces] version in Cargo.toml mdma (release_compat), the attestation (--min-release), a bundle’s minRuntimeVersion
App world (WIT) calimero:app@0.5.7 crates/app-wit/wit/calimero-app.wit The engine: a component importing calimero:app/*@0.5.z with z up to the world’s links; anything else is refused at install
App ABI abiVersion 1 the SDK’s ABI_VERSION (crates/sdk-macros), the host’s SUPPORTED_ABI_VERSIONS (crates/app-host) The host, when it loads a component’s ABI
App package (.mpk) manifest version 1.0, minRuntimeVersion the bundle’s manifest.json (crates/bundle) The node at install: it refuses a package whose minRuntimeVersion is above its release
Node API none in the path the routes of crates/node/src/api.rs and api/; deprecations in crates/node/api-deprecations.toml mero-js, calimero-client-py, meroctl, app frontends
Sealed channel and attestation the envelope’s version crates/sealed, crates/client/src/attest.rs (mirrored by mero-js) Every client and every peer
Peer protocol the node release /internal/* and a job node’s /job/* routes, Raft RPCs The other nodes of a cluster, on this release or the one before
Stored formats store 2, snapshot 2 (1 written unless a row spans frames), app entry 1, sealed files v1 calimero_log::STORE_FORMAT, SNAPSHOT_FORMAT, component::ENTRY_FORMAT, the file domain strings (Storage schema) The node that opens a data directory, installs a snapshot or applies an entry
Clients mero-js 35.x, calimero-client-py their own repositories Developers; e2e.yml’s clients job runs both against every PR’s merod
Operator tooling mdma shared/mdma_common/release_compat.py (CUTOVERS, FEATURES) mdma, which refuses a rollout across a cutover

Apps. A component built with release x’s SDK (its WIT and ABI) installs and runs on every later node release with the same WIT minor (0.5.* today) and an ABI version the host still supports. A WIT minor bump or a dropped ABI version is a hard cutover, deprecated at least 3 releases before it ships (proposal). CI runs the previous release’s own app bundle on every PR.

Nodes and data. A cluster rolls forward in place from the previous release (N-1 to N, the two replicating together while apps move). A release reads everything every release since the last hard cutover stored: data directories, log entries and snapshots keep their readers until a declared cutover drops them (proposal; at the least, those of the previous release). A node never rolls back across a stored-format change: a store, snapshot or log entry from a later release is refused by its version, not misread.

API. Between cutovers the API changes additively. A route, or a field of a request or an answer, is deprecated for at least 3 releases (proposal) before it is removed; while deprecated, a route answers with the Deprecation header (the day it was deprecated) and a Link to this page (rel="deprecation"). A new required request field is a removal of the old request.

Peers. Nodes of releases N-1 and N serve each other through a rollout. A peer route (/internal/*, /job/*) is an API route: removing one takes the same 3 releases, or a cutover.

Clients. A client release works against the node release it was tested with and every later one until the next cutover, as far as the routes and fields it uses are concerned (the API guarantee above); a node release keeps every route the clients of the previous 3 releases call.

Hard cutovers are the exception, never a side effect. A change that breaks any of the above is one only once it is declared (below); an undeclared break is a bug, and the CI checks below fail it.

crates/node/api-deprecations.toml deprecates nothing now.

1.0.0-rc.40: the system group is sharded. The control plane is a root group (the fleet, packages, accounts and their passkeys, the organization directory), one tenant group per organization (its members, teams, invites, apps and org-scoped governance) and four session groups (sessions, by session id), all on the system voters (design note). The single-group path is gone: an earlier release’s system log and snapshots hold every organization’s state on one group, which this release does not split, and its nodes cannot apply the new groups’ commands. A cluster on an earlier release is recreated on 1.0.0-rc.40, not rolled (.github/upgrade-from, mdma’s CUTOVERS). Clients change nothing: routes and answers are as before, and a refresh token’s new shape (rt_s<shard>.…) is opaque to them.

What is lost. Nothing an earlier release stored is carried over: its system state (accounts and passkeys, organizations, their members, teams, invites and apps, sessions, approvals) and its apps’ data stay on the old cluster. The store format is 3 (Format versions): a node does not start on an earlier release’s data directory, and a cluster founded again from backups refuses a system backup an earlier release wrote (one that holds an organization no tenant group holds), rather than serve organizations whose every write would fail. People sign up again on the new cluster and apps are created there anew.

1.0.0-rc.37: a release’s secrets are credential bindings (#5352). A release’s manifest binds each secret to one host, path prefixes there and one header or body field, and the node attaches it there (Secrets); an app no longer writes {{secret:NAME}}, which the outbound gate now refuses. The earlier shape (secrets.NAME.hosts) is gone from the manifest, from InstallPackage’s release record and from GET /apps/{app}/secrets (its [[cutover]] entry for hosts). No reader of it is kept: a cluster holding a release that declares secrets is recreated on 1.0.0-rc.37, not rolled (.github/upgrade-from, mdma’s CUTOVERS). Publishers repack such a release with meroctl 1.0.0-rc.37 and drop the placeholders from their code; clients read the binding fields.

1.0.0-rc.33: an instance’s access is its grants (#5194). An instance’s access is a list of grants and nothing else (App access): the earlier single access mode is gone, and with it the field access on POST /apps, POST /apps/{app}/access, GET /apps/{app} and a move’s answer (its [[cutover]] entry); requests and answers carry grants. No reader of the earlier shape is kept: an instance record or a setAccess entry an earlier release wrote is not read, so a cluster on an earlier release is recreated on 1.0.0-rc.33, not rolled (#5194 declared it in .github/upgrade-from, and mdma’s CUTOVERS starts an epoch at 1.0.0-rc.33). Clients move to grants; nothing admits a caller without an account any more (anyone is any signed-in account).

The other [[cutover]] entries: the release after 1.0.0-rc.29 removes the sealed channel’s paths POST /sealed/v2/handshake and POST /sealed/v2 (deprecated since 1.0.0-rc.25 for /sealed/handshake and /sealed), and its clients and peers no longer fall back to them (The sealed channel). The deprecation ran its 3 releases, but every SDK released before it (mero-js up to 35.7.0, MeroKit and mero-kotlin up to 6.1.0) still posts its sealed requests to /sealed/v2, so it is declared a hard cutover for clients: they upgrade to an SDK release that posts to /sealed. Nodes of 1.0.0-rc.25 and later serve the new paths, so a cluster rolls from any of them. The same release’s meroctl calls the app registry and the Cloud’s manager at /api/... only. The remaining [[cutover]] entries are the ones 1.0.0-rc.20 made when every app moved into an organization (#5015): POST /auth/releases and POST /auth/outbound are gone (approve on the personal organization, POST /orgs/{org}/releases and /orgs/{org}/outbound), and so is outboundApprovals in /auth/me. The same release is a hard cutover of stored data: a cluster on an earlier release is recreated, not rolled (.github/upgrade-from said hard-cutover: 5015 until the next release).

  1. Keep the route or field working, and add a [[deprecated]] entry to crates/node/api-deprecations.toml: route = "METHOD /path" (as the router names it) or field = "name", since (the release that first ships the deprecation), date (the day it merges), remove_after (at least 3 releases after since) and replacement. The node then answers the route with Deprecation: @<date> and the Link.
  2. Say so in the PR (its title lands in the release notes) and in the clients that use it.
  3. In the release remove_after names or later, remove it; the entry may go in the same change.

A hard cutover is declared in the PR that ships it, before the release:

  1. The PR body’s compatibility block says Door: one-way and Hard cutover: <what breaks and for whom>.
  2. The PR title has ! (feat(node)!: ...), so the release’s generated notes list it as breaking, and the body says what operators must do (for example: clusters holding sealed files are recreated).
  3. An API, WIT or ABI removal gets a [[cutover]] entry in crates/node/api-deprecations.toml (route, field, wit or abi, with pr and why).
  4. A break of the peer protocol or of a stored format without a reader gets a line in mdma’s CUTOVERS (shared/mdma_common/release_compat.py) naming the first release of the new epoch, so mdma refuses a rollout across it.

A stored or replicated shape (a row, a log entry, a snapshot frame, a sealed file record) changes by raising its version and keeping a reader for the old one, in the same PR:

  • the store: raise STORE_FORMAT and append the migration step to calimero_log::format::MIGRATIONS; snapshots carry rows, so raise SNAPSHOT_FORMAT too;
  • an app’s log entry: raise ENTRY_FORMAT, keep decoding format 1 (no marker), and write the new format only once every replica of the group reads it. A field added to an entry is the exception when a Feature gates it (system::cluster_version::FEATURES): no leader writes it below the cluster version that brings it, which the system leader raises only once every node reads it, so no replica meets it unread, and an entry without it applies as before. That gate does what the format raise would (keepQueue, XcallKeepsQueue; baseDigest, PipelinedCalls); a field no gate covers raises the format;
  • a test opens data in the old shape: a data directory, a row or an entry written as the previous release wrote it (crates/node/tests/it/upgrade_replay.rs).

The PR body says Door: one-way and Reader: <the step or decoder, and its test>. A shape with no reader is a hard cutover.

Check Where What fails it
Format markers the node, at start and at apply A store, snapshot or app entry of a later format: refused by its version, never misread
Compatibility ci-checks.yml (part of the required Rust check), scripts/check-api-compat.py A route or JSON field removed without a deprecation past its remove_after or a [[cutover]]; the WIT changed without a version bump, or a non-additive WIT change without a cutover (going back to the WIT of the release Cargo.toml names, which withdraws what no release shipped, passes); an ABI version dropped
Rust tests (2/4): “Apps of the previous release, on this tree’s node” ci-checks.yml (part of Rust) The last published release’s kv-store-test-fixture.mpk failing to install, run or upgrade to this tree’s build on this tree’s node (crates/node/tests/previous-release/kv-store.json)
Compatibility door pr-description.yml, scripts/check-compat-door.py Door: one-way with neither Reader: nor Hard cutover: (and ! in the title); a format version moved with no door stated
Upgrade path ci-checks.yml (required through Rust), crates/node/tests/fault/upgrade_path.py A cluster started on the release in .github/upgrade-from, written to, rolled onto this tree’s merod as mdma rolls a Cloud cluster, then read back: anything lost fails it; a hard-cutover: line there reports the cutover instead of running
clients against merod e2e.yml mero-js’s or calimero-client-py’s tests failing against this tree’s merod

Scenarios and the process suite run one build on fresh state, so they test none of this (What scenario tests cannot catch).