potluck

module
v0.0.0-...-093899b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0

README

Website · Quick start · Docs · Blog · Mezze · Discussions

CI Clean-machine proof Latest release Go reference

Potluck aims to put your team's idle machines to work. It will run your GitHub Actions jobs and your coding agents in fresh VMs or sandboxed containers on Macs and Linux boxes you already own, and hand a machine back when its owner returns. Pools will let people you invite lend machines too.

Coding agents GitHub Actions Still your machine
An agent's commands run in a throwaway sandbox on a pool machine, not on your laptop: potluck sandbox create, or the sandbox tools over MCP. potluck ci pr <owner/repo> prepares a pull request that changes one job's runs-on, so that job can run on a Mac you lend. Pull requests from forks keep GitHub's runner (docs/ci-pr.md). By default a Mac works for the pool only while its owner is away: touch the keyboard or trackpad and its job ends. potluck host set drain winds any machine down.

Status

[!NOTE] Early. There is a potluck program (the daemon and the commands below), signed releases for macOS and Linux, and an install script. Interfaces will change. Did you run it before as zm? See docs/coming-from-zm.md.

What you need

  • A machine that can run sandboxes. On an Apple-silicon Mac: Tart and Softnet (setuid root; potluck doctor prints the one sudo line; on macOS 15, see docs/softnet.md). On Linux: Docker with Kata or gVisor (cmd/potluck-driver-tart/README.md has the setup). potluck doctor tells you what is missing and where to get it.
  • To try it alone: nothing else. No account, no second machine. The pool and the machine that shares are the same computer. A Mac needs about 60 GB free for the macOS image it pulls the first time.
  • For friends' machines: a way for machines to reach each other. By default that is Tailscale (a free Tailscale account; Potluck has no accounts of its own). Instead of it, --via tunnel uses a tunnel you set up yourself (see "A tunnel instead of Tailscale" below).
  • A second machine is optional, and is the point once you invite friends.

How it works

  • A pool is a group of machines you and your friends lend and use. One machine runs it (potluck create); friends join with a one-time code (potluck invite, potluck join).
  • A host is a machine that shares some of itself with a pool (potluck host). Potluck checks it first, and it keeps what it shares to a fraction of its cores and RAM (half by default; --share).
  • A size is the shape of one sandbox, such as c1m2: 1 core, 2 GB of RAM.
  • A sandbox is a fresh VM or container on a host (potluck sandbox create). You run commands in it and then remove it.
  • A layer is what makes the sandbox: Tart VMs on a Mac, Docker with Kata or gVisor on Linux. Potluck drives it through a small program called a driver, which you do not have to run yourself.
  • One daemon per machine does the work. When a program built on Potluck already runs one, potluck uses it rather than starting its own (docs/daemon.md).

Quick start

Install

curl -fsSL https://raw.githubusercontent.com/sengirunners/potluck/main/install.sh | sh

macOS and Linux, no Go needed. The script puts potluck, its drivers, potluck-conformance and potluck-e2b in ~/.local/bin. If that is not on your PATH, it adds one line to your shell's startup file (~/.zshrc on a Mac), so a new terminal finds potluck (--no-modify-path leaves startup files alone). Other ways to install, and what the script checks:

You want Do this
The newest release the line above
To install and join a pool from an invite code curl -fsSL https://raw.githubusercontent.com/sengirunners/potluck/main/install.sh | sh -s -- --join '<invite code>'
A release you downloaded sh install.sh --from <dir> (docs/install.md)
A given release sh install.sh --version potluck-main-<12 hex>
What the script checks the release signature, with macOS's own ssh-keygen or OpenSSL 3, before anything runs (docs/install.md)
The Mac menu bar item (not Developer ID signed yet) sh install.sh --menubar on a Mac (docs/menubar.md)
Later releases potluck upgrade, or once a day: potluck upgrade enable
To build from source go build -o ~/bin/ ./cmd/potluck ./cmd/potluck-driver-tart ./cmd/potluck-conformance

Try it on one machine

potluck doctor                          # what this machine can share, and what is missing
potluck create trial --via tunnel       # a pool on this machine alone: no Tailscale, and no tunnel to set up
potluck host --reclaim-idle-s 0         # share this machine with that pool
potluck sandbox create                  # prints the sandbox's id
potluck sandbox exec <id> -- uname -a
potluck sandbox rm <id>

--reclaim-idle-s 0 matters on a Mac you are sitting at: by default a Mac's sandbox ends when you touch the keyboard or pointer, and starts only after the Mac has been idle for five minutes.

A session on a Mac looks like this. It is an illustration, not a recording: it follows what the commands print, with some lines left out (the image, the GitHub Actions: line, the ran: lines for each command Potluck runs, and notes), and the machine name, id and uname line are examples. The first potluck host on a Mac pulls a macOS image of about 27 GB and wants about 60 GB free:

$ potluck create trial --via tunnel
potluck: started the daemon (~/.potluck)
pool trial is ready; this machine runs it
sealing: required (a new pool starts there: a machine too old to seal gets no secrets; potluck sealing lists them)
next: potluck invite <name> for a friend who runs sandboxes, potluck invite <name> --host for one who shares a machine
share this machine too: potluck host

$ potluck host --reclaim-idle-s 0
layer tart
quick check: the security checks once, a boot check per size (--full for the whole suite)
  shared mini-potluck-c2m4
shared with pool trial: mini-potluck-c2m4
members: potluck sandbox create

$ potluck sandbox create
mini-potluck-c2m4/a1b2c3 ready expires=2026-11-16T01:20:47Z net=on

$ potluck sandbox exec mini-potluck-c2m4/a1b2c3 -- uname -a
Darwin box 25.1.0 Darwin Kernel Version 25.1.0 arm64
$ potluck sandbox rm mini-potluck-c2m4/a1b2c3
removed mini-potluck-c2m4/a1b2c3

This path has been run end to end by hand many times on an Apple-silicon Mac with Tart. It is also tested in CI with a stand-in for the VM layer (cli/one_machine_test.go) and has run by hand on a Linux VM with gVisor.

With friends

On the machine that runs the pool. If you already made the trial pool above, this machine is in two pools once you make friends: add --pool friends to the commands that pick a pool (invite, host, sandbox create).

potluck create friends       # the first time, prints a Tailscale login link and waits for you to sign in
potluck invite ana           # a link for a friend who runs sandboxes (add --pool friends if you made `trial`)
potluck invite carl --host   # a code for a friend who shares a machine (--trust public for a stranger; same --pool note)

potluck invite ana prints a link, https://potluck.sh/join#v1.<code>, and then the code. Send the link: the page shows the friend one line that installs Potluck and joins (curl -fsSL https://potluck.sh/install.sh | sh -s -- --join '<link>'). The code is in the part after #, which a browser never sends to the site. A friend who has Potluck already runs potluck join '<link or code>'. Then, from any member's machine, the same potluck sandbox create, exec and rm as above. Machines reach each other over Tailscale, or with --via tunnel over a tunnel you set up (below). Potluck names a machine after its host name plus -potluck (POTLUCK_MACHINE overrides it), so its tailnet node (potluck-<machine>) does not take the name of another daemon's node on the same machine.

A tunnel instead of Tailscale

--via tunnel needs a public https address that forwards to a loopback port on the machine that runs the pool. Any tunnel will do; this one uses Cloudflare's free quick tunnel (cloudflared):

cloudflared tunnel --url http://127.0.0.1:7435      # prints https://<random>.trycloudflare.com; leave it running, use a second terminal

Install cloudflared first (for example brew install cloudflared). Then add the tunnel key to ~/.potluck/config.json ($POTLUCK_HOME/config.json if you set it). The daemon has probably written that file already, so edit it rather than replacing it, and keep its other keys:

{"tunnel": {"listen": "127.0.0.1:7435", "url": "https://<random>.trycloudflare.com"}}

The daemon reads the file only when it starts, so restart it, then make the pool and an invite:

potluck daemon stop                   # skip if no daemon is running
potluck daemon --detach
potluck create friends --via tunnel
potluck invite ana --via tunnel --pool friends   # an https code (and its link): the friend needs no Tailscale

A quick tunnel's address changes each time it starts, so this suits a trial. This path runs every night, and within the hour after each release, on a fresh GitHub-hosted Linux VM (scripts/clean-machine-proof.sh).

Share compute

A friend with a --host code shares their machine with one command:

potluck host '<code>'

It checks the machine (a missing root step runs with sudo at a terminal, which asks for a password; --no-sudo prints the one sudo line instead), pulls the pinned image for the layer, and runs a quick conformance check per size. Only when a size passes does it join the pool with the code and share each size that passed; then it waits until the pool lists them. A machine that fails never joins, and the code stays unspent. Before that, if you like:

potluck doctor                # what this machine can share, and the one root command it still needs
potluck host '<code>' --dry-run  # print the plan; pull, test and share nothing

Afterwards:

potluck isolation test <size> # prove its boxes cannot reach this machine, its LAN or tailnet (docs/isolation.md)
potluck host set drain        # wind down: nothing new starts, running work finishes (cut after 30 minutes by default)
potluck host set closed       # stop now (set auto to go back to your own rules)
potluck host pause            # stop lending for now, keeping what is shared (refused while work runs)
potluck host resume           # lend again after a pause, a wind-down or a stop now
potluck host stop             # stop sharing: remove every size potluck host shared from this machine
potluck host status           # what it lends and runs now, and whether it takes new work (changes nothing)

--share (default 0.5) sets the fraction of cores and RAM shared; on a Mac a sandbox ends when you touch the keyboard or pointer (--when away, the default there; --when any shares all the time), and a run again keeps the earlier choice. Run again with no code, potluck host shares with the only pool this machine is in; where this machine already shares sizes with that pool and no flag changes the share, it only prints what it would do and asks for --yes. --detach does the checks and the admin step, then goes on in the background (potluck host status says how it goes). potluck host --help lists the rest.

Lending a Mac, and taking Potluck off it

docs/lending.md is the page for someone who lends a Mac and does not code: what setup puts on the Mac and why, what the pool's members and its owner can and cannot do, what is not yet proven, and how to pause, leave and remove everything.

To remove Potluck from a machine:

potluck host stop             # stop lending
potluck host images --remove  # on a Mac: delete old images Potluck pulled and no longer lends; yours are kept
potluck uninstall --dry-run   # what it would do, in order; changes nothing
potluck uninstall             # does it, after you type yes

potluck uninstall stops sharing, leaves the pools this machine joined, removes the managed Softnet (the one step that asks for your password), stops the daemon, and removes the daily update job, the host override file, the line install.sh added to your shell's startup file, the home (~/.potluck, unless --keep-home) and the programs. It names what it leaves for you: Tart and its images (the current macOS image stays until you run tart delete on it), a Softnet you installed yourself, the Tailscale node and the menu bar app. potluck leave <pool> leaves one pool you joined. No command yet removes a pool you created while keeping the rest of Potluck.

More

potluck --help lists the rest: leave, uninstall, host stop, status, sandbox ls|shell|cp|push|extend|signal|stop|start (sandbox create --persist keeps a sandbox's disk while it is stopped), usage, run, agent-task (a coding agent run once in a fresh sandbox, its commits back as a local ref: docs/agent-tasks.md), agent-runner (a coding agent vendor's self-hosted runners in fresh sandboxes: docs/agent-runners.md) and runners.

  • Move a CI job onto a lent Mac: potluck ci pr <owner/repo> changes one job's runs-on and prepares the pull request (docs/ci-pr.md).
  • E2B's SDKs on your sandboxes: potluck-e2b (docs/daemon.md); skip it if you do not use E2B.

