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
+8 -7
View File
@@ -26,7 +26,7 @@ Evidence roots (relative to repo root):
phone run; `results/phone-20261108T113701.jsonl`)
- `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,
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
`/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,
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).
- **M4 - Client v1.** Done (2026-11-21, #76). Vite + TS + Pixi v8 client: layers, tiles, grid,
tokens (BitmapText), character and encountered lists, reveal controls, fog textures, the wall
editor (four presets, switches, marker, label, one-way arrow and flips), token drag with
prediction/rollback, DOM overlay, reconnect backoff, reducer tests; `prototype-*` archived under
- **M4 - Client v1.** Built, automatable gates green (2026-11-21, #76); accepted after the
real-phone playtest #77. Vite + TS + Pixi v8 client: layers, tiles, grid, tokens (BitmapText),
character and encountered lists, reveal controls, fog textures, the wall editor (four presets,
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;
5.7, 5.10).
- **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
`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
#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
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
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),
`results/bench.log`, `results/mutation.log`, `results/nimble-test.log`, and the
`devbox run test | client-test | e2e` logs (regenerated, not committed).
+9 -8
View File
@@ -1,7 +1,8 @@
# 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
for the M4 run: what exists, what is proven, what is deliberately still open.
**Current at 2026-11-21**, M4 built (#76); its automatable gates are green and acceptance pends the
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
@@ -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,
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`.
- **M4 accept:** `devbox run e2e` proves join, fog pixels, drag/rollback, reconnect and the
independent player-traffic audit; `results/m4-fog-bench.md` records 50 tokens on a 16384 px map
(server move path 0.12-0.14 ms; headless SwiftShader cadence recorded as a floor, not a phone
number). Thickness/height controls are **not** in M4 (ADR-0012); walls round 2 is #37/#45/#50/
#41/#44.
- **M4 automatable accept gates:** `devbox run e2e` proves join, fog pixels, drag/rollback, reconnect
and the independent player-traffic audit; `results/m4-fog-bench.md` records 50 tokens on a
16384 px map (server move path 0.12-0.14 ms; headless SwiftShader cadence recorded as a floor,
not a phone number). Thickness/height controls are **not** in M4 (ADR-0012); walls round 2 is
#37/#45/#50/#41/#44.
- **Archived:** the three `prototype-*` trees now live under `docs/archive/prototypes/` (frozen,
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,
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
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
+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
first server instance, before any restart, not from a state that has already been through one
(#36).
- **M4 accept result.** Measured 2026-11-21 at the finish commit (#76): `devbox run test` exit 0
(Nim suite all pass, 419 OK checks; 159 Node harness tests with the group evidence step),
- **M4 automatable gates result.** Measured 2026-11-21 at the build commit (#76): `devbox run test`
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,
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
`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
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
tile-gate expression and had silently become `sed` no-ops; both now patch
`cy * sc.cols + cx in explored` and fail the tile gate group again.
open M4 accept item: M4 is accepted after it passes, not before. Mutation housekeeping found
here: `c1`/`c2` still patched the pre-#65 tile-gate expression and had silently become `sed`
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
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
+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
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 |
| [`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`.