Introducing civilsort

I often say that I am a single-issue voter. I'm half-kidding, but that means I'm also half-serious: I think a lot of the problems we see in our political process are a result of polarization from first-past-the-post voting.

Maybe it's naive, but I have a lot of hope for ranked-choice voting systems. In the most recent election, when neither major candidate was sufficiently able to rise above my cynicism, I voted for the Approval Voting Party candidate as a protest vote.

But people don't have enough experience with alternative voting systems. Voting for who you like, and selecting whoever got the most votes, just seems intuitive and familiar to most people. By contrast, ranked-choice voting systems seem strange and complex to many people, and that makes it difficult for many people to trust them.

Alternative voting systems, like ranked-choice or instant-runoff systems, are substantially more complex to tally, and that makes them legitimately impractical for hand-tabulated elections. Official elections shouldn't have a problem using available software to tabulate from ranked ballots, but to change people's experiences I wanted to have software that was easy to call up and use whenever a group of friends is deciding where to go for dinner. Or what to watch on movie night. Or what board game to play.

I've wanted to try building something like this for a while, but I never committed enough time to it to make it usable by the general audience that I want it to serve. (Implementing a voting algorithm is easy enough, but I don't have as much experience with frontend web development, and people's expectations for user interfaces have only increased over time.) But with agentic coding tools as capable as they are now, this seemed like a good opportunity to see just how far I could get without actually doing the programming myself.

The result of this experiment is civilsort, a small web application for making group decisions, which I'm hosting at civilfritz.net.

How it works

civilsort computes its results using the Schulze method, a ranked voting method devised by Markus Schulze and also known as "beatpath." It considers every pair of items head-to-head and counts how many voters prefer each one over the other. If one item beats every other item in these pairwise contests, it wins.

This doesn't always produce a clear winner: group preferences can be cyclic even when every individual's preferences are perfectly consistent. Consider nine voters choosing among three items:

  • 4 voters rank A > B > C

  • 3 voters rank B > C > A

  • 2 voters rank C > A > B

Head-to-head, A beats B 6–3, B beats C 7–2, and C beats A 5–4. Every item loses to some other item, so there's no winner.

The Schulze method resolves this by looking at paths between items. A path from A to C through B is only as strong as its weakest link, so A reaches C with strength 6 (the lesser of A's 6 votes over B and B's 7 votes over C), while C's direct win over A has only strength 5. Computing the strongest path between every pair of items, the final result is A > B > C.

The Schulze method is a particularly good fit for group decisions:

  • Incomplete rankings are fine. You don't have to rank everything. Items you rank are preferred over items you don't, and the items you leave unranked are tied with each other. That lets you say "I care about these three, and I'm indifferent to the rest."

  • Ties are reported as ties. If the group genuinely doesn't distinguish between two items, they share a rank in the results.

How to use civilsort

Anyone can create a new ballot at https://sort.civilfritz.net. This generates a unique address for the ballot, which you can share with others to invite them to participate.

The civilsort home page, with fields for a ballot title and your name, and a Create Ballot button.

Participants can then propose items to be voted on and rank them according to their preferences. The combined results are updated live as everyone makes changes, and civilsort retabulates the result whenever items and rankings change.

A ballot titled "Going out to lunch." with Indian, Thai, and Sushi ranked in order of preference.

There are no accounts and no passwords: each ballot remembers its participants with a browser cookie, so participants can return to the ballot and continue updating their rankings or adding items to the ballot at any time.

The code

civilsort is written in Go and TypeScript. It builds into a single binary with its templates and static files embedded, and stores its data in SQLite. The source is available on GitHub under the BSD 3-clause license. Bug reports and suggestions are welcome there.

It is absolutely 100% vibe-coded, so take that for what it is. But it's progressed to the point where it's useful to me, and I'll keep polishing it while I use it myself. I wouldn't recommend this level of hands-off development for a larger project; but for this kind of personal-use app, it sure was a good experience to go from "something that I've wanted to have for years" to "something that I can use with friends."

Amnesia: The Dark Descent

Amnesia: The Dark Descent has a fantastic title. It's conformant enough to its apparent genre that it doesn't attract too much attention. It provides an easy surface reading as well: Daniel has amnesia, and he is descending progressively into the dark underground of Brennenburg Castle. Over time we discover the second reading of the title, together with Daniel's discovery of his own descent into darkness as he justifies increasingly evil acts of torture.

But there is a third reading...

I came to Frictional Games' Amnesia: The Dark Descent with a pretty well-formed preconception of what the game was. The first act served to reinforce my expectations: we are Daniel; we are trapped in a strange castle filled with horrific monsters and their evil master. We are a victim, and we are here to avenge our past self.

My preconceptions brought with them a set of constraints: I had to be alone; I had to be in the dark; I had to be uninterrupted. The game was about tension and dread, and I was committed to the experience.

But I was unprepared for just how difficult Amnesia is. I'm not talking about the gameplay (which is perfectly serviceable); or even the atmosphere (which is every bit as dark and horrific as I expected); but Amnesia is insidious. It uses its themes of memory loss and self-deception to undermine our confidence in our own memory and history, and effectively so.

Daniel begins our journey with the discovery of a note to himself. We learn that he has chosen to forget his past for noble ends; a goal which involves hunting and killing the villainous Alexander. With this Amnesia adopts the tropes of its medium and genre. A player character with memory loss. An adventure of good vs evil.

As Daniel descends deeper into Brennenburg castle, he encounters horrific monsters that patrol the halls and inhabit the environment; but between these encounters, we also discover the details of his involvement with Brennenburg Castle and Alexander.

The first reading of Amnesia is the descent into the darkness of the castle. We find increasingly horrific monsters and increasingly disturbing imagery. There's even the literal darkness of the castle itself that shrouds Daniel from the monsters.

The second reading is the darkness of Daniel's past. As we discover more of Daniel's diaries we learn that he was far from the innocent player that we traditionally expect of a video game protagonist. With admitted encouragement from Alexander, Daniel becomes a willing participant in the brutal and varied torture of anyone he can vilify.

But there is a third reading that struck me most deeply. Inhabiting Daniel, we come to understand the horror of his past at the same time as he does. We learn of the imprisonment, the torture, the true monster of Brennenburg castle isn't among the cosmic horrors that patrol the halls, nor the otherworldly monsters that inhabit the water. In fact, it's not even Daniel, despite his descent into darkness that leads him to torture innocents for his own selfish ends.

Amnesia asks us to bury our face in dark corners. To love the darkness that conceals us from the monsters that stalk our lives.

We tend to forget about these; or maybe we try to. We live our lives as though we aren't the inheritors of such evil. We have collective, willful amnesia about our past, because the horrors we have committed are too terrible to confront.

Monster mechanics mirror the underlying thematic conceit: success is found not through observation and understanding; but from knowing when to look away. When to remain ignorant. It reinforces the idea that some monsters are too dangerous to be confronted: all we can do is hide, look away, and try to forget.

Amnesia is successful not simply because of the execution of its mood, or its lighting, or the mechanics of monster encounters that explicitly reward fear, cowering, and ignorance. Amnesia is successful because it uses the horrific history of humanity to mirror in the player the experience of self realization in Daniel. As Daniel descends deeper into the castle he learns about his own descent into darkness; but, simultaneously, the player is forced to confront the darkness in their own history. For the most part this isn't the immediate personal darkness that Daniel succumbed to, but a greater societal darkness that is an inescapable part of our shared history. Even then, the very real and persistent perspective that bad things should happen to bad people is explored in gory details, directly by Daniel as he remembers his own history, but then also by the resulting discomfort of the player.

The end result is that we are made to feel the horror that Daniel feels; not simply the terror of unknown monsters in dark places, but the realization of evil already present and previously unacknowledged in each of us.

Daniel comes to the castle in much the same way that we come into the world. We know very little about ourselves or where we come from. We have no direct knowledge of our own history. We know all we need to know: we are good people. There is evil in the world. We are here to punish the evil from our righteousness. But over the course of play Daniel comes to understand that he is not so pure a victim as he had led himself to believe, and we are forced to consider that neither are we so untainted as we would like to assume. Like Daniel we are the beneficiaries of atrocities committed on our behalf. We may prefer to hide from them—to turn away until their immediacy passes us by—but our generational amnesia makes us no less culpable than Daniel.

What's New in Fuzzball 4.2 | CIQ Webinar

I demonstrated Fuzzball 4.2: an AI agent driving Fuzzball over MCP, workflows that launch their own follow-on work through a new in-workflow API, and a cluster that scores its own hardware and routes around a failing node.