How Orion works · Part 12
What we got wrong
Five fixes that moved nothing, a checksum that couldn’t fail, a map that only showed one town. The mistakes behind the rules in this series, and what they have in common.
Eleven posts in, it would be easy to make Orion sound like it was designed this way from the start. It wasn’t. Most of the rules in this series exist because we broke them first.
So here is the list we’d have wanted to read a year ago. None of these are exotic. That’s the point.
1 · Five patches that moved nothing
A batch of questions was being refused. We read the refusals, found the sections of the instructions that seemed responsible, and wrote five careful fixes. We ran the tests.
Zero questions moved.
The fixes were aimed at the sections the refusals seemed to be about, not at the reasons the refusals actually gave. The real blockers were somewhere none of the five touched.
2 · The rule the model couldn’t reach
We had a clear rule for choosing datasets: columns first, description second. The model ignored it, consistently.
The cause was a few paragraphs up. A block explaining how to read each dataset called the description the “decisive” part. The model followed the definition over the rule, every time, and it was right to: we had told it two contradictory things.
The fix wasn’t a stronger rule. It was deleting the contradiction. We now read the whole prompt for statements that contradict each other, not just for rules that are missing. And for small models especially, examples outweigh rules. A wrong example beats a right rule.
3 · The checksum that said “no duplicates”
Post 9 tells this one in full. The short version: we checked for duplicate rows by hashing them, every hash was unique, and we concluded there were none. The loader’s serial column made every copy unique. One tree had fourteen copies.
The broader lesson: a check has to be able to fail. Ours couldn’t, on that data, and we didn’t ask whether it could.
4 · Six from spot checks, thirty-seven from the catalogue
Related, and it happened more than once. We would check a handful of layers by hand, draw a conclusion, and move on. Then one query across the whole catalogue would overturn it. Six duplicated layers became thirty-seven. There were a few days where a catalogue-wide query overturned a spot-checked conclusion three times.
A spot check tells you about the spots. Ask the whole catalogue.
5 · The map that only showed one town
This one is a pure GIS story, and I still like it. The Stage draws a preview of each answer on the map: the first thousand rows. For large building answers, the preview was always entirely in one of our two municipalities. The map, and even the example addresses in the written answer.
The rows were ordered by the building identifier. National building identifiers start with the municipality code. So the first thousand rows of any large answer all came from the municipality whose code sorts first.
Nothing was wrong with the count. Everything was wrong with what people saw. Previews are now sampled evenly across the whole result, the same way every time.
6 · A guess that became a fact
From post 10: a model guessed what a table-name suffix meant, the guess was plausible, and because it was stored, everything downstream treated it as true. The fix was a rule about storage, not about models: if a fact can’t be grounded, leave it empty. An empty field gets noticed. A wrong one gets used.
7 · Telling the model to refuse less
From post 2: two wrong refusals, a few sentences telling the model refusing was wrong, and eleven new confident answers to questions the data couldn’t answer. We now fix a wrong refusal where it happens, in code.
8 · Writing down conclusions we hadn’t checked
The quietest mistake, and the most expensive. More than once, a plausible explanation was written into our project notes as a finding before anyone ran the query that would confirm it. The next person to read the notes took it as fact and built on it.
A query costs ten seconds. A wrong conclusion written into a document costs days, because it looks exactly like a right one. Now the rule is simple: state the hypothesis, write the exact query that would decide it, run it, and only then write anything down.
What they have in common
Look at the list again. A section title we took for a cause. A definition we took for a rule. A checksum, a spot check, a sorted preview, a plausible suffix, an unconfirmed note. Every one of these mistakes came from trusting something that looked like evidence.
That’s also, not by coincidence, the exact failure Orion is built to avoid on your behalf: a number that looks like an answer. We had to learn it on ourselves first.
Thank you for reading the series. If you work with municipal geodata and any of this sounded familiar, we’d like to hear your version. The next season will be about what we’re building next: questions with several parts that depend on each other, counts per distance band, and more of the questions that still come back as “not yet”.