The control plane¶
Every screen you use Dragon Rider on, and every machine your agents run on, connects to one service of your own: the control plane. This page explains what it is made of, where you can run it, what happens when it or what it remembers cannot be reached, and why the app is built around it.
Machines, clients and the control plane¶
A machine runs agents. Your Mac is one, once Dragon Rider is installed on it. A Linux server is another, and so is a second Mac. A machine owns its agents: it starts their runtimes, holds their conversations and keeps their records on its own disk.
A machine has roles (#6609): agents, control or both. A Mac that runs the control
plane and agents has both. A machine that runs only the control plane, such as the VM of the live
control plane, has only control: the control plane writes its record when its machine has
none, shows it to admins only, and refuses to remove it. Each copy's record in
v1/mesh/copies/<id>.json names its machine (machine). machines/list says each machine's
roles; an older control plane does not, and a client reads that as agents.
A machine's os (darwin, linux or windows) and arch (arm64 or amd64) are fields of
its record (#8195): its host says them in machine/hello, and for an older host the control plane
reads them from platform ("macOS arm64", "Linux x86-64"), so no stored record is rewritten. Its
provider is read from its provider link, never copied. The labels os=, arch= and
provider= are made from these fields each time, so they cannot drift; macos is an alias of
darwin in a filter, a label and runs-on:. A machine whose os is not known has no os= label,
so no runs-on: names it, and machines/list counts and filters it as unknown.
The control plane finds its record by its machine's id (#7399): AGENTS_CONTROL_MACHINE_ID, else
the id kept in the file AGENTS_CONTROL_MACHINE_ID_FILE names, made there the first time, else
the machine's own id (the Mac's hardware UUID, Linux's /etc/machine-id, else its host name).
The image sets that file to /data/machine-id, in its data volume, because a container has no
machine id and a new host name each time it is made: without it, each deploy was a new machine.
A control-only record that no copy runs on any more goes away: one copy over its store drops the
others when it starts, and several copies drop one that no live copy record has named for
30 seconds. A record with a host's key stays.
control/eligible (#6611, admins only) says whether a machine can take the control role, and
each reason why it cannot. It changes nothing. A machine is refused when one of these is true:
- The control plane cannot reach it. Clients must reach a control plane, while a machine
that runs agents only dials out. The machine's tunnel must be up, or its control port must
answer. A machine with the control role (
agentsd install --control) says in eachmachine/hellowhere it serves (#7313): its port, and the domain of its certificate when it has one. The check dials that port at the domain's public address, or, with no domain, at the public address that the machine connects from. A machine that says nothing is tried on 443 and 8791, where the install listens. The check opens a TCP connection and sends nothing. The Linux install runs as a user, so port 443 needs a forward or the one-timesysctlthat the installer names. - It is a Mac, which can sleep. In the single-user shape, the person can say yes
(
allowSleep). - Its provider stops it when it is idle.
- It is below the floor: less than 1 GB of memory, a disk that is low or has no room for the store and 2 GB more, or a capacity level of near or full. A machine that does not say its memory and disk is refused too.
- It would have both roles outside the single-user shape. An agent there could read the control key. A control plane with more than one person (bots count) is not single-user.
- It runs an older version than the control plane.
With the reasons, the answer says what the screen shows of the machine (#7313): address,
where the check reached its control port (absent by a tunnel), memoryBytes, and
diskFreeBytes, the free space on its fullest disk.
A hosted control plane refuses the call: a customer's machine is never a copy of it.
control/move {machine} (#6612, admins only) moves the control plane to an eligible machine in
one call. It runs the handover below by itself, from the copy that moves. The move goes through
these states, in this order:
- checking: the checks of
control/eligible. The machine also needs an address of its own, not only its tunnel, and a key. Only one move runs at a time, and a control plane with more than one copy over one store does not move. - receiving: the copy seals the control key to the machine's own key (HPKE, as a secret
is sealed) and asks its host
control/receiveon channel 0. The host opens the key, keeps it as~/.agents-control/control-key(0600), sets the copy's old store aside, and starts the copy again empty, to receive, at the address that the check found (agents-control.service.d/20-receive.conf). The key is never in clear in a store or on the wire. A control-only machine answerscontrol/receivetoo. - frozen: the old copy changes no record.
- copying: the store goes to the new copy over a handover session, and the new copy takes
over. The records go in batches of at most 1,000 records or 4 MiB (
store/putMany), and the check reads their hashes 2,000 keys a call (store/sums), so the time frozen is about 2 round trips for each 1,000 records, not 2 for each record (#7394): 5,000 records at 50 ms a round trip are frozen for under a second, and 40,000 for about 3 s, plus the time to read and send the bytes. - forwarding: when the new address is not the old one, the old copy sends each member to the new one, for 30 days at most. Dragon Rider changes no DNS record. done: the same address.
The call answers once the checks pass. control/moveChanged tells the admins each step, and,
during the copy, the records copied and the total every 2 s at most (#7395); only the admins
hear those counts, and the store keeps the steps. control/eligible says about how long a move
keeps the control plane frozen (frozenSeconds), from the store's size and the measures above
on a link of 50 ms a call and 10 MiB/s, so the confirmation says it; while it is frozen it
refuses every change. control/moves/list gives the newest 20 moves (v1/moves/, kept 90
days). A client reads the
list when it connects, and then each step from control/moveChanged. The list writes nothing;
each write of a move deletes the moves past those bounds. A step that fails
before the new copy takes over leaves the old copy serving, and the move says which step failed
and why. The audit says who started the move.
A client is a screen: the Dragon Rider window on a Mac, Dragon Rider on an iPhone or iPad, or a browser on the Mac that runs the control plane. A client runs nothing. It shows what the machines hold and passes on what you type and click.
The control plane sits between them. Every machine and every client connects to it, and it sends each request to the machine it concerns and each update to the clients that should hear it. A client never connects to a machine on another machine directly, and a machine never needs to be reached: it connects out, like a client does. The one exception is the same machine: the window on a Mac reaches that Mac's own machine directly (see The window and this Mac's machine).
So a server you add once is seen by every window and phone, with nothing to set up on each one, and who may do what is decided in one place.
Every arrow points the way its connection is made. Everything connects out to the control plane, and nothing connects in to a machine.
┌───────────────────────── CLIENTS ──────────────────────────┐
│ │
│ Agents window (Mac) Agents (iPhone, iPad) │
│ runs no agent a browser on this Mac │
│ each may do everything │
└─────────────┬──────────────────────────────┬───────────────┘
│ wss://, paired by code │ wss://
▼ ▼
┌──────────────────────────── CONTROL PLANE (yours) ──────────────────────────────────┐
│ │
│ optional load balancer, such as Caddy, ending TLS │
│ │ │
│ ┌──────▼───────┐ copies link ┌──────────────┐ one or more copies: │
│ │ copy A │◄───────────────►│ copy B │ - a channel for each │
│ │ │ to each other │ │ client and machine pair │
│ └──────┬───────┘ └──────┬───────┘ - checks each client's │
│ └──────────────┬─────────────────┘ key, and nothing else │
│ ▼ │
│ ┌─────────────────────┐ who is paired, and of what kind; which │
│ │ store: folder or S3 │ machines there are; codes not yet used; │
│ └─────────────────────┘ settings │
└──────────────▲───────────────────────────────▲──────────────────────────────▲───────┘
│ connects out, joined │ connects out │ connects out
│ by a join code │ │
┌──────────────┴────────────┐ ┌──────────────┴────────────┐ ┌─────────────┴──────────────┐
│ MACHINE: this Mac │ │ MACHINE: another Mac │ │ MACHINE: a Linux server │
│ Agents (one app) │ │ Agents, connected to │ │ agentsd, installed over │
│ ├ agentsd │ │ another control plane │ │ ssh or by one command │
│ └ agents-control, if the │ │ └ agentsd │ │ │
│ control plane runs here│ │ │ │ │
│ folders, agents, │ │ folders, agents, │ │ folders, agents, │
│ runtimes, files, terminals│ │ runtimes │ │ runtimes │
└───────────────────────────┘ └───────────────────────────┘ └────────────────────────────┘
Your agents, their conversations, files and terminals, and the runtimes' sign-ins stay on the machine they belong to. The control plane's store only remembers who is paired and which machines there are.
People¶
Every client belongs to a person, and every machine (a machine) to one user (#994). A person reaches only their own machines: the control plane opens a client's channels only to its person's machines, and a call to another person's machine is answered as if there were no such machine. The first person is the local owner, who holds the control plane's key, and an admin. With one person, everything below is as it was. See People and machines.
One grant for every client¶
Each client is paired once, with a code the control plane shows, and may then do everything its person's other clients may: start and stop agents on their machines, open terminals, sign runtimes in, add and remove machines and folders, set helper limits, and pair or forget other clients. A window, an iPhone, an iPad and a browser are all the same in this.
There used to be two grants, operator and device, and a phone was a device. That was retired on 2026-10-02 (#111): a device could already start agents and open terminals on any machine, so it could run any command there, and the split protected the machines very little while asking a question on every pairing sheet. What it cost, accepted: a lost phone or a hijacked browser tab can pair more clients, forget yours, add machines or sign runtimes in, until you forget it from another screen.
What still tells clients apart is who they are, not what they may do. A phone's or a browser's connection to a machine is bound to that one client: it reports where you are as itself, and can't speak as another. An agent's own connection to its machine still reaches only its tools, and anything else on the Mac reaches nothing.
You can forget a client in Settings ▸ Control plane ▸ Clients; forgetting cuts it off at once, at home and away. Any client may be forgotten, the last one too: Dragon Rider, on the control plane's own Mac, can always make a new code.
Older builds keep working. A record, a code or a channel still carries the word grant,
always operator, which an older copy, machine, Remote or web page reads as everything; a
record written before as device is read as a full client. An older window that tries to
change a grant is told there is nothing to change.
What the control plane can and cannot do¶
Each person has a machine lock (#3399, specs/3399-machine-lock): a chain of entries,
each signed by one of the person's own devices, that says which clients and which machines
are theirs. The control plane keeps the chain but cannot sign an entry. Each client and each
machine checks the chain and keeps the newest entry it saw, so a chain that the control
plane changed, put in another order or kept back does not check.
A machine that holds its person's lock takes a request from the control plane only when a key of the lock vouches for it (#3492):
- A channel. When a client first calls a machine on a connection, it opens a channel
with
lock/hello: a new ECDH key, signed with its lock key. The machine answers with one of its own, signed with its machine key, and each checks the other against the lock. Every request and every answer then carries an HMAC and a count. The machine refuses a request with no HMAC, a bad one, or a count it saw before. The client takes an answer only with the machine's HMAC, so the control plane cannot forge what a machine said. - A signed request. A prompt or a start for a machine that is away is signed by the client itself, and the control plane keeps it as it came. The machine takes it once, when it connects, at most a day later.
- Another of your machines. When an agent starts a session on another of your machines
(
start_session), calls the session it started, or sends or brings back a folder, its machine signs the call. The other machine takes only those calls from a machine, not a terminal or any other file. - What the control plane asks for itself. It may ask a machine whether it is there, for its list of sessions and worktrees (the Console, a project, a report), for a backup before you remove it, and to clone the folders of a new workspace. None of these starts an agent, runs a command or reads a file.
Everything else is refused with notInLock (-32104). A machine with no lock yet takes what
it took before, so nothing stops working until the person has a lock. A device that is not
in the lock yet is refused until one of the person's other devices approves it.
When every device is lost (#3493): the first device of a lock offers a recovery key
once the lock has a machine other than this Mac's own host (#4248), and shows it once, for a
password manager. Typed on a new device (Use Recovery Key), it adds that
device to the lock. With no recovery key either, Start a New Lock drops the old lock and
signs a new one; each machine refuses the new lock until you run agentsd lock reset in its
shell, and then asks to join it. Only the machine's own account can reset its lock: the
command talks to daemon.sock, and a channel from the control plane is refused.
| It can | It cannot |
|---|---|
| route, or refuse to route, any request | add a client or a machine to a lock |
| read requests and answers (they are signed, not encrypted) | send a request that a machine takes as a client's |
| keep the chain, and keep it back from a machine | change or remove an entry, or put one in a different order |
| sign the org policy, which can only make a machine do less | give a client a machine key of its own to seal to |
| ask a machine for its sessions and worktrees, a backup, or a clone, as above | start an agent, run a command or read a file on a machine |
| fire a workflow that you set up on a machine, when its event comes | change what a machine answers, or show a card it did not raise |
| serve a changed web page (below) | sign with a Mac's or a phone's key |
The limits.
- The web page. The control plane serves the web page. A control plane that serves a changed page can use that browser's key while the page is open. Every web product with keys in the browser has this limit. The Mac window and the Remote are signed apps, so they do not have it.
- Who did it, in a machine's audit, names the person by the control plane's word. The device comes from the lock (#3543): each device's entry names its client id, so the machine writes the device that opened the channel, and refuses a channel that the control plane opened for another device. A device added before #3543 is still named by the control plane until it joins again.
- A denial of service. The control plane can always refuse to route anything.
daemon.sock, on the machine itself, is not checked: only the machine's own user reaches it.
The window's direct socket on a Mac is checked as a channel from the control plane is.
Key lifetimes and rotation¶
Key lifetimes and rotation¶
A client's or a machine's key expires 90 days after it was paired (#997). The control
plane renews it while it is in use: on each connection, and every hour for a connection
that stays open, once the key is in its last 30 days. Every connection already proves the
key, so renewal needs nothing from the client and shows no screen. A key that nobody used
for 90 days is refused as expired. The hourly sweep then forgets a client whose key
expired (#6757), and removes such a machine unless it is linked to a provider's workspace (#6758). The Remote and the web page then ask for a new code, as
they do for a forgotten one. A key paired before this counts from when it was last used.
agents-control serve --key-days N (or AGENTS_CONTROL_KEY_DAYS) sets a shorter
lifetime; 90 days is the most.
An admin can rotate the control plane's own key with Rotate Control Key… in Settings ▸ People, on the Mac, the Remote and the web page. Nobody pairs again:
- The control plane makes a new key, keeps it where it kept the old one (the key file, or sealed in the store), and keeps the old one beside it for 30 days.
- It closes every connection. Each client and machine connects again with the key it
trusts, and its
okgives it the new key, with a proof that only the holder of the old key could make. From then on it trusts the new key. - A client or machine that was away connects the same way when it is back. One away for more than 30 days pairs again.
A control plane that is given its key (AGENTS_CONTROL_KEY or --key-fd) has nowhere to
keep a new one, and one that runs as several copies proves itself to its copies with the
key. Both refuse to rotate, and say why. Rotating does not change who anyone is: the local
owner is still the admin.
Policy¶
An organisation can have one policy: a document of rules that is a ceiling above each
person's own settings (#998, spec specs/998-org-policy/). Only an admin can change it. A
control plane with no policy works as before: it tells each machine "no policy", and
nothing changes.
- One document. The store keeps it at
v1/policy.json, with the signature inv1/policy.sig. Each version is also kept, as it was, inv1/policy/versions/(the newest 100, each for 90 days after it was replaced), so that an admin can see what each change did. - Signed by the control key. Each change is one version higher, and the control plane signs it with its key (ECDSA P-256, the key that machines already trust). Any copy can send the signed policy without the key. At a key rotation, the control plane signs the policy again with the new key.
- Sent to every machine. A machine that says the capability
host.policy/1gets the policy on its channel 0 when it connects, and within 5 seconds of each change, on every copy. It tells the control plane which version it keeps (machine/policyApplied). A machine that does not say the capability gets nothing. - Only an admin changes it.
policy/setsaves the rules, and fails when another admin saved first.policy/stopAllturns the kill switch on or off.policy/raiseraises one person's budget for today (UTC). The audit records each of them. Every person can read the rules in force withpolicy/mine. - Machines that do not follow it. When the policy sets
requireFollowing, the control plane refuses to start work (a new agent, a prompt, a fork) on a machine that has not kept the current version. The error ispolicyRefused(-32076), with the reasonupdate.
The fields are in Policy. Each machine enforces the rules itself, also when it is offline; that part, the Set by your organisation line on each client, the Console page and the MDM pin come in later steps of #998.
A browser on this Mac¶
The control plane on a Mac has a second, smaller listener: plain HTTP on the loopback address only, at http://localhost:8792. It serves the web page, which is built into Dragon Rider and checked against a list of its files' hashes, and takes the page's WebSocket. Nothing else on the network can reach it. It is off by default (#4923): Serve Dragon Rider to browsers on this Mac in Settings ▸ Control plane turns it on.
A browser that pairs there becomes a client of the browser kind, with a key of its own
that script can use but not read. A browser key works only on that listener, and a window's
or phone's key only on the HTTPS address, so neither can stand in for the other. Each proof
of a key is bound to the address it was made for. The listener answers only a request
addressed to localhost on its own port, and a WebSocket only from its own page. So a
website you visit can't use it, by DNS trickery or otherwise. The page sets no cookies and
relies on nothing the browser sends by itself.
What someone holding a browser's session could do, in brief:
- Script running in the page, such as a malicious extension, can do whatever the window can while the page is open: on a machine that includes running commands, and at the control plane pairing or forgetting clients and adding machines. The page draws nothing an agent wrote as HTML, and loads nothing from anywhere else. Forgetting the browser stops it at once.
- A copy of the browser's profile on another computer can do nothing: the listener is on loopback only.
- Another account on this Mac can reach the listener, but has no key, and a code works once, for five minutes.
- A website can do nothing: its requests are refused on their address and origin, and it has no key.
With the control plane elsewhere¶
When the control plane runs elsewhere, this Mac's machine serves the page instead, with the same
listener: the same address checks, the same list of files and the same origin rule. The machine
can't check a browser's key, because that needs the control plane's private key, which a machine
never has. So for each page, the machine opens a socket of its own to the control plane and proves
itself there as a machine that carries a page, from its loopback listener on a given port. The
page's own exchange then runs on that socket, with the control plane, bound to
localhost on that port.
That is a rule of trust: the control plane takes the machine's word that the socket came in on
the machine's loopback listener. It gives a machine nothing new. A machine can carry only the sessions
of browsers that paired at its own localhost address, because only the browser's key can
prove itself there, and a machine already reads and answers everything its own agents do. See specs/1480-local-page-on-agentsd/.
Since every client may do everything (#111), the listener's address and origin checks and the key that can't be read are what keep a browser's session its own. Serving the page at a public address, for a browser elsewhere, waits on issue #61.
The window and this Mac's machine¶
The window on a Mac talks to that Mac's own machine over a local socket, not out to the control plane and back. It is quicker, and when the control plane cannot be reached, the window still works with the agents on this Mac.
The control plane is still the authority for who may connect. It tells each machine which windows are paired, with their keys, and the machine keeps that list for when the control plane is away. A window proves its own key to the machine, as it does to the control plane. Forget a window, and its machine cuts it off at once, as the control plane does.
Everything else is as before. What the window does on the local path, the machine tells every client, those through the control plane too, so every other screen sees the same thing. The window still uses the control plane for every other machine, for pairing, and for the control plane's own settings.
The socket is in a folder that only Dragon Rider can reach (its app group), and is named by the control plane's key, so a second control plane on the same Mac has a socket of its own. When it is not there, the window goes through the control plane as before. The iPhone, the iPad and a browser always go through the control plane for now.
Copies and the store¶
The control plane itself remembers little: the clients, the machines, the codes it has handed out, and which of its copies is holding each machine's connection. That is its store. It is either a folder or an S3-compatible bucket. On a Mac, it is always a folder on that Mac. Nothing else, no database, is needed. Your agents and their conversations are not in it: they stay on their machines.
A copy is one running control plane. Because everything a copy needs to remember is in the store, a copy holds only live connections, and any number of copies can share one store. Any copy will take any client or machine, and a request for a machine held by another copy is passed across. A code shown by one copy works at any other, once.
Every copy is given the same private key, which proves to clients and machines that they have reached your control plane and not someone else's. That key is never written to the store in clear: whatever runs the copies hands it to each one as a secret, or a cloud machine's KMS seals it in the store.
Back up and restore¶
A copy of the store is not a backup on its own. A restore also needs the control key (or,
on a cloud machine, the KMS key that sealed it), the key that seals secrets, and the
certificate that devices are pinned to. Without the key, the restored control plane does not
start; without the certificate, every device must pair again. agents-control backup puts
all of them into one folder, and agents-control restore puts them back into a new home:
see Back up and restore a control plane.
Where to run it¶
There are two ordinary shapes.
On this Mac. This is what Dragon Rider does when you first open it. Dragon Rider is a free download from us, not in the App Store. It runs this Mac's machine and a single copy of the control plane, kept running by macOS with every window closed. Its store is always a folder on this Mac (a bucket is for a control plane in the cloud, #4227). This is the shape for one person at home, and it needs no sign-in (#4224).
The cost is that the Mac is the control plane. While it sleeps, or is away from your network, no window or device can reach any of your agents, including those on servers. Agents on servers keep working all the same; you just cannot see them until the Mac is back.
Several copies with a bucket. The control plane also runs as a container on Linux. Run two or more copies on hosting you rent, with one bucket for their store, behind any load balancer that passes WebSockets through. If one copy stops, the clients and machines that were on it reconnect to another within seconds. This is the shape for staying up while your Mac sleeps. The copies are for staying up, not for load: the control plane is sized for one person, with a handful of screens and up to about twenty machines.
Connect to another one later. In Settings ▸ Control plane ▸ Connect to Another…, choose Sign In to agentloops.dev for Hosted, or Use a Code… for a control plane that you run. The code is a client code from that control plane's Settings ▸ Clients ▸ Pair a Mac…. This Mac's machine then joins that control plane, the window pairs with it, and the control plane on this Mac stops. Your sessions stay on this Mac, and its records are not copied. Use This Mac Only in the same place goes back: it starts the control plane on this Mac again, with the store it had.
Either way it is yours. Nothing passes through a service we run, and the control plane has one address, a name, that every code carries.
When the control plane is down¶
When no copy can be reached, no client can reach a machine on another machine. The window says Can't reach the control plane, names the address it expected, and shows what it last knew rather than an empty list. The window still works with this Mac's own machine, and the strip says so.
Nothing stops on the machines. An agent that was working carries on and finishes. A question it asks waits on its machine until a client is back to answer it. The tools an agent is given talk to the machine on its own machine, never through the control plane, so they keep working too. When a copy is back, machines and clients reconnect by themselves, and every client catches up on what happened meanwhile.
When one copy of several stops, the connections it held move to the others. A machine is shown offline only for as long as that takes, and a request made in the gap is answered afterwards or refused with a reason, never lost without a word.
A machine that loses its own network keeps its agents working in the same way, and reconnects when the network returns.
A machine that has not joined yet tries the same way. Its join code is spent only by a join that worked, so a first try that fails, because the control plane isn't up yet or its address doesn't resolve yet, is tried again on the same backoff, and at once on a wake or a network change. Until it joins, Settings ▸ Machines ▸ This Mac and Settings ▸ Control plane say Couldn't join the control plane, with the reason. The address in every code is this Mac's Bonjour name (System Settings ▸ General ▸ Sharing ▸ Local hostname), the one other machines on the network can resolve, not its Unix host name, which a managed Mac may set to something nothing answers for. A request for a machine that is offline is refused at once with that reason, rather than left to time out.
Starting machines¶
A machine that stops (a cloud machine turned off, a container stopped) is offline like any other, and nothing reaches it. When it runs on a provider's workspace, the control plane can start it again. It asks a machine provider (the command provider, run as an MCP server), and then waits for the machine to connect. See Start machines from Dragon Rider.
Providers run on the control plane, not on a machine, because the machine is what is down. Their
secrets stay in the control plane's own folder, never in its store. A machine linked to a
workspace adds three states to the usual ones: stopped, starting and stopping.
Every client draws them, from the same machines/list and control/hostChanged as the rest.
A prompt or a new agent for a stopped workspace's machine is kept by the control plane, in its store, and the workspace is started. When the machine connects, the control plane sends each kept request to it in order, as the client that sent it, with the same id the client would have retried with, so it is done once. Nothing else is kept: any other request for a stopped machine is refused, and says it is stopped.
A machine also tells the control plane, on its own channel, whether it is idle: no turns, no questions waiting and no shells open. The control plane counts down each linked machine's stop when idle from that, and stops the workspace through its provider when the time is up. The machine's own clock isn't used.
With its idle status, a machine also sends the time and name of its next scheduled workflow. The control plane keeps the last one on the machine's link. While the workspace is stopped, it gives it a wake-up call: it starts the workspace before that time, by the last measured start time plus 2 minutes (5 minutes before one is measured), once for each due time. The machine connects, and its own clock fires the workflow; the control plane decides only when the machine runs. It does not stop a machine as idle while its next workflow is due within its idle time. While the Mac that runs the control plane sleeps, no wake-up calls are made.
For now only a control plane with one copy runs providers, as only one holds ssh tunnels.
When the store is down¶
If the copies are running but cannot reach their store, the live connections carry on: you can still follow, answer and start agents. What cannot happen is anything the control plane must remember. Pairing or forgetting a client, adding a machine or removing one is refused, and the window says the control plane can't reach where it keeps its records, so nothing was changed. Nothing is ever half done.
When two copies change the same record at the same moment, for instance two windows changing one machine's settings, one change goes through and the other is refused and asked to try again. Neither is lost without a word.
Why it is built this way¶
Before the control plane, the Mac window was special. It started the daemon on this Mac, reached each server itself over ssh, and was the only thing allowed to do everything. The phone reached only the Mac, through a separate bridge, and saw only the Mac's folders. What you could reach depended on which screen you held, and pairing, permissions and routing lived in three places.
Putting one service in the middle fixes this. The apps become screens and nothing else, and the iPhone and iPad app fits in the App Store's sandbox. On a Mac, the window and this Mac's machine are one app again (#4224), but the window still starts no agent. Everything that needs a real machine happens on a machine: agents, terminals, files, git, installing runtimes, signing them in. And because machines connect out and clients connect in, a server behind a home router or a firewall joins without any port being opened to it.
The control plane speaks ordinary HTTPS and WebSockets, so any load balancer or TLS proxy can sit in front of it. Clients and machines prove who they are by signing with keys of their own when they connect. Its store is a folder or a bucket, because those are what anyone can run, and a bucket is what lets several copies share one memory without one of them being special.