Skip to content

Have the Agent Open and Drive the Promotion After an Audit's File Fix Merges - #4449

Merged
ptr727 merged 2 commits into
developfrom
burndown/audit-promotion-owner
Nov 25, 2026
Merged

ptr727 merged 2 commits into
developfrom
burndown/audit-promotion-owner

Conversation

@ptr727

@ptr727 ptr727 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Writes the maintainer's answer to #4406 into each unit that states who drives an audit's file fix after review. The agent drives the fix pull request into the target's develop to green. Once the maintainer merges it, the agent opens that target's develop -> main promotion, or finds the open one, and drives it to green. The maintainer merges that too. The re-audit runs once the fix is on main. On an operational repository, the agent confirms that a promotion is wanted before opening one, per drive-pr.

  • AUDIT.md section 10: the "Merge only with explicit maintainer approval" bullet. The "Re-audit once the fix reaches main" bullet already states the re-audit timing. The section 9 flow diagram now shows the promotion before the re-audit.
  • RESYNC.md section 6: the "The maintainer merges" bullet, and "Done means measured, not applied" now re-runs the audit once the fix is on main. The opening flow diagram's step 6 now names the promotion.
  • .agents/skills/resync-a-repo/SKILL.md and .agents/skills/audit-a-repo/SKILL.md: the same sentences, with .github/skills/ and .claude-plugin/ regenerated by scripts/build_dist.py.

Local review

Two recorded local-strict-review passes. The first raised four findings. Three are fixed in this branch: when the promotion opens, who confirms on an operational repository, and the two flow diagrams. One is declined: what ends a convergence when an operational repository declines the promotion. The audit-a-repo Skill already states that an operational repository's develop work counts once it reaches main, so the re-audit waits on that promotion. The second pass raised none.

Closes on promotion: #4406

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated repository audit and resynchronization guidance to include promoting fixes from develop to main after maintainer approval.
    • The agent now drives the promotion pull request to a passing status and leaves the merge to the maintainer.
    • For operational repositories, the guidance requires confirming that a promotion is wanted before opening one.
    • The final audit is now run after the fix reaches main.

ptr727 and others added 2 commits November 25, 2026 14:14
… Merges

The agent drives the fix pull request into the target's develop to green,
then opens and drives that target's develop -> main promotion to green. The
maintainer merges each, and the re-audit runs once the fix is on main. An
operational repository confirms a promotion is wanted first, per drive-pr.

Applied to AUDIT.md section 10, RESYNC.md section 6, and the resync-a-repo
and audit-a-repo Skills, with the generated Skill trees regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The promotion opens once the maintainer merges the fix into develop, or the
open one is reused, so it never lacks the fix. The agent, not the repository,
confirms an operational repository wants a promotion. The AUDIT.md and
RESYNC.md flow diagrams now show the promotion before the re-audit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 25, 2026 22:19
@ptr727

ptr727 commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 016dfff6b97306616955b4839a0b535820f1464e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The audit and resync instructions now require promotion of fixes from develop to main before re-auditing. They specify that the agent drives the promotion to green and the maintainer merges it.

Changes: Fix Promotion Workflow

Layer / File(s) Summary
Promotion and re-audit procedure
.agents/skills/audit-a-repo/SKILL.md, .agents/skills/resync-a-repo/SKILL.md, AUDIT.md, RESYNC.md
The guidance specifies that the agent drives fix pull requests to green on develop. After the maintainer merges a fix, the agent opens or finds the develop-to-main promotion and drives it to green for maintainer merge. For operational repositories, the agent confirms that promotion is wanted before opening it. The audit runs after the fix reaches main. The flowcharts show promotion before re-audit.

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

Possibly related issues

  • ptr727/ProjectTemplate issue 4406: The change specifies that the agent drives the promotion to green, the maintainer merges it, and the audit runs after the fix reaches main.
  • ptr727/ProjectTemplate issue 2361: The change applies the handoff decision that the agent drives the promotion and the maintainer merges it.
  • ptr727/ProjectTemplate issue 4436: The change specifies the post-merge audit timing described in the issue’s criteria, but does not perform the fleet resync.
