Walls r1: leak scenario rewrite and final fault gate #61

Closed
opened 2026-11-19 21:48:25 +01:00 by SirStone · 1 comment
Owner

Part of #52

Goal

rewrite the leak scenario to a world with a marked window, a one-way wall, a secret door, a locked door and marked walls on both sides of the sight test; the fault group asserts each new class exactly, a clean build passes, the shipped binary carries no hook; register any new harness in the groups registry.

Acceptance criteria

  • Every pre-existing fault class still passes in the new scenario; each new class exactly.
  • Clean build clean; shipped bytes lack LEAK_FAULT.
  • Groups test sees all new evidence files.
  • Standing: full nimble + node test suites green on a clean checkout; no existing test weakened or skipped; behaviour proven at the approved seams (WS black-box, leak checker + fault builds, schema-7 migration fixture).

User stories covered

75 (per-feature hooks built in W4/W6/W8)

Proven at

  • Leak checker + fault group.

Notes

  • Size: S.
  • Blocked by: #56, W6, W8.
Part of #52 ## Goal rewrite the leak scenario to a world with a marked window, a one-way wall, a secret door, a locked door and marked walls on both sides of the sight test; the fault group asserts each new class exactly, a clean build passes, the shipped binary carries no hook; register any new harness in the groups registry. ## Acceptance criteria - Every pre-existing fault class still passes in the new scenario; each new class exactly. - Clean build clean; shipped bytes lack `LEAK_FAULT`. - Groups test sees all new evidence files. - Standing: full nimble + node test suites green on a clean checkout; no existing test weakened or skipped; behaviour proven at the approved seams (WS black-box, leak checker + fault builds, schema-7 migration fixture). ## User stories covered 75 (per-feature hooks built in W4/W6/W8) ## Proven at - Leak checker + fault group. ## Notes - Size: S. - Blocked by: #56, W6, W8.
SirStone added the ready-for-agentenhancement labels 2026-11-19 21:48:25 +01:00
SirStone added a new dependency 2026-11-19 21:48:29 +01:00
SirStone added a new dependency 2026-11-19 21:48:29 +01:00
Author
Owner

Built: f9f26a4 (rebased on a69563f).

Scenario (tools/leak.mjs) is now one world with role handles: a room entered through an opening door; a far wall of solid / secret door / solid / locked door with a token behind each (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 player_marker cleared and restored (retraction + re-earn end to end); a marked solid wall; and a marked window the subject never sees. scenarioCoverage() reads the GM's wall frames and the subject's marker frames, and tools/leak.test.mjs asserts the world really holds each element (one-way, secret, locked, marked window on each side of the sight gate, marked non-window).

Fault gate: all 21 FAULTS classes are still caught as exactly their own class (22 tests incl. the clean-build gate) — ONEWAY, MARKER_EARLY, MARKER_EXTRA, MARKER_OFF and every pre-existing class. The clean build's bytes carry no LEAK_FAULT. secretgap remains asserted as exactly SECRETGAP by the door-equivalence group.

Registry: tools/groups.mjs leak+fault now lists doors.test.mjs (#56) and markers.test.mjs (#59/#60) with their proving tests; tools/groups.test.mjs green.

Suites on the rebased tree: nimble test -y green; node --test --test-concurrency=1 tools/*.test.mjs 141/141 pass, 0 skipped. results/* reverted (not committed). No server change in this commit; no server bugs found while rewriting.

Built: f9f26a4 (rebased on a69563f). **Scenario** (`tools/leak.mjs`) is now one world with role handles: a room entered through an opening door; a far wall of solid / secret door / solid / locked door with a token behind each (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 `player_marker` cleared and restored (retraction + re-earn end to end); a marked solid wall; and a marked window the subject never sees. `scenarioCoverage()` reads the GM's wall frames and the subject's marker frames, and `tools/leak.test.mjs` asserts the world really holds each element (one-way, secret, locked, marked window on each side of the sight gate, marked non-window). **Fault gate:** all 21 `FAULTS` classes are still caught as exactly their own class (22 tests incl. the clean-build gate) — `ONEWAY`, `MARKER_EARLY`, `MARKER_EXTRA`, `MARKER_OFF` and every pre-existing class. The clean build's bytes carry no `LEAK_FAULT`. `secretgap` remains asserted as exactly `SECRETGAP` by the door-equivalence group. **Registry:** `tools/groups.mjs` leak+fault now lists `doors.test.mjs` (#56) and `markers.test.mjs` (#59/#60) with their proving tests; `tools/groups.test.mjs` green. **Suites** on the rebased tree: `nimble test -y` green; `node --test --test-concurrency=1 tools/*.test.mjs` 141/141 pass, 0 skipped. `results/*` reverted (not committed). No server change in this commit; no server bugs found while rewriting.
Sign in to join this conversation.