"the AI several times stated flat out that this was impossible and unsolvable and that we should just write a report about it"
and:
"So credit where credit is due and I let the AI write the commit message above."
FWIW in the end it was a one-line fix.