This folder keeps nanoMMO's decision records, a page for each choice that shaped the game, with what forced it, what we picked, what else we weighed, and what it cost. They follow Michael Nygard's architecture decision records, kept short.
Why keep them
The code says what the game does, and a commit says what changed. Neither says why it's this way and not another, and that's what gets lost first.
- The why survives the people who knew it. A choice made in episode 13 still shapes the game, and its record keeps the reasons and the numbers for whoever comes after the people who weighed it.
- Newcomers learn the shape of the code. Read top to bottom, the records are the game's architecture in the order it was built, each with the problem it answered.
- Settled questions stay settled. "Why not a JSON web token?" has an answer in 0011, and asking again means saying what's changed since.
- Reversals are deliberate. Changing a decision takes a new record that says what's different now, as 0007 did for 0006, so the game never drifts off one by accident.
When to write one
Write a record for a choice that would be costly to reverse, such as a language, a database, the wire format or how the servers find each other, or one that people will ask about. A change that one commit could undo, or that the code makes plain, needs none.
How
- One file for each decision, named with the next number and a short title, such as 0025-a-short-title.md, from template.md.
- Its sections are the status, the context, with the episode it came up in, the decision, the alternatives considered, and the consequences. An alternative goes in only if it was weighed, or if it's the obvious one, and then it says it wasn't weighed. Name the files, the settings and the numbers, with where each number was measured.
- A record is accepted as it's merged, and never rewritten after, like a published step (0005) or a migration that has run (0015). To change a decision, write a new record, and set the old one's status to Superseded by the new one. That line is the only edit an accepted record gets, apart from its wording, which 0.97.7 changed in every record without changing what any says.
- Add it to the index below, in the group it's about, or in a new group if none fits.
Index
The records by what they're about, each group in the order they were written.