Platform · architecture
Architecture.
Trace how rumahl OS handles a request from the shell or an installed app. The path explains where the caller’s identity is established, where access is checked and which layer performs the work.
For a concrete example of how the platform evaluates grants between apps, see the permissions and capabilities guide.
Platform invariants
- Core provides mechanisms, not products. Core contains no app-specific behavior.
- Apps never communicate directly with other apps.
- Apps depend on capabilities, not concrete providers.
- Permission request is not permission grant. Capability is not contribution.
- Every operation has an identity.
- Resources are logical references, never host paths.
- First-party and third-party apps use the same platform contracts.
- Privileged OS operations run in isolated services.
- Transport, persistence, authentication and UI concerns stay outside the domain core.
Request path
OS shell / app window
│ same-origin request or bridge call
▼
platform-web / platform-api
│ Host, Origin, CSRF, session
▼
platform-service
│ account, installation, grants, policy
▼
domain core
│ identity, resources, lifecycle
▼
persistence / host adapter
The frontend and installed apps never perform privileged host operations. A request passes through platform contracts so identity, permissions, resource ownership and policy can be enforced before work leaves the domain.
In a development server, Vite and React SSR sit in front of the same Rust HTTP gateway. Production uses immutable bundles, strict CSP and content-derived build IDs; the authorization boundary is the same.
Source map
| Path | Responsibility |
|---|---|
core/ | Domain concepts, policies and platform invariants |
platform-api/ | Stable contracts without implementation leakage |
platform-service/ | Composition of core, auth, persistence and app operations |
platform-web/ | HTTP/HTTPS gateway, shell snapshot, apps and OIDC adapter |
frontend/ | React shell, SSR, bridge client, UI kit and Storybook |
ui-contracts/ | Engine-neutral snapshot, theme and extension contracts |
account-auth/ · oidc-provider/ | Local accounts and OpenID Connect |
app-packages/ | Signed package manifest, verification, import and CLI |
app-operations/ | Durable install/uninstall journal across providers |
persistence-sqlite/ | Snapshots, accounts, operations, databases and secrets |
platform-buildroot/ | System image and service integration |
Where new code belongs
A new permission rule
It belongs at the backend authorization boundary and in the UI explanation. Hiding a button is not authorization. If the rule changes resource semantics, it belongs in core policy first.
A new app runtime
It belongs behind the runtime adapter and the package contract. Do not teach platform-web about a specific container engine or a specific app.
A new host operation
It belongs in an isolated service with an explicit contract. The shell should receive a bounded result, never a host path or a privileged socket.
A new UI state
If it changes a platform decision, it is not only a UI state. Model it in the contracts and test denial, reconnect and restart behavior.
Identity and resources
Every relevant operation has an identity. The platform must determine which user, application or service is responsible before privileged work happens. Resources are logical references; the platform resolves them and controls access.
Callers do not select a host path. They name a resource and an operation. The resolution and the authorization are platform work.
Next
- App lifecycle and data — install, uninstall and databases.
- Identity and OIDC — local accounts and consent.
- Testing and release — the check matrix.
Was this page helpful?