docs: M4 built, acceptance pending playtest #77

This commit is contained in:
2026-11-21 18:22:36 +01:00
parent 9c05bb1f46
commit b56d645b3a
5 changed files with 25 additions and 23 deletions
+1 -1
View File
@@ -335,7 +335,7 @@ you touch geometry, vision, move rules or egress.
| `docs/` | `DESIGN.md` (the spec), `TESTING.md` (how each rule is proven), `adr/` (decisions and why), `agents/` (agent workflow), `research/`, `DESIGN-history.md` | | `docs/` | `DESIGN.md` (the spec), `TESTING.md` (how each rule is proven), `adr/` (decisions and why), `agents/` (agent workflow), `research/`, `DESIGN-history.md` |
| `results/` | committed gate evidence (`bench.log`, `leak-*.log`, `mutation.log`, `nimble-test.log`, `probing.log`, `faults.log`, `m4-fog-bench.*`); the per-run `node-test.log`, `e2e.log` and `client-test.log` are regenerated, not committed | | `results/` | committed gate evidence (`bench.log`, `leak-*.log`, `mutation.log`, `nimble-test.log`, `probing.log`, `faults.log`, `m4-fog-bench.*`); the per-run `node-test.log`, `e2e.log` and `client-test.log` are regenerated, not committed |
| `run/` | gitignored scratch: built binaries, nimcache, local state dirs | | `run/` | gitignored scratch: built binaries, nimcache, local state dirs |
| `docs/archive/prototypes/` | the three prototypes whose measurements the design cites, frozen at the M4 finish (#76); the maintained code is `server/` and `client/` | | `docs/archive/prototypes/` | the three prototypes whose measurements the design cites, frozen at the M4 build (#76); the maintained code is `server/` and `client/` |
`GLOSSARY.md` at the root defines the domain words (wall switch, preset, token, character, player `GLOSSARY.md` at the root defines the domain words (wall switch, preset, token, character, player
marker, stuck, squeezed, …). Use those words in code, tests and issues. marker, stuck, squeezed, …). Use those words in code, tests and issues.
+8 -7
View File
@@ -26,7 +26,7 @@ Evidence roots (relative to repo root):
phone run; `results/phone-20261108T113701.jsonl`) phone run; `results/phone-20261108T113701.jsonl`)
- `docs/prototype.md` is only the original brief for the perf prototype. - `docs/prototype.md` is only the original brief for the perf prototype.
- No FFF engine notes exist in the repo. `GLOSSARY.md` and `docs/adr/` exist per AGENTS.md (Q24, - No FFF engine notes exist in the repo. `GLOSSARY.md` and `docs/adr/` exist per AGENTS.md (Q24,
FIXED). `prototype-*` trees are archived at `docs/archive/prototypes/` from the M4 finish (#76; FIXED). `prototype-*` trees are archived at `docs/archive/prototypes/` from the M4 build (#76;
Q24, FIXED): frozen history, never built or maintained, with the maintained code in `/server` and Q24, FIXED): frozen history, never built or maintained, with the maintained code in `/server` and
`/client`. Nothing here is FFF-specific beyond the seam in section 9. `/client`. Nothing here is FFF-specific beyond the seam in section 9.
@@ -2345,10 +2345,11 @@ columns with today's defaults) lands complete now, so the later build needs no m
green on a clean checkout with the nine groups: leak+fault, tiles, probing, protocol, auth, green on a clean checkout with the nine groups: leak+fault, tiles, probing, protocol, auth,
characters and names, restart, persistence, logs. Gate mechanics and the measured result: TESTING characters and names, restart, persistence, logs. Gate mechanics and the measured result: TESTING
§13. Out of M3 accept: concurrency (M5), the 127.0.0.1 bind check (M6). §13. Out of M3 accept: concurrency (M5), the 127.0.0.1 bind check (M6).
- **M4 - Client v1.** Done (2026-11-21, #76). Vite + TS + Pixi v8 client: layers, tiles, grid, - **M4 - Client v1.** Built, automatable gates green (2026-11-21, #76); accepted after the
tokens (BitmapText), character and encountered lists, reveal controls, fog textures, the wall real-phone playtest #77. Vite + TS + Pixi v8 client: layers, tiles, grid, tokens (BitmapText),
editor (four presets, switches, marker, label, one-way arrow and flips), token drag with character and encountered lists, reveal controls, fog textures, the wall editor (four presets,
prediction/rollback, DOM overlay, reconnect backoff, reducer tests; `prototype-*` archived under switches, marker, label, one-way arrow and flips), token drag with prediction/rollback, DOM
overlay, reconnect backoff, reducer tests; `prototype-*` archived under
`docs/archive/prototypes/` (Q24). Thickness and height controls are not in M4 (build order above; `docs/archive/prototypes/` (Q24). Thickness and height controls are not in M4 (build order above;
5.7, 5.10). 5.7, 5.10).
- **Map import CLI** [FIXED (owner-delegated), 2026-11-21, #79; moved here from M6]: the designed - **Map import CLI** [FIXED (owner-delegated), 2026-11-21, #79; moved here from M6]: the designed
@@ -2357,12 +2358,12 @@ columns with today's defaults) lands complete now, so the later build needs no m
- Accept: headless e2e (fog pixel checks, player traffic audit clean, reconnect restores) - met by - Accept: headless e2e (fog pixel checks, player traffic audit clean, reconnect restores) - met by
`devbox run e2e` including `client/e2e/audit.test.mjs`; the manual run on laptop and Note 10 at `devbox run e2e` including `client/e2e/audit.test.mjs`; the manual run on laptop and Note 10 at
60 fps with 50 tokens on a 16384 px tiled map (test target PROPOSED, Q2) with fog active is 60 fps with 50 tokens on a 16384 px tiled map (test target PROPOSED, Q2) with fog active is
#77, the one `ready-for-human` step, and remains open by design. #77, the one `ready-for-human` step, and M4 accept is met only when it passes.
- Tile-size gates [FIXED, Q4]: (a) automated headless-Chromium test (mobile emulation, real server - Tile-size gates [FIXED, Q4]: (a) automated headless-Chromium test (mobile emulation, real server
path): viewport fills in < 1 s at zoom 1 - met in `client/e2e/map.test.mjs`; (b) one manual run path): viewport fills in < 1 s at zoom 1 - met in `client/e2e/map.test.mjs`; (b) one manual run
on the owner's 5-year-old Android phone - #77. If either fails: `tile_size` 64 px (per-scene on the owner's 5-year-old Android phone - #77. If either fails: `tile_size` 64 px (per-scene
config, no code change). Harness detail and the prototype-run caveat: TESTING §13. config, no code change). Harness detail and the prototype-run caveat: TESTING §13.
- Finish evidence (#76): `results/m4-fog-bench.md` (50 tokens / 16384 px: server move path - Build evidence (#76): `results/m4-fog-bench.md` (50 tokens / 16384 px: server move path
0.119 ms; headless SwiftShader cadence recorded, explicitly not a phone number), 0.119 ms; headless SwiftShader cadence recorded, explicitly not a phone number),
`results/bench.log`, `results/mutation.log`, `results/nimble-test.log`, and the `results/bench.log`, `results/mutation.log`, `results/nimble-test.log`, and the
`devbox run test | client-test | e2e` logs (regenerated, not committed). `devbox run test | client-test | e2e` logs (regenerated, not committed).
+9 -8
View File
@@ -1,7 +1,8 @@
# Handoff: end of M4 # Handoff: end of M4
**Current at 2026-11-21**, M4 finish (#76). M1-M4 are done; M5 is next. This is the close-out note **Current at 2026-11-21**, M4 built (#76); its automatable gates are green and acceptance pends the
for the M4 run: what exists, what is proven, what is deliberately still open. real-phone playtest #77. M1-M4 are built; M5 is next. This is the close-out note for the M4 run:
what exists, what is proven, what is deliberately still open.
## State ## State
@@ -13,11 +14,11 @@ for the M4 run: what exists, what is proven, what is deliberately still open.
reconnect + full resync, tiles/grid/pan/zoom, three-state fog + markers, tokens/labels/statuses, reconnect + full resync, tiles/grid/pan/zoom, three-state fog + markers, tokens/labels/statuses,
both lists, drag with prediction/rollback, GM wall editor, roster/keys/tokens panel, characters/ both lists, drag with prediction/rollback, GM wall editor, roster/keys/tokens panel, characters/
reveals/who-sees-it. Gates: `devbox run client-test`, `devbox run e2e`. reveals/who-sees-it. Gates: `devbox run client-test`, `devbox run e2e`.
- **M4 accept:** `devbox run e2e` proves join, fog pixels, drag/rollback, reconnect and the - **M4 automatable accept gates:** `devbox run e2e` proves join, fog pixels, drag/rollback, reconnect
independent player-traffic audit; `results/m4-fog-bench.md` records 50 tokens on a 16384 px map and the independent player-traffic audit; `results/m4-fog-bench.md` records 50 tokens on a
(server move path 0.12-0.14 ms; headless SwiftShader cadence recorded as a floor, not a phone 16384 px map (server move path 0.12-0.14 ms; headless SwiftShader cadence recorded as a floor,
number). Thickness/height controls are **not** in M4 (ADR-0012); walls round 2 is #37/#45/#50/ not a phone number). Thickness/height controls are **not** in M4 (ADR-0012); walls round 2 is
#41/#44. #37/#45/#50/#41/#44.
- **Archived:** the three `prototype-*` trees now live under `docs/archive/prototypes/` (frozen, - **Archived:** the three `prototype-*` trees now live under `docs/archive/prototypes/` (frozen,
not built). One maintained client (`/client`), one server (`/server`). not built). One maintained client (`/client`), one server (`/server`).
@@ -25,7 +26,7 @@ for the M4 run: what exists, what is proven, what is deliberately still open.
- **#77** - the human real-phone playtest: Note 10 + laptop, 16384 px map, 50 tokens, fog active, - **#77** - the human real-phone playtest: Note 10 + laptop, 16384 px map, 50 tokens, fog active,
LAN TLS/h2. Its comment is the checklist with commands, numbers to record and pass thresholds. LAN TLS/h2. Its comment is the checklist with commands, numbers to record and pass thresholds.
`#63` and `#62` close only after #77. M4 is accepted only when it passes; `#63` and `#62` close only after #77.
- **Playtest tooling (#82, closed with this note):** `?perf=1` in-app fps/frame/JS/token/zoom - **Playtest tooling (#82, closed with this note):** `?perf=1` in-app fps/frame/JS/token/zoom
overlay (off by default), `fff-vtt import` on a fresh/empty state dir, `devbox run serve -- overlay (off by default), `fff-vtt import` on a fresh/empty state dir, `devbox run serve --
--image=<file>`, `devbox run seed -- --url=...` for the 50 tokens, and the GM token form's X/Y --image=<file>`, `devbox run seed -- --url=...` for the 50 tokens, and the GM token form's X/Y
+5 -5
View File
@@ -685,17 +685,17 @@ from the prototype, what was missing, what the M3 build added, and the tools it
registered test ran and passed. The restart group takes its baseline from the as-built state on the registered test ran and passed. The restart group takes its baseline from the as-built state on the
first server instance, before any restart, not from a state that has already been through one first server instance, before any restart, not from a state that has already been through one
(#36). (#36).
- **M4 accept result.** Measured 2026-11-21 at the finish commit (#76): `devbox run test` exit 0 - **M4 automatable gates result.** Measured 2026-11-21 at the build commit (#76): `devbox run test`
(Nim suite all pass, 419 OK checks; 159 Node harness tests with the group evidence step), exit 0 (Nim suite all pass, 419 OK checks; 159 Node harness tests with the group evidence step),
`devbox run client-test` 164, `devbox run e2e` 27/27 (join, fog pixel probes, drag + rollback, `devbox run client-test` 164, `devbox run e2e` 27/27 (join, fog pixel probes, drag + rollback,
reconnect, the independent traffic audit and the 50-token measurement), `devbox run mutation` reconnect, the independent traffic audit and the 50-token measurement), `devbox run mutation`
control + 80 mutations each failing at least its expected test, `devbox run bench` PASS and control + 80 mutations each failing at least its expected test, `devbox run bench` PASS and
`devbox run fogbench` PASS. Evidence: `results/nimble-test.log`, `results/mutation.log`, `devbox run fogbench` PASS. Evidence: `results/nimble-test.log`, `results/mutation.log`,
`results/bench.log`, `results/m4-fog-bench.md` (+ `.log`); the e2e/client logs are regenerated `results/bench.log`, `results/m4-fog-bench.md` (+ `.log`); the e2e/client logs are regenerated
per run and not committed. The manual Note 10 + laptop 60 fps run is **#77** and is the only per run and not committed. The manual Note 10 + laptop 60 fps run is **#77** and is the only
open M4 accept item. Mutation housekeeping found here: `c1`/`c2` still patched the pre-#65 open M4 accept item: M4 is accepted after it passes, not before. Mutation housekeeping found
tile-gate expression and had silently become `sed` no-ops; both now patch here: `c1`/`c2` still patched the pre-#65 tile-gate expression and had silently become `sed`
`cy * sc.cols + cx in explored` and fail the tile gate group again. no-ops; both now patch `cy * sc.cols + cx in explored` and fail the tile gate group again.
- **M4 gate harness.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU - **M4 gate harness.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU
and network throttle) against the real server path (nginx HTTP/2 + caching); (b) one manual run on and network throttle) against the real server path (nginx HTTP/2 + caching); (b) one manual run on
the owner's 5-year-old Android phone. Gate (a)'s fill is the fastest of 4 fresh page loads after a the owner's 5-year-old Android phone. Gate (a)'s fill is the fastest of 4 fresh page loads after a
+2 -2
View File
@@ -1,4 +1,4 @@
# Archived prototypes (M4 close-out, #76) # Archived prototypes (M4 build, #76)
These three trees are the pre-M4 prototypes. They are **frozen history**: not built, not tested and These three trees are the pre-M4 prototypes. They are **frozen history**: not built, not tested and
not maintained. The one maintained client is `/client`; the server is `/server`. not maintained. The one maintained client is `/client`; the server is `/server`.
@@ -9,5 +9,5 @@ not maintained. The one maintained client is `/client`; the server is `/server`.
| [`server-vision/`](server-vision/) | The visibility polygon, scanline cells, explored, the leak transcripts and the move rules that `server/` ports at M1-M3 | `results/bench.log`, `docs/TESTING.md` §10 | | [`server-vision/`](server-vision/) | The visibility polygon, scanline cells, explored, the leak transcripts and the move rules that `server/` ports at M1-M3 | `results/bench.log`, `docs/TESTING.md` §10 |
| [`tile-leak/`](tile-leak/) | Tile size vs the fog edge leak; the 2026-11-08 phone run (evidence, not a gate) | `docs/TESTING.md` §13 M4 gate harness | | [`tile-leak/`](tile-leak/) | Tile size vs the fog edge leak; the 2026-11-08 phone run (evidence, not a gate) | `docs/TESTING.md` §13 M4 gate harness |
They were moved here from the repo root in the M4 finish commit; `git log --follow <path>` shows They were moved here from the repo root in the M4 build commit; `git log --follow <path>` shows
their last live revision. Do not revive them for a fix: change `/client` or `/server`. their last live revision. Do not revive them for a fix: change `/client` or `/server`.