What about that large group of people whose problems are not solvable by your social systems and technology? The ones you can't fix, because humans aren't infinitely moldable.
Gosh, when I did I get appointed to this policy role? Anyway, I don't think you're conversing in good faith so I'm not going to spend much time on a response. If you really want to get into the details of what actually causes homelessness and what can be done about it, there is a lot of research (though little political will to do things that actually work here in the UK.) E.g. https://www.crisis.org.uk/ending-homelessness/
I am asking a question in good faith because I really don't know what you're thinking.
You said that homelessness is a symptom of underlying problems, which is true, but also said, "You need to address the issues that cause people to act like that". Sure, this will work for some, but not others.
I am genuinely asking what you propose to do about the people for whom this is not feasible or possible - whose underlying problems we cannot address.
What's your policy towards them?