On the topic of “Do I have to identify myself” or “Do I have to sign the ticket”:
The default option is jail. A cop can put you in jail for any reason if he determines you might be breaking the law. It’s literally their job. Agreeing to be identified gives them a reason to let you go, agreeing to appear in court of your own will for an infraction gives them a reason to not hold you until a forced court date.
I’m of the party that you should only cooperate the bare minimum with the police and I believe they have too much power as it is. But don’t refuse to identify yourself and don’t refuse to sign a ticket. Not unless you want a tour of the county jail.