Apps · lifecycle

Install, data and removal.

Installing an app crosses persistence, runtime, identity and secrets boundaries that cannot share one transaction. rumahl records ordered steps and can resume or compensate after a crash.

8 min readUpdated 1 December 2026Operation journal

Why a journal

The platform snapshot, app databases, runtime preparation, OIDC registration and secret delivery are separate providers. A single process can fail between any two. The journal makes each step visible and recoverable; the platform snapshot is written last so live state cannot advertise resources that were never created.

Install order

install
optional app databases
prepare runtime instance and secret namespace
optional OIDC client registration
activate runtime instance
store platform snapshot

App code cannot start before its declared runtime secrets exist. A provider call that may have happened but was not confirmed stays applying; it is not retried blindly.

Uninstall order

uninstall
stop runtime
remove runtime secrets
revoke app grants and network consents
revoke OIDC client
remove prepared runtime
retain app databases
store removed platform snapshot

An interrupted uninstall resumes forward. Databases are moved into inaccessible retained storage; physical deletion is a separate purge policy that is not implemented yet.

Crash-visible states

PhaseMeaning
pendingNot started
applyingProvider call may have happened; ambiguous after a crash
appliedProvider confirmed success
compensation-pendingA previous step must be reversed
compensatingReverse call in progress
compensatedReverse call confirmed

App databases

Databases are optional and declared by logical names. The host path, engine, credentials and connection details belong to the provider, never the manifest.

manifest
"databases": [
  { "id": "primary" },
  { "id": "search-index" }
]
  • Every active database is addressed by (installationId, appDatabaseId).
  • An app can declare at most eight databases.
  • SQLite is the first local provider. PostgreSQL remains a separate adapter; native apps have no database delivery contract in this release.
  • A new installation never inherits an old installation’s database.
  • Uninstall removes the binding; retained data is not silently reattached on reinstall.

OIDC registration

A web or container app may register as an OIDC relying party during installation. The journal treats registration as one more participant: a failed install compensates the client, and uninstall revokes it. OIDC is optional and is not required for a local web app. Native apps have no OIDC client contract and the validator rejects a native OIDC declaration.

Current status

Next