Skip to content

Commit the Registry-Rendered Agent Policy Files - #305

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.

As an operational repository, the policy also carries a guard section listing develop under primaryCheckout.commitInPlace.branches. Once this file reaches main, the fleet's write guard lets an agent commit in place on develop in the primary checkout, the operational model's standard workflow.

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

  • Chores
    • Updated repository review settings for the develop branch. Automated review tools are configured to run when a change is opened and after each push.
    • Adjusted review behavior, including which checks can block a change and how many review rounds can run.

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 changes configure automatic reviews for the develop branch and define review policies for Copilot, CodeRabbit, and Qodo. They also enable automatic feedback in PR Agent.

Changes: Automated Review Configuration

Layer / File(s) Summary
Configure automated reviews
.coderabbit.yaml, .github/agent-policy.json, .pr_agent.toml
CodeRabbit auto-review targets develop, and its pause setting is 0. The agent policy defines automatic triggers and review settings for Copilot, CodeRabbit, and Qodo. PR Agent automatic feedback is enabled.

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

Change: Other

Merge Risk: Minimal · up to 0c334

This adds review-bot configuration files that keep automatic reviews on for develop. No concrete merge-blocking risk is established.

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 accurately describes the addition of the 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 2a8a763 and 0c334ff.

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 85.89%. Comparing base (2a8a763) to head (0c334ff).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #305   +/-   ##
========================================
  Coverage    85.89%   85.89%           
========================================
  Files            3        3           
  Lines          695      695           
========================================
  Hits           597      597           
  Misses          98       98           
Flag Coverage Δ
python-3.13 85.89% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

🟡 Changes recommended

The configuration omits the repository’s default branch from CodeRabbit’s base-branch patterns, leaving an active mismatch that prevents automatic reviews for PRs targeting main.

1 open issue
What changed in this PR

This pull request adds the registry-rendered agent policy files that preserve automatic review coverage and permit operational in-place commits on develop.

Changes:

  • Adds the canonical review and checkout-guard policy.
  • Configures CodeRabbit and Qodo automatic reviews.
  • Disables CodeRabbit’s reviewed-commit pause limit.
  • Issue: CodeRabbit is limited to develop and does not include the repository’s default main branch, unlike the shared policy.
File Summary
.pr_agent.toml Enables automatic Qodo feedback.
.github/​agent-policy.json Defines review bots, branch coverage, gating, and the develop primary-checkout guard.
.coderabbit.yaml Configures CodeRabbit automatic review behavior and reviewed-commit pause handling; should also include main in base_branches.

Review effort: Lite

Comment thread .coderabbit.yaml Resolved
@ptr727
ptr727 merged commit b15ca38 into develop Nov 6, 2026
46 checks passed
@ptr727
ptr727 deleted the feature/render-agent-policy branch November 6, 2026 20:48
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