docsOperate

Sharing a machine

Owners and developers can open Fleet and enroll Cockpit machines. Each machine belongs to the person who enrolled it. They can share its local models with specific people and groups; recipients can use model inference without access to Fleet.

Sharing never grants file access, commands, computer control, app sessions, or workbench access. Those remain exclusive to the enrolling person. A cluster owner cannot take control of a developer's machine or change its sharing. Enrollment checks the person's current role and active state when issuing a credential and again when redeeming a pairing code.


Choose who can use the models

In FleetStored asWho the machine serves
Only meowner (the default, and the absent case)its owner
Specific people and groupspeople, with userIds and groupIdsthe listed people, and the active members of the listed active groups

Existing Everyone in this cluster shares (cluster) remain visible and continue to serve signed-in people and the cluster's own work. New shares cannot use this mode. Replace an existing broad share by choosing people and groups, or Only me. The upgrade does not change existing machine shares.

The consent lives on the machine's own row, v1:worker:registration.sharing: {mode, userIds, groupIds, pausedUserIds, pausedGroupIds, sharedAt, sharedBy}, with ids stored bare. It is a closed block — a misspelled key is refused rather than stored beside the real one — and it is written only by fleetSetSharing, which resolves the machine through the caller's own machines (see Only the owner may lend a machine).

The lists mean something only under people, and changing to Only me clears them: a share you took back leaves no names behind for a later reader to honour by mistake. Every reader maps a value it does not know to owner, so an engine older than a mode reads it as private rather than as open. A people share with no recipients admits nobody; the editor stays ready to add users and groups.

Group membership comes from the same membership rows that decide what a person can see elsewhere in the product. Removing somebody from a group, or archiving the group, ends their use of the machine on their next call, on every replica.

The replica that plans a call reads membership on every call. The replica holding a lent machine's stream re-checks every call forwarded to it, and keeps one answer per person rather than reading again each time (memql#5660): any change to a membership or a group, written on any replica, empties it everywhere, and no answer is kept longer than 30 seconds — the bound if that change never reaches the replica, because it was cut off from the others when the change was written. That is far inside the window a call already admitted is allowed to finish in (see What stopping does).


Choose sharing once, in Fleet

Open Fleet → the machine → Settings → Sharing. Turn on Share models, then open the search field under Users and groups. The picker shows five eligible recipients at a time; Load more reveals five more, and search covers the full directory. Select or unselect users and groups across searches, then use + to add the selection together. One counter shows how many are selected; the add button is disabled when none are selected. Turn sharing off to clear the recipients and keep inference private. Only the person who enrolled the machine can change this audience; cluster administration cannot volunteer somebody else's hardware.

Each recipient card shows its active calls and icon controls to pause, resume or remove sharing. These controls save immediately; opening a card offers an edit with Save and Cancel. Pausing blocks new calls through that grant after any wait for capacity; a call already running finishes. A recipient with another active direct or group grant can still use the models. Remove an entry to delete that grant; it can be searched for and added again.

Counts update through the machine's live registration feed. A call admitted through more than one grant appears in each matching card, so the counts are not additive. Counts contain no prompts or responses. A dash means the measurement is unavailable; disconnected machines show zero. Failed changes leave the saved list intact and offer a retry.

The saved audience applies automatically to subsequent calls on every replica. No Cockpit setting, file edit, restart or second confirmation is needed. A machine that is offline or has no allowed model is still unavailable; sharing does not install a model or change its allowlist. Files, commands, local apps and computer control keep their separate permissions.

Unlisted people are refused. Active members of a selected group may use the models; inactive memberships do not grant access. System work cannot use a people share. Existing cluster-wide shares remain supported, but new choices are private or specific people and groups.

Refusals about other people’s private machines report counts without exposing their registration IDs.


Who you can lend it to

The inline sharing picker offers what you can already account for, and no more:

  • The active groups you are an active member of, each with its count of active people, and
  • the active people in those groups, by display name.

If you may already read every person on the cluster — read on principal, which owners and developers hold by default and a grant can give or take away — it offers every active person, with their email, and every active group. Nobody else is ever handed an email address.

That is fleetShareDirectory(registrationId), and it answers only a machine's owner, about one of their own machines: a person with no machine cannot list anybody through it, and another person's machine id answers exactly as a made-up one does.

fleetSetSharing holds to the same answer. Under people:

  • a person or group not already on the list must be one the directory offers you, and one sentence refuses both an id that does not exist and one you may not pick, so the write is never a way to learn who is on the cluster;
  • one already on the list is not re-checked. Somebody who left your group stays on your list until you remove them; the picker names them, marked as no longer available to pick, and you can still remove them;
  • your own id is dropped rather than refused — your own machine is yours already;
  • a share names at most 50 users and groups. An empty list grants nobody access. A group is the way to lend a machine to more people than that;
  • paused recipients stay on the list, and only listed recipients may be paused.

The cluster's own work

