CerebeCerebe Docs
Cerebe Factory

Troubleshooting

Fixes for a review that never runs, a blocked push, critic timeouts, and a missing or failing cerebe/critic check.

Start with cerebe doctor. It checks git, the hooks, cerebe.yaml, and each critic's CLI. A [WARN] or [FAIL] row is followed by a fix: line with the next step.

On your workstation

Commits and pushes go through with no review

Local review is off until you add a critic, so each commit's review is recorded as skipped and the pre-push gate does not require one. cerebe doctor shows this as [WARN] critic_fleet: no critics enabled. Run cerebe model add claude (or cursor, codex, gemini, kimi) to turn it on.

If a critic is enabled and nothing runs:

  • Check the hook:post-commit and hook:pre-push rows of cerebe doctor. Run cerebe init to write missing hooks, including after you change core.hooksPath.
  • A hook that prints cerebe: not found could not find the binary. Put cerebe on PATH, or set CEREBE_BIN to its path.
  • CEREBE_SKIP_REVIEW set in your shell skips the review of every commit. Unset it.

The push is blocked because the commit has no review

The pre-push hook runs cerebe gate-push --wait. While the commit's review is still running, the gate waits for it and then checks its verdict. It prints BLOCKED — no review found when the commit has no review, for example one made with CEREBE_SKIP_REVIEW=1, and BLOCKED — review IN PROGRESS when the wait ran out first. Run cerebe watch to see whether a review is running, or cerebe review to review HEAD in the foreground, then push again.

NOT EVALUATED or QUORUM UNMET

The gate has no verdict because too few critics completed, not because a critic found something. NOT EVALUATED means no critic completed; QUORUM UNMET means some did, but fewer than the quorum. The message names the cause after cause::

  • timeout: a critic ran out of time. A retry with the same budget times out again, so raise it: cerebe review --timeout 20m, or set criticTimeout (see Configure).
  • queue_contention: the critics never started, because another review on this machine held that vendor's slot. Let that review finish, or stop it, then review again. A longer timeout does not help.
  • error: a critic's CLI failed. Run cerebe inspect to check that each vendor CLI is installed, signed in, and responding.
  • insufficient_fleet: fewer critics are enabled than the quorum. Add a critic with cerebe model add, or lower the quorum with cerebe model quorum.
  • mixed: more than one of these causes. Handle each critic by its own cause.

cerebe postmortem HEAD reports whether a different timeout, quorum, or missing-review setting would have changed the outcome.

A local gemini critic exits with code 55

gemini-cli releases that enforce folder trust, such as 0.57, exit with code 55 in a folder they do not trust. Cerebe does not grant gemini that trust in local reviews, so a local gemini critic cannot review on those releases. Remove it with cerebe model remove gemini and use a different vendor for local review.

Review fails with D1 scratch dir: no trusted parent

On Linux and macOS, a local review needs a private scratch directory outside your home and temp directories. Cerebe uses /var/tmp when it is root-owned, sticky, and world-writable, or XDG_RUNTIME_DIR when it points to a directory you own with mode 0700. In a container with a read-only root, mount a writable directory with that owner and mode and set XDG_RUNTIME_DIR to it. A writable /tmp or home directory is not enough, and setting TMPDIR=/var/tmp rules out /var/tmp.

The push is refused for a path under cerebe/

The pre-push gate refuses a push that adds or changes a generated path under cerebe/: reviews/, runs.ndjson, outbox/, cache/, *.lock files, or plugins/bundled/. On a new branch, a path the branch already tracks is refused even when your commits did not touch it. Stop tracking the refused path; --ignore-unmatch skips a path that is not tracked:

git rm -r --cached --ignore-unmatch cerebe/reviews cerebe/runs.ndjson

Commit that deletion and push. Add any refused path the command does not name.

A leftover cerebe/cli-version file is a retired version pin. Delete it and commit the deletion.

A verification route blocks the push

  1. Run cerebe verify --list. A line such as unit-tests required missing names a route the change armed that has no passing evidence.
  2. Run cerebe verify. When the route passes, it prints PASS route[unit-tests]; push again.
  3. If cerebe verify exits 2, a tool or prerequisite the route needs is not available on this machine, and the route still has no evidence. Install it and run cerebe verify again.
  4. If the route fails on a change that did not touch it, run cerebe verify --triage-base origin/main --route <id>. Exit 3 means it fails the same way at origin/main.

See Verification routes.

A config change has no effect

Run cerebe config get <key> --explain. It shows every layer that sets the key, the layer that wins, and whether a lock ignored your local override. Run cerebe schemas validate cerebe.yaml to catch a misspelled key: it fails with the line and a suggestion, such as unknown key "behaviour" (did you mean "behavior"?).

A leftover darkfactory.yaml still loads. Run cerebe config migrate to rename it to cerebe.yaml, and commit both sides of the rename.

You installed an npm or pip package

The CLI is a compiled binary, not a package. See Install troubleshooting.

On the pull request

cerebe/critic never appears

The Cerebe GitHub App must be installed with access to the repository. Nothing in the repository runs the check: the App posts it when a pull request is opened or updated. If the App is installed, check that the repository is one of its selected repositories, then push a commit to the pull request.

If you required the check before it ever reported, every pull request waits on it. Require only check names you have seen report. The pre-rename name dark-factory/critic is no longer posted, so a ruleset that requires it waits forever. See Make the check binding.

The pull request gets a note instead of a review

On a private repository, Cerebe reviews a pull request when the workspace has a plan or a trial and the pull request's author is a member. The note names the reason:

  • No plan: connect the installation to a workspace, or start a plan under Settings → Billing & usage. See Billing.
  • The author is not linked: a workspace admin adds them by GitHub login under Settings → Members & access, or the author connects their GitHub account. See Workspace and teammates.

After the fix, push a new commit or choose Fresh review on the check.

cerebe/critic fails with "could not complete"

The panel produced no verdict, for example because model vendors errored or timed out. Cerebe re-runs the review automatically, up to twice, before it reports this. It is not a rejection of your code. Push a new commit or choose Fresh review to try again.

Local review passed, but cerebe/critic asks for changes

The two run different panels under different policy, and the local settings in your repository cannot change the Platform's. The Platform's rules are in review settings. Address the findings on their evidence, in a new commit.

The pull request merged with findings open

A check that is not required does not block a merge. Make cerebe/critic a required status check. See Make the check binding.

Still stuck

Report a bug to support@cerebe.ai with the output of cerebe doctor --json.

On this page