Find out why a build ended
Start from the work item, not the host. Every build records how it ended, the session that ran in it, and the runner’s log.- Run
outerlayer work status --item <n> --json. The item’sclaimslist every build, newest first. - Read the newest claim’s
outcome,stage,exitCodeandreason. Look them up in Outcomes and reasons. - Find the build’s session. It is the session whose
claimIdmatches the claim’sid. It shows what the agent did last. - Run
outerlayer work logs --item <n>to print the runner’s log for the newest build. Add--attempt <id>for an earlier build. - Run
outerlayer work threads --item <n>to read what a reviewer asked for.

An item whose build failed: the reason is at the top of the Overview tab, and Build again is at the foot.
outerlayer work logs exits with an error while the build still runs. When a build ends in provision, sync, cleanup or report, the log ends with the last lines of that stage.
An agent can read the same data through the MCP server, with get_work_item, get_runner_log and get_work_item_threads.
Log in to the host only when these steps do not answer your question.
Read the runner’s log on the host
outerlayer runner logs <item> prints the log of the item’s newest build. The runner’s own log has one line for each event, with the item number after #:
- The snapshot a sandbox build came from:
sandbox <id> comes from snapshot <name>. - The CLI build that made the build image, beside the runner’s own version. An image that a newer CLI made than the runner can fail to start.
- The file each package tool runs after the runtime install:
tools: node v24.22.1 at <file> · npm at <file> · pnpm at <file> · yarn at <file>. A path undercorepackmeans Corepack runs that tool, and Corepack picks its version from the folder a command starts in.
continuing or retrying next tick is a failure the runner recovered from. A failure that repeats is logged as still failing: <message>, then recovered: when it stops.
Before the first build
outerlayer doctor says the installation “has not accepted” a permission
Builds need a permission that the GitHub App installation has not accepted.
- Open the settings page that
outerlayer doctorlinks. - Accept the permission. You must be an owner of the installation.
outerlayer doctor says the App’s own settings must add the permission, you cannot accept it yet. OuterLayer must add it to the App first.
See Check what each repository is missing.
A runner key is refused on a new machine
The runner says the key is “bound to another host’s key”, and OuterLayer refuses its requests withrunner_key_signature_invalid. A runner key works only on the first machine that used it.
- If you moved the key to this machine on purpose, open Settings → API keys and select Clear host key. The next claim binds the key to the new host. See Moving a runner to a new host.
- If you did not move the key, treat it as leaked. Revoke it and make a new one.
When the gateway refuses a signature
The runner signs each request with its host key. OuterLayer answers a request it cannot verify with a401 and one of these codes. It also writes runner_key_signature_refused to the organization audit log.
When the Image build limit check fails
outerlayer doctor fails the “Image build limit” check, and the runner claims nothing. Docker’s Buildx plugin is missing or older than 0.18.
This applies to builtin:container hooks, and to builtin:vm hooks with runner.build.imageBuild set to host.
- Install Buildx 0.18 or later. On Debian and Ubuntu, install
docker-buildx-pluginfrom Docker’s apt repository, ordocker-buildxfrom Ubuntu’s own packages. - Run
outerlayer doctoragain.
When no build starts
When nothing is building an item
No runner is building the item. The item page says why, andouterlayer work status --item <n> --json returns the cause as waiting. When a build request waits and no runner takes it, the item reads Not picked up.
A runner counts as checked in while its last heartbeat is newer than three of its poll intervals.
An item queued for a managed runner reads Queued, and the item page says what it waits for. Examples are a missing Anthropic API key, a spending cap and a limit on builds at once. See Limits on managed builds.
When the runner is blocked
The runner logsclaiming nothing: and a reason, and takes no work. It cannot run a build as it is set up. A typical line:
the runner can run its work again · taking work and claims on its next poll.
In the runner container image, set
OUTERLAYER_BUILD_MEMORY or OUTERLAYER_CONCURRENCY in the env file for the last two rows. Then recreate the container.
Two fixes need a restart of the service: access to /dev/kvm, and a credential added to claude.env. The others take effect on the next poll.
The runner checks as the service’s account, not as your shell. A shell that shows the kvm group says nothing about the service. outerlayer doctor reports what the running service has.
When the runner holds off for disk
The runner takes no work and logs this line. It has less free disk than it needs.<config dir>/runner, or lower runner.housekeeping.minFreeDisk. By default the minimum equals runner.build.disk, which is room for one more build.
The runner keeps the builds it already has. When there is room, it logs free disk is back above the minimum · taking work again and claims again with no restart.
The runner removes what its own builds leave behind. It does not remove other files, such as Docker images that a person pulled. See Housekeeping.
When the gateway refuses the runner’s version
The item reads Not picked up, with the caption “runner needs an update”. The runner’s log has this line:- Do the steps in Update a runner for the way your runner runs.
- Open Settings → Runners and check that the runner’s status is Ready, not Refused.
When a failed item is not built again
One build request starts one build. A build that endsok, incomplete, failed, timed_out or idle uses up its request, so no runner takes the item again. So does a claim that expires, and a build that a person stops through OuterLayer.
To build again, do one of these:
- Run
outerlayer work build --item <n>. - On the item page, choose Build again at the foot of the page. After a build that you stopped or that timed out, the foot shows Resume first. Resume continues the same agent session. Build again starts a new one.
- With an open pull request and a review that waits on an agent, select the rerun button beside Build time in the sidebar (in a narrow Inbox pane, behind Details), then Rerun.
interrupted or lease_lost keeps its request, so a runner takes the item again without being asked. So does a build that the provision hook declines with exit 75, and a build stopped on the host.
The second lease_lost build of one request uses the request up. The item then waits until you rerun the build. This limit stops an item whose build ends its runner each time from building without end.
A provision failure that can clear by itself also keeps its request. The runner treats these failures that way:
- The sandbox provider does not answer, asks the runner to slow down, or answers with a server error.
- A fetch of the control plane fails, or a request to OuterLayer for its token fails for a moment.
- GitHub refuses the control plane or the repository to the token that OuterLayer issued.
failed. Its reason ends with (provision failed this way 3 times in a row).
When a build ends early
When a build has no build skill
The build fails in the provision stage, and the agent never starts. The reason reads the build has no `build` skill, so /build would load nothing, then lists the paths the runner checked.
The implement command runs /build, and the runner found no build skill in any of these places:
.agents/skills/build/SKILL.mdin the clone- the skills folder of the build’s agent in the clone, such as
.claude/skills/build/SKILL.mdfor Claude Code - the governed context delivered to the build
.gitignore line such as build/, which also matches .claude/skills/build/. Run outerlayer doctor to find it. To see what a repository’s builds receive, run outerlayer context show.
When only OuterLayer can fix a managed build
A build on a managed runner fails in theprovision stage, and the agent never starts. The reason reads like this:
- Build the item again later. OuterLayer must fix the fault first.
- You pay nothing for the build. See How a build is counted.
outerlayer work logs --item <n> to read the runner’s full reason. It names the runner’s own settings, which you cannot change on a managed runner.
When a build is killed and the runner did not end it
The build fails with one of these reasons:the command exited 137, the status of a process killed by SIGKILL; the runner did not end itthe command was killed by SIGTERM on the host; the runner did not end it
timed_out, idle, lease_lost or stopped.
When a build ends as lease expired
The Activity section says the build “ended when its lease expired”, with the time the runner last renewed the claim. Inouterlayer work status --item <n> --json, the claim has leaseExpired: true.
The runner stopped without ending the build. For example, the machine lost power or the runner’s process was killed. The claim then expired, 15 minutes after its last renewal.
The expired claim uses up its build request. To build again, see When a failed item is not built again.
A runner can also lose a claim before its build starts. When the runner next checks in, it ends that claim itself and logs the lease lapsed with no build on this host. The item is then available again. This covers claims that expired in the last 24 hours.
When a build finished but its release failed
The runner’s log has a line such as this one, and noreleased line for the build:
outerlayer runner status --recent marks the build (release failed).
The next outerlayer runner start sends the report again. Until then, no runner builds the item again. If release failed repeats, check the runner’s network path to OuterLayer.
When a build ends without a pull request
The item reads Needs attention, and the Work page shows a sentence from the agent under the title. The agent ended the build withouterlayer work needs-attention, because it could not finish.
The sentence says what stopped the build and what you can do. Examples are a build variable that the tests need, or a test that fails on the default branch.
- Do what the sentence says.
- Choose Build again at the foot of the item page.
When a build finds no change is needed
The item reads No change needed, and no pull request opens. The build found that the issue needs no change. For example, the default branch already fixes the bug, or the issue duplicates another issue. The item page shows the build’s reason, with a link to the evidence when the build gave one. OuterLayer also posts the reason as a comment on the issue in GitHub, Linear or Jira. OuterLayer does not close the issue, because the agent can be wrong.- Read the reason and the evidence on the item page.
- If the reason is right, close the issue in the tracker.
- If the reason is wrong, select the rerun button beside Build time. Add instructions that say what the build missed, then choose Rerun.
outerlayer work no-change.
Memory and disk
When a build runs out of memory
A microVM build fails with this reason:runner.build.memory. Then check that the builds still fit the host, as Memory limits says. Only that build ends. The runner and its other builds carry on.
A build that is killed below its limit means the host needs more memory. Lower runner.concurrency to leave more room.
Each microVM build has a memory limit of its own only under the service that outerlayer runner install --service writes. With a unit you wrote yourself, outerlayer doctor warns. Run outerlayer runner install --service --replace to write the unit again.
When an image build runs out of memory
The build fails in theprovision stage with this reason:
runner.build.memory. The build log that the reason names shows the step.
Raise runner.build.memory. Then check that the builds still fit the host, as Memory limits says. After the change, the next image build starts with an empty cache.
When a build or an image build runs out of disk
A microVM build has a disk of a fixed size, so it never ends with the first two reasons.
Network and pushes
When an image build calls a host the tunnel refuses
Withbuiltin:vm hooks, the build fails in the provision stage. The reason names each refused host:
runner.build.allowHosts, or a private address.
- If the step needs a public host, add the host to
runner.build.allowHosts. Hosts an image build needs lists the hosts that the default recipe needs. - If the step needs a private address, such as a registry on your own network, set
runner.build.imageBuildtohost. A managed runner cannot do this.
When a managed build cannot reach a host
A setup script or a build on a managed runner fails. Its reason ends with a line like this:- Open the factory’s Settings → Build settings.
- Add each host the reason names under Allowed hosts. See Managed build settings.
- Build the item again.
outerlayer work logs --item <n>. The log has one tunnel refused <host> line for each.
When a task runner hides the proxy variables
A task that downloads something cannot connect, such as a Next.js build that fetches Google Fonts. This applies only to a build through your own hook’sexec.
A task runner that filters the environment hides the proxy variables from the tasks it starts. Turborepo does this by default.
For Turborepo, list HTTP_PROXY, HTTPS_PROXY, NO_PROXY, their lowercase forms and NODE_USE_ENV_PROXY in globalPassThroughEnv in turbo.json.
A container or microVM build is not affected. Its network sends every connection to the tunnel, with or without the variables.
When a build’s push is refused
A container or microVM build pushes through the runner, and the runner refuses a push that breaks the branch rule. The runner logspush refused: <refs>, and git prints one of the messages below.
The rule: a build may push only to the claim’s branch. On an outerlayer/ branch, any push goes through, a force-push included. On any other branch, the push must create the branch or fast-forward it.
The runner refuses a whole push. Some tools push refs of their own from a git hook, such as a checkpoint tool that pushes
refs/<tool>/*. A push that sends the branch and such a ref together updates neither. If the tool’s pre-push hook exits non-zero when its own push is refused, git stops the push of the branch too.
After the build
When a pull request conflicts with its base branch
The Activity section shows Conflicts with and the base branch. For a pull request that a runner built, a runner resolves the conflict without being asked. If no run starts, check these causes:- Resolve merge conflicts automatically is off in Settings → Automations.
- A person opened the pull request from their own session. A runner resolves conflicts only on a pull request that a runner built.
- The runner already tried on this head of the pull request. It tries once for each head.
When a GitHub check fails
A runner fixes a failed GitHub check on a pull request that a runner built. If no run starts, check these causes:- Fix failed GitHub checks is off in Settings → Automations.
- A person pushed the head. The runner acts only on a head that the factory pushed.
- A GitHub check on the head still runs. The runner waits until none runs.
- The runner reached its Attempts limit since a person last acted. The item says so.
Outcomes and reasons
Every build ends with an outcome. A build that did not finish often records areason too. outerlayer work status --item <n> --json returns both, and the Activity section of the item page shows both.
Outcomes
A
stopped build with the reason stopped by <name> through OuterLayer was ended with Stop build or outerlayer work stop. No runner builds the item again until someone asks. Without that reason, a person ran outerlayer runner stop --now or pressed Ctrl-C twice on the host. A runner then takes the item again.
After incomplete, failed, timed_out or idle, no runner takes the item again until someone asks. See When a failed item is not built again.
Reasons
The tables group the reasons by the part of a build where they arise. A reason about memory, disk, a refused host or a killed command has its own section above. Where the item page shows a sentence for a code, the sentence follows the code in bold. A reason holds at most 200 characters, so a long reason ends early.outerlayer work logs --item <n> prints the rest.
A hook of your own can write any other reason. See The cleanup hook.
Claim, token and repository
Governed context
These reasons apply to a repository that a control plane governs.The runner and its host
Image
Runtimes and setup
When the context is unavailable
context_unavailable means the runner could not get the control plane. The reason says which of these happened.
Then run
outerlayer doctor.