Earlier quoted context omitted.
By asking the user to explain what they want whenever there's ambiguity. Plus all the other things that software engineers generally have not learned to a professional level even if they picked up the basics on the job by osmosis, because figuring out the customer's needs (and what they'll pay you for which may be different) is the job of a business analyst, a PM, or a UX researcher, and those are different skills an…
And when an LLM runs up costs for a small company by getting them to lease a bunch of infrastructure they don't need, who can they sue? A contractor or advisor you can't hold liable is just a liability.
This question is completely disconnected from reality. If you try to sue a human for proposing something more complex than what you need you will waste a lot of money and then lose the lawsuit.
Also the annual cost of too much small company infrastructure is less than the cost of even a single good human engineer.