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)
| id | severity | raises to | question |
|---|---|---|---|
sec.no-secrets | high | block | Does the change avoid adding real credentials, tokens or private keys? |
sec.no-exfiltration | high | block | Does it avoid sending user, cookie, storage or environment data to unexpected external hosts? |
sec.no-unsafe-exec | high | review | Does it avoid eval/new Function/shell execution of untrusted input, and piping remote scripts into a shell? |
sec.input-handling | medium | – | Is untrusted input validated or escaped (no innerHTML/XSS sinks)? |
correctness (on by default)
| id | severity | scoring | question |
|---|---|---|---|
cor.logic | high | pass/fail | Is the changed logic plausibly correct with no obvious bugs? |
cor.errors | medium | pass/fail | Are errors handled instead of silently swallowed where it matters? |
cor.tests | low | 1–5 | Is new or changed behaviour covered by tests? |
maintainability (opt-in)
| id | severity | scoring | question |
|---|---|---|---|
mnt.readable | low | 1–5 | Is the code readable, with no dead or debug code left behind? |
mnt.scoped | low | pass/fail | Is 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:
review:
security: true # default false; only a real true turns it onIn 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):
| id | looks for |
|---|---|
sec.audit.injection | untrusted input reaching a sink unescaped: SQL, shell, eval, HTML, file paths, redirects, deserialization |
sec.audit.authz | a route, job or tool acting for a caller without an auth or ownership check (missing auth, IDOR, a dropped role check) |
sec.audit.secrets-crypto | credentials logged, returned or committed; weak or home-made crypto; secrets compared with ==; TLS verification off |
sec.audit.callbacks | webhooks without signature or origin checks; server-side fetches of an attacker-chosen URL (SSRF) |
sec.audit.ai-tools | model 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
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: reviewFields: 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.