monoid / cloud
AGENTS.md68 starsChanged 16 days agoMITView on GitHub
- It keeps only what is about people: accounts and sign-in, workspaces, members and roles, invitations, the list of a workspace's stations, each whole or one that only runs tasks (a rig, listed with the member whose it is; who may use it is that member's signature, checked by the machine, never the cloud's to say; listing it as the other kind changes nothing on the machine by itself, station/AGENTS.md), members' credentials and their revocation, the provisioning keys a workspace's…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AFK-surf/still.failword for word, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- AFK-surf/still.fail★ 69100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- station/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cloud/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- rules/CLAUDE.mdCLAUDE.md
- station/CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- ste-writingSkill
The file
Files
Working on still.fail cloud (for agents)
- It keeps only what is about people: accounts and sign-in, workspaces, members and roles, invitations, the list of a
workspace's stations, each whole or one that only runs tasks (a rig, listed with the member whose it is; who may
use it is that member's signature, checked by the machine, never the cloud's to say; listing it as the other kind
changes nothing on the machine by itself,
station/AGENTS.md), members' credentials and their revocation, the provisioning keys a workspace's managers give a console to enroll whole stations with (src/directory/stations.ts: each works only while its maker manages the workspace, and opens/v1/provision/*alone), still.fail's relays: its own (RELAY_URL) and a list its operator keeps as it runs, never a deploy's config (the user, 2026-11-17: 「env 不保留,外部要用让他们自己配」), a relay putting itself on it only with a token the operator made for it (src/relay-registry.ts), so deploying a relay puts it on no cloud's list. A workspace's own relays and the ways it turned off are its stations' (station/src/mesh/ways.ts): what is kept of them here is for the stations and devices from before, and for a browser or a device that reaches no station yet (its relays only/v1/menames), told to stations once as their first. The stations say theirs on their presence sockets (ways.put), the newest record kept (#waysPut). A station's chats, sessions, runtime accounts and usage are the station's; the cloud never holds them nor passes a request on to a station (the root AGENTS.md, No way into a station from outside). - Workers, each deployed on its own (
deploy.pylists them,wrangler*.jsoncroute them): the API (src/index.ts), the relay (src/relay-worker.ts: deploying it drops every relay connection, so it is deployed only when it changed), the static web, admin, preview, status, site, the component library's page (kit), and the ui.monoid.build site (ui). Their names, Durable Objects, bucket and secrets keep their names from before the rename: a renamed one would be new and empty. src/directory.ts(one SQLite Durable Object,primary) is who belongs where, every change one transaction: the rows stay together, as splitting them would make most changes span objects. What grows with devices, stations or requests is kept off it: a device's/v1/eventssocket is on its account's object (src/account.ts, also its sessions and whether it is let into the test channel), a station's presence socket on the station's own (src/station.ts, also whether it is enrolled). After each change the Directory tells those objects from an outbox (in order, again until it gets there); whatever keeps someone's access is awaited before the answer. A hint to read again that a reconnect or the next one makes up for (a release out, the console's minute) is sent once, outside the outbox: every write there holds each answer of the Directory behind the storage's output gate. For the same gate what is only read by the day is held in memory and written together, at most every ten minutes by the cron's minute and at once by what reads it: the calls counted (keepCounts,hits) and the devices that asked for credentials (src/directory/locks.tsflushDevices,devices), so a credential writes nothing.DIRECTORY_SOCKETS=primaryputs the sockets back on the Directory, the way back while nothing else depends on the objects. Whether a station is up is not the cloud's to say: devices find out over the mesh.- A member's credential is a JWT the cloud signs (Ed25519, 30 days, bound to the device's key); stations check it
offline with the key the presence socket's
stateframe gives, so a signed-in device works with the cloud down. A workspace in safe mode (the lock,src/lock.tsovershared/lock.tsandrules/, kept as a station keeps it byshared/log-keep.ts) is decided by what its owners signed, not by the cloud: the cloud cannot add people or stations to it. It and the personal lock are kept here only for the stations and devices from before the stations carried them (the root AGENTS.md, The cloud is the account system): nothing new that is not the account system comes here. Once a chain moved (movedits last entry) whether it is on is said in its root's log, never here: itslockedstays true for those from before, and nothing here refuses by it as if it knew (enroll; the stations and the core go by the lock they hold). - One cloud answers as the other product too (
src/guests.ts; the user, 2026-11-12: still.fail's accounts move into monoid's cloud, both apps staying, each its own name): still.fail's hosts stay in still.fail's account, its API Worker forwarding there (FORWARD_TO), monoid's answering a forwarded request as still.fail's (GUESTS, underFORWARD_SECRET). The move itself issrc/move.ts, run by.github/workflows/move-cloud.yml. selfhost/runs the same Workers on workerd outside Cloudflare (its README.md). Its config is made from the wrangler files, so a Worker, Durable Object, var or route added there is self-hosted too; a binding of a kind it has no stand-in for (only R2 and send_email have one) needs one there. Whatever names the cloud stays a var, never a host written in code: a self-hosted cloud's names are only known as it runs.pnpm side(side/selfhost.test.ts, the side run's) runs it on workerd for real, signing in through an SMTP relay and an OpenID provider.- The control plane's contract is shared with Comma (AFK-surf/Cue):
station/src/cloud/provider.tsholds what differs. A change to a station-facing route keeps both working. - Tests run in Miniflare with everything outside mocked:
pnpm run types && pnpm run check && pnpm test, one filepnpm exec tsx --test test/<file>.test.ts(orpnpm test test/<file>.test.ts).pnpm testistest/run.ts: it bundles the tests' Workers once for every file (test/bundles.ts) and, on Linux, gives them a temporary directory in memory, where the Durable Objects' SQLite syncs cost nothing. What the Directory tells after a change answers is waited for withh.settled()(test/harness.ts), never a while; a socket is read afterh.heard(ws), never after a ping of a test's own (what a station says on its socket is answered by a call to the Directory, later than a pong).test/dev.tsruns every Worker locally (docs/development.md). Deploying is main's pipeline's, never by hand from a branch.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

