In your opinion. The officer on scene obviously did not agree with your opinion. He must base his actions on reasonable assumptions. As you are not a reasonable person, you must then be a troll. I cannot argue with you further, as I have to prepare for a deposition tomorrow morning. Good day, sir.
Coming from the person who said what relevance
Terry v. Ohio has when discussing California law, that's just rich...

Lets just wait for the court case.
Im pretty sure the officers will be exonerated.
They will simply state that she fit the description of the suspected prostitute and was clearly being defensive and acting suspiciously.
As I've said before "being defensive" isn't a factor that they can consider and if by "acting suspiciously" you mean she refused to talk to them and walked away that's another thing that they cannot factor into their analysis. This is
well-established precedent. Based on what we know so far, I simply can't see how detaining her was reasonable. Of course, other facts may surface at a later point in time, and I wouldn't be surprised.
Cops need to be able to make decisions to stop and check people.
They can and they do. The question is what facts they are allowed to consider when making decisions to stop and check people.
How would you feel if cops turned up to a report of a guy fleeing a rape and they let a guy go who fit the description of the suspect because they were shit scared of being sued and losing their jobs because he wasnt running around with his cock out so they thought it best not to stop him and ask him a couple of questions
This is a typical ploy... "oh, how would you feel if <horrible & extreme situation> and <inability to prevent horrible & extreme situation because of my position>" and I normally don't bother answering such silliness. But I don't think that the answer is "well, cops should be given broad powers to stop whomever they feel like."
You may disagree and you may find living in a world where cops can stop you and demand that you produce your papers for any reason - perhaps even for no reason at all - appealing. I don't.