Zoo

staging

The zoo

ratcloud's building blocks, each one working live, in front of you. A feature without an exhibit is not offered; a broken exhibit is seen here, not logged.

Checked · 24 green, 2 red, 3 waiting for a person to try, 0 not built yet

A red light is a promise broken right now. The zoo shows it rather than hiding it, and the card says what is wrong; the green ones still work.

Identity

1

One sign-in, every app

last seen working by a deleted account

Sign in once at account, and every app knows who you are without asking again.

See it working

Who am I, here on the zoo:

?visitornot signed in

Now open a second app on its own address (zoo-broken, a PHP app; the zoo itself is compiled to wasm): it should show the same card, with no prompt.

Sign in to record that this worked for you.

Sign-in is one call: rc.me() in a wasm app (auth_user() through account's shim in PHP). A signed-in browser is silently handed a token for that app; there is no sign-in page per app and no password anywhere.

how a person checks this
2

Visitors get a real page

last worked

Someone who is not signed in sees the page, not a bounce to a sign-in screen.

See it working

You are a visitor. This whole page loaded without a sign-in.

rc.me() is a visitor for someone not signed in. The app decides what a visitor sees; the platform never forces a sign-in.

how checks itself
3

Sign out everywhere

last seen working by a deleted account

Signing out at account signs you out of every app in this browser.

See it working

Sign in first; then this button signs you out of every app at once.

rc.sign_out(back) sends the browser to account, which ends the one session behind every app's token. No app has to be told.

how a person checks this
4

Your name and picture follow you

last worked

Change your name and picture at account, and every app shows the new ones.

See it working

Sign in to sign the guestbook.

Change your name or picture at account, then reload: your entry changes too. (The robot renames itself to the time of every check, which is how this exhibit checks itself.)

Zoo Robot 15:40@zoo-robot · #11
The robot was here, on staging. ·

rc.users(ids) turns stored ids into current names and pictures, one call per page. An app keeps ids, never copies of names or pictures.

how checks itself
5

Find a friend

last worked

Any app can search for people by name, including people who have never used it.

See it working

Sign in to search for people.

rc.search_users(q) finds people by the start of their username or of any word of their name, across the whole platform.

how checks itself

Deploy

6

A push is a deploy

last worked

Pushing to main puts the code live within a minute.

See it working
  • live55c71513c5 by johannes,
  • staging55c71513c5 by johannes,

git push is the deploy. What is running, and since when, is in the fact deploy.json (rc.fact), written by root, readable by the app.

how checks itself
7

The branch decides

last worked

main goes live, staging goes to a twin with its own data, and any other branch goes nowhere until you ask: a Preview request puts it on the app's preview address, which then follows it.

See it working
  • livemain 55c7151 · deployed ·
  • stagingstaging 55c7151 · deployed ·
  • nowherebuild/no-format-html 6c707b7 · ignored ·
  • previewruns preview/x 8b57bd3, following no branch: nobody asked for one since; its data: empty (a different branch than the last preview)

This guestbook has 1 signature; the live zoo's has 2, and they are different books.

Push main for live, staging for https://<app>-staging. Any other branch goes nowhere until you ask for it (Preview on apps, or ratcloud preview <app> <branch>): then https://<app>-preview runs it, and later pushes to it redeploy it. Each environment has its own data: the same code, never the same data.

how checks itself
8

A bad manifest is shown, not applied

last worked

A mistake in an app's settings file (ratcloud.conf) leaves the old settings running and says what was wrong.

See it working

The sample app zoo-broken-staging.ratcloud.club is up, and its last push was refused:

line 6: unknown key 'chanels'. Known keys: name, description, channels, cron, max_body, redirects, backup_check, smoke, timeout, routes, runtime, capabilities, sqlite, resident

Refused , commit d937463. It still serves its last good version. Its creator sees the same on its page at apps: ratcloud.conf refused on live, ratcloud.conf refused on staging.

On wasm, a build that does not compile is refused the same way: the preview of zoo-wasm's branch broken-build keeps what it had, and says why:

exhibits.odin(314:34) Error: Cannot convert '"not an int"' to 'int' from 'untyped string', got "not an int" 
	broken :: proc() -> int { return "not an int" } 
	                                 ^~~~~~~~~~~^ 

The nightly job, : still refused.

ratcloud.conf is checked before anything is applied. A bad one refuses the push, in the pusher's terminal, in the fact manifest.json and on the app's page at apps; the site keeps running. A wasm app that does not compile is refused the same way.

how checks itself
30

Preview a branch

after asking for e30-staging-a, the preview answered 405 null, not its word lynx-9000cb (last worked )

Ask for a branch's preview and it runs there, with the data the preview already holds; a branch nobody asked for goes nowhere.

See it working

The robot, as the creator of the sample app zoo-broken, : pushed three branches, loaded a copy of staging's data into the preview, then asked for two of them over ssh.

  • askede30-staging-a: the preview answered lynx-9000cb and wrote it into its data
  • askede30-staging-b next: answered wren-b800eb
  • nowheree30-staging-c, never asked for: its push went nowhere, and no address answers wren-21e1f2

after asking for e30-staging-a, the preview answered 405 null, not its word lynx-9000cb

Ask for one of yours: Preview on the branch's row on your app's page at apps, or ssh <you>@ratcloud.club ratcloud preview <app> <branch>.

Preview on a branch's row at apps, or ssh <you>@<domain> ratcloud preview <app> <branch>: root checks that branch's ratcloud.conf, puts it on https://<app>-preview, lints it, runs its smoke test, and follows it. The preview's data stays across branches; Load copies live's or staging's in (ratcloud load), Empty empties it.

how checks itself

Isolation

9

Try the doors

last worked

An app cannot open another app's files, and it cannot reach the server's own internal network.

See it working

    Root tries them too, as every app, every hour:

    • failapp-zoo-broken-pv opened /srv/data/zoo-broken-pv/preview
    • pass35 uid(s) (apps and previews): loopback, link-local, private ranges and the box's own addresses (but 80/443) refused; own publish port open; declared exceptions: app-apps_20470 may reach the box's public sshd (rc egress apps ssh), app-zoowasm_20679 may reach the box's public sshd (rc egress zoo-wasm ssh), app-zoo may reach the box's public sshd (rc egress zoo ssh)
    • failzoo-broken (preview): control own file: FAILED (the refusals prove nothing); zoo-broken (preview): control own database: FAILED (the refusals prove nothing); zoo-broken (preview): only 18 doors tried

    Every request is a fresh wasm instance in rc-host: its own data folder is the only place it can read or write, its database the only one it can open, and its outbound calls pass a fence that refuses the box's loopback, private networks and the metadata service.

    how checks itself

    Realtime

    10

    Live for everyone

    last worked

    A change one person makes appears on everyone's open page within a second, without a reload.

    See it working
    16627

    Open this page in two tabs and press in one.

    Declare a channel in ratcloud.conf; browsers listen with EventSource at /rc/sub/<name>/<id>, the app sends with rc.publish(name, id, data).

    how checks itself
    11

    Private streams stay private

    last worked

    A live stream meant for one person can't be read by someone who guesses its name.

    See it working

    Sign in to get a stream of your own.

    Add `auth` to a channel in ratcloud.conf, and the app decides who may listen: nginx asks it first (rc.serve's channel_auth gets the channel and its id).

    how checks itself

    Storage

    12

    Your files

    last worked

    You can upload a file, see it listed, and download it again unchanged.

    See it working

    Last roundtrip, : 7673 bytes uploaded, listed and downloaded again: matched

    Open storage, upload something, and download it again.

    storage keeps each person's files (B2-backed) behind their sign-in; an app links to it and never holds storage's keys. The check here uploads random bytes, lists them, downloads them and compares.

    how checks itself
    13

    Apps can save files for you

    last worked

    An app can save a file into your storage, under its own folder, without ever holding storage's keys.

    See it working

    Sign in to have the zoo save a postcard for you.

    The self-check saves 50 postcards for the robot each time: one begin, 50 PUTs straight to B2, one commit, one call for their 50 URLs, 0 ms in all, .

    rc.app_headers("storage", true) proves to storage which app calls and for whom; storage saves only under Apps / <app>. One file: POST /app/save answers {saved: {id, ...}, path}. Many: app/begin gives presigned PUTs (200 a call), the bytes go straight to B2, app/commit checks them all at once, app/urls hands out downloads.

    how checks itself

    Sealed

    26

    Sealed means sealed

    last worked

    A file an app seals for you opens on your devices and nowhere else; the server keeps only what it cannot read.

    See it working

    Sign in to seal a postcard only your devices can open.

    The self-check seals a fresh postcard for the robot each time, : 269 bytes in the bucket, none of them its words.

    storage's sealing block: rc-crypt.js and rc-seal.js (https://storage.<domain>/seal/v1/) seal in the browser with a key only your devices and your recovery key open; the app's server forwards keyring calls and stores envelopes it cannot read.

    how checks itself
    27

    A new device needs an old one

    last worked

    A device that never opened your sealed files gets in only with a code typed on one that has, or with your recovery key.

    See it working

    Sign in , seal a postcard (26), then open this page in a private window.

    rc-seal.js: seal.request() shows a code, seal.approve(code) on a device that has the key lets the new one in, seal.useStorage() lets storage's window do it with your recovery key; every keyring is checked under the key it guards.

    how checks itself

    Intelligence

    14

    Ask a model

    last worked

    Any app can ask a language model a question without holding a key.

    See it working

    Sign in to ask the model something.

    The ai app holds the key; an app calls it with rc.app_headers("ai", true) and gets an answer marked who asked, for whom.

    how checks itself
    15

    You can see what you spent

    last worked

    Every question through ai is on your ledger, per app.

    See it working

    Sign in to see what you spent.

    ai writes every call to a ledger; GET ?api=usage tells an app what the signed-in person spent today and this week, by app.

    how checks itself

    Notifications

    16

    Ping me

    nobody has seen this work yet

    An app can send a notification to your phone or browser.

    See it working

    Sign in to be notified.

    The push app keeps each person's devices (Web Push); an app asks it to notify someone with rc.app_headers("push", true).

    how a person checks this

    Building

    17

    A new app in a minute

    nobody has seen this work yet

    Creating an app gives it an address, a staging twin and a repo to push to.

    See it working

    On apps, New app takes a name (creators only; the owner invites them). Within a minute https://<name>.ratcloud.club/ and its -staging twin answer with a placeholder page, and the app's page there shows the line to clone it.

    This is staging: its apps acts in a pretend world and creates nothing. Try it on the live zoo.

    Sign in to record that this worked for you.

    apps's New app form asks root (through apps's spool, with account's word for who you are) for a new app: its addresses with certificates, and a repo with a first working page already pushed.

    how a person checks this
    18

    Add a laptop by pasting its key

    last worked

    Pasting a machine's public key on apps lets that machine push; removing it stops it.

    See it working

    This is staging: its apps acts in a pretend world, where the robot is no creator, so its key is refused (only creators can add machines). The live zoo adds and removes one.

    Your machines are on apps (creators): paste a public key, confirm it with your passkey, and each one shows its last push. Your workbench's own key is on the same list, first, once you have opened the workbench.

    apps's Machines: paste a public key (~/.ssh/id_ed25519.pub) and a name, confirm it with your passkey, and that machine pushes as you; Remove stops it at once. Each machine shows its last push.

    how checks itself
    19

    Show me how

    last worked

    Every exhibit shows the code that makes it work.

    See it working

    Every card has a how link. Try the counter's or the doors': the actual file this program was built from, with its sha256.

    An app's code is plain files in its repo; apps shows any commit of it, and the zoo links each exhibit to the files it was built from, so what you read is what runs.

    how checks itself
    20

    Errors you can read

    last worked

    An app's error log is visible to its creator without a shell.

    See it working

    It appears below within a minute, and on the zoo's page at apps for its creator.

    2026-11-29T15:30:16+00:00 ratcloud zoo[1122901]: zoo exhibit 20: a deliberate warning, staging, 76e4ff11
    2026-11-29T15:30:29+00:00 ratcloud zoo[1122901]: zoo exhibit 20: a deliberate warning, live, 248fd74a
    2026-11-29T15:35:16+00:00 ratcloud zoo[1122901]: zoo exhibit 20: a deliberate warning, live, 84d8bd05
    2026-11-29T15:35:22+00:00 ratcloud zoo[1122901]: zoo exhibit 20: a deliberate warning, staging, dbc7913f
    2026-11-29T15:40:16+00:00 ratcloud zoo[1122901]: zoo exhibit 20: a deliberate warning, staging, 69326a7d
    2026-11-29T15:40:17+00:00 ratcloud zoo[1122901]: zoo exhibit 20: a deliberate warning, live, 2adcbbb8

    The check also reads a log where a creator does, on the sample zoo-scratch: the robot made an error in zoo-scratch and found the one it made 4 minutes ago on the app's page at apps:

    2026-11-29T15:35:22+00:00 ratcloud zoo-scratch[1122901]: zoo exhibit 20: a deliberate warning in zoo-scratch, staging, b5f161e2

    rc.log("error", ...), a trap's backtrace and job output land in the fact log.txt within a minute, readable by the app, and on the app's page at apps for its creator (Health: the log).

    how checks itself
    21

    Jobs on a clock

    last worked

    An app can run a script every few minutes.

    See it working

    Last tick: , written by the zoo's own five-minute job.

    Add `cron = tick every 5m` to ratcloud.conf and a job proc to rc.serve: the host runs it in a fresh instance on that clock, never two at once, with its output in the fact log.txt.

    how checks itself
    25

    Change an app by asking

    last worked

    A model in your workbench changes your app and shows it running on the preview address; staging and live change only when you ship.

    See it working

    This is staging: it has no workbench (no workbench here: it is live's alone). The live zoo runs this exhibit in its robot's workbench.

    The workbench (apps, Open the workbench): your own OpenCode at code.<domain>, every app of yours a project, the model on your ai ledger. Ask; it works on a branch, pushes it and previews it (ratcloud preview); you ship from apps when it is right. A robot's workbench key never pushes main or staging.

    how checks itself
    29

    Real data to build with

    last worked

    An app's creator finds a copy of its live data in their storage, and can put data into staging or preview; live takes nothing that way.

    See it working

    Staging's storage shows no app's data: account-staging's usernames are anyone's to register. The live zoo shows the copy.

    Your own apps' data is in your storage, under Apps, if you create one.

    storage shows each of your apps' data under Apps / <App> / data: live as a read-only copy root makes as the app, staging and preview with "Put a file in". Laptops: dev/ratcloud data pull | push in the app's folder (the same rules, over ssh). The preview also takes a whole copy of live's or staging's data: Load on the app's page at apps, or ratcloud load <app> live|staging.

    how checks itself

    Operations

    22

    The zoo checks itself

    back of house: An app cannot read another app's data, code or repo, checked from outside as each app's user. (last worked )

    Every self-running exhibit is rechecked on a schedule, and the front page says when.

    See it working

    Checked (took 26.4 s).

    The back of house, checked by root :

    • failAn app cannot read another app's data, code or repo, checked from outside as each app's user. app-zoo-broken-pv opened /srv/data/zoo-broken-pv/preview
    • passNo app can use admin rights (sudo), and no creator gets a shell or port forwarding, only git. 20 app user(s) and their preview users without sudo or shell; 3 creator(s): git-shell (git, rc-data and ratcloud only), restricted keys, one pinned sudo rule per app; 3 key(s) granted preview/* only; 2 workbench key(s) reaching exactly their creator's apps; 1 owner(s), each holding an account
    • passRoot never runs code an app pushed, and never writes into a directory an app owns. no root-owned file in any app's data, spool or checkout; every app process and job runs as its app; 2 wasm host(s) as rc-wasm/rc-wasm-pv
    • passAn account number is never reused, even after a reset or a restore. AUTOINCREMENT, never below root's high-water mark; live: next id above 354, staging: next id above 681
    • passOne app's sign-in token gets nothing from account when another app presents it. robot's ai token: nobody at apps, itself at ai, nobody after sign-out (live, staging)
    • passLive stream names are prefixed by app and by environment, so staging can't reach live. 54 channel id(s) all <app>.<env>.<name>; 55 publish ports, loopback only, each reachable by its own environment's uid alone
    • passEvery address has a valid certificate and sends the platform's security headers. 56 addresses: valid certificate (63 days left), security headers present
    • passThe web server's and ssh's configs on disk pass their own tests, so a reload or a reboot brings them back. nginx -t and sshd -t pass
    • passnginx answers on loopback, and a watchdog restarts it within two minutes if it stops. answered in 0 ms; 2 workers; the watchdog runs every minute
    • passNo app can take the whole box: memory, CPU and tasks are capped per app, and the disk has room. 20 app slice(s) capped (MemoryMax=512M MemoryHigh=384M CPUQuota=100% TasksMax=192); 75% of the disk free; largest data: zoo-probea 3.3 KB, zoo-probeb 738 B, account ?
    • passA builder run's agent is a laptop in a box: its own uid, slice and network, no app's files, and only the public internet and the box's public 22 and 443. OpenCode 2.0.22 and chrome-headless-shell 155.0.8059.39 are the pinned builds (sha256), root's, and a worker uid runs the shell; 0 workbench(es) up, of 2 slots: each its own uid in rc-agent.slice (MemoryMax=1536M MemoryHigh=1408M CPUQuota=100% TasksMax=512), its own network; a worker uid cannot read apps' code or data or root's state, and reaches only DNS, the public internet and the box's public 22 and 443
    • passA creator's workbench is theirs alone: its uid cannot read another creator's projects or any app's live data, and its key cannot push another creator's app. 2 workbench(es), 0 up: each its own uid, home and network in rc-agent.slice (1024M each); as its uid it cannot open another creator's projects, any app's live data or root's state; its key pushes its creator's apps only (rc-git refuses another's repo, sshd another login)
    • passThe mirror of every app's repo in apps's facts is root's: apps's uid reads it and cannot change it, no other app can open it, and its heads are the repo's. 20 mirror(s) root's with the repos' heads; app-apps_20470 reads them and can change nothing; 39 other uid(s) (previews included) open none of it
    • passEvery app directory under /srv/apps has a registry entry and every entry a directory, so no probe is left behind. 20 app(s), directories and registry agree

    The zoo is an ordinary app: a five-minute job re-runs its exhibits and stores the results, and root's hourly check of the platform arrives in the fact platform.json.

    how checks itself
    23

    Last night's backup works

    last worked

    Everything is backed up nightly, a copy leaves the server, and the backup is opened to prove it.

    See it working
    • backup, 78.9 MB, verified
    • read back1 guestbook signature(s), counted in the backup copy
    • offsite, 64.6 MB encrypted

    Add `backup_check = <db> <table>` to ratcloud.conf: after each nightly backup root counts that table in the copy and writes it to the fact backup.json.

    how checks itself
    24

    The server can be replaced

    the last rehearsal that passed was 57 days ago: due

    The whole platform can be rebuilt on a fresh machine from the tools repo, one bundle of secrets, and one backup.

    See it working

    Last rehearsal : everything came back. Last one that passed: .

    Nothing refers to the machine: a rehearsal restores everything onto a scratch box and checks every app answers. Its verdict reaches each app in the fact backup.json.