test(walls): rewrite the leak scenario as one world, gate every fault class (#61)
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
This commit is contained in:
+6
-1
@@ -5,10 +5,15 @@
|
||||
// tokens, details, scene, wsheaders) still run; they are not listed here.
|
||||
export const GROUPS = {
|
||||
'leak+fault': {
|
||||
files: ['leak.test.mjs', 'fault.test.mjs'],
|
||||
// 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: {
|
||||
|
||||
Reference in New Issue
Block a user