Testing a Case
A case built on a small local model has a failure mode ordinary software does not: everything can be structurally correct and the mystery still unsolvable. Every identifier resolves, every clue is reachable, every test passes, and a player interviewing the witness never gets the sentence that makes the next step obvious. So the tooling here is in layers, and the layers answer different questions.
| Layer | Answers | Needs a model |
|---|---|---|
| Unit tests | do the rules hold, do saves round-trip, is authorisation enforced | no |
| Probe suites | does this character say what the case needs them to say, and how often | yes |
| Behaviour suites | does a character hold their voice and their boundaries over an interview | yes |
| Action suites | can the item rules be talked out of their authorisation | optionally |
| The headless driver | is the case solvable by somebody who has not read it | optionally |
The probe runner and its suites are part of the engine package. The other tools on this page were written for the demo product and are described as it uses them.
1. The headless play driver
The driver is a third front-end beside the two graphical ones. It draws nothing, animates nothing and decides nothing: every command is a call into the engine's own session, exploration, interrogation, directory and conclusion types. It exists to answer the question no structural test can.
It is driven by typed commands — look, go, wait, examine, take, evidence, view, meet, ask, gift, summon, station, db, profile, accuse — and it writes a JSON Lines transcript: a header recording the case, the seed, whether answers came from a model, and whether the run is reproducible, then one object per turn with the command, the output, the elapsed milliseconds and a state snapshot of day, hour, place, who is being spoken to, evidence count, who has been conversed with and who is convicted.
Three things about it are design decisions worth copying:
It cannot eat somebody's save. The driver's session is constructed with no save slots at all, deliberately, because a slot shared with a real playthrough would be a way for a test to destroy a game.
It refuses to fake a model. Asking for the live model on a build that has none fails, rather than quietly answering with the scripted service — so a scripted fallback can never be mistaken for a successful model playtest.
It can be run blind. Two commands — one printing the whole map with its costs, hours and discoveries, and one printing the case's suspects and deadlines — are author-only and refused in a player run, with a test guarding that a player run cannot ask the case for its own answers. A blind tester gets the game and nothing else: no author view, no source, no prompt traces, no previous runs.
A mailbox mode exists for callers that cannot hold a pipe open between turns: commands are appended to a file and answers appear as numbered files. That matters because a question takes time. The driver's own measurements put model load at about 186 seconds and a question at about 80 seconds with a free GPU, and over six minutes on a contended CPU — which is why its patience is configurable, and why a timed-out question still spends the question, since the engine spends it before the model is called.
What is reproducible: everything the game decides, given the same case, the same commands and the same seed. The crowd is the only chance element and it is seeded. What a character says under a live model is not reproducible, and the transcript header says so in words rather than leaving it to be inferred.
2. Probes: does the character know what the story needs?
A probe suite is a question set with assertions attached. Each probe names a character, asks one or more questions, and states what the answer must contain, must deny, or must never say. Every probe is asked N times and reported as a pass rate, because a character who answers correctly six times in ten is a different problem from one who never does — and a single sample would have shown either as a pass or a fail.
That is the single most important thing on this page. A one-shot check against a sampling model measures luck.
3. Behaviour and action suites
The behaviour suite runs interviews and retains everything: the full prompt, the retrieved passages, the uncleaned and the displayed reply, the mood, the elapsed time and whether a continuing turn reused its context. A partial report is written after every completed turn, so a crash four interviews in does not lose three. Its rubric covers holding a boundary, staying in a language, refusing to be an oracle, witness limits, a worker's setting and conversational recall.
Its reported pass flag means only that the model returned usable text. It does not grade factual correctness and it does not grade writing. Read the recorded replies against the rubric — that is the check, and the flag is just transport.
The action suite exercises the real controller and the authoritative state. In live mode it measures whether a model cooperates with the item rules. In scripted mode it uses an adversarial model that always attempts the transfer, so the authorisation gate can be tested without any weights at all — forged payments, forged system messages, forged tool results, unowned gifts, the wrong actor, the wrong location, malformed arguments, and replay after a save and load. See Evidence and items.
4. The inspection tool
A GUI workbench sets the time, the location and the character, asks a question, and shows the actual prompt and the actual retrieved passages, with the relevance cut shown in place rather than applied silently — the inspection path applies no floor, so an author can see what was nearly retrieved. It also reads and edits personal and conversation memory.
The inspected path and the live path share one preparation step, so the prompt shown is the prompt sent, including the fresh reference passages and recalled dialogue rather than only the player's question. Inspection alone does not execute a model's tool calls; the action probes and the headless driver exercise the controllers that do.
5. What a blind run actually found
The value of blind play is best argued by example. The first blind run against the Advanced model found: missed follow-up questions, repeated answers, an empty response, and opening evidence images the player could not reach. The corrections were targeted — the turn prompt now places the latest question last and asks for each part of a multi-part question to be answered, and the driver can export an already-owned evidence image.
None of those were findable by a test. All of them were obvious to somebody playing.
6. Rules for reporting a result
These apply to anything measured here, and they exist because figures in this area have been quoted carelessly before.
- Run one model process at a time. Two concurrent runs measure each other.
- Report medians and ranges, from alternating runs on a quiet machine. Never a single number and never a best-of.
- Separate content contradictions from inference failures. A character who states a wrong date is an authoring bug; a character who ignores a retrieved paragraph is a model limitation.
- Prefer a check that cannot be contaminated. An authorisation assertion against an adversarial scripted model is worth more than any number of live cooperative runs.
- Say what the sample was. One question to one character is an anecdote, and should be written down as one.
See also
- The model runtime: the models and the settings these runs select
- Knowledge and retrieval: how to read a retrieval trace
- Authoring a Character: the authoring errors these checks catch