My ants kept digging at the same wall
A note before anything else: The Nest: Colony Wars is in development. There’s no public build, nothing to buy, nothing to play yet. This is behind-the-scenes work on an unreleased game.
In July it became a strategy game rather than a simulation you watch.
The foundation is a command bus. Every change to the simulation goes through it — one entry point, no exceptions, no system reaching in to nudge a value. With seeded deterministic randomness underneath, that means a given sequence of commands produces exactly the same colony every time, which makes the whole thing testable, replayable and much harder to break by accident.
On top of that, three ways to play. Commander, where you give orders. Colony, closer to the ant-farm end of things. And Observer, where an AI plays and you watch, which started as a debugging tool and turned out to be the best stress test in the project.
Then the commander’s interface: a minimap refreshing ten times a second, a command card along the bottom, and armed verbs — press A for attack-move, P for patrol, R for rally, then click. Plus feedback that tells you an order landed: ripple rings where you clicked, health bars, a flash on hit. That last group sounds cosmetic and is the difference between a game that responds and one that feels broken.
A colony that dug at the same wall forever
The autopilot found the month’s best bug by being patient in a way I never am.
Running Observer mode, a colony would stop. Not crash — stop. Alive, ants walking, nothing erroring, no progress ever again.
The digging policy picks a tile to expand toward by choosing the nearest candidate. A separate validator then decides whether a shaft can actually be marked there. And the nearest candidate happened to be a tile blocked by a root vein, which the validator always rejects.
So: pick nearest. Rejected. Next tick, pick nearest — the same tile, because nothing changed and nearest is deterministic. Rejected. Forever.
It’s a livelock rather than a deadlock. Nothing is waiting on anything. The system is working at full speed, making a decision every tick, and the decision is always the same wrong one. There’s no error to log, because neither component is wrong: the heuristic correctly identified the nearest candidate and the validator correctly refused an impossible dig. They just disagreed about what “candidate” means, and nobody had ever asked them to agree.
Fixed by filtering root-vein tiles out before they’re offered, and by only accepting the action when the validator actually reports success, so a rejection has a consequence instead of being discarded.
I wouldn’t have found this by playing. I’d have given a different order, the stuck state would have cleared, and I’d never have known it existed. An AI that plays exactly one strategy with infinite patience walks straight into the pathological case.
Making room for a second colony
The last release of the month looks like nothing happened and was the most careful work in it. The colony stopped being an implicit “the” colony and became an entry in a list, with per-colony vision.
No new features. The verification that mattered was that the simulation produced a hash-identical result to the previous version — same seed, same commands, same colony, down to the bit. A refactor that size either changes behaviour or it doesn’t, and determinism means you can prove which.
That unlocked the skirmish arena: a mirrored two-start map, ant-versus-ant combat with target acquisition and kill credit, a queen you can besiege, and a match that ends when a queen dies. Built, tested, code-complete.
And then not released, for seven weeks.
What I should have done differently
The skirmish arena finished on July 23rd and shipped in mid-September. No version bump, no changelog entry, nothing marking that the biggest feature of the month existed. The player-facing changelog stopped being updated several releases before that, so three releases and the arena have no entry at all. Finished work nobody can tell is finished is a strange kind of waste.
Worse: 278 commits this month and only 163 are on the shipped line. The other 115 sit on a branch that split off on the 12th and built a parallel roadmap nobody had asked for — a rival colony, a food economy rework, a lobby, a story mode — including a release commit whose version number collides with the real one.
None of it is merged and none of it is on the roadmap. That’s a real pile of effort sitting somewhere I can’t use, and it needs a decision — salvage, cherry-pick or delete — rather than sitting there looking like progress. It’s also the clearest argument I have for the tracked, one-change-at-a-time pipeline we moved to later in the year.
The tests, at least, went from 213 to 294 across the month, each run executed twice to verify determinism. An AI-versus-AI stability run simulated a full sim-year — 72,000 updates — in about 23 seconds.
— Bruno