Skip to content

feat(ci): route PR reviews through shared ownership policy - #1455

Merged
shumkov merged 7 commits into
v1.8-devfrom
chore/shared-pr-review-policy
Sep 12, 2026
Merged

shumkov merged 7 commits into
v1.8-devfrom
chore/shared-pr-review-policy

Conversation

@shumkov

@shumkov shumkov commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Bring this repository into the shared review workflow so review requests follow the responsibility sheet and human review follows bot feedback and author self-review.

The engine and every repository's policy live in dashpay/stale_prs_are_bad (dashpay/stale_prs_are_bad#3, stacked on #2). This repository carries no policy copy: the caller pins the engine by commit and the engine reads policies/tenderdash.json live from that repository's protected master, so an ownership change is one PR there. Related: dashpay/platform#4449.

What was done?

  • .github/CODEOWNERS generated from the shared policy (native review routing).
  • .github/workflows/pr-review-policy.yml — thin caller of the shared reusable workflow, pinned to engine commit 5ee27dc4a7d8c18de1a9d1723cc9b7b641cee90a (the engine PR head; must be re-pinned to the merge commit once feat: host the shared PR review engine and repository policies stale_prs_are_bad#3 lands).
  • .github/workflows/pr-review-signal.yml — review-event signal.

Fallback owner is now lklimek (shumkov reviewing), matching the responsibility sheet. Automatic CodeRabbit reviews are disabled in this repository's configuration; resolve that before requiring both bots.

Five active non-draft slots are enforced per author once writes are enabled. The caller's own token is the only writer; the engine never grants access. Before it reads any policy it verifies that the central master is governed by the required ruleset.

Merge order: dashpay/stale_prs_are_bad#2 → #3 → (ruleset + read App) → re-pin here → merge here → run preview from the default branch, confirm identities/permissions and both bots, create ready-for-human, then enable PR_REVIEW_AUTOMATION_ENABLED=true. Verify real statuses and routing before requiring Platform PR policy or changing existing native approval rules. Native CODEOWNERS routing takes effect after merge independently of the custom write flag.

No repository permissions, protection settings, enable variables or Slack configuration are changed here. Central daily reporting, Slack delivery and the dashboard are configured in dashpay/stale_prs_are_bad (operations guide).

How Has This Been Tested?

Packet generated by pr_review.rollout from the shared checkout; the shared engine has 98 passing Python tests and validates this policy; Actionlint passed for both workflows. These are workflow/configuration changes; application builds were not run. Privileged Actions execution has not been enabled.

Breaking Changes

No application API changes. Native review routing changes when CODEOWNERS is merged. Custom admission and merge gating require a separate, verified activation; existing protections remain in place.

🤖 Generated with Claude Code

Pin the shared Platform evaluator while keeping repository policy local. Leave custom policy writes opt-in and preserve existing protections for staged activation.

Validation: policy schema and paths, generated CODEOWNERS and Actionlint. Shared evaluator94 tests and policy CI passed. Application builds omitted because only workflow and ownership configuration changed.
@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a1cdb987-5a78-4ffd-9c3f-c7a103b5c37d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Sep 11, 2026 •

Copy link
Copy Markdown

🕓 Queued for automated review — 9th in line, estimated start in ~5 h (commit 48f1965)
Estimated review time once started: ~1.2 h (two-phase automated review; median of recent runs).

  • Request priority review — tick this box and the review moves to the front of the queue.

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 2 only (queue backlog)

The PR adds repository-owned review policy configuration and workflows pinned to the published shared Platform engine. The policy, CODEOWNERS change, and workflow callers are internally consistent with the documented staged activation model, and no concrete correctness, security, or scope issues were identified.

Review provenance

Source: reviewer 1: gpt-6-astra (agent: phase2-reviewer, role: general); final verifier: gpt-6-astra (agent: astra-verifier, role: final-verifier)

  • Triage: low by gpt-6-astra (effort low) — This is a small, contained CI and repository-configuration change that alters review routing and workflow behavior but does not affect application logic or any critical surface.
  • Phase 1 reviewers: not run (skipped for throughput: 13 PRs queued, above the 10 limit)
  • Fresh verifier: gpt-6-astra — final-verifier; agent astra-verifier
  • Phase 2 reviewers: gpt-6-astra — general (completed, effort medium); agent phase2-reviewer

shumkov and others added 3 commits September 11, 2026 18:58
The policy is no longer copied here; the caller pins the shared engine in
dashpay/stale_prs_are_bad and the engine reads this repository's policy live
from that repository's protected branch. CODEOWNERS is regenerated from it:
the fallback now names this repository's own owner instead of the Platform
leads.

The pin references the engine PR head and is re-pinned to its merge commit
before activation.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
GitHub honours only the last matching pattern, so the duplicate `*` line was
redundant at best and misleading at worst.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
dashpay/stale_prs_are_bad#5 landed as 25b9369077ef6394ffb5491be718a6f0740e6088.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
shumkov and others added 2 commits September 12, 2026 11:56
dashpay/stale_prs_are_bad#7 landed as cc4d18484ceabf121886e47606b4b10628aafefa.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The policy workflow now listens for pull_request_review itself, so the no-op
signal workflow is gone. dashpay/stale_prs_are_bad#8 landed as d2978b05a15c8e29091958b0fa57b90a5ed5ff3b.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@shumkov
shumkov merged commit 6f197ea into v1.8-dev Sep 12, 2026
21 checks passed
@shumkov
shumkov deleted the chore/shared-pr-review-policy branch September 12, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants