Auto-heal carries an earlier fix to a newer commit

When a newer commit fails, auto-heal merges its earlier unmerged fix onto it, re-runs the tests that fix touches, and keeps only what still passes.

A heal pull request is made for one commit. When a run on a newer commit published a fix, the earlier pull request closed and its fix was lost, even when the newer commit touched none of the healed files.

Auto-heal now carries the earlier fix forward. It merges each file of that fix onto the new commit, re-runs the tests those files reach, and keeps a file only when its tests pass.

  • A file that conflicts, or a cached AI step whose test changed, is left out, and the agent sees it as an earlier attempt
  • Carried files are checked again in every later round that changes code
  • The pull request lists what was carried, even when nothing new was fixed