oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Adding a Mac to Equipo
2
3<!-- COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) -->
4
5A Mac runner lets Equipo run checks that need macOS, such as an iOS
6app's `xcodebuild test`, on the exact commit it is judging. Equipo runs
7it as its own Mac user, so it never sees your files.
8
9You do this once per person, on the Mac, as an administrator.
10
11## The four steps
12
131. **Create the user.** In System Settings, open Users & Groups and add a
14 Standard user with "equipo" in its account name. Calling it "Paul
15 Equipo" works: macOS makes the account name `paulequipo`. Use that
16 account name below wherever it says `paulequipo`.
17
182. **Let it use Xcode's tools.** In Terminal, as yourself, run:
19
20 ```
21 sudo dscl . append /Groups/_developer GroupMembership paulequipo
22 ```
23
243. **Keep it logged in.** Log in as `paulequipo` with fast user
25 switching (the user menu in the menu bar), then switch back to your
26 own account. Leave it logged in. In System Settings, Energy, turn on
27 "Prevent automatic sleeping when the display is off" so the Mac does
28 not sleep while it is plugged in.
29
304. **Install and add it.** Switch to `paulequipo`, open Terminal and
31 paste:
32
33 ```
34 curl -fsSL https://equipo-staging.bds.oncarlos.com/install.sh | sh
35 ```
36
37 It prints a link, then "Waiting for you to approve…". Open the link
38 on your phone or any signed-in browser and tap the button to add the
39 Mac to your team within ten minutes. That's all. If Equipo is slow to
40 answer, the installer says so and keeps trying on its own.
41
42 You can also install from your own account's Terminal with
43 `sudo -iu paulequipo`, as long as `paulequipo` is logged in.
44
45After that the Mac checks itself (it tries to break out of its own
46sandbox and makes sure it can't) and then waits for work. You can see
47what it found in Equipo under Connections, Machines.
48
49## If the installer stops
50
51- **"This Mac user is an administrator"**: make `paulequipo` a Standard
52 user in Users & Groups, then paste the command again.
53- **"Equipo runs in its own Mac user so it can't reach your files"**:
54 you are logged in as someone else, or the user's account name has no
55 "equipo" in it. Switch to the Equipo user, or create one as in step 1.
56- **"This user can get into another person's home folder"**: the
57 message names the folders. As an administrator, close them with the
58 command the message shows, then paste the install command again. It
59 shuts out only the Equipo user and leaves everyone else's access as
60 it was:
61
62 ```sh
63 sudo chmod +a "paulequipo deny list,search,readattr,readextattr,readsecurity" /Users/<name>
64 ```
65
66 To undo it, run the same command with `-a` in place of `+a`.
67- **"Log in as paulequipo on this Mac"**: the runner needs the user's
68 own login session. Log in as `paulequipo` (fast user switching keeps
69 you logged in as yourself too), leave it logged in, then paste the
70 command again. Installing from a Terminal with `sudo -iu paulequipo`
71 works once that session exists.
72- **"The link expired before it was approved"** or **"Equipo turned
73 this link down"**: paste the install command again for a new link,
74 and tap it within ten minutes.
75- **"Adding this machine to Equipo failed"**: the message says what
76 went wrong, and the same lines are kept in
77 `~/Library/Logs/equipo-runner/install.log`. Paste the install command
78 again; if it fails the same way, send that file along.
79- **"The checks sandbox could not be downloaded and installed"**: the
80 Mac still works, but its checks run outside the sandbox and say so.
81 Paste the install command again when the network is back. The
82 installer brings its own Node.js and ripgrep, so nothing needs
83 Homebrew.
84
85## Good to know
86
87- A Mac runs checks for your main runner, so add your main runner
88 first. If you open the Mac's link before that, the page says so.
89
90- The Mac only runs checks while `paulequipo` is logged in and the Mac
91 is awake. When it is not, Equipo waits up to 30 minutes, then says
92 the checks could not run.
93- Checks that ran outside the sandbox are labelled "ran outside the
94 sandbox" on the task. They are never shown as a plain pass.
95- Once any check has run outside the sandbox on this Mac, every later
96 check is labelled that way too, even if the sandbox works again:
97 code that ran outside it could have changed the sandbox itself.
98 Equipo keeps that record, so it can't be cleared on the Mac. To start
99 clean, install the runner again as a new Mac user. You can see it in
100 Equipo under Connections, Machines.
101- A second person on the same Mac repeats the four steps with their own
102 Standard user with "equipo" in its account name.
103
104## Make changes on the Mac
105
106<!-- DRAFT COPY: pending review (docs/superpowers/plans/2026-11-28-mac-slice-f-copy.json) -->
107
108The Mac can make changes for work that needs a Mac, such as an iOS app. Your main runner still reviews the change. To turn this on, follow these three steps.
109
1101. **An owner switches it on.** Set `EQUIPO_MAC_ENGINEERING=1` with Equipo's other settings, then restart Equipo. Until this is on, work that needs a Mac waits. It is not made on Linux instead.
111
1122. **Close the runner user's home folder, if asked.** Claude's sign-in is stored in the runner user's home folder. Other people must not be able to open it. If the Machines page says they can, log in on the Mac as the runner user and run:
113
114```
115chmod 700 ~
116```
117
1183. **Add Claude to the Mac.** In Connections, choose Machines, then tap “Add Claude to” and your Mac's name. Sign in at Anthropic and paste the code shown there.
119
120After sign-in, the Mac runs checks before it can make changes. The checks can take up to about 50 minutes. No other work runs on the Mac while they are in progress. Connections, Machines shows each result:
121
122- F1 checks that commands Claude runs in its sandbox cannot reach the internet.
123- F2 checks that they cannot read the runner's files, its Keychain, other people's home folders, or attached drives.
124- F3 checks that they cannot find Claude's sign-in token.
125- F4 checks that when a step ends or you cancel it, everything Claude started stops too.
126- F5 checks whether Xcode can build and test inside Claude's sandbox. If it cannot, Claude makes the change without Xcode, and the Mac's checks build and test it.
127- F6 checks that Claude's file tools cannot reach those files either, even through a link.
128- F7 checks that Claude cannot use Xcode without access.
129
130The Mac makes changes only when all checks pass. F5 only decides whether Claude can use Xcode. On the Machines page, “Makes changes” says Yes when it is ready, or shows what is missing.
131
132While Claude is on the Mac, its checks run only in their sandbox. A Mac that has run a check outside its sandbox cannot hold a Claude connection. To start clean, install the runner again as a new Mac user.
133
134If the Machines page says “Restart the Mac to clear it,” the Mac could not confirm that an earlier step or Claude sign-in stopped completely, so it keeps Claude closed. Restart the Mac, then log in again as the runner user so the runner starts. An incomplete step record can also clear after the Mac's idle check.
135
136A change made on the Mac never merges by itself, even in a project that merges other changes automatically. Ready to merge waits for you to choose.
137