Walls r1: doors — secret/locked, door-only open path, equivalence gate #56

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

Part of #52

Goal

door.set stays the only open-state path and refuses open on secret or locked (invalid); players get not-allowed for every door. A secret door is byte-identical to a solid wall to players, a locked door to a closed door; no refusal names a cause.

Acceptance criteria

  • door.set on a fixed window/non-door, on a secret door, and open:true on a locked door are invalid; closing a locked door allowed.
  • New doors black-box test: two servers, identical scripts, secret-vs-wall and locked-vs-closed-door pairs, frames + per-tile statuses + tiles identical after canonicalisation; positive control (open/absent segment) differs.
  • New secretgap fault hook makes the group fail as exactly SECRETGAP; clean build passes.
  • Closing a closed-door overlap pushes exactly as today.
  • 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

11, 12, 14, 35, 42, 43, 44, 45, 46, 76

Proven at

  • WS black-box (new doors group, token-details statuses).
  • Fault build.

Notes

  • Size: M.
  • Blocked by: #55.
Part of #52 ## Goal door.set stays the only open-state path and refuses open on secret or locked (invalid); players get not-allowed for every door. A secret door is byte-identical to a solid wall to players, a locked door to a closed door; no refusal names a cause. ## Acceptance criteria - `door.set` on a fixed window/non-door, on a secret door, and `open:true` on a locked door are invalid; closing a locked door allowed. - New doors black-box test: two servers, identical scripts, secret-vs-wall and locked-vs-closed-door pairs, frames + per-tile statuses + tiles identical after canonicalisation; positive control (open/absent segment) differs. - New `secretgap` fault hook makes the group fail as exactly SECRETGAP; clean build passes. - Closing a closed-door overlap pushes exactly as today. - 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 11, 12, 14, 35, 42, 43, 44, 45, 46, 76 ## Proven at - WS black-box (new doors group, token-details statuses). - Fault build. ## Notes - Size: M. - Blocked by: #55.
SirStone added the ready-for-agentenhancement labels 2026-11-19 21:48:24 +01:00
SirStone added a new dependency 2026-11-19 21:48:29 +01:00
Author
Owner

Implemented in 0f3aa23 (pushed to main).

  • door.set: open:true on a secret or locked door is invalid, closing either is allowed; a fixed window/non-door has no open state (invalid both ways). No refusal names a cause; every player door.set is not-allowed.
  • tools/doors.test.mjs: two fresh servers, one identical script, three pairs (secret/wall, secret+locked/wall, locked/closed door); canonicalised complete player frame sequences plus full per-player 32x32 tile status+body sweeps identical; open-door positive control differs; zero-thickness close-push pinned at 320.000001.
  • secretgap fault hook (sight-only, leakfault build) makes the pair fail as exactly SECRETGAP; clean passes; shipped binary still carries no fault hook.
  • tests/tworld.nim setDoor refusal case; TESTING.md T2/T17 and 10.3 markers moved to built.

Suites: nimble 386 [OK] / 88 suites; node 123/123 pass.

Implemented in 0f3aa23 (pushed to main). - `door.set`: `open:true` on a secret or locked door is `invalid`, closing either is allowed; a fixed window/non-door has no open state (`invalid` both ways). No refusal names a cause; every player `door.set` is `not-allowed`. - `tools/doors.test.mjs`: two fresh servers, one identical script, three pairs (secret/wall, secret+locked/wall, locked/closed door); canonicalised complete player frame sequences plus full per-player 32x32 tile status+body sweeps identical; open-door positive control differs; zero-thickness close-push pinned at 320.000001. - `secretgap` fault hook (sight-only, leakfault build) makes the pair fail as exactly `SECRETGAP`; clean passes; shipped binary still carries no fault hook. - `tests/tworld.nim` setDoor refusal case; TESTING.md T2/T17 and 10.3 markers moved to built. Suites: nimble 386 [OK] / 88 suites; node 123/123 pass.
Sign in to join this conversation.