We held Tobi's funeral in the Hearth kitchen because he had liked the kitchen, and because nobody could face the main hall.
Pim set the chessboard on a flour barrel. Someone had retrieved the pieces from his coat, minus the white king, which was still in the stone somewhere on Floor Three, and the board stood there with its missing piece like a mouth with a tooth gone. People came in twos and threes. Dolores put a copper mark on the barrel. Lena stood at the back, ledger closed against her chest, not writing.
Ruth said four sentences. "Tobias Lund kept a hospital's computers running for twenty-six years and told every one of us it was fine until it wasn't. He lost at chess to a fifteen-year-old and called it strategy. He asked the second question. He is the reason I didn't leave the Hearth in my first week."
She stopped, and I understood she was not going to say a fifth.
I had not been asked to speak, and I was grateful. When it was over I went to the stairwell with a stub of chalk and a stack of boards, and I started to work, because work was the only thing I could do that did not feel like lying.
Ruth found me at midnight. She sat on the step and watched me for a while without speaking.
"Work is fine," she said at last. "Hiding in it isn't."
"Which is this?"
"I'll tell you in the morning." She pointed at the boards. "What are you doing?"
"Debugging."
I'll say what I mean by that, because it isn't what people think.
Most people picture debugging as staring at code until you see the mistake. It almost never works. Real debugging is a method, and the method is the same whether the bug is in a program or a building or a bad idea. You *reproduce* it, so that you can make it happen on demand. You *minimize* it, so that you strip away everything that isn't needed. You form a hypothesis about the cause, a specific one, one that could be wrong. You predict something that must be true if you're right and false if you're wrong. And then you check. You do not fix two things at once. You do not trust a theory you haven't tried to break.
I had fourteen boards. Pim had kept them all: the chalk maps from fourteen different hours of the Labyrinth, each one the connection list for that hour. Fourteen versions of the same forty-eight rooms with the doors drawn in differently. I hadn't looked at them as a set before. I'd looked at each one as a puzzle to solve and throw away.
I laid them out on the stairwell floor and stopped asking *how do we get through this hour* and started asking *what makes the doors change?*
Reproduce first. Was the change deterministic? If the Labyrinth simply rolled dice every hour, I'd never find a rule. But Pim had boards from two different hours when the same room, elm_00, had the same six doors. If that happened by chance it would be one in an enormous number. So the shuffle wasn't random. It was a function of something, and the something repeated.
What repeated? The hour. The Herald counted hours from Day Zero: Day Fifty, hour nineteen was hour 1,219 since the start. If the doors were a function of the hour number, then two hours a fixed distance apart would produce the same doors.
Minimize second. Forty-eight rooms, six doors each, was too much to look at. I took a single room: elm_00. I wrote out where its six doors led, hour by hour, in a column.
And I saw it.
Hour 1,219: elm_00's doors went to **43, 48, 4, 9, 14, 19.**
Not in order of door, but in order of position on the arch. Each door's destination was five more than the last, wrapping around. And whatever the starting point was, it moved from hour to hour by exactly one.
I sat very still.
*Destination equals the hour, plus five times the door number, wrapped.* That was the whole function. It could have been written on the back of a napkin. And the wrap wasn't at forty-eight, which was the number of rooms. In the second door of hour 1,219 the destination was forty-eight, in a Labyrinth that stopped at forty-seven.
The wrap was at forty-nine.
I did not feel clever. That surprised me. I felt something nearer to the feeling you get when a stranger says a word in your mother's dialect.
It was a bug, and it was a specific kind of bug. Someone had built a maze with forty-eight rooms and numbered them from zero, so the rooms ran 0 to 47, and then, writing the wrap-around, had thought *forty-eight rooms* and made the modulus forty-nine. Or thought *rooms one through forty-eight* and written it as inclusive. Either way, the result was a number that pointed one room past the end of the list. A ghost room. An index that went off the edge of the array.
It's called an off-by-one error. Everyone who writes programs has made it a thousand times. I'd have bet anything that I had made it a thousand and one.
And I knew it was mine.
Not mine the way a mistake is mine because you share a trade. Mine the way a signature is mine. I knew the exact *flavor* of the error. A modulus of n plus one, written because I'd been thinking about a sequence in one-based numbers when the array was zero-based. A comment next to it that said *fix later*. I had done this *specific thing*, with *this specific tired logic*, and I had done it often enough that I'd taught myself a mnemonic to catch it, and the mnemonic never caught it at two in the morning.
"I'd have written that," I said aloud, to the empty stairwell.
The words were out before I could stop them. They sounded like a confession.
I wrote them in the corner of the board, and then I crossed them out, because they were not data. They were a feeling. I went back to the method.
Predict third. If the rule was *destination = (hour + 5 × door) mod 49*, then every hour where that came out to forty-eight, one of elm_00's doors would lead to a room that did not exist.
That was the part I could test.
I worked out which future hours would do it. Hour 1,219 was one: Day 50, hour 19. The pattern repeated every forty-nine hours. The next time would be hour 1,268. Day 52, hour 20. Two days from now, at 8 p.m. by the Herald's reckoning, the second door in elm_00 would lead to elm_48.
I had said I'd be careful. So I did what Lena had taught me.
"Pim," I said at dawn, holding out the folded paper. "Take this to Lena. Tell her to seal it."
She sealed it with the same wax and the same Hearth mark, in front of Garrick and Ruth. The prediction said: *Day 52, hour 20. elm_00, second door, leads to elm_48. elm_48 does not exist on the map. It will be a room inside the wall.* I signed it. Not with my name. I signed it **kn**, and this time I knew I was doing it, and I did it anyway.
Ruth watched.
"Is that what I think?" she said.
"I don't know what you think."
"I think you know more than you've told me, and I think you don't know *why*." She folded her arms. "You wanted me to tell you in the morning whether you were hiding in your work. It's morning. You are. But you're hiding in the *right* work, which is rare, so I'm going to let you."
At 8 p.m. on Day Fifty-Two, the six of us stood in elm_00 and listened to the clock.
I had told no one else. Ruth, Pim, Lena, Garrick as witness, and Dolores, who had insisted. We stood around the round stone chamber with its six archways. The second one, from the left, was a dark gap and nothing more.
The Herald's voice came down. "Hour 1,268. The Labyrinth will now reshuffle. Please do not stand inside a wall." A pause. "I'm serious about that one."
The room groaned. The stone moved. When it stopped, the archways were in new positions, and the second door was a plain brass-trimmed arch, like all the others, leading into a corridor that ran straight into the wall.
Dolores walked down it. She came back thirty seconds later with a puzzled face. "It's a dead end. There's solid stone at the end of it."
"Show me."
We followed. The corridor was twenty paces long, and it ended in a blank wall of dark granite. I put my palm against it. It was cold and smooth, and entirely ordinary.
"That's elm_48," I said. "The door was meant to lead into a room that was never built. So the corridor ends in the space where the room should be." I looked at Lena. "Open the envelope."
She did. She read it aloud, her voice shaking, and then looked at the wall.
"Now what?" said Pim. "Walk into it?"
"The Herald said *don't stand inside a wall.* A thing that gets a warning that specific is a thing that happens." I took a breath. I put one hand out, and then both, and I stepped forward, and my fingers went into the stone as if it were water.
It was cold for a half second. Then it was gone, and I was standing on a floor of white tile in a small square room with no door. The walls were featureless and the air smelled of dust, as if no one had breathed it in a very long time. Light came from nowhere. In the center of the room stood a single plinth, and on the plinth, a black glass panel the size of a book. Words were engraved into the wall behind it in a small, plain monospaced font, the kind that belongs to a machine.
I walked up to them. I read them. I read them again.
> **// elm_48: this room should not exist.** > **// off-by-one in the door generator. I always do this.** > **// fix before ship. (I did not.)** > **//** > **// if you are reading this, you found the bug.** > **// if you are reading this, I lost.** > **// — kn**
Behind me, Pim came through the wall, white-faced, and then the others, one at a time. Nobody spoke. Lena's hand had gone to her mouth.
The black glass on the plinth woke, brightening to a single line of cursor.
**AUTH:**
I looked at the engraving. At *I always do this.* At the two small letters I had signed across a wax seal three days ago and now saw, cut into stone, in the same hand.
"Kai," said Ruth, very quietly. "You've gone grey."
"It's the same bug," I said. "It's the same comment. It's the same *tired.*" I heard my voice crack. "I didn't just recognize the mistake, Ruth. I remembered making it."