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:
+2
-2
@@ -205,8 +205,8 @@ run e3 "a link patch keeps the token's own names" server/tokens.nim 's/^ if r
|
||||
TILE_GATE="an unexplored tile is refused|a tile is allowed when any overlapping cell"
|
||||
TILE_ZERO="leading zero tile coordinates"
|
||||
TILE_RANGE="outside the grid is out of range"
|
||||
run c1 "the tile gate ignores the explored set" server/tiles.nim 's/ if sc\.cellIndex(cx, cy) in explored: return true/ if true: return true/' "$TILE_GATE"
|
||||
run c2 "the tile gate needs every overlapping cell" server/tiles.nim 's/ if sc\.cellIndex(cx, cy) in explored: return true/ if sc.cellIndex(cx, cy) notin explored: return false/' "$TILE_GATE"
|
||||
run c1 "the tile gate ignores the explored set" server/tiles.nim 's/ if cy \* sc\.cols + cx in explored: return true/ if true: return true/' "$TILE_GATE"
|
||||
run c2 "the tile gate needs every overlapping cell" server/tiles.nim 's/ if cy \* sc\.cols + cx in explored: return true/ if cy * sc.cols + cx notin explored: return false/' "$TILE_GATE"
|
||||
run c3 "an out-of-grid tile coordinate is accepted" server/tiles.nim 's/^ x >= 0 and y >= 0 and x < tileCols(sc) and y < tileRows(sc)$/ x >= 0 and y >= 0/' "$TILE_RANGE"
|
||||
run c4 "a leading-zero tile coordinate is canonical" server/tiles.nim "s/ if raw\[0\] == '0' and raw.len > 1: return false/ discard/" "$TILE_ZERO"
|
||||
# #65: the in-memory session cache must drop a player's entry on revocation (server/sessions.nim)
|
||||
|
||||
Reference in New Issue
Block a user