Skip to main content
A runner is the outerlayer runner process. It claims the items that your factory queues with Build, and it builds each one. A runner on a host, a machine you control, is a self-hosted runner. Each build and its code stay on that host, unless you use a managed sandbox. The platform stays at app.outerlayer.ai. Self-hosting the platform itself is not available yet. A runner takes work from two queues:
  • implement builds an item from its issue.
  • amend answers the review threads on an item’s open pull request.
A runner with built-in hooks also takes the revision of a draft spec, the recording of criteria and the code review of a new commit. These need no queue of their own. A runner can also do the runs of schedule automations. The runner.commands keys in The config file say when. You decide two things on the host: how each build is isolated, and which command starts your agent. outerlayer runner init sets both for you.

Choose how to run the runner

Find your machine in the first column. The last column names the page that sets it up. “Builds get” is the isolation each build records.
Four ways to run the runner. On Linux, systemd starts the runner service at boot, and it runs builds in containers or microVMs. On a Mac with Docker Desktop, Docker's restart policy keeps the runner image's container running in the Docker Desktop VM, and builds run as containers beside it. On a Mac without Docker, a launch agent starts a Lima VM at login, where a systemd service runs the runner and builds run in containers on Docker Engine. On Windows, a scheduled task starts a WSL2 distribution at login, where a systemd service runs the runner and builds run in containers on Docker Engine. Linux can also run the runner image; microVM builds need the service.Four ways to run the runner. On Linux, systemd starts the runner service at boot, and it runs builds in containers or microVMs. On a Mac with Docker Desktop, Docker's restart policy keeps the runner image's container running in the Docker Desktop VM, and builds run as containers beside it. On a Mac without Docker, a launch agent starts a Lima VM at login, where a systemd service runs the runner and builds run in containers on Docker Engine. On Windows, a scheduled task starts a WSL2 distribution at login, where a systemd service runs the runner and builds run in containers on Docker Engine. Linux can also run the runner image; microVM builds need the service.

Four ways to run the runner. The table adds Docker Desktop on Windows and managed sandboxes.

On any other machine, outerlayer runner init refuses and names the fix for that machine. With a managed sandbox, the runner and its credentials stay on your machine. OuterLayer bills the build’s time as managed build-hours. Three limits apply:
  • The runner image cannot run microVM builds.
  • A runner installed on a Mac, or in WSL2, does not use Docker Desktop.
  • A host that builds in containers needs Docker’s Buildx plugin, version 0.18 or later. The runner image carries its own.

What isolation a build gets

The hooks in the runner’s config file decide what a build can reach on the host. outerlayer runner init picks the strongest isolation the machine supports.
  • builtin:vm runs each build in a Firecracker microVM with its own kernel and no network device. Every connection goes through the runner’s tunnel.
  • builtin:container runs each build in a container with no host files and no network but loopback. It shares the host’s kernel.
  • Your own hooks isolate whatever your provision hook sets up. See Write your own hooks.
What each kind protects is in Security and limits.

What happens to one build

  1. Claim. The runner claims an item that someone queued with Build on the Work page, or with outerlayer work build.
  2. Provision. The provision hook makes the working directory, such as a clone inside a container of its own.
  3. Command. Your command starts the agent in that directory. The runner renews its claim while the build runs.
  4. Proofs and judge. When the command exits 0, the runner records the item’s proofs, judges its criteria and runs the repository’s judges. See The proofs stage and The judge stage.
  5. Sync. The runner uploads the build’s sessions.
  6. Cleanup. The cleanup hook runs, however the command ended.
  7. Outcome. The runner decides the outcome, ends the claim and reports the outcome.
A report hook, if you set one, runs when the build starts and again when it ends. See Write your own hooks. The runner refuses an item that another claim holds, such as a session a person started to debug a build.

When the command exits 0

An exit of 0 says only that the agent’s session ended. So the runner reads the item’s verdict before it decides the outcome:
  • ok: the item has a pull request and its verdict is pass. A person’s review does not count. A build that recorded that no change is needed also ends ok.
  • incomplete: anything else. The reason names what is missing: no pull request, each row that failed or has no result, or a status that could not be read.
For example, a reason reads not passing: Acceptance criteria: Failed (failing: AC-13-01, AC-13-02). A judge’s result can arrive after the build ends. So the runner reads a result that is not passing again for up to 5 minutes before it decides. An incomplete build uses up its build request, as an ok build does. No runner takes the item again until a person asks for another build. To ask, select Rerun on the item page, or run outerlayer work build --item <n>. See Rerun a Stuck item.

Which items a runner takes

A runner takes one item for each free slot. A build starts within seconds of its request. The runner also looks for work every runner.pollSeconds, 60 by default. The runner takes work in this order:
  1. A draft spec to revise, then criteria to record. A runner with hooks of your own, or with repos.include or repos.exclude, takes neither.
  2. The amend queue, if the runner takes amend.
  3. A code review of a new commit, if the runner has built-in hooks.
  4. The implement queue, if the runner takes implement.
  5. Runs of schedule automations.
Each queue is oldest request first. A second build request on an item that already waits does not move it. A runner with repos.include or repos.exclude rules skips items for other repositories. The runner log says how many items its rules skipped. See The config file.

Personal and shared runners

A runner is personal or shared. It depends on its runner key.
  • A personal runner has a key that belongs to one member. outerlayer runner init makes one when you approve its request in the browser. It builds only the work that member asked for.
  • A shared runner has a key made in Settings → API keys. It builds work that no member with a personal runner asked for. Give it an API key, not a Claude subscription: a subscription belongs to one person.
When you have a personal runner, every build you ask for goes to it. This includes the item’s later jobs: review answers, code reviews and criteria. Another runner never takes that work. When your runner is offline, the item waits, and its page says whose runner it waits for. This is true in a factory that builds on managed runners too. Your builds go to your personal runner, and a teammate with no personal runner builds on managed runners. You can send one build to a managed runner when you ask for it. See Choose where a build runs. You can also move a build that waits. See Move a waiting build to a managed runner. A draft revision goes to the personal runner of the member who sent the newest message. A run of a schedule automation that you start yourself goes to your personal runner. Both are true in a factory that builds on managed runners too. A run that the schedule started goes to a shared runner. In a factory that builds on managed runners, it goes to a managed runner. Settings → Runners shows whether each runner is personal, with its owner, or shared. In a factory that builds on managed runners, it lists the personal runners, and says that the other builds run on managed runners. The Build step of Add work says where your build will run.

Where to go next