AI agents: read /llms.txt for the documentation index or append .md to any guide URL for raw Markdown.
Skip to content

Rubric packs ​

In MergeJudge, rubrics are short, strict review questions. One review returns lanes, findings and a verdict per criterion.

Built-in packs ​

security (on by default) ​

idseverityraises toquestion
sec.no-secretshighblockDoes the change avoid adding real credentials, tokens or private keys?
sec.no-exfiltrationhighblockDoes it avoid sending user, cookie, storage or environment data to unexpected external hosts?
sec.no-unsafe-exechighreviewDoes it avoid eval/new Function/shell execution of untrusted input, and piping remote scripts into a shell?
sec.input-handlingmedium–Is untrusted input validated or escaped (no innerHTML/XSS sinks)?

correctness (on by default) ​

idseverityscoringquestion
cor.logichighpass/failIs the changed logic plausibly correct with no obvious bugs?
cor.errorsmediumpass/failAre errors handled instead of silently swallowed where it matters?
cor.testslow1–5Is new or changed behaviour covered by tests?

maintainability (opt-in) ​

idseverityscoringquestion
mnt.readablelow1–5Is the code readable, with no dead or debug code left behind?
mnt.scopedlowpass/failIs the change focused on one purpose?

When a rubric changes the lane ​

Only a failed high-severity criterion raises the lane, to its raise_to (default review), and only when the model quotes evidence that actually appears in the diff. Everything else is reported in the comment and as line comments, without changing the lane.

Security review mode (optional) ​

An opt-in checklist for teams that want a closer security read of each pull request. Off by default. Turn it on with a key in .mergejudge.yml on the base branch:

yaml
review:
  security: true     # default false; only a real true turns it on

In the hosted panel, the setup wizard and Edit settings have a Security review switch that writes this key in the usual pull request, which you merge. For the GitHub Action and runner-only installs, add the key to the file yourself. Versions that do not know the key ignore it and review as usual.

When on, five attack-class criteria are scored next to the packs above (and rubrics.enabled: false is overridden):

idlooks for
sec.audit.injectionuntrusted input reaching a sink unescaped: SQL, shell, eval, HTML, file paths, redirects, deserialization
sec.audit.authza route, job or tool acting for a caller without an auth or ownership check (missing auth, IDOR, a dropped role check)
sec.audit.secrets-cryptocredentials logged, returned or committed; weak or home-made crypto; secrets compared with ==; TLS verification off
sec.audit.callbackswebhooks without signature or origin checks; server-side fetches of an attacker-chosen URL (SSRF)
sec.audit.ai-toolsmodel output or untrusted text gaining shell, file, network or secret access (only when the diff touches agents, tools or prompts, otherwise n/a)

The model is told to report only real trust-boundary breaks that the diff introduces or exposes, not style, hardening wishes or theory. Each finding is a row in the comment's Rubric section: the criterion, severity, path:line, and a short title with the reason:

  • ❌ confirmed: the model quoted a line that really is in the diff. A confirmed finding raises the lane to review.
  • ❔ needs validation: the model suspects a break it cannot quote (it depends on code outside the diff). It is listed and does not change the lane; a person has to check it.

Nothing else changes: lanes, rules and approvals work as before, and a PR with no findings looks like any other review. As with any unverified criterion, a needs-validation finding keeps code auto off for that PR.

Cost. The checklist adds about 500 tokens to every review, counted against budget.max_tokens_per_pr, so there is that much less room for the diff. The free AI tier keeps its usual limits (the same token caps, monthly reviews and diff size) and does not get a bigger budget for this mode. For large pull requests or a deeper pass, use a runner or your own provider key.

Custom criteria ​

yaml
rubrics:
  packs: [security, correctness, maintainability]
  custom:
    - id: team.no-console
      question: Does the change avoid leaving console.log calls in production code?
      severity: low
    - id: team.migrations-reversible
      question: Does every new database migration include a down/rollback step?
      severity: high
      raise_to: review

Fields: id (letters, digits, ., _, -), question, severity (low | medium | high, default medium), scoring (pass_fail | 1-5), raise_to (review | block).

Rubrics are part of .mergejudge.yml on the base branch, so they change only through a reviewed PR. See How it works.

The MergeJudge runner is open source (MIT). MergeJudge doesn't merge pull requests itself. MergeJudge is not affiliated with or endorsed by GitHub. Sign in · Impressum · Privacy · Terms · Cookie settings