Skip to content

[agent-performance] Documentation workflows: 0% PR merge rate (56 PRs closed without merge in 7 days) #16166

@github-actions

Description

@github-actions

Problem

Documentation-focused agent workflows created 56 PRs in the past 7 days with a 0% merge rate (all closed without merging). This represents significant wasted effort and indicates either quality issues, timing problems, or coordination failures.

Affected Workflows:

  • Daily Doc Updater
  • Instructions Janitor
  • Documentation Unbloat
  • Workflow Normalizer
  • Glossary updates (weekly full scan)
  • Spec updates (layout specification)
  • Actions version updates
  • Other documentation automation

Previous Period: 47 PRs with 0% merge rate (continuing pattern)

Data Sources:

  • GitHub Search API (PRs created by github-actions, Feb 9-16)
  • Agent Performance Report (week of Feb 9-16, 2026)

Impact

Severity: High
Scope: 8+ documentation workflows, 100+ PRs in 2 weeks

Effects:

  1. Wasted agent resources: Significant compute/API quota used with no value
  2. Reviewer fatigue: High PR volume overwhelming maintainers
  3. Missed improvements: Valid documentation changes not being applied
  4. Ecosystem inefficiency: Low ROI on documentation automation
  5. Agent effectiveness: 0% merge rate = 0% effectiveness

Cost estimate:

  • 56 PRs × ~5 min/PR = ~4.5 hours agent time wasted in 7 days
  • ~600+ hours annually if pattern continues

Root Cause Analysis

Hypothesis 1: Timing Issues (Most Likely)

  • Many PRs created very recently (within 24-48 hours of this analysis)
  • Not enough time for maintainer review
  • May be closed before review due to superseding changes

Hypothesis 2: Manual Updates Supersede Agent PRs

  • Maintainers apply fixes manually before reviewing agent PRs
  • Agent PR becomes obsolete and gets closed
  • Lack of coordination between manual and automated updates

Hypothesis 3: Volume Overwhelm

  • 8+ overlapping documentation workflows
  • ~8 PRs/day from documentation agents
  • Too many small PRs instead of batched changes
  • Reviewer bandwidth insufficient for volume

Hypothesis 4: Quality/Relevance Issues

  • Agent changes may not align with maintainer priorities
  • Changes may be too minor or cosmetic
  • Updates may conflict with ongoing work
  • PR descriptions may lack sufficient context

Hypothesis 5: Duplication

  • Multiple workflows editing same files
  • Conflicting changes between agents
  • PRs superseded by other agent PRs

Investigation needed to determine which hypothesis explains the pattern.

Proposed Investigation Plan

Phase 1: PR Closure Analysis (2-3 hours)

  1. Sample 20 closed PRs from the past 2 weeks:

    • Categorize closure reasons (from PR comments/timeline)
    • Identify common patterns
    • Check for manual superseding changes
    • Review PR quality and descriptions
  2. Analyze PR content:

    • What files are being changed most frequently?
    • Are changes substantive or cosmetic?
    • Do changes align with project priorities?
    • Are multiple agents editing same files?
  3. **Review timing (redacted)

    • Time from PR creation to closure
    • Time from PR creation to first review (if any)
    • Compare with typical PR review times
    • Check if PRs are closed in batches

Phase 2: Workflow Overlap Analysis (1-2 hours)

  1. Map documentation workflows:

    • Daily Doc Updater: Updates what?
    • Instructions Janitor: Updates what?
    • Documentation Unbloat: Updates what?
    • Workflow Normalizer: Updates what?
    • Glossary/Spec/Actions updates: Overlap?
  2. Identify file-level conflicts:

    • Which files are modified by multiple workflows?
    • Do workflows coordinate or conflict?
    • Are changes complementary or duplicate?
  3. Analyze execution patterns:

    • Daily vs. weekly schedules
    • Triggers and conditions
    • Coordination mechanisms (if any)

Phase 3: Maintainer Feedback (1 hour)

  1. Review recent PR comments for maintainer feedback
  2. Check for closure patterns (manual close, bot close, auto-close)
  3. Identify stated reasons for not merging
  4. Look for feature requests or improvement suggestions

Proposed Solutions

Solution 1: Consolidate Documentation Workflows (Recommended)

Problem addressed: Volume overwhelm, duplication, coordination

Approach:

  • Merge 8+ documentation workflows into 2:
    • Weekly Documentation Scan: Comprehensive updates once per week
    • Daily Critical Updates: Only urgent documentation fixes

