Skip to content

Cut auto-rebase fan-out thrash: restrict to review-ready PRs + instrument the agentic-conflict-resolution rate #736

Description

@github-actions

Problem

The Auto-rebase non-Dependabot PRs workflow fans out on every push to main, calling update-branch on every behind non-Dependabot PR. With the repo's measured throughput (~12.3 merges/day, ~14-18 concurrently-open PRs), this produces an estimated ~170-220 auto-triggered branch-update CI runs per day — the overwhelming majority of which are immediately re-staled by the next merge before a human reviews them (discussion #735, owner findings comment). Time-to-merge shows the matching tail: median 5h but mean 31h, p90 71h.

The owner's recommendation has two tiers: an immediate, free, plan-independent mitigation (stop fanning out to PRs nobody will look at — restrict to review-ready PRs), and a plan-gated follow-on (GitHub Merge Queue, which requires Team/Enterprise for private repos and would trade away the unique agentic conflict-resolution path). Before that trade can be evaluated, the agentic-conflict-resolution frequency — which the owner could not count because the trigger is an un-indexed HTML-comment sentinel — must be instrumented.

Scope (this epic)

  1. Instrument auto-rebase: measure the agentic-conflict-resolution (sentinel) rate and the fan-out CI-run volume, on a recurring report.
  2. Restrict the auto-rebase fan-out to a review-ready eligibility predicate instead of all behind PRs (the free mitigation).
  3. Record the measured before/after outcome and a documented Merge Queue go/no-go gate as an initiative decision record.

Out of scope (plan-gated follow-on)

GitHub Merge Queue adoption itself — it requires a GitHub Team or Enterprise plan for private repos and the loss of agentic conflict resolution + proactive background branch updates. That is a billing + product decision for a human, surfaced as an open question, not decided here.

Success metrics

  • Fan-out reduction: auto-rebase-triggered branch-update CI runs drop by >= 50% from the ~170-220/day baseline (discussion Auto-Rebase Workflow vs. GitHub Merge Queue #735), measured by the new observability report before vs. after the restriction lands.
  • Conflict-rate established: the agentic-conflict-resolution rate (auto-rebase conflict sentinels fired / week, and dev-lead rebase intents emitted) is published as a concrete weekly number where it was previously unmeasurable.

Cost cap

Zero new paid spend. Everything in this epic stays on the free GitHub plan and within existing Actions minutes; adopting Merge Queue (which would require a paid plan tier) is explicitly excluded. The new observability report adds at most one scheduled run per day (mirroring daily-pr-review-health.yml / token-report.yml) and introduces no new agent/LLM token cost beyond an optional report-summary call bounded to a single run.


Planned from idea discussion #735 by the BMAD Scrum Master initiative-planner. Inert until a maintainer adds initiative:auto.

Metadata

Metadata

Assignees

No one assigned

    Labels

    initiativeEpic / initiative tracking issueinitiative:autoDriver may auto-release this epic's ready sub-issues to dev-lead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions