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.
Versioned surfaces
| Contract | Current version | Where it appears |
|---|---|---|
| Package format | formatVersion: 1 | package.json |
| Package document envelope | packageVersion: 1 | Store package URL |
| Store index | storeVersion: 1 | store.json |
| Bridge protocol | rumahl.bridge.v1 | hello, welcome, requests and events |
| App catalog response | catalogVersion: 1 | GET /api/v1/shell/apps |
| Launch response | launchVersion: 1 | POST /api/v1/shell/apps/{id}/launch |
| Import response | importVersion: 1 | POST /api/v1/shell/apps/import |
| Settings response | settingsVersion: 1 | /apps/{id}/settings |
| Network response | networkVersion: 1 | /apps/{id}/network/request |
| Capability response | capabilityVersion: 1 | /api/v1/shell/capabilities/invoke |
| Theme package | Package-defined | ZIP with theme.json |
| Shell preferences | settingsVersion: 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.
| Package | Latest tag | Notes |
|---|---|---|
@rumahl/ui | 0.1.0 | 0.1.1 exists on the registry but is not tagged latest |
@rumahl/bridge-client | 0.1.0 | Depends on @rumahl/contracts@0.1.0 |
@rumahl/contracts | 0.1.0 | Types and parsers for the v1 contracts |
@rumahl/shell | Not published | First-party workspace package |
@rumahl/ssr | Not published | First-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.
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:
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
| Field | Changes when |
|---|---|
publisherId | The publisher identity changes; treat it as a new trust relationship |
appId | The app is a different product; do not reuse an ID for a fork |
app.version | The app payload changes |
formatVersion | The package contract changes |
package.sig.json.keyId | The 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
- App packages — the manifest contract.
- Bridge SDK reference — the v1 method surface.
- Build a store — the index contract.
- Review and release — preflight and rollback.
Was this page helpful?