seriesoftubes/scripts
jvanvik d1e127da67 Server-run play, part 1: game prerequisites and shared contracts
Groundwork for running multiplayer games on the session server; nothing
of it is switched on yet, and the plain build is unchanged.

- A new network in two halves (beginState/beginShow), the coach split into
  tutAdvance/coachDom, toastPop split out of toast, bootNotes() for the
  once-per-load toasts, the five text actions take their text as an
  argument, and srvOn() with its two checks in the loop.
- Live state is what a reload makes of it (migrate() is a no-op on it):
  new POPs, ports, PNIs, customers, attacks, dark fiber and the intern's
  notes are written in their saved shape; a 365-day test proves it.
- pniAll and bstdApply check the quote the sheet showed (bstdApply by its
  plan, within 1% for the daily hardware drift; utilityKit too).
- assemble({mp}) leaves src/game/98-server-play/ and its CSS out of every
  page but a multiplayer build's, which also gets a SIM_ID build id.
- Contracts for the server, protocol and browser parts: the action tables
  and envelope check (scripts/lib/mp-sim-acts.js), event fixtures, a shape
  checker, a fake engine, and load({mp:true}) in the test harness.
- route-fuzz judges both pages with one migrate(), so reload repairs of
  the base no longer count as divergences.
2026-11-07 10:26:06 +01:00
..
agent Tests wait for state instead of sleeping, on free ports 2026-11-05 11:38:26 +01:00
legacy Docs: the single-file page and English keys lasted until 1.34 2026-10-27 11:28:17 +01:00
lib Server-run play, part 1: game prerequisites and shared contracts 2026-11-07 10:26:06 +01:00
build.js Server-run play, part 1: game prerequisites and shared contracts 2026-11-07 10:26:06 +01:00
dev.js Multiplayer for self-hosted copies: sessions, server-side saves, a leaderboard 2026-11-07 00:42:39 +01:00
gpu-bench.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
i18n-add.js Harden workflows and dev scripts against code-scanning findings 2026-11-05 21:04:21 +01:00
i18n-check.js Server-run play, part 1: game prerequisites and shared contracts 2026-11-07 10:26:06 +01:00
mcp.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
mp-server.js Multiplayer for self-hosted copies: sessions, server-side saves, a leaderboard 2026-11-07 00:42:39 +01:00
perf-bench.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
perf-browser.js GPU benchmark: isolate trials, time the card, say which map drew 2026-11-04 22:37:13 +01:00
perf-fixture.js Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
perf-stats.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
release-notes.js Release notes: a story for big releases, and the 2.0 story 2026-10-30 16:28:19 +01:00
route-fuzz.js Differential random games: main's page and this checkout's play the same seeded game move for move 2026-11-01 21:44:30 +01:00
test-timings.js CI: tests in four parts on four runners, every core in use, older PR runs cancelled 2026-10-31 14:11:02 +01:00
test.js Tests wait for state instead of sleeping, on free ports 2026-11-05 11:38:26 +01:00
weekly-architect.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
weekly-puzzle.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00
weekly-scenario.js Fix CodeQL code-scanning alerts 2026-11-05 21:24:26 +01:00