Skip to content

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

chore(policy): require a same-head Greptile score of 4 or 5 to merge (#450)

Cathryn Lavery1aa65c058fd5
diff --git a/.maintainer-policy.json b/.maintainer-policy.json
index 7926716..a505b50 100644
--- a/.maintainer-policy.json
+++ b/.maintainer-policy.json
@@ -119,8 +119,8 @@
],
"required_check_names": [],
"review": {
- "provider": "none",
- "minimum_score": "",
+ "provider": "greptile",
+ "minimum_score": "4",
"require_same_head": true
},
"require_current_base": true,
diff --git a/docs/adr/0016-merges-need-a-same-head-greptile-score.md b/docs/adr/0016-merges-need-a-same-head-greptile-score.md
new file mode 100644
index 0000000..6421bf8
--- /dev/null
+++ b/docs/adr/0016-merges-need-a-same-head-greptile-score.md
@@ -0,0 +1,17 @@
+# ADR 0016: Merges need a same-head Greptile score of 4 or 5
+
+**Status:** accepted
+
+## Context
+
+Greptile reviews pull requests here and posts a confidence score out of 5. The maintainer policy (`.maintainer-policy.json`) listed no review provider, so nothing stopped a merge on a score Greptile had given to an earlier commit of the branch, or on no score at all. Several recent merges landed on a 4/5 that predated the final commits, so those commits reached `main` without a review.
+
+## Decision
+
+`gates.review` in `.maintainer-policy.json` names `greptile` as the provider, with a minimum score of `4` and `require_same_head: true`. A pull request merges only when Greptile has scored its current head at 4 or 5. The existing gates still apply: an up-to-date base, no conflicts, resolved conversations, no requested changes, the complete local suite, and green CI on that same head.
+
+Any new commit needs a fresh Greptile review before merge. That includes a merge of `main` made only to satisfy branch protection's up-to-date rule. An open Greptile thread blocks merge at any score, because conversations must be resolved.
+
+## Consequences
+
+Updating a branch from `main` adds one Greptile round before merge. A 4/5 is enough to merge, and a 5/5 is not required. Greptile is one gate among several and does not replace the local suite or CI.