Skip to content

Commit b8eebc7

Browse files
authored
chore(review): adopt ponytail policy and enable automatic review (#2521)
* chore(review): retire the curator repository review skill Signed-off-by: oliver könig <okoenig@nvidia.com> * chore(review): enable automatic review on ready status changes Signed-off-by: oliver könig <okoenig@nvidia.com> --------- Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent 836c340 commit b8eebc7

4 files changed

Lines changed: 11 additions & 81 deletions

File tree

‎.github/autobot/review-config.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
auto-review:
2+
enabled: true
3+
mode: comment
4+
on: status_change
5+
when: ready_for_review

‎CONTRIBUTING.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ all options. The retired `/claude review` and `/claude strict-review` commands
222222
only reply with migration instructions; they do not run or automatically
223223
request a review.
224224
225-
The repository policy lives in `skills/pr-review/SKILL.md`. The review service
226-
must load this rubric from protected `main`, not the pull-request branch.
227-
Before deploying this migration, publish the rubric, register its repository
228-
profile, and verify a Ready plugin snapshot containing it. Until those
229-
prerequisites are verified, do not rely on the redirect as evidence that the
230-
repository-specific review policy is active.
225+
Curator's review profile in CI-Events selects its local copy of the
226+
[Ponytail review skill](https://github.com/NVIDIA-NeMo/CI-Events-Workflows/blob/main/skills/ponytail-review/SKILL.md).
227+
The review service loads an immutable plugin snapshot published from CI-Events'
228+
protected `main` branch. CI-Events owns profile registration and publication;
229+
the formal review service owns review output and submission. Before activating
230+
the profile, verify a Ready `ponytail-skills` snapshot containing `ponytail-review`.

‎skills/pr-review/SKILL.md‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎tests/utils/test_review_redirect.py‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,6 @@ def test_review_redirect_is_least_privilege_and_does_not_execute_review() -> Non
5151
)
5252

5353

54-
def test_formal_review_rubric_is_inert_and_uses_formal_submission() -> None:
55-
rubric = (ROOT / "skills/pr-review/SKILL.md").read_text()
56-
metadata = yaml.safe_load(rubric.split("---", 2)[1])
57-
assert metadata["name"] == "pr-review"
58-
assert metadata["disable-model-invocation"] is True
59-
assert metadata["user_invocable"] is False
60-
assert "mode=light" in rubric
61-
assert "mode=strict" in rubric
62-
assert "Do not run GitHub commands or" in rubric
63-
assert "Never approve an incomplete" in rubric
64-
65-
6654
def test_review_redirect_workflow_has_no_other_execution_or_permissions() -> None:
6755
workflow = yaml.safe_load((ROOT / ".github/workflows/claude-review.yml").read_text())
6856
assert workflow["permissions"] == {}
@@ -71,23 +59,6 @@ def test_review_redirect_workflow_has_no_other_execution_or_permissions() -> Non
7159
assert events == {"issue_comment": {"types": ["created"]}}
7260

7361

74-
def test_review_policy_preserves_the_retired_light_review_rules() -> None:
75-
rubric = (ROOT / "skills/pr-review/SKILL.md").read_text()
76-
for rule in (
77-
"Critical bugs or logic errors",
78-
"Typos in code, comments, or strings",
79-
"Missing or insufficient test coverage for changed code",
80-
"Outdated or inaccurate documentation affected by the changes",
81-
"Style preferences or formatting",
82-
"Minor naming suggestions",
83-
"Architectural opinions or refactoring ideas",
84-
"Performance unless there is a clear, measurable issue",
85-
):
86-
assert rule in rubric
87-
assert "post comments directly" in rubric
88-
assert 'post "LGTM"' not in rubric
89-
90-
9162
@pytest.mark.parametrize(
9263
"notice", ["Use /review", "Use /review mode=strict", "$(touch injected) `touch injected` ' \" ;\n/review"]
9364
)

0 commit comments

Comments
 (0)