Skip to content

chore: harden maintainer completion workflow (Fixes #485) - #486

Merged
Karthik Nadig (karthiknadig) merged 2 commits into
mainfrom
chore/issue-485
Jul 27, 2026
Merged

chore: harden maintainer completion workflow (Fixes #485)#486
Karthik Nadig (karthiknadig) merged 2 commits into
mainfrom
chore/issue-485

Conversation

@karthiknadig

Copy link
Copy Markdown
Member

Summary

  • verify Copilot reviewer assignment when using the GitHub API fallback
  • require performance, coverage, and analysis snapshot inspection before merge
  • verify merge postconditions instead of trusting command exit codes
  • continue to the next ready issue when autonomous maintenance is explicitly requested

Fixes #485

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@karthiknadig
Karthik Nadig (karthiknadig) marked this pull request as ready for review July 24, 2026 20:52
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Performance Report (Linux) ➖

Metric PR (P50) PR (P95) Baseline (P50) Delta Change
Server Startup 0ms 1ms 0ms 0ms N/A%
Full Refresh 51ms 382ms 48ms 3ms 0%

Results based on 10 iterations. P50 = median, P95 = 95th percentile.


Legend
  • 🚀 Significant speedup (>100ms faster)
  • ✅ Faster than baseline
  • ➖ No significant change
  • 🔺 Slower than baseline (>100ms)
  • ⚠️ Significant slowdown (>500ms)

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Performance Report (macOS)

Metric PR (P50) PR (P95) Baseline (P50) Delta
Server Startup 94ms 6126ms 82ms 12ms
Full Refresh 148ms 30428ms 137ms 11ms

Results based on 10 iterations. P50 = median, P95 = 95th percentile.


Legend
  • 🚀 Significant speedup (>100ms faster)
  • ✅ Faster than baseline
  • ➖ No significant change
  • 🔺 Slower than baseline (>100ms)
  • ⚠️ Significant slowdown (>500ms)

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Test Coverage Report (Windows)

Metric Value
Current Coverage 77.07%
Base Branch Coverage 77.07%
Delta 0% ➖

Coverage unchanged.

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Performance Report (Windows) ✅

Metric PR (P50) PR (P95) Baseline (P50) Delta Change
Server Startup 8ms 10ms 9ms -1ms -11.1%
Full Refresh 115ms 956ms 129ms -14ms -10.9%

Results based on 10 iterations. P50 = median, P95 = 95th percentile.


Legend
  • 🚀 Significant speedup (>100ms faster)
  • ✅ Faster than baseline
  • ➖ No significant change
  • 🔺 Slower than baseline (>100ms)
  • ⚠️ Significant slowdown (>500ms)

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Test Coverage Report (Linux)

Metric Value
Current Coverage 80.3%
Base Branch Coverage 80.3%
Delta 0% ➖

Coverage unchanged.

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.

Pull request overview

Updates the Maintainer agent playbook to harden PR completion (review request fallback, quality-gate checks, merge verification, and optional autonomous continuation) so maintainers don’t merge based solely on command exit codes or green CI status.

Changes:

  • Document a GitHub API fallback for requesting Copilot review and require verifying the reviewer assignment.
  • Add a required “quality snapshot” inspection step (performance, coverage, analysis) before merge.
  • Require verifying merge/auto-merge postconditions and outline continuous maintenance behavior when explicitly requested.
Show a summary per file
File Description
.github/agents/Maintainer.agent.md Adds stricter maintainer workflow requirements: reviewer-request fallback + verification, quality snapshot inspection, merge postcondition verification, and continuous maintenance mode guidance.

Review details

Comments suppressed due to low confidence (1)

.github/agents/Maintainer.agent.md:242

  • The text requires the verification output to include Copilot, but the API output you’re printing is .users[].login (e.g., copilot-pull-request-reviewer[bot]). This mismatch can cause the workflow to block even when the reviewer is assigned.
The verification output must include `Copilot` before entering the review polling loop.
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment thread .github/agents/Maintainer.agent.md Outdated
Comment thread .github/agents/Maintainer.agent.md Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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.

Review details

Comments suppressed due to low confidence (2)

.github/agents/Maintainer.agent.md:239

  • The jq verification is filtering for .login == "Copilot", but the reviewer being requested above is copilot-pull-request-reviewer[bot]. This will typically return no output, so the assignment verification step won’t work as intended.
gh api repos/OWNER/REPO/pulls/N/requested_reviewers --jq '.users[] | select(.login == "Copilot") | .login'

.github/agents/Maintainer.agent.md:242

  • This verification requirement says the output must include Copilot, but the preceding command requests copilot-pull-request-reviewer[bot]. The required output string should match the actual reviewer login being checked.
The verification output must include `Copilot` before entering the review polling loop.
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Low

@karthiknadig
Karthik Nadig (karthiknadig) merged commit 3ff38d5 into main Jul 27, 2026
38 checks passed
@karthiknadig
Karthik Nadig (karthiknadig) deleted the chore/issue-485 branch July 27, 2026 02:43
Karthik Nadig (karthiknadig) added a commit that referenced this pull request Aug 5, 2026
## Summary

- add a PET-wide Rust coding skill alongside locator-specific guidance
- capture path identity/cache, Unicode-safe parsing, hot-path
I/O/allocation, and cross-platform rules
- require tests to prove claimed read-count, cache-hit, and event-count
invariants
- wire the recurring checks into the Reviewer agent for every Rust
change

## Review retrospective

Recent feedback clustered around:
- normalized cache keys and caller-facing path preservation (#487, #490)
- Unicode-safe byte indexing and ASCII format handling (#493)
- proving optimization scope and read counts (#493)
- duplicate side effects and precise pattern semantics (#495)
- workflow assignment/merge postconditions, already addressed in #486

Fixes #496

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Harden maintainer PR completion and continuation workflow

3 participants