test(m4): finish audit, measurement and archive (#76)
- client/e2e/audit.test.mjs: independent player-browser traffic audit (own frame catalogue and banned-key list, never leakcheck.nim), with a -d:leakfault/otherVision negative control. - client/e2e/fogbench.test.mjs + tools/fogbench.nim: 50 tokens on a 16384 px map (server move path and headless SwiftShader cadence); results/m4-fog-bench.md records both honestly (SW is not the phone gate). - Archive prototype-* under docs/archive/prototypes (Q24); DESIGN 13 M4 done, TESTING 13 M4 accept result, HANDOFF-M4 close-out. - mutation.sh c1/c2 patch the post-#65 tile-gate line again (they had silently become sed no-ops).
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# 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.
|
||||
|
||||
## State
|
||||
|
||||
- **Server:** `proto` 2, 29 intents / 16 server messages, one scene, thin walls with the 5.8
|
||||
switches, doors/secret/locked, windows, one-way, player markers, characters/names, per-player
|
||||
explored + vision, lock-free tile gate and session cache (#64, #65). `devbox run test` is the
|
||||
server gate.
|
||||
- **Client:** `/client` (Vite + TS + PixiJS v8, plain DOM overlay). Sign-in, name prompt, badge,
|
||||
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.
|
||||
- **Archived:** the three `prototype-*` trees now live under `docs/archive/prototypes/` (frozen,
|
||||
not built). One maintained client (`/client`), one server (`/server`).
|
||||
|
||||
## 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.
|
||||
- **M5** - concurrency, bounded outbox/coalescing, lag tracking, SIGTERM, metrics, nginx dead-peer
|
||||
timeout, stats outside the lock. `#34` heartbeat is M5.
|
||||
- **Deferred:** `db_connector` -> thin sqlite3 binding (build item 13); per-token polygon cache and
|
||||
incremental wall-edit refresh (items 3/4) are **not** needed by the M4 measurement.
|
||||
|
||||
## Notes for the next session
|
||||
|
||||
- `AGENTS.md` points at the issue tracker and the domain docs. Use the Gitea issues, not the docs,
|
||||
for work state.
|
||||
- Gates are sequential and real: `devbox run test`, `devbox run client-test`, `devbox run e2e`,
|
||||
`devbox run mutation`, `devbox run bench`, and (for fog numbers) `devbox run fogbench`.
|
||||
- `results/*.log` are evidence and committed; `results/node-test.log`, `results/e2e.log`,
|
||||
`results/client-test.log` are gitignored scratch and regenerated.
|
||||
- Browser e2e: `client/e2e/` owns `playwright-core`; `tools/` stays built-ins-only (TESTING §10.4).
|
||||
The e2e stack is the real server through the TLS/HTTP2 test nginx, never a fixture.
|
||||
Reference in New Issue
Block a user