TL;DR

  • Per-member daemons on one EC2 host were rejected: too many processes, too many credential surfaces, and upgrades could not move the fleet as one unit.
  • The host now runs one daemon that no member owns. Project access, tool policy, and which login to use follow the Run’s actor (usually the Task assignee).
  • The daemon never holds provider logins. It presents a signed proof; the host agent re-checks with the control plane and returns only that actor’s credential.

The obvious way to put agents on a shared remote host is to copy the personal-machine model: one daemon per member, each with that member’s logins. On a laptop that shape is natural. On one EC2 host shared by a team, it is the first design I threw away.

Why not one daemon per member

Process cost. Each member’s daemon brought its own children, sockets, and idle footprint. The host paid for N copies of the same binary even when only one Run was active.

Credential surface. Logins lived next to each personal daemon. Moving a Task between members meant moving or duplicating secrets. A misplaced process could see the wrong vault.

Upgrade and stop. Idle stop, health checks, and binary updates want one unit of ownership on the VM. N personal daemons meant N stop leases and N update targets, and a busy member blocked the others.

Identity mismatch. Clients that assumed “the daemon’s owner is the user” hid conversations when the host had no owner, or fell back from cloud to local for the wrong reason.

So the personal model was not adapted. It was removed.

What replaced it

The host runs one daemon. It has no owning member. Machines and environments that belonged to personal daemons are logically retired. Placement treats the host as an ownerless default that Projects and Tasks can use.

Person-shaped decisions still need a person. For a Run on that host they come from one answer: the Run’s actor. On a Task that is the assignee; otherwise the requester, then the host’s owner member. Tool policy, Project ACL, and which provider account to use all follow that actor — the same way a personal machine follows its owner.

Routing prefers the shared host when the actor has a usable cloud login, and falls back to the actor’s own local machine when they do not. Explicit local choice, full Project ACL, and assignee-computer-only bindings stay as they were.

Logins stay in the host agent vault

Provider logins for the host live in the same vault tables as other cloud logins. The daemon holds none of them. A claim on the host carries a short grant. The daemon trades that grant at a local host-agent socket for the execution credential of the member that one Run acts as.

Agents share the daemon’s OS user, so a bare request to the host agent could name anyone. The grant names one Run (or the current Task surface), and the control plane re-checks that Run on every use:

def run_credential_grant(work_id, attempt, actor_user_id, accounts):
    claim = f"run.{work_id}.{attempt}.{actor_user_id}.{accounts[0]}.{accounts[1]}"
    return f"{claim}.{_signature(claim)}"

On resolve, a changed assignee, a removed or demoted member, a revoked account, a moved surface, or a finished attempt fails. A default-account change must not silently switch to a different account. The vault opens a short read window for that member and provider only after the grant passes.

What this gives up

Rollback to per-member daemons on the same rows is not guaranteed once personal indexes and APIs are gone. Old clients that key UI on “daemon owner” need the ownerless case treated as shared, not as someone else’s machine. And every credential fetch pays a round trip through the host agent instead of reading a local file beside the process.

Those are acceptable costs for one stop target, one update target, and a credential path that cannot be pointed at another member by the daemon alone.