Allostatik

The goal is discovered as you go

When the problem you take to AI is too big to understand before you start, two things are true of it. It can be finished, but you do not know at the start what finished looks like: the goal is discovered as you go, and so is the point where it is good enough. And you do not know its dependencies when you start. They are load-bearing, and they have to be worked out one piece at a time, each piece depending on the decisions you made for the last. That shape has a name, a wicked problem. The term comes from two planners, Horst Rittel and Melvin Webber, who in 1973 set out what makes planning a city unlike solving a puzzle: a wicked problem cannot be stated before you solve it, it has no stopping rule you could write down in advance, and its answers are better or worse for someone rather than right or wrong. A chess puzzle is tame on all three counts. They add a harsher property: for them every attempt counts, because a solution cannot be undone. But a city is the same as anything else you build, finished but never finished, and built in rounds too. You build, try what you have, and change what the trying shows you, and it is not until you try what you have built that you see what is really going on.

That is what building with AI looks like once it is real. DJJWJ, a site I built for Dad's Just Just Wanna Juggle, is a giant dad joke for a social group. Visit it and you can see it and interact with it, but essentially it is a graph on which a small group of people vote, comment, argue, and even change the page itself as they go. Some would call it a complete app, and some one feature of what a larger app would be. I built it for my friends, and also to test Allostatik, my way of working with an AI, against other ways. It took thirty sessions with Claude, the AI I build with, and began from a brief that grew the whole time, with rulings made, reversed and amended. The unknowns were not only where it would stop. Which service would store the data and handle sign-in, and then, once Supabase was chosen and wired in, how it would behave with everything already there: you do not know that until you do it. The things that took the time were not in the brief. Sign-in with Google sent people back to the wrong address until it turned out that the address the code asked to send them to was only a request, and the rule was a Supabase setting nobody had read. Google refused the sign-in screen four times with the same one-line refusal while three different things were wrong with the page; the fourth refusal went to a person on appeal, and two sessions later it had passed, and nothing in the record says why. A correct decision about the product deleted the sample data that a third of the automated tests depended on, and three files went on reporting every test passing. Nobody could have written the finished brief on day one, because the brief was what the work produced. It is complete for now, and there will be more added; it stopped where it was good enough for the people it is for.

Once it was built, I could do something that was impossible at the start: write a brief of the finished product. Then I ran tests against the brief with different versions of working with AI. A bare AI with nothing but the brief. Allostatik, which is a folder of plain files beside the work that holds what the person and the AI have agreed, with a routine that checks them at the start and end of every session. Two other published methods, each in a version for Claude Code, where I build: pstack, a set of skills and engineering principles for AI agents, and Ralph, Geoffrey Huntley's way of running an AI in a simple loop that does one task from a plan file on each pass. And five ways of carrying work from one sitting to the next, from one long sitting to a restart from nothing on every call, with Ralph's own loop a sixth. One method on one loop, nine combinations, three or more builds each; the numbers are on the results page. In the rounds that built from the finished brief, every builder was handed it, built the site, and was graded by a second AI that clicked through the site in a browser and checked whether what the brief asked for worked. The brief had been written to what those AI builders could do, no sign-in with Google and no real back end, so the things that had taken the time in the real build were the first things the test left out. Each test was a tame problem: the brief was complete before the first step, the checks were fixed, and the score came at the end. A bare AI with the full brief scored at the top, and so did nearly every other combination, on a scale from 0 to 1 where two builds of the same combination differ by about 0.2. Three builds each, which by the rule the eval later set for itself makes this a hint and not a result, and every later round with Allostatik in it tied the same way, inside the noise. The AI does better the better the brief it has, with or without a system. The brief was the thirty sessions. The tests started from where the work ended.

A test goes blind in two ways. One is Goodhart's law, the old observation that when a measure becomes a target it stops being a good measure, because the thing measured can see it coming and shapes itself to it. The other is a ceiling: when the problem is fully stated and the AI is strong enough, every builder reaches the top, and the measure stops telling anything apart even if nobody has ever seen it before. Mine was the second. The brief was private, and the scores bunched at the top anyway. And the ceiling was partly built by hand, since the brief had been cut to what the builders could do; a measure trimmed to fit the thing measured is Goodhart's law again, run by the person who wrote the test.

What the rounds taught, they taught one at a time, over six weeks and two apps, and each round taught something about the test itself. The first round handed every combination the full brief, and nearly every one scored at the top. A planning round tried to test getting to the brief: builders got a short brief and a stand-in person, an AI holding the full brief that answered only what it was asked. Allostatik led after two runs, and on five the lead had shrunk to 0.45 against 0.41 for the bare AI, inside the noise. That set a rule the test had not started with, six runs or it is not a result, and the rule cuts both ways, so every reading in this piece with fewer runs behind it is a hint and not a result. A round of loops found that at a generous budget every loop but a restart from nothing tied near the top, on two runs each, and at a tight budget, on six, they came apart; at the budget where they came apart, Allostatik was never run, which is the sentence I would most like to be able to delete. And a round on the second app, a rehearsal board for a performance group, moved the person's wants between sittings while the written brief stayed as it was: two rulings reversed, two wants hidden. Every combination kept every change, six runs each. That is the one reading with Allostatik in it that is a result by the rule above, and it is a tie. Allostatik asked the stand-in more than the others did, ten questions against one each, built one of the two hidden wants twice in six runs, and was the worst of the three on the other, at 1.8 times the cost. Two runs of six is a direction and not a finding until it repeats, in both directions. On this benchmark Allostatik did no better than no method at all.

Three things about the test's own design came out only by running it. In the rounds without a stand-in, the rule was that the AI decides everything itself, which switches off the one place Allostatik puts a person; with a stand-in, any plan that did not go against its brief was approved. The eval chose, as a choice and not a gap, to carry only the work itself between sittings and not the note Allostatik writes when a session closes; the files were in the repo, and what was missing was anyone to rule on them. And no test had a person in it: a stand-in holds the whole brief from the first minute and does not learn by trying, which is the one thing a person does. The test's own errors came out one round at a time as well, two agreeing runs that reversed on five, a harness fault, a grading time limit, a budget that cut a build before its start script could run. So the test was a wicked problem too: its brief could not have been written at the start either.

That was the point at which the AI and I asked whether we had been asking the right question. We had been measuring the AI's output on a problem whose goal was fixed in advance, with the person replaced by an answer key. The question that matters is not whether the AI does better with a method, but whether the person does, and whether the two of them do together. That needs a measure of the pair, and it is the next piece.

Here is what would count against Allostatik, so that this piece is not just the builder explaining why a tie is a win. A round with a person ruling, sittings long enough that something has to be carried between them, run at the budget where the loops came apart, scored on the same checks plus the person's own read of the result, six runs per combination, and a loss at the same cost. One part of that cannot be made fair: whoever rules will see the files, so the gate cannot be blinded. That round has not been run. Until it has, this is an argument from the shape of the problem, made by the person who built the thing, designed the test, had the brief and the checks written, and wrote this.