Skip to content

PR autopilot with a trust dial: CI green, address feedback, merge when conditions met #255

Closed

Description

@currentbits

Inspired by GitHub Copilot's Agent Merge and Copilot CLI's /pr auto and /pr automerge, plus Greptile's auto-approve-under-risk-ceiling.

A per-thread graduated-autonomy setting for landing PRs: level 1 = drive CI to green; level 2 = also address review feedback (#161 is the plumbing); level 3 = merge automatically when configurable conditions hold (checks green, N approvals, no P0 review findings, path/author filters; auth/secrets/migrations never auto-merged). The trust dial is the UX: one control, explicit levels.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Research notes (Mergify State of Merge Queues 2026, Trunk): (1) batch-and-bisect merging: batch compatible agent PRs through one CI run, auto-bisect failed batches to isolate the culprit. (2) Trunk-style flaky-test quarantine so agents stop chasing false CI failures (mute-and-track, with auto-filed tickets). (3) Their data: AI-assisted PRs broke main HALF as often as human ones (1.9% vs 4.4%); good ammunition for the trust dial's defaults.

  3. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Deep-dive detail (Conductor): user TODOs that gate merge — checklist items in a merge-readiness panel that block merging until checked off. Human-verified gates complementing the agent verification side.

  4. currentbits commented on Aug 19, 2026

    @currentbits
    OwnerAuthor

    Claude Code Desktop's shipped version of the trust dial is two toggles in a CI status bar (docs):

    • After a PR is opened, a CI status bar appears in the session; gh polls check results and surfaces failures.
    • Auto-fix toggle: Claude reads the failure output and iterates until checks pass.
    • Auto-merge toggle: merges once all checks pass, squash only — and it requires GitHub's own auto-merge to be enabled on the repo first, so the ultimate gate is a repo setting the agent cannot flip.
    • Desktop notification when CI finishes; optional auto-archive of the session when the PR merges or closes.

    Three things Solenta should copy directly:

    1. The dial lives on the PR, in the thread, after the PR exists — not in global settings. The user opts into autonomy for this change with the diff still on screen.
    2. Leaning on GitHub's native auto-merge instead of merging itself. The agent enables a GitHub feature; branch protection and required reviews stay authoritative. That is much less machinery than Local merge queue: serialized lanes with a check gate and human-only promote #346's local merge queue and it cannot bypass repo policy.
    3. Squash only. One knob fewer.

    Together with #161 (route CI failures back to the thread) this is the whole loop; #363's PR-status sidebar icon is the glanceable half of the same status bar.

  5. added
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Oct 9, 2026
  6. currentbits commented on Oct 9, 2026

    @currentbits
    OwnerAuthor

    Core shipped in 0.24.0: PR watch-and-wake (electron/prWatch.js) fixes failing CI and answers reviews and conflicts, and auto-merge when green uses gh pr merge --auto. A single "trust dial" setting was not built; open a fresh issue if it's still wanted. Closing in the 2026-10-09 board cleanup (#1532).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions