Season 3 Episode 5

The Noble's Gambit

Key scene illustration
Key scene illustration

In which our protagonist is framed for treason, and the king's enemies make their move.


The forged letter was found in the bottom of a drawer Kenji was certain he had not touched since arriving at the palace, and the letter was in his handwriting, and the letter was in the style of the Whisper Cult, and the letter was, in the driest possible language, a logic bomb.

The letter was addressed to "The Strange Sage of Oakhaven, who has been sent by the cult to corrupt the kingdom from within." The letter discussed plans. The letter discussed payments. The letter mentioned the names of three of the arrested nobles, in a context that strongly implied that the Strange Sage had been coordinating with them. The letter was on good paper. The letter was in good ink. The letter was the kind of forgery that you produce when you have had access to the palace, when you have had access to the Strange Sage's quarters, and when you have had time.

Elara found it. Elara had been doing what Elara did, which was walking the rooms of the palace with the patient attention of a person who has learned that the most dangerous attacks look like dust. She found the letter on a Tuesday morning, in a drawer that had been locked, in a room that only Kenji and she had keys to, and she brought it to him without reading it, which was, in the language of the system, the most professional thing she had ever done.

"You need to read this," she said. "And then you need to tell me who has had access to this room."

[Object: forged letter, hand-matched to developer]
[Source: planted, time stamp matches the night of the assassination attempt]
[Compiler note: the logic bomb has been deployed. The system is, in a small way, paying attention.]
[Compiler note: the developer should not panic. The developer is, in a small way, ahead of the panic.]

Kenji read the letter. He read it again. He read it a third time, the way you read a piece of evidence when you understand that the evidence is going to be used against you in a room full of people who have already decided what they want the evidence to say.

"This is good," he said, finally. "This is very good. Whoever wrote this had a sample of my handwriting, had time to study it, and had access to a scribe who specializes in forgery. The forgery is so good that I cannot tell, by looking at it, that it is not mine. That is, in the driest possible language, an excellent forgery."

"It is going to get you killed," Elara said.

"Yes. If we do not debug it."

The frame-up came that afternoon. The letter was brought to the throne room by Lord Harren, one of Vex's allies, who had been released on bail by judges who were themselves on the list of forty-seven, and who had, in the language of the system, decided that the fastest way to clear their own names was to destroy the man who had put them on the list. Lord Harren stood at the center of the throne room and read the letter aloud, in a voice that was full of righteous anger, and the throne room was full of nobles who had been waiting for an excuse to undo the arrests, and the king was on the throne, and the king was looking at Kenji, and the look on the king's face was, in the language of the system, the look of a person who is watching his own system collapse and is not sure what to do.

"Strange Sage," Lord Harren said, when he had finished reading. "You have come to this kingdom under false pretenses. You claim to be a foreigner who wishes to help. But the evidence shows that you are a cult agent, sent to corrupt the very system you claim to debug. We demand that you be arrested, that your apprentice be arrested, that your captain be arrested, and that the three of you be tried for treason."

The throne room was silent. Kenji stood. He did not panic. He did not raise his voice. He had, in his professional life, been on the wrong end of a sprint review exactly once, and the way you survived a sprint review was the way you survived a throne room: you asked for the data, and you let the data do the talking.

"I have a request," he said.

"Speak," Lord Harren said.

"I would like to cast a spell. The spell will read the mana signature of this letter. The spell will tell us who wrote it, when it was written, and where the ink came from. The spell cannot lie. The spell cannot be fooled. I will cast the spell in front of the entire court, and the court will see the truth."

Lord Harren's face went pale. "That is not how trials are conducted."

"That is how audits are conducted. And this is an audit. The letter is a data point. The data point has a provenance. The provenance is the truth."

The throne room was very quiet. The king, who had been watching, stood up.

"Let him cast the spell," the king said. "The throne defers to evidence."

[Compiler note: the throne is, in a small way, a runtime. The runtime is, in a small way, on the developer's side.]

Kenji walked to the center of the throne room. He held out his hand. He thought, in the language he and the system had built together: Function create(name='audit', inputs={target=letter, scope=provenance}, outputs={writer_identity, creation_time, ink_source}, cost=low, stability=very_high)!

The spell shimmered. The letter rose into the air, slowly, and a small point of light appeared at the corner, tracking the mana signature of the ink. The light moved. It traced the lines of the letter. It clustered at the signature, at the "Strange Sage" at the bottom, at the place where the writer had paused.

And then, with a clarity that was visible to everyone in the room, the light showed the truth.

The letter had been written by Lord Harren's own scribe. The ink had been purchased from a shop in the lower city that supplied the cult. The mana signature was a match for Lord Harren's own household mage. The letter had been written on the same night the assassins had come through the window, by a man who had been paid to write it, and the man had been paid by Lord Harren, and Lord Harren had been paid by Baron Vex, and Baron Vex had been paid by the cult.

The throne room was silent for a long moment.

Then the king said: "Lord Harren. You are under arrest for treason, forgery, and conspiracy with the Whisper Cult. Take him away."

The king's guards moved. Lord Harren tried to run. He did not get far. He was taken out of the throne room, screaming, and the throne room was quiet again.

[Audit: complete]
[Targets identified: Lord Harren, his scribe, his household mage]
[Compiler note: the system approves. The system is, in a small way, a colleague.]
[Compiler note: the developer has, in a small way, learned that the throne is a runtime. Runtimes can be debugged. The developer is, in a small way, ahead of the panic.]

The king sat down. He looked at Kenji. He said: "You have just saved my throne."

"I have just debugged the kingdom, Your Majesty. The throne was the runtime. The runtime was crashing. We have fixed the immediate bug. There will be more."

"I know. There will be more. That is what being king is."

He paused. He looked at the throne room, at the nobles who were left, at the guards who were not arrested, at the system that was still broken in ways they did not yet understand.

"I have an offer to make you," the king said. "But it will have to wait for the trial. We have a traitor to prosecute, and I want you to be the one to prosecute him."

Kenji nodded. Pip pulsed, very softly: "Another trial. Another debug. The system is, in a small way, patient."

Kenji sent back: "The system can be patient. I can be patient. We can all be patient together."

Elara, who had been standing at the edge of the throne room the whole time, allowed herself one small, quiet smile that reached her eyes, and the eyes were the eyes of a person who has decided, in the driest possible language, that the developer is, in a small way, worth the debugging.

The throne room emptied. The trial was coming. The kingdom was still in chaos. And somewhere, in the south, the presence that was Malachar was watching, and was not happy, and was, in the dry language of the system, beginning to understand that the new Strange Sage was not a man who left logic bombs in production, and that the logic bombs that had been left for him had been, in the driest possible language, debugged in under an hour.

The system hummed, in a tone that was, in a small way, ahead of all of them, and the next debug was, in a small way, going to be in public.