I mean, let’s be honest: People do crimes even when they have no material need to do so, so you will always need some form of law enforcement, how should a solarpunk society handle this?
The same is true for a military: As long as there is no world peace or some magical way to shut the outside world out, and as long as other societies exist somewhere nearby (and in today’s world this means somewhere on the same planet), a society needs the means to defend itself… what would this look like?


My friend, your comment really shows how much you’re not understanding the problem. Abuses by a government are exactly why intentional communities exist. So then are those communities magic because they self-govern? Or course not. However, everything you mention is quite literally the opposite problem of what I’m talking about.
You do raise a good point that someone enforcing the law needs to be objective and honorable and not some power-tripping human scrotum in a uniform.
Not to get all “20th Century American Lit” here, but a powerful example of this was in To Kill a Mockingbird. Atticus Finch sits and waits outside the jail, expecting a mob. He’s there to uphold rule of law and defend rule of law, and his client, with his own life. The mob that arrives is local community members. It’s only when those community members are named and de-anonymized, and therefore accountable for their actions as individuals, that they back down.
While this is a fictional example, this is how humans work. Mobs can be small. Mobs can be HOAs and commune leadership groups and three car-fulls of some guys that show up. But they are mobs which use force outside of the law for reasons based on emotions and not evidence or justice. Whether that’s 1 or 10 or 20,000 people, that’s wrong. I’m talking about the times when it’s 10 on 1, and which are numerous and occur daily. It’s why LGBTQ+ kids are beaten to death in small towns and no one ever gets arrested. It’s why lynchings happened, and haven’t ever really fully stopped. And why my spouse’s cousin was sexually abused as a child and the only option was to leave the community, because no one wanted to uphold the law. The effort cuts both ways.
So, please, as much as you probably enjoy drawing an A in a circle on your notebooks, and being all edgy and calling yourself an anarchist, please understand that the point of having communities and rules is to keep people safe. People that act with that intention, can do so without abusing the circumstance, and, in fact, many many many communities manage to do this just fine every day, all over earth. That doesn’t mean we should take it for granted, but rather that it takes work and it’s work that’s worth doing together.