Reference · compatibility

Versions and compatibility.

rumahl versions its contracts independently of the operating system release. A package format, a store index and a bridge protocol are separate promises; do not infer one from another.

8 min readUpdated 1 December 2026Current contract versions

Versioned surfaces

ContractCurrent versionWhere it appears
Package formatformatVersion: 1package.json
Package document envelopepackageVersion: 1Store package URL
Store indexstoreVersion: 1store.json
Bridge protocolrumahl.bridge.v1hello, welcome, requests and events
App catalog responsecatalogVersion: 1GET /api/v1/shell/apps
Launch responselaunchVersion: 1POST /api/v1/shell/apps/{id}/launch
Import responseimportVersion: 1POST /api/v1/shell/apps/import
Settings responsesettingsVersion: 1/apps/{id}/settings
Network responsenetworkVersion: 1/apps/{id}/network/request
Capability responsecapabilityVersion: 1/api/v1/shell/capabilities/invoke
Theme packagePackage-definedZIP with theme.json
Shell preferencessettingsVersion: 1/api/v1/shell/preferences

The operating system version is not a protocol version. A new OS release can add methods; it does not silently change the meaning of formatVersion: 1.

npm package versions

The public SDK packages have their own version line. They are not the OS release and they are not the bridge protocol.

PackageLatest tagNotes
@rumahl/ui0.1.00.1.1 exists on the registry but is not tagged latest
@rumahl/bridge-client0.1.0Depends on @rumahl/contracts@0.1.0
@rumahl/contracts0.1.0Types and parsers for the v1 contracts
@rumahl/shellNot publishedFirst-party workspace package
@rumahl/ssrNot publishedFirst-party workspace package

Compatibility rules

  • An unknown required version is unsupported. Do not guess a shape.
  • New optional response fields may be added within a version; ignore fields you do not know.
  • New bridge methods are additive. A caller must still check the app’s declared methods and handle refusal.
  • Removing a method, changing a field type or changing a permission requirement is a new version.
  • An app update keeps its app ID but may raise the app version; the publisher identity must remain stable.
  • A changed publisher is a different trust identity, not an update of the old app.

Feature detection

Do not infer bridge support from the OS version. Use the welcome message and the declared permissions.

app/feature-detect.ts
const welcome = await rumahl.ready();

if (!welcome.methods.includes("os.net.request")) {
  // This installation or shell does not expose brokered network access.
  showUnsupported("Network access is not available in this shell.");
}

const capabilities = new Set(welcome.methods);

For HTTP responses, check the version field before reading the rest of the document:

catalog-check.ts
const response = await fetch("/api/v1/shell/apps");
const catalog = await response.json();

if (catalog.catalogVersion !== 1) {
  throw new Error(`Unsupported catalog version: ${catalog.catalogVersion}`);
}

App identity and versions

FieldChanges when
publisherIdThe publisher identity changes; treat it as a new trust relationship
appIdThe app is a different product; do not reuse an ID for a fork
app.versionThe app payload changes
formatVersionThe package contract changes
package.sig.json.keyIdThe signing key changes; the trust store decides whether to accept it

An update is identified by the installation and the publisher. A package with the same app ID but a different publisher does not inherit the old grants, consents or data.

Store and package compatibility

  • A source can serve apps for multiple OS versions, but each package declares its own runtime and requirements.
  • An index entry must use the same app ID and version as the signed manifest.
  • The package document is transport; it does not add a second manifest version.
  • A source that cannot parse an index must fail visibly rather than silently dropping apps.

Deprecation checklist for a future contract

  • Publish the replacement and the migration path before removing the old form.
  • Keep the old version readable for at least one announced window.
  • Surface a clear error for an unsupported version, not a generic failure.
  • Document the exact fields that changed and the security consequences.
  • Provide a test fixture for both versions during the transition.

Next