test: walls r1 review — tests and tools

Ref #52
This commit is contained in:
2026-11-20 08:59:24 +01:00
parent e1a5b297e4
commit 38941da003
14 changed files with 329 additions and 69 deletions
+8 -3
View File
@@ -464,7 +464,12 @@ from the prototype, what was missing, what the M3 build added, and the tools it
switch, a lost `window` or a geometry move retract it (the oracle drops the entry when the GM's
wall frame shows the cause changed, mirroring the server). An extra marker at a candidate's anchor
before its extent was seen is `MARKER_EARLY`; an extra marker with no candidate wall is
`MARKER_EXTRA`; an expected marker never sent is `MARKER_OFF`. Faults `MARKER_EARLY`,
`MARKER_EXTRA`; an expected marker never sent is `MARKER_OFF`. The oracle keys a sent marker id by
the GM-truth wall it belongs to (resolved by anchor), never by the anchor alone, so two candidate
walls that share a midpoint remain two obligations. Marker ids are stable across refreshes: a
`set` that re-mints a wall's marker while its old id is still live is `PROTOCOL` — the four marker
classes describe the emission gate, while id stability is a frame invariant (5.8: minted once,
fresh only after a retraction). Faults `MARKER_EARLY`,
`MARKER_EXTRA`, `MARKER_OFF` (`markerEarly`/`markerExtra`/`markerOff`) are built and asserted as
exactly their own class by `tools/fault.test.mjs`, with the scenario's far unseen marked window
and marked solid wall as the negative controls. The WS group `tools/markers.test.mjs` proves the
@@ -595,8 +600,8 @@ from the prototype, what was missing, what the M3 build added, and the tools it
**Rule:** DESIGN §13 (milestones and their accept criteria).
- **M3 accept result.** Measured 2026-11-15: `devbox run test` exit 0 (Nim suite all pass; 103 Node
harness tests) and `devbox run mutation` exit 0 (control passes, all 63 mutations fail at least one
- **M3 accept result.** Measured 2026-11-20: `devbox run test` exit 0 (Nim suite all pass; 142 Node
harness tests) and `devbox run mutation` exit 0 (control passes, all 73 mutations fail at least one
expected test). The nine groups map to their proving tests in `tools/groups.mjs`;
`tools/groups.test.mjs` fails if a group or its named evidence test disappears.
- **M4 gate harness.** (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU