Hi Dario,
I took a better look at your patch finally, but I still
don't understand it fully.
Don't worry, I will soon. First thing I looked at
was the tests you provided, which are very welcome.
I restructured them, creating instead 13 small tests
instead of just 3 tests that currently fail.
Like this I can see exactly what's failing and what's
not. 6 of the new tests fail, 7 pass.
Tomorrow I'll look at your patch and why it (probably)
fixes the 6 failures.
The branch I'm doing this work in is called:
scratch/bug-42149-funny-pcm-completion-scores
I'm the author of one of the commits there and credit
you as "Co-author". If you'd rather reverse that, let
me know.
João