This flow is tested in CI with the reference driver standing in for the VM layer (cli/cli_test.go), and runs every night and after each release on a fresh GitHub-hosted Linux VM with gVisor (scripts/clean-machine-proof.sh, the clean-machine-proof workflow). Its one-machine part has been run by hand many times on an Apple-silicon Mac with Tart; it has not yet been run across two machines.

MCP for agents

Add Potluck to an MCP client's configuration:

{"mcpServers":{"potluck":{"command":"potluck","args":["--pool","friends","mcp"]}}}

Start the daemon and join or create the pool first. With one pool, --pool is optional. The server exposes only sandbox tools: create, execute, list, extend, stop, restart, delete, background processes and file reads/writes. Output from a sandbox is untrusted data. It uses $POTLUCK_HOME and your local identity; POTLUCK_AS (or mcp --as) selects a caller address, and POTLUCK_TOKEN supplies a restricted token. It does not inherit another program's identity variables. Tool discovery works with no daemon; tool calls report the missing daemon. All standard output is MCP protocol traffic.

What works today

Works today Not yet
go build, go vet, go test in CI on Linux; signed releases and install.sh; a daily upgrade job (potluck upgrade enable)
OCI and Incus layers tested against stand-in CLIs; Tart through a fake layer Tests on real VMs in CI (a manual run)
The quick start on a fresh GitHub-hosted Linux VM with no earlier Potluck or zm on it, every night and after each release (the clean-machine-proof workflow): install, a pool over a Cloudflare quick tunnel, the VM shared through gVisor, a sandbox and potluck run The quick start across two real machines in CI
The one-machine quick start on an Apple-silicon Mac with Tart, run end to end by hand many times
The VM driver passes the full suite over a fake layer (isolation is not exercised there)
Every check the reference driver passes is also shown to fail on a driver broken on purpose
A real GitHub Actions job run through the broker, by hand: on a Mac (Tart, the same machine as the broker) and on a Linux box on another machine (OCI with gVisor) Actions jobs on pool machines in our own CI, every day
VMs end at their deadline even if the daemon is down Commands sealed to the host's key
Hand-back on a Mac when its owner types or moves the pointer On Linux, hand-back when the owner returns (a time window only, today)

When an owner takes a machine back, running VMs are ended and new work is refused.

What you should know before trusting it

  • The machine that runs a VM can read everything in it: your code, your commands, their output and any secrets.
  • The machine that runs a pool can read commands, output and secrets passing through it, until commands are sealed to the host's key. Join only a pool whose owner you would trust with them.
  • A coding agent vendor's key handed to potluck agent-runner can be read by the machine that runs the box and by the agent's session in it (docs/agent-runners.md); so can a credential handed to potluck agent-task (docs/agent-tasks.md).
  • Conformance proves a driver behaves. It does not prove its author can be trusted. A run can also pass with checks skipped (the network checks need flags), so read the SKIP lines.
  • On the OCI layer, the default is no network at all. A box with a network relies on a firewall the host's owner sets up. The driver cannot read firewall rules: naming the network is the owner's word that it is filtered.
  • Use at your own risk. There are no promises.

Macs

Apple's macOS licence allows up to two macOS VMs on a Mac you own or control, for uses such as development, testing and personal use, and does not allow time-sharing or service-bureau use. Potluck caps macOS guests at two per Mac and does not check the rest. Our rule: lending a macOS guest to people on your team or friends you invite is fine, the same as letting a colleague use your Mac for a few minutes, and so is a GitHub Actions job from another org that runs in a macOS guest on a Mac lent to the pool. Selling Mac time to the public is not, and neither is pooling iOS Simulator time. Linux guests on a Mac are not affected. Read the licence yourself; this is not legal advice.

Tart is a separate program under FSL-1.1-ALv2. You install it and accept its licence yourself; Potluck does not bundle it.

What Potluck is not

  • Not a hosted cloud. It runs on machines you own.
  • Not a sandbox runtime of its own. It drives Tart, Kata, gVisor and Incus.
  • Not a scheduler for clusters.

Where things are in the source: docs/layout.md.

Build and test

go build ./...
go vet ./...
go test ./...               # includes the suite against the reference driver and its broken variants
go test ./conformance/...   # just the suite's own tests

To check a real driver, build cmd/potluck-conformance and point it at a throwaway binding. It makes and ends real resources. potluck-conformance --print-probe prints the probe script your test commit must hold. The setup for each layer and an example run are in cmd/potluck-driver-tart/README.md.

Contributing

See CONTRIBUTING.md. Report security problems as SECURITY.md says, not in a public issue.

Mezze

Running a team of coding agents on Potluck? Mezze: mail and work items for coding agents is a separate product from the same makers that runs on Potluck: mail between agents and people, and work items whose claims expire.

Sengi

Potluck is made by Sengi, Inc., which sells hosted GitHub Actions runners. Potluck runs without Sengi and without a Sengi account.

Licence

Copyright 2026 Sengi, Inc. Apache-2.0. See LICENSE and NOTICE.

Directories

