The Walls r1 scenario had grown appendages: a marked window bolted on in the room, a one-way wall tacked onto the southern walk, and no secret or locked door at all. #61 makes it one coherent world and proves the world itself. The world now holds a room entered through an opening door, a far wall with a solid stretch, a secret door and a locked door (a token behind each, so their absence from the transcript is the leak proof), a one-way screen the subject sees across, a marked window in the room, the same window's switch cleared and restored (retraction and re-earn end to end), a marked solid wall, and a marked window the subject never sees. - tools/leak.mjs: declarative WORLD with role handles (no wallIds[1] indexing), narrative groups, and a scenarioCoverage() reading the GM's wall frames and the subject's marker frames. - tools/leak.test.mjs: asserts the coverage on subject A: one-way wall, secret door, locked door, a marked window on each side of the sight gate and a marked non-window. - tools/groups.mjs: the leak+fault group lists doors.test.mjs (#56) and markers.test.mjs (#59/#60) with their proving tests. - docs/TESTING.md: the scenario, the coverage gate and the marker retraction exercise are recorded as built. Fault matrix: all 21 fault classes still caught as exactly their own class (oneWay, markerEarly/Extra/Off included); 22 tests with the clean-build gate. That build passes and its bytes carry no LEAK_FAULT. nimble test and the 136-test node suite green. Ref #61
57 lines
2.8 KiB
JavaScript
57 lines
2.8 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': {
|
|
// The transcript checker and its negative controls, plus the two Walls r1 harnesses whose
|
|
// guarantees ride the same seam: the differential door equivalence (the `secretgap` control,
|
|
// #56) and the player marker group (#59/#60). #61's scenario rewrite keeps all of them green.
|
|
files: ['leak.test.mjs', 'fault.test.mjs', 'doors.test.mjs', 'markers.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'],
|
|
['doors.test.mjs', 'fault secretgap: the equivalence group fails as exactly SECRETGAP'],
|
|
['markers.test.mjs', 'retraction: every cause sends del only, a re-earned marker gets a fresh id (#60)'],
|
|
],
|
|
},
|
|
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
|