Skip to content

EPIC: Port the maintainer merge tool to Rust #2640

Open

Description

@josecelano

Goal

Replace the vendored Python merge tool with a Rust tool that the project owns, first without changing what it does, and then improve it: show the CI state of the head commit before the maintainer signs, and harden the ACK rules. Every improvement, security ones included, is done after the migration.

Background

The maintainer merges every pull request with contrib/dev-tools/git/merge-pull-request.sh, a wrapper around the vendored github-merge.py (MIT, from Bitcoin Core, vendored in #2022). The decision of 2026-10-22 in #2525 keeps CI checks advisory, and the maintainer's signed ACK that names the head commit, together with the merge flow, is the gate. Today the tool never looks at CI and counts an ACK from any commenter, so the improvements of this EPIC close those two gaps, after the port.

Strategy

A faithful port with the cases written as data, a manual parity campaign on two real repositories, then automatic cases, then the cutover to the Rust tool with the Python tool kept as a fallback. The refactor for testability comes after the cutover, under the automatic cases, and the Python tool is removed only after the refactor.

Subissues

  1. Executable case list and its completeness measure
  2. Faithful Rust port of the merge tool
  3. Manual parity campaign on two real repositories
  4. Automate the cases
  5. Cutover with a fallback to the Python tool
  6. Refactor for testability, fast suite
  7. Show the CI state before the sign-off
  8. Harden the ACK rules
  9. End-of-input and request-timeout fixes
  10. Output-contract classification and exit codes

Subissue specifications are drafted one at a time. The specification is docs/issues/open/2640-port-merge-tool-to-rust/EPIC.md, added with the #2525 close-out pull request. Related to #2525.

Activity

  1. added
    Low Priority
    EPIC
    on Oct 24, 2026
  2. added 2 commits that reference this issue on Oct 25, 2026
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

    AutomationEPICLow Priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions