feat(walls): marker retraction, re-earn and marker fault classes (#60)
Retract a player marker when the GM removes the wall, clears player_marker, makes the wall stop deriving window, or moves its geometry (a/b, thickness, position). Retraction emits del only and never the new anchor; a re-earned marker gets a fresh id. The marker_seen deletes ride the same derived-memory NORMAL transaction as the explored chunks, after the wall row commits and before the ack. Replace the leak checker's aggregate MARKER class with MARKER_EARLY, MARKER_EXTRA and MARKER_OFF, add their leakfault hooks and exact-class fault tests, and extend the leak scenario with an unseen marked window and a marked solid wall as the negative controls. WS black-box tests cover all four causes, fresh re-earns, no untouched re-send, no set/del for one id in a frame, no explored write from a retraction, and delete/cascade durability across a restart.
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
// frame of the group is checked for the bucket and the `source` it must not carry
|
||||
// - Walls r1 (#58): a one-way wall the subject sees across (`sight_dir` names the token's side
|
||||
// blind), the ONEWAY fault's positive source and the blind-side oracle's control
|
||||
// - Walls r1 (#60): a marked window far outside every scripted position and a marked solid wall
|
||||
// in the room, the negative controls for MARKER_EARLY and MARKER_EXTRA; the marker retraction
|
||||
// rules themselves are proven by tools/markers.test.mjs (the final scenario rewrite is #61)
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { spawnSync } from 'node:child_process'
|
||||
@@ -119,6 +122,12 @@ export async function runLeak({ origin, gmKey, stateDir, transcript, keepOpen =
|
||||
{ a: [500, 400], b: [500, 700], door: true, open: false },
|
||||
{ a: [500, 700], b: [500, 1000] },
|
||||
{ a: [1400, 400], b: [1400, 900] },
|
||||
// Walls r1 (#60) fault controls, added last so `wallIds[1]` stays the door. The window is far
|
||||
// outside every scripted position: only a build that drops the extent gate (MARKER_EARLY)
|
||||
// sends it. The solid wall with the switch on stands in the room the subject enters: only a
|
||||
// build that drops the derived-window gate (MARKER_EXTRA) sends a marker for it.
|
||||
{ preset: 'window', a: [3500, 2000], b: [3500, 2200] },
|
||||
{ a: [620, 760], b: [720, 760], player_marker: true },
|
||||
]
|
||||
const wallIds = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user