System work — automations and cluster maintenance, with no acting person or under the cluster's own synthetic identity (system:automation:<name>, system:maintenance:<name>) — reaches only a machine lent to everyone. A machine shared with specific people never serves it, whatever its list says: a list of names is consent for those people, and the cluster's own work is nobody on the list. The routing plan says so in as many words: "Its owner has shared it with specific people, not with the cluster's own work."

An automation acting for a person is not the cluster's own work. One that runs under a listed person's borrowed authority carries their identity, and it may use every machine lent to them — lending to a person lends to all of their work, automated or not. Only an automation running as itself, under the cluster's synthetic identity, is held to machines lent to everyone, and such an identity never matches a person on a list, even when the automation's name spells somebody's id. Decided by the owner on 2026-10-04 (memql#5662); it is the behaviour the routing already had, now written down as a rule.

A deployed workflow can ask for its deployer's fleet. An automation in a package that declares @usesDeployerFleet runs as the cluster like any other, and each builtin ai call it makes is planned, admitted and counted as the person who staged the package's DSL. Only the model call borrows: what the workflow reads and writes stays what the cluster may.

  • Whose fleet. The person who pressed Deploy or Rollback for the DSL that is live, or the package's owner for an automatic deploy. A deploy that does not move the DSL does not move the person. The deploy review names the workflows that will use your machines before you confirm, and an automatic deploy whose list of them changed stops for that review. Someone resuming a run acts for themselves, on their own fleet, still on Local.
  • Fleet only. The call runs on the Local route: that person's machines first, then the ones lent to them. It never reaches a signed-in app session or a vendor, because a visitor's click must not spend a person's subscription.
  • It fails closed. No package listing the workflow's domain, more than one, no person recorded, a person who may no longer author constructs, or a Local route edited to list anything but fleet sources is a refusal, and so is every machine being asleep. Each is an ordinary ai error, which on error continue and the workflow's own failure path handle. Nothing falls back to the cluster acting.
  • Visitor text is data. The seam adds no input of its own, and the ai builtin has no tools, so an injected instruction can only change the reply's text. A workflow passing visitor text to a model passes it in the prompt's data, whose fields the prompt's body validates, never by composing it into the template.

The workflow must keep one of its deployer's machines reachable to be useful, and that is the deployer's to arrange: every_door_shut naming Local is what an asleep fleet looks like from the workflow.


What the owner sees afterwards

One sentence a week, and it is the whole surface:

This weekThe sentence
nothing ran"No calls have run on this machine this week."
only your own calls"Served 41 calls this week, all of them yours."
some were for other people"Served 41 calls this week, 12 of them for 2 other people."
... and some were the cluster's own work"Served 41 calls this week, 12 of them for 2 other people and 3 for the cluster's own work."
none were yours"Served 12 calls this week, all for 2 other people."

The sentence counts what the machine served. A call it failed, or one its caller cancelled, is not in it.

That is the ledger, and what it leaves out is the point. Somebody who lends their machine is entitled to know it is being used — and how much of its week went to other people, which is the question a lender actually asks — but not what it was used for. So the narrowing happens in the engine, at the row read, which is the last point where the full decision record is in hand and the first where the promise can be kept — not in a renderer that a later change could quietly widen.

The cluster's own work is every call with no acting person, or with the cluster's synthetic identity (an automation or a maintenance sweep) — never "another person". An automation acting under a person's borrowed authority is that person's work, and is counted as theirs. The type the fold is built on cannot express a prompt. Other people are counted and never named: the row carries calls, people, otherCalls, otherPeople, systemCalls and calls per level, and nothing else. With a one-person share the count of other people implies that person, which is inherent to any count — it tells you they used the machine, never what for.

A ledger that could not be read is not an empty ledger

If the read fails, the answer is not zero:

This week's usage could not be read. It is not that nothing ran — nobody looked.

Telling somebody who lent their machine that nobody used it is a specific claim, and a failed read is not evidence for it. The page renders that answer as a notice rather than as a quiet caption, because a count of zero and a question that went unanswered read alike in the same typeface.


What a person it is lent to sees

The machine's models appear in their catalog — in Fleet's model library, and in every place a policy chain asks whether a local model is available — with the facts routing uses about the machine: its name, whether it is online and how busy, its memory, platform and runtimes. Those are the same catalog fields a machine lent to everyone already shows everyone. They read no registration row, so they do not see its labels, history, hardware inventory or who else it is lent to.

Before epic memql#5344 a person's catalog listed their own machines only, so somebody whose only route was a colleague's machine was told no local model was available before the plan that could have served them ever ran. The catalog now lists their own machines and every machine lent to them, and decides availability from both.


What stopping does

Stopping — or removing somebody from the list, or from a group on it — takes effect on the next call. A call already running on the machine finishes.

That is not a limitation to be fixed later. Stopping mid-answer would lose work somebody is waiting for and would change nothing about the prompt already sent — the machine has it either way. The act says so at the moment it is offered, rather than in this document.


