Skip to content

Commit the Registry-Rendered Agent Policy Files - #659

Merged
ptr727 merged 2 commits into
developfrom
feature/render-agent-policy
Nov 6, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/render-agent-policy

Conversation

@ptr727

@ptr727 ptr727 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Adds the files ProjectTemplate 2.0.1359 renders from this repository's registry entry, written by repo-config/configure.sh apply --checkout and scripts/agent_policy.py write.

  • .github/agent-policy.json says which review bots run, on which bases, and when. The hub's scripts/pr_review.py reads it.
  • .coderabbit.yaml and .pr_agent.toml carry the same choice to CodeRabbit and Qodo. .coderabbit.yaml also sets auto_pause_after_reviewed_commits: 0, since a repository's file replaces CodeRabbit's central and UI settings and CodeRabbit otherwise pauses after five reviewed commits.

Every bot stays on automatic review, as today. These files matter once the account-level automatic review toggles go off, since without them this repository would lose its reviews. Part of the review cutover tracked in ptr727/ProjectTemplate#3877.

Verification: the hub's agent_policy.py write --dry-run reports all three files unchanged against this branch, the policy validates against spec/agent-policy.schema.json, and editorconfig-checker passes on the files.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Pull requests now receive automated reviews when opened and updated, with review coverage configured for the develop branch.
    • Automated review rounds can continue without a preset limit.

Adds the files the hub renders from this repository's registry entry. They
are .github/agent-policy.json, which scripts/pr_review.py reads for when
each review bot runs, plus .coderabbit.yaml and .pr_agent.toml, which carry
the same choice to CodeRabbit and Qodo.

They keep every bot on automatic review, as today. They matter once the
account-level automatic review toggles go off: without them this repository
would lose its reviews. Written by repo-config/configure.sh apply --checkout,
so configure.sh check reads no agent-policy drift.
A repository's .coderabbit.yaml replaces CodeRabbit's central and UI settings,
so without this key CodeRabbit pauses after five reviewed commits. Rendered
by ProjectTemplate 2.0.1359.
Copilot AI lite review requested due to automatic review settings November 6, 2026 19:17
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds automatic review configuration for CodeRabbit, Copilot, Qodo, and PR Agent. The settings include branch matching, review timing and rounds, gating, and feedback behavior.

Changes: Automated Review Configuration

Layer / File(s) Summary
Configure automatic review
.github/agent-policy.json, .coderabbit.yaml, .pr_agent.toml
The agent policy configures automatic reviews for Copilot, CodeRabbit, and Qodo. CodeRabbit is enabled for develop in .coderabbit.yaml. PR Agent automatic feedback is enabled in .pr_agent.toml.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · up to 74c6e

This adds review-bot policy files that keep automatic review enabled. No concrete merge-blocking problem was found.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title describes the main change: adding registry-rendered agent policy files.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0dc8ef6 and 74c6ef6.

Files selected for processing: 3

  • .coderabbit.yaml
  • .github/agent-policy.json
  • .pr_agent.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.01%. Comparing base (4ed750f) to head (74c6ef6).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #659   +/-   ##
========================================
  Coverage    57.01%   57.01%           
========================================
  Files           15       15           
  Lines         1375     1375           
  Branches       108      108           
========================================
  Hits           784      784           
  Misses         573      573           
  Partials        18       18           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI 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.

🔵 Needs a closer look

Because the change affects repository-wide review automation and merge gating, maintainer verification of live CodeRabbit, Qodo, and Copilot behavior after account-level toggle changes is still required despite the static files matching the hub render.

No open issues 🎉

What changed in this PR

Adds repository-level policy files for Copilot, CodeRabbit, and Qodo reviews, intended to preserve automatic review behavior when account-level defaults change.

Changes:

  • Adds .github/agent-policy.json with review triggers, branches, timing, and gating.
  • Configures CodeRabbit automatic reviews and disables reviewed-commit pausing.
  • Enables automatic Qodo feedback through .pr_agent.toml.

This pull request requires changes.

File Review
.pr_agent.toml Enables automatic Qodo feedback; no issues identified.
.github/​agent-policy.json The file should be regenerated from the current registry entry. The registry specifies explicit triggers with when: after-checks, while this file enables automatic reviews, so it does not reflect the current cutover policy.
.coderabbit.yaml Configures automatic CodeRabbit reviews and disables reviewed-commit pausing; no issues identified.

Review effort: Lite

@ptr727

ptr727 commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Declined. The review headline asks for maintainer verification of the live bot behaviour after the account-level toggles change. That is not a defect in this diff: the files equal the hub render, which configure.sh check verifies. The live check is a planned step of the cutover, run on a fresh pull request after the toggles are turned off, and is tracked in ptr727/ProjectTemplate#3877.

@ptr727
ptr727 merged commit e37c9b8 into develop Nov 6, 2026
25 checks passed
@ptr727
ptr727 deleted the feature/render-agent-policy branch November 6, 2026 20:47
ptr727 added a commit that referenced this pull request Nov 6, 2026
…es to Main (#660)

## Summary

Promotes `develop` to `main`, carrying the commits in
`origin/main..origin/develop`.

- [#659](#659): Commits the
registry-rendered agent policy files (`.github/agent-policy.json`,
`.coderabbit.yaml`, `.pr_agent.toml`) rendered by the hub.
- 32 dependency updates ride along.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Chores**
* Updated automated review settings and refreshed the workflows used for
pull requests, releases, and periodic code generation.
* Updated versions of several build, testing, command-line, and
resilience tools.
* No end-user-facing features or behavior changes are included in this
release.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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