There Is A Table In Our Architecture Document Listing Ground Squirrels, Tardigrades And Dragons
A taxonomy of suspended states, and why a behaviour engine needs one.
The Unnamed Engine · 04 of 13
I want to tell you about the single strangest page of engineering documentation I have ever been responsible for.
It is a taxonomy of suspended states.
The examples column reads, in order: bears and raccoons. Ground squirrels and hedgehogs. Certain bat species. Then wood frogs, tardigrades, vampires in sealed tombs, and dragons at extended rest.
In the same column. In the same table. With an entirely straight face.
I would like to explain how we got there, because the joke has a load-bearing point underneath it.
Four of those five rows are just biology
The distinctions are real and they are not interchangeable.
Torpor is significantly reduced metabolism with an elevated arousal threshold — a bear can be woken, though you should consider whether you want to. True hibernation drops metabolism to minimal and the threshold very high; ground squirrels and hedgehogs live here. Deep hibernation is near-suspended, with no sensory awareness, and waking is not possible on demand.
And then there is cryptobiosis, which is the one that sounds made up and isn't. Biological processes do not slow. They cease. A tardigrade in this state has no detectable metabolism and is, by most working definitions, not currently alive. Wood frogs freeze solid. Later, both resume.
So when we needed a category for something that is inert, unwakeable, and will nonetheless pick up exactly where it left off, biology had already named it and populated it. We added two entries to the examples column and moved on.
Why a behaviour engine needs a hibernation spec at all
Because of what happens when the player leaves.
Every persistent world has the same quiet failure: you clear the bandit camp, you come back in forty hours, and the world has been standing very still with its hands at its sides, waiting for you. Nothing continued. Nothing was elsewhere. The world is a diorama that animates on approach.
The alternative is simulating everything continuously, which is unaffordable and also stupid — most of what's out there should not be thinking, because most of what's out there is a rabbit.
Suspension is the middle path, and it has to be specified properly or it becomes a bug. Each state has to answer what survives it, and they do not answer alike.
That last column is why cryptobiosis needed its own answer rather than borrowing one. The others reduce. Cryptobiosis stops. A system that merely pauses an entity is making a very different promise from one that stops it and guarantees the state it resumes into.
We also left room for the things we hadn't thought of — magical stasis, cryogenic suspension, death-equivalent states — because we were confident someone would need one, and we would rather have anticipated them than watch them abuse the tardigrade row.
The actual thesis, wearing a silly hat
Here is why I keep telling this story.
The temptation in this field is to solve everything with the language model. Ask it to be a bear. Ask it to be convincingly dormant. It will produce extremely plausible prose about dormancy.
But "what is still true about this creature after eight months of nothing" is not a language question. It is a state question. It has an answer before anybody says a word, and the answer is either specified or it is improvised, and improvised state is just a very confident guess.
So we specified the hibernation of a dragon with the same machinery we used for the hibernation of a hedgehog, because from the architecture's point of view there is no difference worth encoding. One of them is bigger.
What's the most absurd-looking thing in your own documentation that turned out to be completely necessary?
Sources: Standard comparative-physiology taxonomy of torpor, hibernation and cryptobiosis. Finch, "Variations in senescence and longevity include the possibility of negligible senescence," J. Gerontol. 53A (1998).