10. When things go wrong
By the end of this chapter you will fix the common set-up problems yourself, unstick a task, and know how the factory recovers on its own.
Start with maku doctor
maku doctor checks your set-up in the order things fail, and prints the fix for each. Run it first, whatever is wrong:
ok dns: rooms.example resolves
ok tls: the certificate chain is trusted
ok login: the token is valid
ok github: your GitHub identity is linked
ok skill: /home/you/.claude/skills/maku-handoff is vX.Y.ZA failing check reads FAIL <check>: … with its fix, and a warn line flags something to look at without failing the run.
| Symptom | Cause | Fix |
|---|---|---|
maku: command not found | Not installed | Download it from a Maku release, check it against maku.sha256 |
not configured | No config yet | Copy the maku configure … line from the room list’s Use maku from your terminal fold |
FAIL dns, or no such host on the rooms address | Off the private network (for private-exposure installs) | Connect to your organisation’s VPN or private gateway, then run maku doctor again |
FAIL tls, or x509: certificate signed by unknown authority | Internal CA certificate is not trusted | Add the CA certificate your platform team gave you to your trust store (chapter 2) |
FAIL login, not_logged_in | Your session ended | Run maku login |
FAIL github; maku rooms lists nothing | Your GitHub account is not linked to your sign-in | Open /link/github on the room pages and press Link GitHub (GitHub link) |
A 403 on the room list | You are not in the configured rooms member group | Ask an administrator to add you |
FAIL skill | A maku-handoff skill from another maku release | Run maku setup <client> again, or delete the stale copy |
| Your coding agent has no factory tools | The client was running before maku setup | Restart it; for OpenCode, maku doctor says whether its background service needs a restart |
Slack says no
| You see | Fix |
|---|---|
Not proposed: … is not linked to a GitHub account here | Mention @factory link, open the page it sends you, press Link |
Not filed: … is not a maintainer of … | Ask a maintainer of the repository to press Confirm |
Not proposed: the planner reads public repositories only | The work is in a private repository: hand it off from your coding agent or GitHub instead |
Proposal not posted: this plan covers N issues and Slack files one | One mention per issue, or use your coding agent |
| No answer at all | The app is not in the channel, or the channel is not served: invite @factory, ask your platform team |
Full Slack behaviour and flows live in Use › Slack.
A task looks stuck
- Open the room and read the status line and NEXT. A task waiting for you says so, and names the move. Check Needs you (chapter 6). From a terminal,
maku why <task>says in one line why it stopped, then what to do next. - Read NOW. An agent still calling tools is working; long runs are normal up to their deadline.
- Queued, with no run? Another task may hold the factory’s run slots, or you hold the room’s driver token (hold).
- Nothing moves, nothing needs you? Label the issue
factory/stop, then continue it or start over withfactory/ready.
The factory answers a factory/ready it will not act on with a comment, and removes the label:
| Reason | Fix |
|---|---|
unauthorised_labeller | The label was not a maintainer’s: ask one to apply it |
edited_after_label | The issue changed after the label: re-apply it |
task_active | A task for this issue is still running: wait, or stop it first |
unsanitisable | The text could not be made safe for an agent: simplify its markup |
The machine went away
Agents often run on spot or preemptible cluster nodes, which the cloud provider can reclaim at short notice. When that happens, the factory says so on the issue and starts the run again on the same branch and room.
The agent saves its unfinished work as a commit on the way out, so the new run picks up where it stopped. This happens at most twice per task, and you do nothing.
A run failed
A run that fails on its own, rather than losing its machine, is not restarted. The task waits for you, and the issue says why. Comment /factory retry to try again, after fixing the issue if it was unclear.
Out of time or money
Every run has a deadline and a spending cap, set by the task’s tier, and the whole task has a cap too (chapter 5). A task out of budget waits for you: /factory retry starts a fresh run if the task can still afford one. The factory also takes only so many tasks a day; past that, it refuses a labelled issue with a comment. Full budget and tier configuration: Reference › Budgets.
Stop everything
To stop one task, label its issue factory/stop (chapter 5).
To stop every task at once, label the factory’s pinned control issue factory/stop. The factory stops taking new issues and ends every run. Your platform team has an emergency switch of its own (Operate › Factory).
Continue a stopped task
A stopped task stays stopped. Its branch keeps everything the agents pushed, and a new run can carry on from there. Ask your platform team to start it, or follow the terminal workflow in the maku CLI.
Undo an automatic merge
Label the merged pull request factory/revert within 7 days (chapter 7).
Questions people ask
Can an agent push to main? No. Agents may push only to their own agent/ branches. The merge bot merges, and only what you approved or one of the few low-risk kinds of change.
Can my coding agent approve or start work on its own? No. maku and the factory’s tools never approve, label, or merge. Starting a task is your answer to a form, or your own label.
Can it read our secrets? It holds no long-lived credential: each run’s GitHub token covers one repository and ends with the run.
Can it reach the internet? Only GitHub, the model gateway, and, when needed, package registries on the egress allow-list.
Does a comment on the issue reach the agents? No. The factory reads the issue’s title and body when it is labelled, and comments that start with /factory. Edit the issue and re-apply factory/ready, or queue a note in the room.
What if it goes in circles? Its deadline or spending cap ends it, and you can stop it any time.
Next: if you maintain a repository, chapter 11 configures its merge policies. Everyone: keep the cheat sheet at hand. It has every label, comment, tool, and command on one page.