Files
FFF_vtt_frozen/tools/groups.mjs
T
SirStone 9fcbe885c1 feat(walls): one-way sight per-viewer filter and ONEWAY fault (#58)
The vision fan blocks a sight-blocking one-way wall only for a viewer on
its blind side (sight_dir names it; left is the (-dy,dx) normal of a->b),
one sign test inline after the radius cull, so the hoisted wall list stays
viewer-independent. Movement never reads the direction: one-way walls block
both ways. Explored and tiles therefore differ by side and only ever grow.

- geometry: WallDir + Wall.sightDir + blindTo, filter in visibilityPolygon.
- worldmap: sight_dir mapping (movement mapping unchanged).
- vision: the ONEWAY leak-fault build drops sight_dir player-side.
- leakcheck: own side test for the fan and the clear-segment oracle; ONEWAY
  class detected against the sight_dir-dropped fan.
- leak scenario gains a one-way wall the subject sees across; fault test
  asserts exactly ONEWAY.
- oneway.test.mjs: both sides, tile sweep with its own oracle, flip with
  fixed endpoints, monotone explored/tiles, restart, two-way movement.
- docs: DESIGN 5.8 mechanism sentence corrected; TESTING #58 markers built.
- nginx harness: temp dirs created recursively (restart on one state dir).
2026-11-19 22:57:39 +01:00

52 lines
2.3 KiB
JavaScript

// The nine M3 acceptance groups of DESIGN 13 (FIXED by owner decision #12) and the test that proves
// each one. `devbox run test` runs every `tools/*.test.mjs`; this map is the checklist the finish
// line (#25) records in DESIGN 14, and tools/groups.test.mjs fails if a group's file or its named
// evidence test disappears. Slice-level test files that are not an accept group (smoke, walls,
// tokens, details, scene, wsheaders) still run; they are not listed here.
export const GROUPS = {
'leak+fault': {
files: ['leak.test.mjs', 'fault.test.mjs'],
evidence: [
['leak.test.mjs', 'leak test ${subject}: the subject\'s whole view matches the GM\'s truth'],
['fault.test.mjs', 'caught as exactly'],
],
},
tiles: {
files: ['tiles.test.mjs', 'oneway.test.mjs'],
evidence: [['tiles.test.mjs', 'tile gate: leak check (d) matches the independent explored oracle'],
['oneway.test.mjs', 'one-way sight: the blind side sees nothing across, the seeing side does (#58)']],
},
probing: {
files: ['probing.test.mjs'],
evidence: [['probing.test.mjs', 'probing over WS: walls beyond cap + radius change no reply']],
},
protocol: {
files: ['protocol.test.mjs'],
evidence: [['protocol.test.mjs', 'an unknown type is refused, unknown fields are ignored']],
},
auth: {
files: ['auth.test.mjs'],
evidence: [['auth.test.mjs', 'key.replace: old key and old sessions die']],
},
'characters and names': {
files: ['characters.test.mjs'],
evidence: [['characters.test.mjs', 'encountered: a sighting is kept under the name the player knows']],
},
restart: {
files: ['restart.test.mjs'],
evidence: [['restart.test.mjs', 'restart: full state, all CRUD, before and after SIGTERM'],
['restart.test.mjs', 'restart: full state, all CRUD, before and after SIGKILL']],
},
persistence: {
files: ['persistence.test.mjs'],
evidence: [['persistence.test.mjs', 'explored round trip: a fresh connection gets the whole grid'],
['persistence.test.mjs', 'migration: a schema-4 DB (fixture) migrates under the real binary']],
},
logs: {
files: ['logs.test.mjs'],
evidence: [['logs.test.mjs', 'logs: no key, session cookie or session hash reaches the log']],
},
}
export const GROUP_COUNT = 9