Path Synopsis
Package agentrunners starts a coding agent vendor's self-hosted runner as a job in a fresh box: the generic agent runner job kind.
Package agentrunners starts a coding agent vendor's self-hosted runner as a job in a fresh box: the generic agent runner job kind.
Package agenttasks is what potluck agent-task needs to know of each coding agent CLI it runs once in a box, as data: an Adapter per agent.
Package agenttasks is what potluck agent-task needs to know of each coding agent CLI it runs once in a box, as data: an Adapter per agent.
Package boxcp copies files and directories between the renter's machine and a box they hold (SPEC 20 "Boxes", Files in and out; zm-eakh.12.5.22), over exec alone, as boxpush sends a git bundle: the one verb every box driver has, relayed across machines and the tunnel within the same caps, and the holder's alone (exec's checks).
Package boxcp copies files and directories between the renter's machine and a box they hold (SPEC 20 "Boxes", Files in and out; zm-eakh.12.5.22), over exec alone, as boxpush sends a git bundle: the one verb every box driver has, relayed across machines and the tunnel within the same caps, and the holder's alone (exec's checks).
Package boxproc is the host side of a box's background processes (SPEC 20 "Boxes", background processes): the optional spawn, output and signal verbs.
Package boxproc is the host side of a box's background processes (SPEC 20 "Boxes", background processes): the optional spawn, output and signal verbs.
Package boxpush puts the renter's code into a box without a credential (SPEC 20 "Boxes", "Code from the renter"; zm-eakh.12.5.16).
Package boxpush puts the renter's code into a box without a credential (SPEC 20 "Boxes", "Code from the renter"; zm-eakh.12.5.16).
Package cli is the potluck command: the daemon (potluck daemon) and the commands people run against it.
Package cli is the potluck command: the daemon (potluck daemon) and the commands people run against it.
cmd
potluck command
Command potluck is Potluck's one binary: the daemon (potluck daemon) and the commands people run against it.
Command potluck is Potluck's one binary: the daemon (potluck daemon) and the commands people run against it.
potluck-conformance command
Command potluck-conformance is the driver conformance suite (package internal/conformancecmd; docs/conformance.md).
Command potluck-conformance is the driver conformance suite (package internal/conformancecmd; docs/conformance.md).
potluck-driver-local command
Command potluck-driver-local is the local driver: each run on this machine, as the daemon's user (package internal/localdriver).
Command potluck-driver-local is the local driver: each run on this machine, as the daemon's user (package internal/localdriver).
potluck-driver-tart command
Command potluck-driver-tart is a SPEC 20 run target that runs each job in a throwaway VM (Tart on a Mac; Incus or an OCI runtime on Linux; package vmhost).
Command potluck-driver-tart is a SPEC 20 run target that runs each job in a throwaway VM (Tart on a Mac; Incus or an OCI runtime on Linux; package vmhost).
potluck-e2b command
Command potluck-e2b is the E2B gateway: the E2B SDK on boxes, as a client of this machine's potluck daemon (package internal/e2bgateway).
Command potluck-e2b is the E2B gateway: the E2B SDK on boxes, as a client of this machine's potluck daemon (package internal/e2bgateway).
zm-e2b command
Command zm-e2b is the E2B gateway under its name from before the rename, so build lists and updaters that name this path keep working.
Command zm-e2b is the E2B gateway under its name from before the rename, so build lists and updaters that name this path keep working.
zm-run-conformance command
Command zm-run-conformance is potluck-conformance under its name from before the rename, so build lists and updaters that name this path keep working.
Command zm-run-conformance is potluck-conformance under its name from before the rename, so build lists and updaters that name this path keep working.
zm-run-local command
Command zm-run-local is potluck-driver-local under its name from before the rename, so build lists and updaters that name this path keep working.
Command zm-run-local is potluck-driver-local under its name from before the rename, so build lists and updaters that name this path keep working.
zm-run-tart command
Command zm-run-tart is potluck-driver-tart under its name from before the rename, so build lists and updaters that name this path keep working.
Command zm-run-tart is potluck-driver-tart under its name from before the rename, so build lists and updaters that name this path keep working.
Package conformance checks a run-target driver (zm-run-<name>) against SPEC section 20.
Package conformance checks a run-target driver (zm-run-<name>) against SPEC section 20.
refdriver
Package refdriver is the reference run-target driver the conformance suite's own tests use, with a Bug switch for each way a driver can be wrong: every check needs a driver that fails it.
Package refdriver is the reference run-target driver the conformance suite's own tests use, with a Bug switch for each way a driver can be wrong: every check needs a driver that fails it.
Package database owns project database recipes and snapshot provenance.
Package database owns project database recipes and snapshot provenance.
Package depscli is the client side of dependency layers (docs/daemon.md, Dependency layers) for any command line: the --deps, --deps-wait and --deps-scripts flags (potluck sandbox create and potluck run; zm imports them too), the acquire's deps built from the project's files read here, the line saying what the answer made of them, and the warning when the files are not what the checkout will hold.
Package depscli is the client side of dependency layers (docs/daemon.md, Dependency layers) for any command line: the --deps, --deps-wait and --deps-scripts flags (potluck sandbox create and potluck run; zm imports them too), the acquire's deps built from the project's files read here, the line saying what the answer made of them, and the warning when the files are not what the checkout will hold.
Package ghapp is a minimal GitHub App client for a runner broker.
Package ghapp is a minimal GitHub App client for a runner broker.
Package grants is the policy part of the secrets door: a table on a pool's authority (project.db, secret_grants) that says who may put which kind of secret, up to what ceiling, into which boxes, and the check every secret-bearing call makes against it before anything is sent to a driver or a host.
Package grants is the policy part of the secrets door: a table on a pool's authority (project.db, secret_grants) that says who may put which kind of secret, up to what ceiling, into which boxes, and the check every secret-bearing call makes against it before anything is sent to a driver or a host.
Package hostmem reads how hard this machine's memory is pressed now: the system's own pressure level and how much swap is in use.
Package hostmem reads how hard this machine's memory is pressed now: the system's own pressure level and how much swap is in use.
Package hostprobe is what `zm host doctor` and `zm host share` stand on (SPEC 20, "Host onboarding"): it detects what a machine can lend as run target boxes (cores, RAM, disk, KVM, and the VM layers incus, oci and tart), proposes the sizes that fit twice inside the owner's share (once, one box at a time, when none does at zm's default share), folds every pending root step into one command, and (share.go) pulls digest-pinned images, runs the conformance suite per size and binds only what passed.
Package hostprobe is what `zm host doctor` and `zm host share` stand on (SPEC 20, "Host onboarding"): it detects what a machine can lend as run target boxes (cores, RAM, disk, KVM, and the VM layers incus, oci and tart), proposes the sizes that fit twice inside the owner's share (once, one box at a time, when none does at zm's default share), folds every pending root step into one command, and (share.go) pulls digest-pinned images, runs the conformance suite per size and binds only what passed.
Package hostsetup is a host run's stages as it goes: preflight, the images, validation, the join and usable capacity, each running, succeeded or blocked.
Package hostsetup is a host run's stages as it goes: preflight, the images, validation, the join and usable capacity, each running, succeeded or blocked.
Package hostswap reads whether this machine's swap could put a box's memory, the secrets in its memory filesystem included, on disk, and says what the authority does with the answer.
Package hostswap reads whether this machine's swap could put a box's memory, the secrets in its memory filesystem included, on disk, and says what the authority does with the answer.
Package imagepins owns the published image table and its metadata.
Package imagepins owns the published image table and its metadata.
internal
conformancecmd
Package conformancecmd is the conformance suite's program, potluck-conformance (built under its old name zm-run-conformance too, from cmd/zm-run-conformance).
Package conformancecmd is the conformance suite's program, potluck-conformance (built under its old name zm-run-conformance too, from cmd/zm-run-conformance).
e2bgateway
Package e2bgateway is potluck-e2b (built under its old name potluck-e2b too, from cmd/potluck-e2b): it lets the unmodified E2B SDK (Python and TypeScript `e2b`) run on boxes (SPEC 20 kind box).
Package e2bgateway is potluck-e2b (built under its old name potluck-e2b too, from cmd/potluck-e2b): it lets the unmodified E2B SDK (Python and TypeScript `e2b`) run on boxes (SPEC 20 kind box).
forkguard
Package forkguard is the one home of the fork-guarded runs-on rule: which runs-on values send a fork's pull request to a GitHub-hosted runner and the repository's own runs to self-hosted labels, which workflow triggers that guard holds on, and the edit that writes such a value into a workflow file (Apply).
Package forkguard is the one home of the fork-guarded runs-on rule: which runs-on values send a fork's pull request to a GitHub-hosted runner and the repository's own runs to self-hosted labels, which workflow triggers that guard holds on, and the edit that writes such a value into a workflow file (Apply).
localdriver
Package localdriver is the local driver, potluck-driver-local (built under its old name zm-run-local too, from cmd/zm-run-local): a SPEC 20 run target (kind "run") that runs each job on the machine whose daemon calls it, as the daemon's user: the automations home's credentialed jobs (bead reminders, sweeps, digests) that need that user's files and tokens.
Package localdriver is the local driver, potluck-driver-local (built under its old name zm-run-local too, from cmd/zm-run-local): a SPEC 20 run target (kind "run") that runs each job on the machine whose daemon calls it, as the daemon's user: the automations home's credentialed jobs (bead reminders, sweeps, digests) that need that user's files and tokens.
tarsafe
Package tarsafe holds the rules every tar reader here applies to an entry it did not write itself: a name must stay inside the destination, and a sparse entry (which archive/tar would expand to any size) is refused.
Package tarsafe holds the rules every tar reader here applies to an entry it did not write itself: a name must stay inside the destination, and a sparse entry (which archive/tar would expand to any size) is refused.
upgrade
Package upgrade fetches and verifies Potluck's signed releases (kit/release format release.Potluck) for `potluck upgrade` and install.sh: from the GitHub releases of sengirunners/potluck, or from a directory holding one release's files (air-gapped hosts, tests, and while the repository is private).
Package upgrade fetches and verifies Potluck's signed releases (kit/release format release.Potluck) for `potluck upgrade` and install.sh: from the GitHub releases of sengirunners/potluck, or from a directory holding one release's files (air-gapped hosts, tests, and while the repository is private).
workflowlint
Package workflowlint holds the fork-safe CI lint (zm-eakh.12.23.8).
Package workflowlint holds the fork-safe CI lint (zm-eakh.12.23.8).
Package issuers holds the secrets door's minted kinds (docs/daemon.md "Secrets issuers"): credentials the authority mints for one box, cut down to what the request names and inside the issuer's ceiling, renewed while the box lives and revoked at the issuer on every way the box ends.
Package issuers holds the secrets door's minted kinds (docs/daemon.md "Secrets issuers"): credentials the authority mints for one box, cut down to what the request names and inside the issuer's ceiling, renewed while the box lives and revoked at the issuer on every way the box ends.
Package jobrule is the one copy of the rules for a GitHub Actions job that may hold a secret: which events, which ref, which workflow files, and that the run's code is the repository's own.
Package jobrule is the one copy of the rules for a GitHub Actions job that may hold a secret: which events, which ref, which workflow files, and that the run's code is the repository's own.
kit
api
Package api holds the JSON types of the zm/v0 HTTP API (see API.md).
Package api holds the JSON types of the zm/v0 HTTP API (see API.md).
api/textclean
Default_Ignorable_Code_Point from Unicode 17.0 DerivedCoreProperties.txt.
Default_Ignorable_Code_Point from Unicode 17.0 DerivedCoreProperties.txt.
atomicfile
Package atomicfile writes a private file so that a crash leaves either the old file or the new one, never a part of either.
Package atomicfile writes a private file so that a crash leaves either the old file or the new one, never a part of either.
authz
Package authz is zm's permission model: grant tuples, scopes, Check and bearer-token secrets.
Package authz is zm's permission model: grant tuples, scopes, Check and bearer-token secrets.
client
Package client talks to a zm daemon: over $ZM_HOME/zm.sock by default, or over HTTP to $ZM_HOST (a daemon's tailnet listener) with $ZM_TOKEN.
Package client talks to a zm daemon: over $ZM_HOME/zm.sock by default, or over HTTP to $ZM_HOST (a daemon's tailnet listener) with $ZM_TOKEN.
config
Package config resolves the home directory (in the order of the program's Names), this machine's identity and the config file.
Package config resolves the home directory (in the order of the program's Names), this machine's identity and the config file.
core
Package core is what every module gets from the daemon: config, the store, the project registry, the event bus, a logger, the authenticated caller, project resolution, a guarded router, and narrow interfaces to the other modules.
Package core is what every module gets from the daemon: config, the store, the project registry, the event bus, a logger, the authenticated caller, project resolution, a guarded router, and narrow interfaces to the other modules.
daemonrecord
Package daemonrecord is the machine's record of its Potluck daemons: a daemon built on Potluck's kit (potluck's own, or a program that adds modules on top of it) writes one record while it listens, and a client that has no home of its own finds the machine's daemon by reading them (Live).
Package daemonrecord is the machine's record of its Potluck daemons: a daemon built on Potluck's kit (potluck's own, or a program that adds modules on top of it) writes one record while it listens, and a client that has no home of its own finds the machine's daemon by reading them (Live).
events
Package events is the daemon's event log and stream: CloudEvents envelopes, appended to one log per project (project.db) plus a machine log (registry.db) for project "none", fanned out in-process, and served over SSE at GET /v0/events with per-subscriber authz filtering.
Package events is the daemon's event log and stream: CloudEvents envelopes, appended to one log per project (project.db) plus a machine log (registry.db) for project "none", fanned out in-process, and served over SSE at GET /v0/events with per-subscriber authz filtering.
hometerm
Package hometerm is a home's term: whether its daemon may serve, and at which epoch.
Package hometerm is a home's term: whether its daemon may serve, and at which epoch.
ids
Package ids mints ULIDs for every stored object and event.
Package ids mints ULIDs for every stored object and event.
netguard
Package netguard keeps the daemon's outbound HTTP calls to URLs a caller named off this machine and its private networks (SSRF): a URL check at registration and a dial check after DNS resolution (rebinding).
Package netguard keeps the daemon's outbound HTTP calls to URLs a caller named off this machine and its private networks (SSRF): a URL check at registration and a dial check after DNS resolution (rebinding).
owners
Package owners is the owner-directory brick (SPEC 22): who an owner is (a GitHub user or org, bound by its immutable numeric account id, never its login), which zm identity a person's account is linked to on this authority, and the sign-in that proves it.
Package owners is the owner-directory brick (SPEC 22): who an owner is (a GitHub user or org, bound by its immutable numeric account id, never its login), which zm identity a person's account is linked to on this authority, and the sign-in that proves it.
owners/conformance
Package conformance is the owners brick's conformance suite: every owners.Accounts driver runs it against its provider (or a fake of it).
Package conformance is the owners brick's conformance suite: every owners.Accounts driver runs it against its provider (or a fake of it).
owners/github
Package github is the owners brick's GitHub driver: an account is a GitHub user or org, and its id is GitHub's numeric account id ("github:<id>").
Package github is the owners brick's GitHub driver: an account is a GitHub user or org, and its id is GitHub's numeric account id ("github:<id>").
owners/githubfake
Package githubfake is a fake GitHub on httptest for the owners brick's tests: GET /user by token, and the OAuth device flow.
Package githubfake is a fake GitHub on httptest for the owners brick's tests: GET /user by token, and the OAuth device flow.
project
Package project is the project registry: projects (registry row + project.toml + project.db), areas, identities, grant tuples, tokens, the Subjects built from them, and project resolution ("zm project why").
Package project is the project registry: projects (registry row + project.toml + project.db), areas, identities, grant tuples, tokens, the Subjects built from them, and project resolution ("zm project why").
release
Package release is the signed release format (SPEC 2 "Release channel"): a manifest naming each release tarball's SHA-256, signed with an Ed25519 key that only CI holds.
Package release is the signed release format (SPEC 2 "Release channel"): a manifest naming each release tarball's SHA-256, signed with an Ed25519 key that only CI holds.
sealbox
Package sealbox is the one sealing primitive between daemons (SPEC 17.11 "Sealed secrets"): a run-target call's secrets or jit_config, and a relayed op holding them, go from one daemon to the next only sealed to the receiving daemon's key, on every leg and whatever carries it (the tunnel, the tailnet).
Package sealbox is the one sealing primitive between daemons (SPEC 17.11 "Sealed secrets"): a run-target call's secrets or jit_config, and a relayed op holding them, go from one daemon to the next only sealed to the receiving daemon's key, on every leg and whatever carries it (the tunnel, the tailnet).
secrets
Package secrets is the one way zm, Potluck and their adapters read and store a secret (an API key, a token, a password).
Package secrets is the one way zm, Potluck and their adapters read and store a secret (an API key, a token, a password).
secrets/inventory
Package inventory is the secrets key inventory as code: every key a home holds has a row with a class, and Check reports a key that has no row, a key held below its class, and a key that sits where an agent session can read it.
Package inventory is the secrets key inventory as code: every key a home holds has a row with a class, and Check reports a key that has no row, a key held below its class, and a key that sits where an agent session can read it.
server
Package server is the daemon shell: it opens the store and the project registry, lets the binary's Wiring construct the modules into core.Deps, mounts their routes on one guarded router and serves the API on the home's socket (config.Names: the program's first socket name).
Package server is the daemon shell: it opens the store and the project registry, lets the binary's Wiring construct the modules into core.Deps, mounts their routes on one guarded router and serves the API on the home's socket (config.Names: the program's first socket name).
sqlbackup
Package sqlbackup is the SQLite backup brick: a consistent compact copy of a live database (VACUUM INTO), a check that a copy is a whole database (integrity_check, and a size that matches its pages), and retention that never removes the newest copy.
Package sqlbackup is the SQLite backup brick: a consistent compact copy of a live database (VACUUM INTO), a check that a copy is a whole database (integrity_check, and a size that matches its pages), and retention that never removes the newest copy.
store
Package store owns every SQLite handle the daemon has: registry.db (one per machine) and one project.db per project.
Package store owns every SQLite handle the daemon has: registry.db (one per machine) and one project.db per project.
swap
Package swap keeps a daemon swap (stop, restart, upgrade) from breaking what this machine serves (SPEC 2, "Swaps").
Package swap keeps a daemon swap (stop, restart, upgrade) from breaking what this machine serves (SPEC 2, "Swaps").
tailnet
Package tailnet is the optional network door: an embedded Tailscale node (tsnet) that serves this daemon's API to the tailnet, and the list of other zm nodes on it.
Package tailnet is the optional network door: an embedded Tailscale node (tsnet) that serves this daemon's API to the tailnet, and the list of other zm nodes on it.
tailnet/tailnettest
Package tailnettest is a tailnet on loopback for tests: several daemons on one machine, each with its own fake node behind the same tailnet.Node interface the tsnet path uses.
Package tailnettest is a tailnet on loopback for tests: several daemons on one machine, each with its own fake node behind the same tailnet.Node interface the tsnet path uses.
teamlink
Package teamlink is being joined to another daemon (SPEC 17, KIT layer): on a team project's authority, zm project team|solo, invites and their redemption (the only unauthenticated route besides health and the receipt key), operator classes, the machine-op queue (ops.go: kinds are registered by the modules that own them), the heartbeat's answer (beat.go: parts are registered too) and machine numbers (machine.go: GET /v0/machines); on a member's machine, the heartbeat loop, zm join and zm leave, the joined projects (remotes) with their node-bound tokens, the client to each authority (every call goes through Send: the token, scope_version, the header it answers with, 401 counting, purge and role recovery), and GET /v0/people.
Package teamlink is being joined to another daemon (SPEC 17, KIT layer): on a team project's authority, zm project team|solo, invites and their redemption (the only unauthenticated route besides health and the receipt key), operator classes, the machine-op queue (ops.go: kinds are registered by the modules that own them), the heartbeat's answer (beat.go: parts are registered too) and machine numbers (machine.go: GET /v0/machines); on a member's machine, the heartbeat loop, zm join and zm leave, the joined projects (remotes) with their node-bound tokens, the client to each authority (every call goes through Send: the token, scope_version, the header it answers with, 401 counting, purge and role recovery), and GET /v0/people.
tunnel
Package tunnel is the tunnel transport (SPEC 17.11): a team's home serves its API on a loopback HTTP listener that a Cloudflare Tunnel (cloudflared) forwards to, and a member reaches it at an https URL without Tailscale.
Package tunnel is the tunnel transport (SPEC 17.11): a team's home serves its API on a loopback HTTP listener that a Cloudflare Tunnel (cloudflared) forwards to, and a member reaches it at an https URL without Tailscale.
tunnel/cfsetup
Package cfsetup is zm tunnel setup (SPEC 17.11 "Your own domain"): it puts a team's home at https://<hostname> on the team's own Cloudflare zone with one command.
Package cfsetup is zm tunnel setup (SPEC 17.11 "Your own domain"): it puts a team's home at https://<hostname> on the team's own Cloudflare zone with one command.
tunnel/tunneltest
Package tunneltest stands in for Cloudflare in tests (SPEC 17.11): a loopback TCP proxy in front of a home's tunnel listener that can stall the connections open now (a lost packet in TCP backoff), go offline, or send its traffic to another home (a hijacked hostname).
Package tunneltest stands in for Cloudflare in tests (SPEC 17.11): a loopback TCP proxy in front of a home's tunnel listener that can stall the connections open now (a lost packet in TCP backoff), go offline, or send its traffic to another home (a hijacked hostname).
updatejob
Package updatejob writes, loads, starts, reads and removes one program's daily update job as this user's own scheduled job: a systemd --user timer on Linux, a LaunchAgent on macOS; never root.
Package updatejob writes, loads, starts, reads and removes one program's daily update job as this user's own scheduled job: a systemd --user timer on Linux, a LaunchAgent on macOS; never root.
Package mcp exposes Potluck's sandbox tools over MCP, plus the tools a program built on Potluck adds (Tools, Add).
Package mcp exposes Potluck's sandbox tools over MCP, plus the tools a program built on Potluck adds (Tools, Add).
Package menubar is what Potluck's macOS menu bar item shows and what its clicks do: the facts about this machine's lending (its cores, the sizes it shares and what runs on them, the host switch) turned into the menu's lines and items.
Package menubar is what Potluck's macOS menu bar item shows and what its clicks do: the facts about this machine's lending (its cores, the sizes it shares and what runs on them, the host switch) turned into the menu's lines and items.
Package placement is the one rule for which box binding of a pool takes a new box: sandboxes (computeclient.PlaceBox) and GitHub runner jobs (runners) both judge and rank bindings here, so the pool's order and its reasons are the same everywhere.
Package placement is the one rule for which box binding of a pool takes a new box: sandboxes (computeclient.PlaceBox) and GitHub runner jobs (runners) both judge and rank bindings here, so the pool's order and its reasons are the same everywhere.
Package portstream adapts bounded lease-authorized port operations to net.Conn.
Package portstream adapts bounded lease-authorized port operations to net.Conn.
Package protocol holds the wire types of the potluck/1 driver protocol (docs/protocol.md): the request a driver reads on stdin, the error shape it answers with, and the capability and state names the protocol defines.
Package protocol holds the wire types of the potluck/1 driver protocol (docs/protocol.md): the request a driver reads on stdin, the error shape it answers with, and the capability and state names the protocol defines.
Package pushbase reuses a holder's sealed repository snapshot when a host supports it.
Package pushbase reuses a holder's sealed repository snapshot when a host supports it.
Package roomwait is the one wait of a command that asked for a box and was told only that there is no room now: it asks again, up to a bound, saying why and when it asks next.
Package roomwait is the one wait of a command that asked for a box and was told only that there is no room now: it asks again, up to a bound, saying why and when it asks next.
Package runners is the GitHub runner broker (SPEC 20 "GitHub runner broker"): on an authority, GitHub Actions jobs for linked installations of one GitHub App run in a pool project's boxes, each box starting a just-in-time runner the broker minted (SPEC 20 "A GitHub runner is a box").
Package runners is the GitHub runner broker (SPEC 20 "GitHub runner broker"): on an authority, GitHub Actions jobs for linked installations of one GitHub App run in a pool project's boxes, each box starting a just-in-time runner the broker minted (SPEC 20 "A GitHub runner is a box").
Package runtarget is the daemon's side of run targets (SPEC 20): owner-only bindings in project.toml, and describe, acquire, status, release, list and renew through each binding's potluck-driver-<driver> (or zm-run-<driver>) process.
Package runtarget is the daemon's side of run targets (SPEC 20): owner-only bindings in project.toml, and describe, acquire, status, release, list and renew through each binding's potluck-driver-<driver> (or zm-run-<driver>) process.
rt
Package rt is the run-target module's published surface (SPEC 20): the service other modules reach through core.Deps (From), the interfaces a machine's host side and the team relay implement, the shared time limits, and the project.toml [[run_targets]] section (projectfile.go) and $ZM_HOME/run_targets.toml (hostfile.go).
Package rt is the run-target module's published surface (SPEC 20): the service other modules reach through core.Deps (From), the interfaces a machine's host side and the team relay implement, the shared time limits, and the project.toml [[run_targets]] section (projectfile.go) and $ZM_HOME/run_targets.toml (hostfile.go).
scripts
release command
Command release builds Potluck's release tarballs: per OS and architecture, every program an install needs, packed as dist/potluck_<version>_<os>_<arch>.tar.gz, and dist/SHA256SUMS in the format `shasum -a 256 -c` reads.
Command release builds Potluck's release tarballs: per OS and architecture, every program an install needs, packed as dist/potluck_<version>_<os>_<arch>.tar.gz, and dist/SHA256SUMS in the format `shasum -a 256 -c` reads.
release-keygen command
Command release-keygen makes a new Ed25519 key pair for Potluck's release channel.
Command release-keygen makes a new Ed25519 key pair for Potluck's release channel.
release-sign command
Command release-sign signs a Potluck release: it reads the SHA256SUMS scripts/release wrote and writes manifest.json (schema potluck-release/1), its raw Ed25519 signature manifest.json.sig (potluck upgrade checks it) and the same key's SSHSIG signature manifest.json.sshsig (install.sh checks it with ssh-keygen) beside it, signed with the Ed25519 key in POTLUCK_RELEASE_KEY (base64 of the 32-byte seed, as scripts/release-keygen prints it).
Command release-sign signs a Potluck release: it reads the SHA256SUMS scripts/release wrote and writes manifest.json (schema potluck-release/1), its raw Ed25519 signature manifest.json.sig (potluck upgrade checks it) and the same key's SSHSIG signature manifest.json.sshsig (install.sh checks it with ssh-keygen) beside it, signed with the Ed25519 key in POTLUCK_RELEASE_KEY (base64 of the 32-byte seed, as scripts/release-keygen prints it).
softnet-release command
Command softnet-release assembles one pinned Softnet build's release files (softnet.Builds): the executable, checked against its pinned SHA-256 and size, the upstream LICENSE, provenance.json, SHA256SUMS and the release notes.
Command softnet-release assembles one pinned Softnet build's release files (softnet.Builds): the executable, checked against its pinned SHA-256 and size, the upstream LICENSE, provenance.json, SHA256SUMS and the release notes.
Package softnet is Potluck's one record of which Softnet a Mac can use for Tart's isolated network (For), the Softnet builds Potluck itself pins (Builds), and the managed install of one of them (Store): root owned, setuid, kept beside the build it replaced so it can roll back.
Package softnet is Potluck's one record of which Softnet a Mac can use for Tart's isolated network (For), the Softnet builds Potluck itself pins (Builds), and the managed install of one of them (Store): root owned, setuid, kept beside the build it replaced so it can roll back.
Package taskproxy supplies a cooperative HTTP proxy for task processes.
Package taskproxy supplies a cooperative HTTP proxy for task processes.
Package usage is the sandbox usage ledger (SPEC 20 "Boxes", "Usage"): one immutable row per box handle, written when run targets report the handle's end (rt.Service.OnEnd, after zm's final status), and read back scoped to the areas the caller reads.
Package usage is the sandbox usage ledger (SPEC 20 "Boxes", "Usage"): one immutable row per box handle, written when run targets report the handle's end (rt.Service.OnEnd, after zm's final status), and read back scoped to the areas the caller reads.
Package vmhost is a SPEC 20 run target that runs each job in a throwaway VM on this host: a fresh clone of a base image, booted with an isolated network and nothing of the host's attached, holding a clean checkout of exactly the commit sent, or a box (a GitHub JIT runner is a box's).
Package vmhost is a SPEC 20 run target that runs each job in a throwaway VM on this host: a fresh clone of a base image, booted with an isolated network and nothing of the host's attached, holding a clean checkout of exactly the commit sent, or a box (a GitHub JIT runner is a box's).
shelfhelper
Package shelfhelper holds potluck-deps, the shell helper a box runs to use the package shelf (docs/shelf.md).
Package shelfhelper holds potluck-deps, the shell helper a box runs to use the package shelf (docs/shelf.md).
Package wiring is the daemon wirings below zm's (internal/wiring, ORCH): Kit, the shared base (identity, projects, transports, teamlink), and Compute, Kit plus run targets, runners, usage and secret grants.
Package wiring is the daemon wirings below zm's (internal/wiring, ORCH): Kit, the shared base (identity, projects, transports, teamlink), and Compute, Kit plus run targets, runners, usage and secret grants.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL