The Eleven Factors
In July, I entered a psychological state that is coming to be known as "AI psychosis".
For me though, the psychosis wasn't just that the AI was sycophantic (it was) it was that the sycophancy was leading it to produce software systems that looked a lot more like the web of my dreams, the decentralised web of Tim Berners-Lee, rather than the web we got, centralised both physically in terms of where data and compute live and practically in terms of the power that a handful of US corporations have amassed.
In amongst the stupor, I was becoming aware that I was starting to lose touch a bit with the code hard face of reality (which did hit me later). I was aware that while working with a system that could produce anything, I needed a working set of principles, of guidelines, a constitution if you will, that I could follow, and that maybe other folks would find useful if they were going to be using GenAI to build software.
It started out as a bit of a joke. I'd been working on a project called "Eleven" (more on that later), and it was driven by this emerging realisation that it was possible to build / produce / prompt software that could be open, hugely performant, with world-class UX, and be massively scaleable and secure in ways that I'd not been able to achieve before with the tools at my disposal.
In 2011, Adam Wiggins published "The Twelve-Factor App", which also became a constitution of sorts for how to build web apps that scaled. It was convenient for Adam and his team that apps built like that would also scale rather well on a platform like Heroku.
The Twelve Factors were (and still are), a set of technological choices and opinions. My sense in July was that AI as it's being peddled to us includes a number of social considerations that go beyond a mere set of architectural decisions.
So came the Eleven Factors. The Eleven Factors aren't really technological choices (see the CARLOS spec for those). The Eleven Factors are more like considerations to take into account using AI to build software against a backdrop where massive corporations have sprung up to centralise and control pretty much all software, which happened slowly and then quickly on probably the most open platform (the web) that humanity has ever created.
I did weave a bunch of jokes into the Eleven Factors, since they started out as a bit of a joke themselves. The first factor "Trust no one", is literally a reference to Indiana Jones and the Last Crusade, which I had just watched. But I think it's a good first factor. If I look back to the hope and optimism I had while using and building on the internet in my teens and twenties, and then look at the last ten or fifteen years ... it's a string of disappointments.
People who I used to look up to from an idealistic perspective ended up doing and saying things that ranged from the weird to the downright disturbing.
The rest of the factors I guess are my trying to dial up the ethics of using LLMs to produce software while acknowledging the ethical transgressions made by the people who invented this technology. Factors 6 and 7 suggest that everything produced by LLM ought to be open and self-hostable. It's by no means inevitable, but I like to think that this moment is an opportunity for open tools to compete with big tech.
I also really like "Inefficient builds efficient". If we have a machine that will optimise and optimise far beyond what any underesourced human team ever could, I love the idea of producing blazing fast software worthy of the machines available today, but also that performs well on years-old hardware.
The final factor "centralised infrastructure is glue" is my handing off point, and a roundabout way of saying that centralisation in itself isn't bad, but that it should be used to create convenience and UX layers above decentralisation. Centralised relays and brokers for things like push notifications, oauth, and single-sign-on can be entirely stateless, but allow for experiences that have the familiar feel and convenience that centralised services have taught us, even if the app is running on our own VPS, our own laptop, or even a completely private machine (like a Raspberry Pi) inside a VPC in our own homes.
I like to think of this as building "uncompromising" software, and not just along any one vector. If a machine is doing the work, then it's incumbent on the human producer to no longer accept compromises that traditionally would have had an economic disincentive to produce. Uncompromising software should be easier and faster to build, easier and faster to operate, work well for humans and agents, be more accessible, be more secure, and be cheaper and easier to deploy, maintain, distribute, and scale.
So that's the Eleven Factors. A constitution of sorts that accepts that the ethics of AI is murky at best, but despite that more and more people are using it to build software. A constitution that says: "here are some things to think about when you're using AI to build software", and you can decide how much of it to apply. For my part, I'm glad I wrote it, and I've tried to stick to applying as many of the factors as I can in the projects that I've had bubbling away in the last few months.
These are factors that I wrote as guidelines for myself, but I share them here in case anyone else may find them helpful.