π OpenHands: AI-Driven Development
chore: remove the human-tested checkbox from the PR template (#16122)
Vasco Schiavo782024eccef9
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex d325c3e044..a54313bc15 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -2,14 +2,12 @@HUMAN:-<!-- Human contributors: add a short note about your testing before checking the box. -->--- [ ] A human has tested these changes.+<!-- Human contributors: add a short note about your testing. -->AGENT:<!-- AI/LLM agents:-Do not edit the HUMAN section or human-tested checkbox.+Do not edit the HUMAN section.In this AGENT section and the template fields below, provide evidence that thecode runs properly end-to-end. Just running unit tests is NOT sufficient. Explainexactly what command you ran and include logs, screenshots, or reproduction notes.diff --git a/.github/scripts/check_pr_description.py b/.github/scripts/check_pr_description.pyindex 2a6ae9c566..a61b10426f 100644--- a/.github/scripts/check_pr_description.py+++ b/.github/scripts/check_pr_description.py@@ -16,7 +16,6 @@ import sysfrom pathlib import Path-HUMAN_TESTED_TEXT = "A human has tested these changes."# Reject placeholders while allowing a concise human-written sentence.MIN_HUMAN_NOTE_CHARS = 20# These are the only PR-template sections that must remain and contain content.@@ -28,18 +27,6 @@ HUMAN_HEADING_RE = re.compile(r"(?im)^\s*HUMAN:\s*$")AGENT_HEADING_RE = re.compile(r"(?im)^\s*AGENT:\s*$")-def checkbox_re(label: str) -> re.Pattern[str]:- return re.compile(rf"(?im)^\s*[-*]\s+\[(?P<mark>[ xX])]\s+{re.escape(label)}\s*$")---def checkbox_is_checked(pattern: re.Pattern[str], text: str) -> bool:- match = pattern.search(text)- return match is not None and match.group("mark").lower() == "x"---HUMAN_TESTED_RE = checkbox_re(HUMAN_TESTED_TEXT)--def visible_text(text: str) -> str:"""Return PR body content that should count as author-provided text."""lines = []@@ -69,16 +56,16 @@ def extract_sections(body: str) -> dict[str, str]:def extract_human_note(body: str) -> str:- """Return human-written text in the required location before the checkbox."""+ """Return human-written text in the required location before `AGENT:`."""human_match = HUMAN_HEADING_RE.search(body)if human_match is None:return ""- checkbox_match = HUMAN_TESTED_RE.search(body, human_match.end())- if checkbox_match is None:+ agent_match = AGENT_HEADING_RE.search(body, human_match.end())+ if agent_match is None:return ""- return visible_text(body[human_match.end() : checkbox_match.start()])+ return visible_text(body[human_match.end() : agent_match.start()])def validate_pr_body(body: str) -> list[str]:@@ -89,20 +76,7 @@ def validate_pr_body(body: str) -> list[str]:human_note = extract_human_note(body)if len(human_note) < MIN_HUMAN_NOTE_CHARS:- errors.append(- "Add a short human-written note between `HUMAN:` and "- "the human-tested checkbox."- )-- human_tested = HUMAN_TESTED_RE.search(body)- if human_tested is None:- errors.append(- f"Keep the `- [ ] {HUMAN_TESTED_TEXT}` checkbox in the PR description."- )- elif not checkbox_is_checked(HUMAN_TESTED_RE, body):- errors.append(- "A human must check `A human has tested these changes.` before review."- )+ errors.append("Add a short human-written note between `HUMAN:` and `AGENT:`.")if AGENT_HEADING_RE.search(body) is None:errors.append("Keep the `AGENT:` marker from the PR template.")diff --git a/AGENTS.md b/AGENTS.mdindex f32254633d..5a6527d2db 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -21,12 +21,11 @@## PR Description Human Check-The `HUMAN:` section and the `A human has tested these changes.` checkbox in-PR descriptions are reserved for human contributors only. AI agents-MUST NOT add to, edit, move, remove, or check these fields. If the PR description-CI fails because these fields are missing, empty, or unchecked, stop and ask the-human user to update them in their own words. If the fields were already updated-by a human, report the exact validator error rather than editing them yourself.+The `HUMAN:` section in PR descriptions is reserved for human contributors only.+AI agents MUST NOT add to, edit, move, or remove it. If the PR description+CI fails because the section is missing or empty, stop and ask the+human user to update it in their own words. If the section was already updated+by a human, report the exact validator error rather than editing it yourself.## Tracking / Analytics Architecture