Auto-heal knows when a fix is already waiting

Auto-heal skips failures whose fix already waits on the heal branch, and a green run closes a heal pull request only if it passed the tests that pull request fixes.

Re-runs of the same commit used to spend whole heal rounds finding a fix that was already waiting for review. And any green run on the main branch closed the open heal pull request, even a smoke run that never ran the tests it fixed.

  • A failure whose fix already waits on the heal branch is left out of healing; the report links to the waiting change
  • Heal sessions can see the fix waiting on the branch
  • A passing run closes a heal pull request only when its own report shows every test the pull request fixes passed
  • In sharded suites, where no single job sees every test, the pull request stays open for a person to close