Who may use whose machine

  • The pairing user reaches their own machine without sharing. Adding a machine to Fleet unlocks local inference on it for that user's Ask, Materialize, and Nexus work. Sharing is not a gate on your own hardware.
  • Another person must be in the owner’s saved audience. A call for user B lands on user A's machine only when A shared it with everyone, with B, or with a group B is an active member of. Your own machines are always preferred first.
  • Work done under your authority is yours. An automation acting under your borrowed authority uses what is lent to you, exactly as your own calls do (see The cluster's own work).
  • A call pinned to one machine may name a machine lent to you. "Ask it something" on a machine's page, or any call that names the machine that must run it, reaches your own machines and every machine lent to you under the owner’s saved audience. A pin never falls through to another machine, and system work cannot pin: neither a call with no acting person nor one under an identity the cluster made for itself (an automation running as itself, a connector, the operator credential) may name a machine, even one lent to everyone. A pin to a machine that is not lent to you is refused with the pin's own sentence ("unavailable or not eligible for this call; check that it is yours or lent to you, online, and offers the model with the required context"), which reads the same for a machine that is offline, one that is somebody else's, and one that does not exist. Decided by the owner on 2026-10-04 (memql#5662); before that, a pin reached your own machines only.
  • System work reaches only machines lent to everyone, with the owner’s consent.
  • A @usesDeployerFleet workflow's model call is its deployer's work, on the Local route, and may not pin a machine.

When a person's own machines and a lent one could both serve a call, the person's own machines come first, always, and it is not a preference an operator can turn off. Three reasons, and the third is the one that gets missed: your own machine is the one you are paying for and whose load you can see; a lent machine belongs to somebody who agreed to help, not to be the default, and burning their GPU while your own laptop sits idle is a poor way to treat the offer; and it keeps the common case unchanged — somebody with their own machine sees exactly the routing they saw before sharing existed, so a fleet that starts sharing does not silently reroute work that was already working.

It is applied as a stable partition, not a sort key. Within each half your routing policy still decides — roundRobin still rotates, leastLoaded still rations. Own-first is a boundary between two groups rather than a new comparator inside them.

Your routing policy does not cross that boundary. The lent half is not re-ordered by it, because a routing policy expresses how you want your machines used, and applying it to somebody else's machine would let a preference travel across the ownership line this whole feature exists to hold.

Three degradations are deliberate, and all of them narrow rather than fail. A node whose store cannot read across owners serves your own machines and says nothing about anyone else's. A cross-owner read that fails does the same and logs it: your own laptop being able to serve the turn should not be refused because a read about somebody else's machine went wrong. And a membership read that answers nothing admits nobody through a group, while people listed by name are still served.

It works when the machine is on another replica, and for a year it did not

A machine's stream terminates on exactly one agent replica, and the turn that wants it is served wherever the mesh routed the request — at the default two replicas, a coin flip. The router picked the shared machine correctly and the receiving replica then resolved it through the caller's own machines, which by construction cannot contain somebody else's. So the call was refused registration_refused and surfaced as no_local_model_available — the sentence that means "your fleet is asleep", told to somebody looking at a lent machine they could see was on.

It worked exactly when the stream happened to be local. Fixed in epic memql#5327 design D10: the receiving replica admits a machine that is the caller's own or unrevoked and lent to them, resolved through the same cross-owner read the router used to pick it. The saved audience is checked again, on the receiver as well as in the router — and for a machine lent to people, the receiver asks about the verified caller and reads their groups itself. Nothing in the forwarded envelope says who is in which group.

Tool dispatch is deliberately not widened. Sharing a machine lends its GPU, not its shell: workerHost stays owner-only across the hop exactly as it is locally.

Only the owner may lend a machine

The sharing consent is written through fleetSetSharing, which resolves the machine through the caller's own machines. The underlying mutation is @serverOnly.

That is a narrowing, and it closed a real hole (memql#5327, finding M-2). The mutation's own comment asserted that the row's write guard refused any actor but the owner. It does not: v1:worker:registration declares the composite owner=..., clusterOwner tier, and the guard grants the cluster-owner escape on it — so a cluster owner could lend hardware they do not own, and un-lend hardware somebody else had lent. On the one row whose entire content is a person's consent, that escape is wrong.

Making the mutation @serverOnly closed one route and left the tier as it was. The raw insert() literal names no construct, so it never consults @serverOnly, and neither does the update { } body of an inline or authored mutation, so a cluster owner could still lend another person's machine that way, to anyone (memql#5658). The engine now refuses, at the single write chokepoint, any write that changes sharing without internal origin. That covers every caller, the owner included, because fleetSetSharing is where the people and groups named are checked. It also refuses moving an existing machine's owner, which would otherwise be the same write in two steps: take the machine, then lend it as its owner. The tier itself is unchanged, so the operator's cluster-wide view of the fleet still works, and so do the live updates behind it.

Removing a machine keeps the cluster-owner arm, and the difference is the point: offboarding somebody's laptop is an operator act the Fleet's operator view already implies, while giving their hardware to somebody is not.


Re-pairing the same machine

Each cockpit install keeps a stable machineId (under its state directory) and sends it on every Register. When you mint a new worker token for a machine that is already registered, the cluster rebinds that registration to the new token instead of creating a second row for the same install. Display names and hostnames are not the identity — two MacBooks can share a hostname.