Benefits:

  • Reduce PR volume by ~5-7x
  • Eliminate duplication
  • Batch related changes together
  • Easier for maintainers to review

Estimated effort: 6-8 hours implementation

Solution 2: Improve Coordination with Manual Updates

Problem addressed: Manual superseding

Approach:

  • Add checks for recent manual commits before creating PR
  • Scan for open PRs touching same files
  • Add "superseded by" detection
  • Auto-close own PR if manual fix applied

Benefits:

  • Reduce obsolete PRs
  • Better coordination
  • Less reviewer overhead

Estimated effort: 4-6 hours implementation

Solution 3: Batch Changes in Comprehensive PRs

Problem addressed: Volume overwhelm, fragmentation

Approach:

  • Instead of many small PRs, create one comprehensive PR
  • Group related changes (e.g., all glossary updates in one PR)
  • Weekly batch runs instead of daily
  • More context in PR descriptions

Benefits:

  • Fewer PRs to review (8/day → 1-2/week)
  • Better context for reviewers
  • More likely to get attention

Estimated effort: 3-4 hours per workflow

Solution 4: Add Quality Gates and Prioritization

Problem addressed: Quality/relevance issues

Approach:

  • Only create PR if changes meet threshold (e.g., >5 meaningful changes)
  • Prioritize high-impact changes
  • Add validation/testing before PR creation
  • Improve PR descriptions with impact analysis

Benefits:

  • Higher quality PRs
  • Better aligned with priorities
  • More likely to merge

Estimated effort: 4-5 hours implementation

Solution 5: Implement Deduplication Checks

Problem addressed: Duplication

Approach:

  • Check for existing open PRs before creating new one
  • Detect similar changes
  • Consolidate into existing PR instead of creating new
  • Add workflow coordination metadata

Benefits:

  • Eliminate duplicate PRs
  • Cleaner PR list
  • Better tracking

Estimated effort: 2-3 hours implementation

Recommended Approach

Primary recommendation: Combine Solutions 1, 2, and 3

  1. Consolidate workflows (Solution 1)

    • Merge to 2 workflows (weekly + daily critical)
    • Eliminate 6+ redundant workflows
    • Timeline: Week 1-2
  2. Batch changes (Solution 3)

    • Weekly comprehensive PRs instead of daily small PRs
    • Group related changes together
    • Timeline: Week 2
  3. Add coordination checks (Solution 2)

    • Check for manual updates before creating PR
    • Scan for conflicting open PRs
    • Timeline: Week 3
  4. Monitor and validate (4 weeks)

    • Track merge rate improvement
    • Measure reviewer satisfaction
    • Adjust based on feedback
    • Timeline: Weeks 4-7

Expected outcome:

  • Merge rate: 0% → 50-70% (10-20x improvement)
  • PR volume: ~8/day → 1-2/week (5-7x reduction)
  • Reviewer overhead: ~30 min/day → ~20 min/week (10x reduction)
  • Agent effectiveness: Significant improvement

Acceptance Criteria

  • Investigation Phase 1-3 completed with findings documented
  • Root causes identified and validated
  • Solution approach selected and approved
  • Implementation completed
  • 4-week validation period completed
  • Merge rate improved to > 50% (from 0%)
  • PR volume reduced by > 50% (from ~8/day)
  • No regression in documentation quality
  • Maintainer feedback collected and addressed

Estimated Effort

Investigation: 4-6 hours
Implementation: 12-16 hours (depending on solution complexity)
Validation: 4 weeks monitoring
Total: 16-22 hours + validation period

Metrics to Track

Before (Baseline):

  • Merge rate: 0%
  • PRs created/week: 56
  • PRs merged/week: 0
  • Agent effectiveness: 0/100

After (Target):

  • Merge rate: > 50%
  • PRs created/week: < 15
  • PRs merged/week: > 7
  • Agent effectiveness: > 70/100

Additional Context

From Agent Performance Report:

Documentation PR Merge Rate - Critical Finding: 56 PRs created by agent workflows in past 7 days with 0% merge rate. Previous period had 47 PRs with 0% merge rate. Continuing pattern of low PR acceptance.

Comparison with other workflows:

  • Code review PRs: Unknown merge rate (needs analysis)
  • Refactoring PRs: Small sample but higher engagement
  • Documentation PRs: 0% merge rate (critical issue)

References

Generated by Agent Performance Analyzer - Meta-Orchestrator

  • expires on Feb 18, 2026, 5:40 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcookieIssue Monster Loves Cookies!documentationImprovements or additions to documentationeffectivenessworkflows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions