CerebeCerebe Docs
Cerebe Factory

Make the check binding

Require cerebe/critic with a branch ruleset or branch protection, so a review that asks for changes blocks the merge.

Installing the App makes cerebe/critic report on pull requests in the repositories it can access. It does not make the check block anything. A merge through the GitHub UI, an auto-merge, or a pull request pushed from another machine goes through unless the branch requires the check. The local pre-push hook gates only your own pushes.

Require the check only after you have seen it report. Open a pull request with the App installed and wait for cerebe/critic to appear. A required check that never reports blocks every pull request to that branch.

What the check reports

Every review posts the conclusion it reached: success when the panel approves, and action_required when it asks for changes. When the panel cannot complete a review, Cerebe re-runs it automatically, up to twice, and then reports failure. Whether a red check blocks a merge is up to your ruleset: require cerebe/critic to enforce reviews, or leave it optional to read them without blocking.

The check runs on Cerebe's own infrastructure, so it reviews pull requests from forks like any other.

In the GitHub settings

Add cerebe/critic to the branch's required status checks with a ruleset or a branch protection rule. The steps are in Require the check.

From the command line

cyclone prints a reference ruleset you can start from:

cyclone admit-pr --print-ruleset main \
  --source your-org/your-repo \
  --required-contexts cerebe/critic \
  > ruleset.json

The reference shape targets main and also turns on a merge queue, linear history, and required resolution of review threads. Edit ruleset.json to match how your team merges before you apply it. A merge queue needs every other required workflow to run on merge_group, or the queue never merges.

Pin cerebe/critic to the App that posts it, so a check of the same name from anything else cannot satisfy the rule. Read the App's id from a pull request's check runs:

gh api repos/your-org/your-repo/commits/<head-sha>/check-runs \
  --jq '.check_runs[] | "\(.name) app=\(.app.slug) id=\(.app.id)"'

Then set integration_id to that id on the cerebe/critic entry in ruleset.json, under required_status_checks:

{ "context": "cerebe/critic", "integration_id": <app-id> }

Apply it:

gh api -X POST repos/your-org/your-repo/rulesets --input ruleset.json
# Or update an existing ruleset:
gh api -X PUT repos/your-org/your-repo/rulesets/<ruleset-id> --input ruleset.json
# Confirm:
gh api repos/your-org/your-repo/rulesets --jq '.[] | {id, name, enforcement}'

Require the exact check name

A required check must match the name that reports, character for character. The App posts cerebe/critic. Do not require dark-factory/critic, the pre-rename name: it is no longer posted, so a rule that requires it waits forever.

To see the names that actually reported on a pull request:

gh pr view <number> --repo your-org/your-repo \
  --json statusCheckRollup --jq '.statusCheckRollup[] | .name'

A check from one of your own reusable workflows reports as <caller-job-id> / <job-name>. Require that full string, not the job name alone.

On this page