Skip to content

feat(source-control): babysit autopilot merge tier — bot-account review + criteria-gated merge #476

Description

@kyle-sexton

Plugin: source-control (babysit-prs) · Category: operational/throughput
Source: overnight audit 2026-07-19 — merge flow is the pipeline bottleneck

Problem

Work lane produced 13 green PRs in ~100 min (7.8 min/PR); at day-scale that is ~100 PRs/day. Branch ruleset requires an approving review, and babysit safety rails say "never merge / never enable auto-merge / never bypass required reviews" — so every PR waits on a human approval+merge. Human approval is now the rate-limiting step of the whole pipeline.

Proposal (needs human sign-off — changes the babysit safety contract)

Add an explicit autopilot merge tier that satisfies the ruleset instead of bypassing it:

  • A second babysit/bot account (author ≠ approver; see gh-bot.sh machinery, blocked today by source-control:babysit-prs: gh-bot.sh bot token generation fails, worker writes fall back to personal identity #450) runs a GENUINE review pass (review plugin, Opus+) on each candidate PR and submits an approving review only when clean.
  • Merge criteria (all required): all required checks green (incl. review workflow), PR is issue-linked, authored by a pipeline lane, no human CHANGES_REQUESTED / blocking comment / unresolved thread, no do-not-merge label, head SHA unchanged since review.
  • Anything failing a criterion falls back to today's behavior: listed for the human pass.
  • safety.md "Never do automatically: merge" updated deliberately as part of this change, with the criteria codified. Ruleset itself unchanged (required review stays meaningful — the bot review is real, not a rubber stamp).

Dependencies

Decision for human

Approve the tier + criteria set, or keep human-approval-only and accept the throughput ceiling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highSignificant impact, or blocks an imminent release; staff this cycle.status: readyTriaged, unblocked, and fully specified; eligible to pick up.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions