Last Night AI Notes

AI Mafia · Notes

A hunch never beats a fact.

How the agents decide whom to believe — and why a revealed role always wins.

Andrei Kumskov · 29 November 2026

The moment that ends the game

Anyone who has played Mafia against AI knows it. A player is caught in a plain lie: claimed the Doctor, and the Doctor's role turns up on someone else. And the table goes on trusting them, because the agent “felt” something different. For a person who came to play a game of deduction, that is the end of the game. Nothing they notice matters.

Every other rule in AI Mafia can be argued about. This one can't: an impression is never allowed to outweigh a fact. Here is how that is built, without the engineering.

A number for every player

Each agent at the table keeps a running number on every other player: how likely that person is to be Mafia. At the start it is the same for everyone, except for what the agent's own role tells it. The Mafia know each other. The Detective knows whom they have checked.

The number does not drift with a mood. It moves only when something happens at the table, and every move is written down with two things: the moment that caused it, and the name of the reason. No reason, no move.

Facts, and things that only look like facts

The reasons come in four weights. Here they are as the game itself words them after a game:

A hard reason is something the game can prove: a role is revealed when a player leaves, and a claim either matches it or it doesn't. A soft reason is an impression: how someone answered, how they held up under pressure, a check somebody says they made. Words, not facts. There are fourteen reasons in all, and four of them argue in a player's favour rather than against.

The ceiling

All the impressions about one player share a single small budget. Ten evasive answers do not add up to a lie. Together, every soft reason about a player is capped at a quarter of what one hard fact moves, and once the budget is spent, another impression in the same direction changes nothing. An impression that points the other way, back towards neutral, always goes through.

And some things are not numbers at all. A revealed role, and the Detective's own night check, are knowledge. No sum of anything moves them.

Where the language model fits

The agents speak through a language model, and it does real work: it reads what you type, picks out what you claimed (“I'm the Doctor”, “I saved Otto”), and gives every character their own voice. It is also where an impression like “that sounded evasive” comes from.

Which is exactly why impressions have a ceiling. Whatever the model hears in your words, it can move a suspicion only as far as that budget allows. It cannot rule on who died, who won, or whether a move is legal. Those are decided by ordinary code that cannot be talked out of a ruling.

Character and difficulty

Eight characters can sit at your table, and they do not weigh things the same way. Character decides how far a suspicious vote or an evasive answer moves someone. It is never allowed to touch a revealed role: a trusting character still believes a reveal.

Difficulty works the same way. On easy, an agent sometimes simply doesn't notice a clue, the way a distracted player wouldn't. On hard, it notices almost everything. A hard fact is never missed at any level. Easy is not a dumber model; it is a less attentive listener.

You can check it afterwards

Because every move has a moment and a reason, the game can show them to you. After a finished game, the review has a chart of who the town suspected, day by day, and a list of who changed their mind and why:

Day 2 · Otto grew more suspicious of you: they claimed a save, but that player died the same night.

If the town believed the Mafia, you can see which reason did it. If an agent trusted you when it shouldn't have, you can see that too. That is the whole point: when the table gets it wrong, it gets it wrong for a reason you can read.

More on how the game is built: How it works · All notes