Merge Risk: Minimal · up to 016df · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says the agent opens and drives the promotion after an audit's file fix merges. The changeset does this: it updates AUDIT.md, RESYNC.md, and the audit/resync skills so the agent opens or reu…
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: Title check

Explanation

The title says the agent opens and drives the promotion after an audit's file fix merges. The changeset does this: it updates AUDIT.md, RESYNC.md, and the audit/resync skills so the agent opens or reuses a develop-to-main promotion after the maintainer merges the fix into develop, drives it to green, and leaves the merge to the maintainer. The title names the main change, though it does not mention the re-audit timing or the operational-repository confirmation step.

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 e5573a9 and 016dfff.

Files ignored due to path filters: 6

  • .claude-plugin/fleet-skills/.source-digests/audit-a-repo is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/resync-a-repo is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/audit-a-repo/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/resync-a-repo/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/audit-a-repo/SKILL.md is excluded by !.github/skills/**
  • .github/skills/resync-a-repo/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 4

  • .agents/skills/audit-a-repo/SKILL.md
  • .agents/skills/resync-a-repo/SKILL.md
  • AUDIT.md
  • RESYNC.md

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human review is needed to validate the fleet-wide audit/resync ownership change and operational-repository promotion checkpoint across repository workflow models.

No open issues 🎉

What changed in this PR

This PR updates the audit and resync procedures so fixes reach main through an agent-driven promotion before re-auditing, while propagating the canonical skill changes to generated distributions.

Changes:

  • Updates AUDIT.md and RESYNC.md with promotion ownership, maintainer merge checkpoints, and re-audit sequencing.
  • Applies the updated convergence flow to the canonical audit and resync Skills.
  • Regenerates the GitHub Copilot and Claude Skill distributions and refreshes source digests.
  • The procedure still lacks an explicit direct-commit path for operational repositories.
File Description
RESYNC.md Updates the resync flow and promotion procedure, including promotion before measurement.
AUDIT.md Updates audit convergence and re-audit sequencing to require promotion to main.
.github/​skills/​resync-a-repo/​SKILL.md Provides the regenerated GitHub Copilot resync Skill distribution.
.github/​skills/​audit-a-repo/​SKILL.md Provides the regenerated GitHub Copilot audit Skill distribution.
.claude-plugin/​fleet-skills/​skills/​resync-a-repo/​SKILL.md Provides the regenerated Claude resync Skill distribution.
.claude-plugin/​fleet-skills/​skills/​audit-a-repo/​SKILL.md Provides the regenerated Claude audit Skill distribution.
.claude-plugin/​fleet-skills/​.source-digests/​resync-a-repo Refreshes the source digest for the resync Skill.
.claude-plugin/​fleet-skills/​.source-digests/​audit-a-repo Refreshes the source digest for the audit Skill.
.agents/​skills/​resync-a-repo/​SKILL.md Updates the canonical resync workflow with promotion guidance.
.agents/​skills/​audit-a-repo/​SKILL.md Updates the canonical audit workflow with promotion guidance.

Review effort: Lite

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.62%. Comparing base (b38e084) to head (016dfff).
⚠️ Report is 346 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4449      +/-   ##
===========================================
- Coverage    81.60%   79.62%   -1.99%     
===========================================
  Files           26       47      +21     
  Lines         9070    16398    +7328     
===========================================
+ Hits          7402    13057    +5655     
- Misses        1668     3341    +1673     
Flag Coverage Δ
python-3.13 79.62% <ø> (-1.99%) ⬇️

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.

@ptr727

ptr727 commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727

ptr727 commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Answer to the Copilot round on 016dfff (#4449 (review)), verdict headline with no counted finding (1):

Human review is needed to validate the fleet-wide audit/resync ownership change and operational-repository promotion checkpoint across repository workflow models.

No change needed. The ownership change is the maintainer's own decision, recorded as his answer on #4406: the agent opens and drives the promotion, the maintainer merges each, and an operational repository confirms that a promotion is wanted first, per drive-pr. This pull request writes that answer into the four units #4406 names and adds no rule of its own. The maintainer still gates the develop -> main promotion that carries it.

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