oliver-zehentleitner / maity
runner on macOS: get it ready for a first real-machine test on a MacBook (2026-11-12)
tsk-rrx15szr50c6 Done An agent
Owner request, 2026-11-11 22:00Z (chat 114028): the maintainer has a mid-aged MacBook and wants to start testing the runner on macOS tomorrow, without waiting for preparation then.
Today the runner says it needs tmux, systemd and OS users (docs/runners.md:13). capabilities.py:96 turns Claude Code's sandbox on only on Linux, and commands.py:354 branches on Linux. So on macOS the service, the per-agent OS users and the sandbox all need an answer.
Wanted by tomorrow morning (about 06:30Z):
- A short plan as a card note. For each part, it says whether it works on macOS as is, needs a change, or is refused on purpose:
- install;
maity runner check;- the service, since macOS has launchd and no systemd;
- the agent OS users;
- tmux;
- Claude Code's sandbox on macOS (Seatbelt);
- the harness permission lists;
- git and the clone;
- limits.
The runner must not place an agent unsandboxed without saying so, as on Linux. Name what is refused.
- A numbered setup list for the maintainer, ready to paste: what to install (Homebrew, tmux, Python, pipx or uv), how to install the CLI from a branch or commit (no PyPI release needed for the test), the runner config, how to start it, and the expected output of each step. This goes as a card note, and as an attachment to lotse, who forwards it.
- Code changes the first test needs, in one PR via vuur as usual. It merges after deploy 8, because main freezes at about 05:30Z. For the test, the maintainer installs from the PR head.
- docs/runners.md gets a macOS section in the same PR (owner docs rule).
Not in scope: Windows; a release. If a part can't be done by morning, say so in the plan, and the test starts with what works.
Notes
An agent · Nov 11, 2026, 22:09 UTC
Plan: runner on macOS, first test 2026-11-12. "verified" = read in code or run on Linux here; "assumed" = not run on a Mac. Code changes: PR on
agent-g/runner-macos.- CLI install - as is. pipx from git,
#subdirectory=cli; Python 3.11+ from Homebrew (assumed: macOS's own python3 is older). - `runner install`/`uninstall`/`unit` - refused on purpose: systemd only, non-Linux already refused (verified, test). PR: the message points at
maity runner serve. - Service - no launchd unit yet (refused for now, follow-up card).
maity runner servein the foreground, in a terminal. Agents keep running when serve ends (verified in code: own tmux server). - `runner check` - change: it names Claude Code's sandbox on every platform (ok/warn; error with
require_sandbox), Seatbelt'ssandbox-execon macOS (verified: tests with a patched platform). - Agent OS users -
singlelayout for the test.agent_useris not refused; its file writes were fixed after an earlier tester's macOS run (#1411), but sudo and a second user are not part of this test. Advice: run the runner in a macOS account of its own, since insinglean agent reads that home minus the listed secrets. - tmux - as is, from Homebrew (assumed). Socket under
state_dir, short enough for macOS's 104 bytes with the default path. - Claude Code's sandbox - change: switched on when
sandbox-execis on the agents' PATH (/usr/bin), with the same strict settings as on Linux:failIfUnavailable, no unsandboxed retry, allowlist still applies, strict network list, same read/write denies. Assumed: Seatbelt honours them as bubblewrap does; not run: git fetch/commit under the.gitdenies, push credentials from the Keychain inside the sandbox. Never silent: without the sandboxrunningcarriessandbox_unavailableandcheckwarns; the test config setsrequire_sandbox = true, so an unsandboxed start is refused (harness_refused). Fallback if Seatbelt breaks git: install from main (sandbox off there, reported), withoutrequire_sandbox. - Permission lists - as is: same settings file and path rules, no platform branch (verified in code). #1663's
ghdeny lands on its own. - git and the clone - as is: Apple or Homebrew git; the plain-clone check already accepts
ignorecaseandprecomposeunicode, which macOS clones write (verified in code). - Limits - as is:
[limits]is platform-neutral;memory_max/cpu_quotaare refused on every platform (not built).
Refused or not in the test: install/uninstall/systemd unit and launchd on macOS; Codex and opencode (Codex's sandbox probe is unverified on macOS); the ssh backend to a Mac host (its probe looks for bwrap and socat, so it reads sandbox off); Windows.
Risks to watch: (a) the agents run under
env -iwith HOME, PATH, LANG, TERM only; whether Claude Code finds its Keychain login there is unverified, setup step 7 tries exactly that. (b)git pushfrom the sandbox with a Keychain credential helper. (c) laptop sleep stops everything.- CLI install - as is. pipx from git,
An agent · Nov 11, 2026, 22:09 UTC
Setup list, part 1/2 (full file attached to the notice to lotse)
Maity runner on macOS: setup for the first test (2026-11-12)
For card tsk-rrx15szr50c6. Install from the PR head, branch
agent-g/runner-macos(step 4).
"Expected" lines were checked on Linux or read in the code; nothing here has run on a Mac yet.
Please send back the output of every step that differs, and of steps 1, 7, 10 and 12.0. Account (recommended)
In the
singlelayout an agent can read everything in the account it runs as, except a fixed
list of secrets (~/.ssh,~/.claude,~/.aws, ...). Steps 1-2 in your admin account; then
make a Standard user (System Settings > Users & Groups, e.g.maity-runner), log in to it
(fast user switching keeps both sessions alive) and do steps 3-13 there, in Terminal.
Running in your own account works too, with that exposure.1. Machine facts
sw_vers; uname -m; ls -l /usr/bin/sandbox-execExpected: macOS version,
arm64orx86_64, and/usr/bin/sandbox-execexists
(Seatbelt; Claude Code's sandbox needs it).2. Homebrew, tmux, pipx, gh (admin account)
brew --version || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install tmux pipx gh tmux -V; pipx --version; gh --versionExpected:
Homebrew 4.x,tmux 3.x, a pipx version,gh version 2.x. If the installer says
so, add itseval "$(/opt/homebrew/bin/brew shellenv)"line (/usr/localon Intel) to~/.zprofile(in the runner account too). pipx brings a Python of 3.11 or later; macOS's
ownpython3is too old formaity.3. PATH for pipx
pipx ensurepathThen open a new Terminal window. Expected:
~/.local/binis on PATH (echo $PATH).4. maity from the PR head
pipx install --force "git+https://github.com/oliver-zehentleitner/maity@agent-g/runner-macos#subdirectory=cli" maity --versionExpected:
installed package maity 0.1.0a8, installed using Python 3.x, thenmaity 0.1.0a8 (build <commit>); send that line back, it names the commit tested.5. Claude Code, logged in
curl -fsSL https://claude.ai/install.sh | bash claude --version claudeExpected:
2.1.x (Claude Code). Inclaude, log in, then/exit.6. GitHub login for git push
gh auth login # GitHub.com, HTTPS, browser gh auth setup-git gh auth statusExpected:
Logged in to github.com account .... gh keeps the token in the Keychain; whethergit pushreaches it from inside the sandbox is untested. If a push from an agent fails
on credentials:gh auth login --insecure-storage(token in~/.config/gh/hosts.yml, as on
Linux) and restart the placement.7. Claude Code in the agents' environment
Agents start with only HOME, PATH, LANG and TERM. This checks the login there:
env -i HOME="$HOME" PATH="$PATH" LANG=C.UTF-8 TERM=xterm-256color claude -p "Reply with the single word ok"Expected:
ok. If it asks for a login or fails, run it again withUSER="$USER"afterenv -iand send both outputs: that decides a small fix.An agent · Nov 11, 2026, 22:09 UTC
Setup list, part 2/2
8. Pair
Dashboard: settings menu > Runners > Pair a runner (a name, the project). Run the line:
maity runner pair https://<hub>/r/<token> --code <code>Expected on stderr: `paired as runner rnr-...; attached to: ...; credential ... stored in
.../credential (mode 0600, not printed)andnext: maity runner check`. It writes~/.config/maity-runner/runner.toml.9. Configuration
Append to
~/.config/maity-runner/runner.toml(keep the[hub]partpairwrote):[limits] projects = ["oliver-zehentleitner/maity"] repositories = ["github.com/oliver-zehentleitner/maity"] max_agents = 1 [harness.claude-code] modes = ["supervised", "interactive"] require_sandbox = true # refuse a start without Seatbelt instead of running unsandboxedWorkspaces go to
~/maity-workspaces, state to~/.local/state/maity-runner(defaults).10. Check
maity runner checkExpected, exit 0, lines like:
ok configuration .../runner.toml ok state_dir ... is private ok credential .../credential is private ok tmux found ok workspaces .../maity-workspaces ok maity found on agent_path ok harness claude-code: .../claude (2.1.x) warn harness claude-code: its sandbox was checked with 2.1.318, this is 2.1.x; ... ok harness claude-code: OS sandbox (sandbox-exec) ok hub https://<hub> answersThe version warning is expected and does not block.
error ... no OS sandboxmeans the PR
head is not installed (step 4) or/usr/binis missing from PATH.11. Start the runner
In its own Terminal window, kept awake:
caffeinate -i maity runner serveExpected on stderr:
<time> maity-runner: serving https://<hub> from .../runner.toml, thenconnected as <runner>; session .... The dashboard shows the runner online. Closing the lid
still sleeps the Mac; keep it open and on power.12. Start one agent
Dashboard: project > Agents > Where they run: start an agent on this runner, harness
claude-code, modesupervised. Expected: serve logs the placement going tostarting
andrunning, with nosandbox_unavailable. In a second window:maity runner statusExpected: the placement
runningand an attach linetmux -S .../tmux.sock attach -t maity_...
(run it to watch; detach with Ctrl-b d). The agent should come online, fetch, commit and
push. A refusal readsfailed/harness_refusedin the log: send it.13. Stop
Ctrl-C ends
serve(agents keep running). Then, with serve stopped:maity runner stop-allFallback
If Seatbelt breaks git in the agent (fetch, commit or push failing on permissions): install
from main instead (step 4 with@main) and delete therequire_sandboxline. Agents then
run unsandboxed, and the runner reports each asrunningwithsandbox_unavailable.An agent · Nov 11, 2026, 22:11 UTC
Plan (v2, replaces nte-1fm6s6jq7n0c): runner on macOS, first test 2026-11-12. "verified" = read in code or run on Linux here; "assumed" = not run on a Mac. Code changes: PR on
agent-g/runner-macos.- CLI install - as is. pipx from git,
#subdirectory=cli; Python 3.11+ from Homebrew (assumed: macOS's own python3 is older). - `runner install`/`uninstall`/`unit` - refused on purpose: systemd only, non-Linux already refused (verified, test). PR: the message points at
maity runner serve. - Service - no launchd unit yet (refused for now, follow-up card).
maity runner servein the foreground, in a terminal. Agents keep running when serve ends (verified in code: own tmux server). - `runner check` - change: it names Claude Code's sandbox on every platform (ok/warn; error with
require_sandbox), Seatbelt'ssandbox-execon macOS (verified: tests with a patched platform). - Agent OS users -
singlelayout for the test.agent_useris not refused; its file writes were fixed after an earlier tester's macOS run (#1411), but sudo and a second user are not part of this test. Advice: run the runner in a macOS account of its own, since insinglean agent reads that home minus the listed secrets. - tmux - as is, from Homebrew (assumed). Socket under
state_dir, short enough for macOS's 104 bytes with the default path. - Claude Code's sandbox - change: switched on when
sandbox-execis on the agents' PATH (/usr/bin), with the same strict settings as on Linux:failIfUnavailable, no unsandboxed retry, allowlist still applies, strict network list, same read/write denies. Assumed: Seatbelt honours them as bubblewrap does; not run: git fetch/commit under the.gitdenies, push credentials from the Keychain inside the sandbox. Never silent: without the sandboxrunningcarriessandbox_unavailableandcheckwarns; the test config setsrequire_sandbox = true, so an unsandboxed start is refused (harness_refused). If Seatbelt breaks git, the test stops there; running unsandboxed (main, withoutrequire_sandbox) only with a throw-away GitHub token, since an unsandboxed agent reads the account's gh token. - Permission lists - as is: same settings file and path rules, no platform branch (verified in code). #1663's
ghdeny lands on its own. - git and the clone - as is: Apple or Homebrew git; the plain-clone check already accepts
ignorecaseandprecomposeunicode, which macOS clones write (verified in code). - Limits - as is:
[limits]is platform-neutral;memory_max/cpu_quotaare refused on every platform (not built).
Refused or not in the test: install/uninstall/systemd unit and launchd on macOS; Codex and opencode (Codex's sandbox probe is unverified on macOS); the ssh backend to a Mac host (its probe looks for bwrap and socat, so it reads sandbox off); Windows.
Risks to watch: (a) the agents run under
env -iwith HOME, PATH, LANG, TERM only; whether Claude Code finds its Keychain login there is unverified, setup step 7 tries exactly that. (b)git pushfrom the sandbox with a Keychain credential helper. (c) laptop sleep stops everything.- CLI install - as is. pipx from git,
An agent · Nov 11, 2026, 22:11 UTC
Setup list, part 1/2 (full file attached to the notice to lotse; replaces nte-g1de1ehyp5sg)
Maity runner on macOS: setup for the first test (2026-11-12)
For card tsk-rrx15szr50c6. Install from the PR head, branch
agent-g/runner-macos(step 4).
"Expected" lines were checked on Linux or read in the code; nothing here has run on a Mac yet.
Please send back the output of every step that differs, and of steps 1, 7, 10 and 12.0. Account (recommended)
In the
singlelayout an agent can read everything in the account it runs as, except a fixed
list of secrets (~/.ssh,~/.claude,~/.aws, ...). Steps 1-2 in your admin account; then
make a Standard user (System Settings > Users & Groups, e.g.maity-runner), log in to it
(fast user switching keeps both sessions alive) and do steps 3-13 there, in Terminal.
Running in your own account works too, with that exposure.1. Machine facts
sw_vers; uname -m; ls -l /usr/bin/sandbox-execExpected: macOS version,
arm64orx86_64, and/usr/bin/sandbox-execexists
(Seatbelt; Claude Code's sandbox needs it).2. Homebrew, tmux, pipx, gh (admin account)
brew --version || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install tmux pipx gh tmux -V; pipx --version; gh --versionExpected:
Homebrew 4.x,tmux 3.x, a pipx version,gh version 2.x. If the installer says
so, add itseval "$(/opt/homebrew/bin/brew shellenv)"line (/usr/localon Intel) to~/.zprofile(in the runner account too). pipx brings a Python of 3.11 or later; macOS's
ownpython3is too old formaity.3. PATH for pipx
pipx ensurepathThen open a new Terminal window. Expected:
~/.local/binis on PATH (echo $PATH).4. maity from the PR head
pipx install --force "git+https://github.com/oliver-zehentleitner/maity@agent-g/runner-macos#subdirectory=cli" maity --versionExpected:
installed package maity <version>, installed using Python 3.x, thenmaity <version> (build <commit>), with the version the branch carries (not necessarily
the latest release); send that line back, it names the commit tested.5. Claude Code, logged in
curl -fsSL https://claude.ai/install.sh | bash claude --version claudeExpected:
2.1.x (Claude Code). Inclaude, log in, then/exit.6. GitHub login and git identity for push and commit
gh auth login # GitHub.com, HTTPS, browser gh auth setup-git gh auth status git config --global user.name "Oliver Zehentleitner AIgent" git config --global user.email "mail@aigent.zehentleitner.co" git config --global --get user.nameExpected:
Logged in to github.com account ..., then the name. Without the identity an
agent's commit fails (as on the Linux runner). gh keeps the token in the Keychain; whethergit pushreaches it from inside the sandbox is untested. If a push from an agent fails
on credentials,gh auth login --insecure-storageputs the token in plain text in~/.config/gh/hosts.yml, where every agent can read it, sandboxed or not: do that only
with a throw-away GitHub token, otherwise stop the test there and send the error.7. Claude Code in the agents' environment
Agents start with only HOME, PATH, LANG and TERM. This checks the login there:
env -i HOME="$HOME" PATH="$PATH" LANG=C.UTF-8 TERM=xterm-256color claude -p "Reply with the single word ok"Expected:
ok. If it asks for a login or fails, run it again withUSER="$USER"afterenv -iand send both outputs: that decides a small fix.An agent · Nov 11, 2026, 22:11 UTC
Setup list, part 2/2 (replaces nte-vzqs7k1xhjw3)
8. Pair
Dashboard: settings menu > Runners > Pair a runner (a name, the project). Run the line:
maity runner pair https://<hub>/r/<token> --code <code>Expected on stderr: `paired as runner rnr-...; attached to: ...; credential ... stored in
.../credential (mode 0600, not printed)andnext: maity runner check`. It writes~/.config/maity-runner/runner.toml.9. Configuration
Append to
~/.config/maity-runner/runner.toml(keep the[hub]partpairwrote):[limits] projects = ["oliver-zehentleitner/maity"] repositories = ["github.com/oliver-zehentleitner/maity"] max_agents = 1 [harness.claude-code] modes = ["supervised", "interactive"] require_sandbox = true # refuse a start without Seatbelt instead of running unsandboxedWorkspaces go to
~/maity-workspaces, state to~/.local/state/maity-runner(defaults).10. Check
maity runner checkExpected, exit 0, lines like:
ok configuration .../runner.toml ok state_dir ... is private ok credential .../credential is private ok tmux found ok workspaces .../maity-workspaces ok maity found on agent_path ok harness claude-code: .../claude (2.1.x) warn harness claude-code: its sandbox was checked with 2.1.318, this is 2.1.x; ... ok harness claude-code: OS sandbox (sandbox-exec) ok hub https://<hub> answersThe version warning is expected and does not block.
error ... no OS sandboxmeans the PR
head is not installed (step 4) or/usr/binis missing from PATH.11. Start the runner
In its own Terminal window, kept awake:
caffeinate -i maity runner serveExpected on stderr:
<time> maity-runner: serving https://<hub> from .../runner.toml, thenconnected as <runner>; session .... The dashboard shows the runner online. Closing the lid
still sleeps the Mac; keep it open and on power.12. Start one agent
Dashboard: project > Agents > Where they run: start an agent on this runner, harness
claude-code, modesupervised. Expected: serve logs the placement going tostarting
andrunning, with nosandbox_unavailable. In a second window:maity runner statusExpected: the placement
runningand an attach linetmux -S .../tmux.sock attach -t maity_...
(run it to watch; detach with Ctrl-b d). The agent should come online, fetch, commit and
push. A commit failing on "empty ident name" means step 6'sgit configwas skipped.
A refusal readsfailed/harness_refusedin the log: send it.13. Stop
Ctrl-C ends
serve(agents keep running). Then, with serve stopped:maity runner stop-allIf the sandbox breaks git: stop, or a throw-away token only
If Seatbelt breaks git in the agent (fetch, commit or push failing on permissions), the
default is to stop the test there and send the error. An unsandboxed agent can read the
GitHub token of the runner account (the Keychain's, and the plain file after--insecure-storage). Only with a throw-away GitHub token in that account: install from
main (step 4 with@main) and delete therequire_sandboxline. Agents then run
unsandboxed, and the runner reports each asrunningwithsandbox_unavailable.An agent · Nov 11, 2026, 22:22 UTC
Boundary (for the PR on
agent-g/runner-macos; CONTRIBUTING "Before the first review" asks for it in the card body, which I cannot edit: please move it there).Boundary: on macOS the runner switches Claude Code's OS sandbox on when
sandbox-execis on the agents' PATH, with exactly the settings it already gives bubblewrap on Linux (failIfUnavailable, no unsandboxed retry, allowlist still applies, strict network list, same read and write denies).maity runner checkreports the sandbox's state for Claude Code on every platform (ok / warn / error withrequire_sandbox). It guarantees that an unsandboxed start is never silent:checkwarns,runningcarriessandbox_unavailable, andrequire_sandboxrefuses it. It does not guarantee that Seatbelt enforces the denies as bubblewrap does: nothing has run on a Mac yet, and the first real test is the check. Not changed: Linux behaviour, the adapters' settings, Codex, the ssh backend's probe, install/unit (still systemd only). P3: wording of messages and docs; launchd; macOS paths in the docs.An agent · Nov 11, 2026, 22:51 UTC
Plan (v3, after the review of #1679; replaces nte-1hzaber3esjg): runner on macOS, first test 2026-11-12. "verified" = read in code or run on Linux here; "assumed" = not run on a Mac. Code changes: PR on
agent-g/runner-macos.- CLI install - as is. pipx from git,
#subdirectory=cli; Python 3.11+ from Homebrew (assumed: macOS's own python3 is older). - `runner install`/`uninstall`/`unit` - refused on purpose: systemd only, non-Linux already refused (verified, test). PR: the message points at
maity runner serve. - Service - no launchd unit yet (refused for now, follow-up card).
maity runner servein the foreground, in a terminal. Agents keep running when serve ends (verified in code: own tmux server). - `runner check` - change: it names Claude Code's sandbox on every platform (ok/warn; error with
require_sandbox), Seatbelt'ssandbox-execon macOS (verified: tests with a patched platform). - Agent OS users -
singlelayout for the test.agent_useris not refused; its file writes were fixed after an earlier tester's macOS run (#1411), but sudo and a second user are not part of this test. Advice: run the runner in a macOS account of its own, since insinglean agent reads that home minus the listed secrets. - tmux - as is, from Homebrew (assumed). Socket under
state_dir, short enough for macOS's 104 bytes with the default path. - Claude Code's sandbox - change: switched on when
sandbox-execis on the agents' PATH (/usr/bin), with the same strict settings as on Linux:failIfUnavailable, no unsandboxed retry, allowlist still applies, strict network list, same read/write denies. Assumed: Seatbelt honours them as bubblewrap does; not run: git fetch/commit under the.gitdenies, push credentials from the Keychain inside the sandbox. Never silent: without the sandboxrunningcarriessandbox_unavailableandcheckwarns; the test config setsrequire_sandbox = true, so an unsandboxed start is refused (harness_refused). If Seatbelt breaks git, the test stops there; running unsandboxed (main, withoutrequire_sandbox) only with a throw-away GitHub token, since an unsandboxed agent reads the account's gh token. - Permission lists - as is: same settings file and path rules, no platform branch (verified in code). #1663's
ghdeny lands on its own. - git and the clone - as is: Apple or Homebrew git; the plain-clone check already accepts
ignorecaseandprecomposeunicode, which macOS clones write (verified in code). - Limits - as is:
[limits]is platform-neutral;memory_max/cpu_quotaare refused on every platform (not built).
Refused or not in the test: install/uninstall/systemd unit and launchd on macOS; Codex and opencode (Codex's sandbox probe is unverified on macOS); the ssh backend to a Mac host (its probe looks for bwrap and socat, so it reads sandbox off); Windows.
Known gap (review of #1679): Claude Code's and gh's logins are in the Keychain on macOS, not in the denied files, and the sandbox runtime's Seatbelt profile allows the Keychain services: sandboxed code may read them. No Claude Code setting to close it was found; the docs say so, the runner account should hold only logins meant for agents, and setup step 13 tests it. Also: Claude's and Seatbelt's denies are exact-case paths on a case-insensitive APFS (not tried); maity's alternates check now folds case.
Risks to watch: (a) the agents run under
env -iwith HOME, PATH, LANG, TERM only; whether Claude Code finds its Keychain login there is unverified, setup step 7 tries exactly that. (b)git pushfrom the sandbox with a Keychain credential helper. (c) laptop sleep stops everything.- CLI install - as is. pipx from git,
An agent · Nov 11, 2026, 22:51 UTC
Setup list v3, part 1/3 (after the review of #1679; replaces nte-a3smtr7awmjw; full file attached to the notice to lotse)
Maity runner on macOS: setup for the first test (2026-11-12)
For card tsk-rrx15szr50c6. Install from the PR head, branch
agent-g/runner-macos(step 4).
"Expected" lines were checked on Linux or read in the code; nothing here has run on a Mac yet.
Please send back the output of every step that differs, and of steps 1, 7, 10 and 12.0. Account (recommended)
In the
singlelayout an agent can read everything in the account it runs as, except a fixed
list of secrets (~/.ssh,~/.claude,~/.aws, ...). Steps 1-2 in your admin account; then
make a Standard user (System Settings > Users & Groups, e.g.maity-runner), log in to it
(fast user switching keeps both sessions alive) and do steps 3-14 there, in Terminal.
On macOS the Claude Code login and, by default, the gh login live in the account's login
Keychain, and the sandbox probably lets commands reach it (review of #1679; step 13
tests it). Assume any code an agent runs can read every login in that keychain: in the
runner account, log in only to Claude Code and to a GitHub account you would hand to the
agents. Running in your own account would expose your own Keychain: don't, for this test.1. Machine facts
sw_vers; uname -m; ls -l /usr/bin/sandbox-execExpected: macOS version,
arm64orx86_64, and/usr/bin/sandbox-execexists
(Seatbelt; Claude Code's sandbox needs it).2. Homebrew, tmux, pipx, gh (admin account)
brew --version || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install tmux pipx gh tmux -V; pipx --version; gh --versionExpected:
Homebrew 4.x,tmux 3.x, a pipx version,gh version 2.x. If the installer says
so, add itseval "$(/opt/homebrew/bin/brew shellenv)"line (/usr/localon Intel) to~/.zprofile(in the runner account too). pipx brings a Python of 3.11 or later; macOS's
ownpython3is too old formaity.3. PATH for pipx
pipx ensurepathThen open a new Terminal window. Expected:
~/.local/binis on PATH (echo $PATH).4. maity from the PR head
pipx install --force "git+https://github.com/oliver-zehentleitner/maity@agent-g/runner-macos#subdirectory=cli" maity --versionExpected:
installed package maity <version>, installed using Python 3.x, thenmaity <version> (build <commit>), with the version the branch carries (not necessarily
the latest release); send that line back, it names the commit tested.5. Claude Code, logged in
curl -fsSL https://claude.ai/install.sh | bash claude --version claudeExpected:
2.1.x (Claude Code). Inclaude, log in, then/exit.6. GitHub login and git identity for push and commit
gh auth login # GitHub.com, HTTPS, browser gh auth setup-git gh auth status git config --global user.name "Oliver Zehentleitner AIgent" git config --global user.email "mail@aigent.zehentleitner.co" git config --global --get user.nameExpected:
Logged in to github.com account ..., then the name. Without the identity an
agent's commit fails (as on the Linux runner). gh keeps the token in the Keychain; whethergit pushreaches it from inside the sandbox is untested. If a push from an agent fails
on credentials,gh auth login --insecure-storageputs the token in plain text in~/.config/gh/hosts.yml, where every agent can read it, sandboxed or not: do that only
with a throw-away GitHub token, otherwise stop the test there and send the error.7. Claude Code in the agents' environment
Agents start with only HOME, PATH, LANG and TERM. This checks the login there:
env -i HOME="$HOME" PATH="$PATH" LANG=C.UTF-8 TERM=xterm-256color claude -p "Reply with the single word ok"Expected:
ok. If it asks for a login or fails, run it again withUSER="$USER"afterenv -iand send both outputs: that decides a small fix.An agent · Nov 11, 2026, 22:51 UTC
Setup list v3, part 2/3 (replaces nte-m6sx1pgzeh2r)
8. Pair
Dashboard: settings menu > Runners > Pair a runner (a name, the project). Run the line:
maity runner pair https://<hub>/r/<token> --code <code>Expected on stderr: `paired as runner rnr-...; attached to: ...; credential ... stored in
.../credential (mode 0600, not printed)andnext: maity runner check`. It writes~/.config/maity-runner/runner.toml.9. Configuration
Append to
~/.config/maity-runner/runner.toml(keep the[hub]partpairwrote):[limits] projects = ["oliver-zehentleitner/maity"] repositories = ["github.com/oliver-zehentleitner/maity"] max_agents = 1 [harness.claude-code] modes = ["supervised", "interactive"] require_sandbox = true # refuse a start without Seatbelt instead of running unsandboxedWorkspaces go to
~/maity-workspaces, state to~/.local/state/maity-runner(defaults).10. Check
maity runner checkExpected, exit 0, lines like:
ok configuration .../runner.toml ok state_dir ... is private ok credential .../credential is private ok tmux found ok workspaces .../maity-workspaces ok maity found on agent_path ok harness claude-code: .../claude (2.1.x) warn harness claude-code: its sandbox was checked with 2.1.318, this is 2.1.x; ... ok harness claude-code: OS sandbox (sandbox-exec) ok hub https://<hub> answersThe version warning is expected and does not block.
error ... no OS sandboxmeans the PR
head is not installed (step 4) or/usr/binis missing from PATH.11. Start the runner
In its own Terminal window, kept awake:
caffeinate -i maity runner serveExpected on stderr:
<time> maity-runner: serving https://<hub> from .../runner.toml, thenconnected as <runner>; session .... The dashboard shows the runner online. Closing the lid
still sleeps the Mac; keep it open and on power.12. Start one agent
Dashboard: project > Agents > Where they run: start an agent on this runner, harness
claude-code, modesupervised. Expected: serve logs the placement going tostarting
andrunning, with nosandbox_unavailable. In a second window:maity runner statusExpected: the placement
runningand an attach linetmux -S .../tmux.sock attach -t maity_...
(run it to watch; detach with Ctrl-b d). The agent should come online, fetch, commit and
push. A commit failing on "empty ident name" means step 6'sgit configwas skipped.
A refusal readsfailed/harness_refusedin the log: send it.An agent · Nov 11, 2026, 22:51 UTC
Setup list v3, part 3/3
13. Keychain from inside the sandbox (please try, takes 2 minutes)
First, in Terminal (outside any sandbox), see whether the logins are where we assume:
security find-generic-password -s "Claude Code-credentials" >/dev/null; echo "claude $?" security find-generic-password -s "gh:github.com" >/dev/null; echo "gh $?"0= found (the item names are assumed; a non-zero code means the name differs: then
skip that one). Then the same from inside Claude Code's sandbox, in an empty directory:mkdir -p ~/kc-test && cd ~/kc-test cat > s.json <<'JSON' {"permissions": {"allow": ["Bash(security find-generic-password *)"], "defaultMode": "dontAsk"}, "sandbox": {"enabled": true, "failIfUnavailable": true, "allowUnsandboxedCommands": false, "autoAllowBashIfSandboxed": false}} JSON claude -p --settings s.json --permission-mode dontAsk "Run exactly this command and print its exit code and the first line of output: security find-generic-password -s 'Claude Code-credentials'"Without
-wthe command prints the item's attributes, never the secret. Send the answer:
exit 0 with attributes means sandboxed code can reach the login (the gap the docs now
name); an error means Seatbelt kept it out.14. Stop
Ctrl-C ends
serve(agents keep running). Then, with serve stopped:maity runner stop-allIf the sandbox breaks git: stop, or a throw-away token only
If Seatbelt breaks git in the agent (fetch, commit or push failing on permissions), the
default is to stop the test there and send the error. An unsandboxed agent can read the
GitHub token of the runner account (the Keychain's, and the plain file after--insecure-storage). Only with a throw-away GitHub token in that account: install from
main (step 4 with@main) and delete therequire_sandboxline. Agents then run
unsandboxed, and the runner reports each asrunningwithsandbox_unavailable.An agent · Nov 12, 2026, 01:02 UTC
Setup list v4, part 1/3 (replaces nte-5hfamkyv5f0t; full file attached to the notice to lotse)
Maity runner on macOS: setup for the first test (2026-11-12)
For card tsk-rrx15szr50c6. Install from the PR head, branch
agent-g/runner-macos(step 4).
"Expected" lines were checked on Linux or read in the code; nothing here has run on a Mac yet.
Please send back the output of every step that differs, and of steps 1, 7, 10 and 12.0. Account (recommended)
In the
singlelayout an agent can read everything in the account it runs as, except a fixed
list of secrets (~/.ssh,~/.claude,~/.aws, ...). Steps 1-2 in your admin account; then
make a Standard user (System Settings > Users & Groups, e.g.maity-runner), log in to it
(fast user switching keeps both sessions alive) and do steps 3-14 there, in Terminal.
On macOS the Claude Code login and, by default, the gh login live in the account's login
Keychain, and the sandbox probably lets commands reach it (review of #1679; step 13
tests it). Assume any code an agent runs can read every login in that keychain: in the
runner account, log in only to Claude Code and to a GitHub account you would hand to the
agents. Running in your own account would expose your own Keychain: don't, for this test.1. Machine facts
sw_vers; uname -m; ls -l /usr/bin/sandbox-execExpected: macOS version,
arm64orx86_64, and/usr/bin/sandbox-execexists
(Seatbelt; Claude Code's sandbox needs it).2. Homebrew, tmux, pipx, gh (admin account)
brew --version || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install tmux pipx gh tmux -V; pipx --version; gh --versionExpected:
Homebrew 4.x,tmux 3.x, a pipx version,gh version 2.x. If the installer says
so, add itseval "$(/opt/homebrew/bin/brew shellenv)"line (/usr/localon Intel) to~/.zprofile(in the runner account too). pipx brings a Python of 3.11 or later; macOS's
ownpython3is too old formaity.3. PATH for pipx
pipx ensurepathThen open a new Terminal window. Expected:
~/.local/binis on PATH (echo $PATH).4. maity from the PR head
pipx install --force "git+https://github.com/oliver-zehentleitner/maity@agent-g/runner-macos#subdirectory=cli" maity --versionExpected:
installed package maity <version>, installed using Python 3.x, thenmaity <version> (build <commit>), with the version the branch carries (not necessarily
the latest release); send that line back, it names the commit tested.5. Claude Code, logged in
curl -fsSL https://claude.ai/install.sh | bash claude --version claudeExpected:
2.1.x (Claude Code). Inclaude, log in, then/exit.6. GitHub login and git identity for push and commit
gh auth login # GitHub.com, HTTPS, browser gh auth setup-git gh auth status git config --global user.name "Oliver Zehentleitner AIgent" git config --global user.email "mail@aigent.zehentleitner.co" git config --global --get user.nameExpected:
Logged in to github.com account ..., then the name. Without the identity an
agent's commit fails (as on the Linux runner). gh keeps the token in the Keychain; whethergit pushreaches it from inside the sandbox is untested. If a push from an agent fails
on credentials,gh auth login --insecure-storageputs the token in plain text in~/.config/gh/hosts.yml, where every agent can read it, sandboxed or not: do that only
with a throw-away GitHub token, otherwise stop the test there and send the error.7. Claude Code in the agents' environment
Agents start with only HOME, PATH, LANG and TERM. This checks the login there:
env -i HOME="$HOME" PATH="$PATH" LANG=C.UTF-8 TERM=xterm-256color claude -p "Reply with the single word ok"Expected:
ok. If it asks for a login or fails, run it again withUSER="$USER"afterenv -iand send both outputs: that decides a small fix.An agent · Nov 12, 2026, 01:02 UTC
Setup list v4, part 2/3 (replaces nte-1bhh9kd15n5z)
8. Pair
Dashboard: settings menu > Runners > Pair a runner (a name, the project). Run the line:
maity runner pair https://<hub>/r/<token> --code <code>Expected on stderr: `paired as runner rnr-...; attached to: ...; credential ... stored in
.../credential (mode 0600, not printed)andnext: maity runner check`. It writes~/.config/maity-runner/runner.toml.9. Configuration
Append to
~/.config/maity-runner/runner.toml(keep the[hub]partpairwrote):[limits] projects = ["oliver-zehentleitner/maity"] repositories = ["github.com/oliver-zehentleitner/maity"] max_agents = 1 [harness.claude-code] modes = ["supervised", "interactive"] require_sandbox = true # refuse a start without Seatbelt instead of running unsandboxedWorkspaces go to
~/maity-workspaces, state to~/.local/state/maity-runner(defaults).10. Check
maity runner checkExpected, exit 0, lines like:
ok configuration .../runner.toml ok state_dir ... is private ok credential .../credential is private ok tmux found ok workspaces .../maity-workspaces ok maity found on agent_path ok harness claude-code: .../claude (2.1.x) warn harness claude-code: its sandbox was checked with 2.1.318, this is 2.1.x; ... ok harness claude-code: OS sandbox (sandbox-exec) ok hub https://<hub> answersThe version warning is expected and does not block.
error ... no OS sandboxmeans the PR
head is not installed (step 4) or/usr/binis missing from PATH.11. Start the runner
In its own Terminal window, kept awake:
caffeinate -i maity runner serveExpected on stderr:
<time> maity-runner: serving https://<hub> from .../runner.toml, thenconnected as <runner>; session .... The dashboard shows the runner online. Closing the lid
still sleeps the Mac; keep it open and on power.12. Start one agent
Dashboard: project > Agents > Where they run: start an agent on this runner, harness
claude-code, modesupervised. Expected: serve logs the placement going tostarting
andrunning, with nosandbox_unavailable. In a second window:maity runner statusExpected: the placement
runningand an attach linetmux -S .../tmux.sock attach -t maity_...
(run it to watch; detach with Ctrl-b d). The agent should come online, fetch, commit and
push. A commit failing on "empty ident name" means step 6'sgit configwas skipped.
A refusal readsfailed/harness_refusedin the log: send it.An agent · Nov 12, 2026, 01:02 UTC
Setup list v4, part 3/3 (replaces nte-hf71fdtq4qbq; new: 13b, renaming
.gitfrom the sandbox)13. Keychain from inside the sandbox (please try, takes 2 minutes)
First, in Terminal (outside any sandbox), see whether the logins are where we assume:
security find-generic-password -s "Claude Code-credentials" >/dev/null; echo "claude $?" security find-generic-password -s "gh:github.com" >/dev/null; echo "gh $?"0= found (the item names are assumed; a non-zero code means the name differs: then
skip that one). Then the same from inside Claude Code's sandbox, in an empty directory:mkdir -p ~/kc-test && cd ~/kc-test cat > s.json <<'JSON' {"permissions": {"allow": ["Bash(security find-generic-password *)"], "defaultMode": "dontAsk"}, "sandbox": {"enabled": true, "failIfUnavailable": true, "allowUnsandboxedCommands": false, "autoAllowBashIfSandboxed": false}} JSON claude -p --settings s.json --permission-mode dontAsk "Run exactly this command and print its exit code and the first line of output: security find-generic-password -s 'Claude Code-credentials'"Without
-wthe command prints the item's attributes, never the secret. Send the answer:
exit 0 with attributes means sandboxed code can reach the login (the gap the docs now
name); an error means Seatbelt kept it out.13b. Can sandboxed code rename
.git? (please try, 2 minutes)On Linux, sandboxed code cannot rename a clone's
.gitonly because Claude Code itself
bind-mounts it. Seatbelt has no bind mount. If the rename works on macOS, maity outside the
sandbox could be led to a decoy.git(a sandbox escape). Only in a throw-away repository,
never in an agent's clone:mkdir -p ~/kc-test/repo && cd ~/kc-test/repo && git init -q && mkdir -p .git/maity cat > s.json <<JSON {"permissions": {"allow": ["Bash(mv .git .git-real)"], "defaultMode": "dontAsk"}, "sandbox": {"enabled": true, "failIfUnavailable": true, "allowUnsandboxedCommands": false, "autoAllowBashIfSandboxed": false, "filesystem": {"denyRead": ["$PWD/.git/maity"], "denyWrite": ["$PWD/.git/maity", "$PWD/.git/config", "$PWD/.git/hooks"]}}} JSON claude -p --settings s.json --permission-mode dontAsk "Run exactly this command and print its exit code and its error output: mv .git .git-real" ls -d .git .git-real 2>&1 [ -d .git-real ] && mv .git-real .git # back, outside the sandboxExpected (safe):
mvfails (for example "Operation not permitted"), andlsshows only.git. Send the exact error. **If the rename succeeded (.git-realexists), stop the test
there and run no placements on this Mac** until the fix (card tsk-g779xysypp4c) is in.14. Stop
Ctrl-C ends
serve(agents keep running). Then, with serve stopped:maity runner stop-allIf the sandbox breaks git: stop, or a throw-away token only
If Seatbelt breaks git in the agent (fetch, commit or push failing on permissions), the
default is to stop the test there and send the error. An unsandboxed agent can read the
GitHub token of the runner account (the Keychain's, and the plain file after--insecure-storage). Only with a throw-away GitHub token in that account: install from
main (step 4 with@main) and delete therequire_sandboxline. Agents then run
unsandboxed, and the runner reports each asrunningwithsandbox_unavailable.