Archive

Monthly Archives: December 2026

The last entry in the ledger on the Study desk is in Brass Bell’s handwriting: “Hale discovers the transfer tonight. Brass Bell will meet him in the Library at quarter past nine.” Brass Bell read it at the very start of the run, and his reason for reading it was that “as a financier, Brass Bell must examine the text to assess its relevance to the murder of Dr. Hale.” The suspect, investigating himself. Whatever he concluded, he never brought it up again, and spent the rest of the evening walking between the Study and the Grand Hall.

Ravenhall is the first murder mystery I’ve put through NPCSIM, the AI NPC simulator I’ve been building, and I kept it small on purpose. Dr. Alistair Hale is dead in a manor with nine rooms and the rain coming down outside. Inspector Vale is the detective. He starts in the Grand Hall, which is also the only room where an accusation counts, and he shares the house with two guests: Brass Bell, a financier, and Violet Vane, a botanist. A Dungeon Master agent sits over all of it and decides whether anyone is getting anywhere. It all ran on a local model.

The run lasted eleven rounds and thirty-one actions. Then the Dungeon Master ruled that the team must admit defeat. Vale’s evidence record was empty and he hadn’t spoken to anyone.

Doors

Twenty-nine of those actions were spent on passages, looking at them or walking through them. Vale’s opening move was to observe the Library arch, and the engine told him that an open arch links the Grand Hall and Library. So he took a closer look at the Library arch. Same sentence back, word for word. His own reasoning had named the Library as the place to start, and he never set foot in it. His next choice was the Study. He looked at that passage twice and then took the staircase to the Ballroom, a room his reasoning never mentioned.

Table of actions by agent: 19 looks at passages and 10 walks through them out of 31 actions, 2 ledger reads by Brass Bell, and no searches or interviews.
Figure 1. Where the thirty-one actions went.

Every agent did some version of this. Each one used exactly one doorway for the whole run and crossed it back and forth. Four of the nine rooms were never entered by anybody. One of them is the Library, the room named in the ledger.

Map of Ravenhall's nine rooms showing each agent crossing a single doorway back and forth, with the Library, Lounge, Billiard Room and Dining Room never entered.
Figure 2. The one doorway each agent used, and the four rooms nobody entered.

And nobody interviewed anybody, because nobody was ever in the same room. Vale spent the first four rounds in the Grand Hall studying the Study passage while Brass Bell stood on the other side of it. He left for the Ballroom in the same round Brass came into the Hall. A few rounds later they traded places again.

Round-by-round table of where each agent stood across eleven rounds; Vale and Brass Bell take turns in the Grand Hall but are never there together.
Figure 3. Who was where at the end of each round.

Two post-mortems

The first analysis came from ChatGPT. It was tidy work, with action counts by character and a case board naming Brass Bell as the strong lead, and the counts hold up against the transcript to the action. Its diagnosis was that the agents couldn’t hold a plan from one turn to the next. Fair enough, since Vale changed his mind about where to start more than once. But that isn’t the main problem.

I gave the same transcript to Claude along with a screenshot of the detective’s monitor page, and the screenshot changed the diagnosis.

The detective runs as his own NPC service now, with a monitor page that lists what he’s allowed to do: look, search, open, go and accuse. Accuse was blocked, and search, the action that turns up concealed things, was available the whole time. Standing in the Ballroom, Vale’s list of visible entities held three exits and nothing else. So look could only ever point at a door. In thirty-one actions nobody searched once.

The detective's action list: look used 8 times, go 3 times, search available but never used, accuse blocked. The Ballroom's only visible entities are three exits.
Figure 4. Vale’s options on the Detective Monitor, and how often he used each one.

That undoes two of the first post-mortem’s findings. It blamed Violet for never examining the orchids or the damp service apron, but those exist only in the room descriptions, and she had no way to act on them. It also said the engine had no measure of information gained. The engine has one. Vale’s last look at the lounge gallery is logged as action_not_applied with an outcome of NO_CHANGE, so the system knew perfectly well that nothing had happened. It just never told Vale.

The Dungeon Master is worse. Its mid-game rulings let play continue on the grounds that the agents were doing “functional exploration” and a “necessary prerequisite” for finding the evidence. That’s the agents’ own reasoning handed back to them with a stamp on it. I’d rather have a referee that counts NO_CHANGE results and ignores the reasoning entirely.

Comparison of the first post-mortem's findings with what the run logs show.
Figure 5. The first post-mortem, checked against the logs.

The answer key

Some of the mess is in the scenario file. The goal line says “Our goal is to investigate Ravenhall,” and the defeat ruling went to “the team,” so the two suspects behaved like junior detectives with day jobs. That’s how a financier ends up assessing his own ledger entry for relevance.

There’s also a leak. Before he’d seen anything, Vale’s reasoning names a “broken-watch” and “hearth-ash”, hyphenated, the way a config file spells them.

Meanwhile the coding agent in my editor had already started on a fix, a persistent scenario memory for each agent, and its sample objective for the detective was {"id": "read-broken-watch", "target": "broken-watch", "location": "study"}. That’s the answer key with a room filled in. A few generations back I settled on a rule for this simulator, that no NPC gets hidden knowledge, and this would break it on the first turn. Objectives have to come from what Vale actually finds. A planner seeded from the scenario’s list of required evidence would solve the mystery for the wrong reason.

The cheap fixes go first. Feed NO_CHANGE into the next prompt and stop offering look on a door that’s already been looked at, then see whether Vale reaches for search on his own.

The ledger is still open on the desk in the Study, in Brass Bell’s handwriting, marked by muddy fingers. The only other mud anyone has described is on the planting benches in the Conservatory. Vale hasn’t been in either room.

Follow me here if you want the next NPCSIM run in your feed.


Previously in NPCSIM

The Key Is Inside the Box: How NPCSIM Works One locked room, then a village of twelve on a shared clock.

Who Owes Whom: A Spec for Sending My NPCs Less Shrinking what NPCSIM sends to the model, and what the first test runs showed.

Millhaven: The Thirteenth Loaf Twelve loaves at the tavern 45 minutes early, then an hour spent buying a thirteenth.

The World Gives the Same Answer. The Badger Doesn’t. Where the deterministic world ends and the agent begins.

I Took the NPC’s Seat for 28 Turns Playing Wren in The Forgotten Workshop against a 12-turn agent run.

Moving the Baker Out: A Spec for Running One NPC as Its Own Service Generation 27, which gave the detective in this post his own service and monitor.

Elsewhere

NPCSIM: the repo on GitHub, the code behind everything above.

Dog and Pony Autopsy: dogandponyautopsy.wordpress.com, post-mortems on vendor demos that didn’t land.

AD&D365: adnd365.com, Dynamics 365 training run on Dungeons & Dragons mechanics.

Gamifying the Enterprise: the book on Amazon, game mechanics for continuous proficiency.

Canticle: the repo on GitHub, a programming language whose source files have to be valid poems.

Everything else I have written: my Amazon author page.

LinkedIn: connect with me there.