Is this strictly true, or is the common practice of squeezing a
question into a reason for closure that it doesn't really fit
officially permitted?
I don't think it's "officially permitted" as much as you're usually not going to get caught doing this to new users. Brand new users don't have enough rep to ask about their question on Meta and fairly new users with a little rep often don't know how to contest decisions here. An experienced user might complain but they'd be wary of the Meta effect.
My understanding of the official position is that not all bad questions are also off topic. (Much like not all bad answers are Not an Answer.)
But I'd argue that your comment on your previous question:
...in the mean time people generally use Questions seeking debugging help must ..., too broad, or unclear, none of which are properly appropriate.
isn't actually true. A lot of questions that simply ask for code are actually closeable for those reasons. For example, your #2. What does the asker mean by "number"? An int? A float? A numeric value in a string? In a PDF? An image?
I guarantee you, if you try to answer a question that vague the OP is going to comment on your answer about how it doesn't work for them because [situation they didn't feel like explaining in their question but assumed you'd know anyway]. It is Unclear, no squeezing needed.