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.
bun installbun run buildgit statusbunx 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.
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
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.
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.