Most of what keeps v2 working is convention, not tooling: ESLint runs the recommended rules and the house style, tsc checks types, and the Cypress specs cover what they cover. This checklist says, for each item, what to look for and what (if anything) catches it without you. Stage 6 of the learning path practices it on a real commit.

Before you read the diff

Check out the branch and run:

bun install
bun run build
git status
bunx cypress run --browser chromium --spec <the specs the change touches>
  • bun run build passes. It’s lint and the type check. CI runs them too.
  • git status is clean after the build. If the build changed files, the branch forgot to commit its rebuilt bundles. Nothing else catches this: CI builds its own copy.
  • The new or changed test fails without the change. Revert the source part (git stash it, or check out the parent’s files), rebuild, and run the spec. A test that passes either way tests nothing. Only a reviewer checks this.

Actions

Look for Why Checked by
A new action is added to _actions in src/index.ts before Dialog Dialog takes every string; an action after it never matches a string statement a spec using the statement
matchString() and matchObject() only look at the statement and return a boolean they run for every statement, on every action in order nothing
What the action shows is recorded in state in didApply(), and what a rollback needs in history, both behind the updateState and updateHistory flags a load rebuilds the screen from state; a rollback undoes from history; onLoad() calls didApply() with both flags off so a load doesn’t record twice a spec that rolls back and loads, if it has one
revert() undoes exactly what apply() did, and didRevert() returns the right { advance, step } the rollback chain keeps reverting while advance is true; a wrong step desynchronizes the game from its script a rollback spec
onLoad() rebuilds from state, and reset() removes the action’s elements and clears its state loadFromSlot() calls every reset() and then every onLoad() a load spec
loadingOrder values give the order the author wants onLoad() in src/monogatari.ts runs the groups lowest first, as numbers; a change meant for 2.8.x must stay in one digit, because those versions sort them as text (10 before 2, -1 before -2) actions/action.spec.js
A static shouldProceed() that refuses throws an error with a reason, and only while it must every click asks every action; a refusal that never ends locks the game, and the reason is what the debug log shows a spec for the unlocking path
New uses of the deprecated block and _executing_sub_action globals commit 14494a78 replaced them with each action’s blocking flag nothing

Components

Look for Why Checked by
A new component is in _components in src/index.ts, and its index.css is imported in src/index.css components are defined in setup(); an unimported stylesheet silently never reaches monogatari.css (it happened to credits-screen) nothing for the CSS
The constructor sets props and state, never attributes or children a custom element’s constructor that adds attributes makes document.createElement() throw a spec that creates the element
An element an action creates isn’t added to dist/index.html it would sit on the screen from the start nothing
The static flow methods (shouldProceed()…) are overridden only when the component takes part in the game’s flow by default they ask every instance on the page nothing

Saves and state

Look for Why Checked by
A change to what an action puts in state or history comes with a migration in src/migrations/ (added to the list in src/migrations/index.ts) saves made with the previous release are loaded through the migrations; without one, old saves restore the wrong shape nothing; test by saving on the previous release and loading on the branch
Values stored in state, history and storage survive being saved the storage adapters serialize them; functions and DOM elements don’t survive nothing
A new global the game shouldn’t save goes in global(), not state() state is saved and restored, global isn’t nothing

Interface text and errors

Look for Why Checked by
A new interface string has its key in all 18 files in src/translations/ (English text where there’s no translation yet) a missing key shows the engine:translation:key_not_found dialog in development and leaves the element’s text untranslated nothing (Contributing Translations has a script that compares the files)
A new FancyError.show() id has a template in debug/index.js, and follows the type:identifier:error_id pattern without a template the dialog has no text nothing
Messages tell a game developer what to change in their files, without assuming tools game developers may have no terminal (Writing and Publishing the Docs) nothing

The starter game

Look for Why Checked by
Changes to dist/js/*.js or dist/index.html keep working opened in a browser with nothing installed it’s every new game’s starting point nothing
Those changes don’t change what the specs test by accident every spec loads dist/index.html and its js/ files the full suite
No dist/node_modules/, dist/build/ or zip is committed or left in place package.json’s files publishes all of dist/ nothing; read npm pack --dry-run

The public API

Look for Why Checked by
A new public method on the engine is also in the VisualNovelEngine interface the interface is what dist/types/ publishes and what src/engine/ modules see tsc (the _engineTypeCheck line at the end of src/monogatari.ts)
A removed or renamed method, setting, event or CSS class games written for 2.8.0 must keep working in 2.8.x nothing
New exports from src/index.ts or entries in package.json’s exports they’re the package’s interface nothing

Style

ESLint (eslint.config.mjs) runs the JavaScript and TypeScript recommended rules on src/, with no-unused-vars, no-explicit-any and no-this-alias turned off, and the house style from @aegis-framework/eslint-config on every hand-written script: quotes, semicolons, braces, spacing, blank lines, arrow functions, constants at the top, sorted imports. bun run build fails on any of them, so a change that builds is formatted. Strict equality isn’t checked: ask for ===. Ask for formatting changes to come in commits of their own.

The record

  • The docs pages that describe the behavior changed with it.
  • The commit messages say what each commit does.
  • The pull request says what a game developer has to do, if anything, for the release notes.

Writing the review

Lead with what blocks the merge, each with the file and line and what you saw (a spec name and its failure, a command and its output). Then the things that can wait. Say what you checked and how, so the author knows what’s covered.