Matt Pocock sketches a tool to deterministically verify automergeable refactoring PRs

mattpocockuk · x · 2026-10-25

Matt Pocock outlines a tool idea: deterministically check whether a PR can be automerged, under very strict constraints—only reorganizing code, not changing the module graph, and not worsening test coverage.

The dream is refactorings in source code that don't change the bundled output. But he flags hard requirements: no import.meta.glob or reading source file positions at runtime, no global state—and admits "probably not possible the more I think about it." It would only cover refactors, not new features or most bugfixes.

Related event: Debate over deterministic auto-merge tool for refactor PRs(3 posts)→

Original post →

More from coding & agent

coding & agent channel →