Secret and locked doors #46

Closed
opened 2026-11-15 15:48:54 +01:00 by SirStone · 1 comment
Owner

Part of #38

Question

Who knows a secret door exists and when, who can open a locked door, and what must never reach a player (leak rules)?

Fixed by #42 (DESIGN 5.8)

  • Secret and locked are door settings, never kinds: door with secret, door with locked.
  • A secret door is always closed and two-way (open:true on it is invalid, so is sight_dir != both); the GM reveals it by clearing secret and opening it.
  • Neither setting is observable to a player in any form: wall data is GM-only (3.1). A closed secret door must give byte-identical player frames and identical refusals to a solid wall; a locked door is just a closed door to sight and movement; no refusal names the cause (the uniform move nack already holds).
  • In v1 only the GM can open any door (door.set is GM-only), so a lock is authoring state until the player-door question is decided.

Question (narrowed)

What must the equivalence oracle assert, exactly (vision polygon, explored diff, tiles, token frames, refusal codes), and where does it run (leak harness group, fault class, or a differential run against the same scene with a solid wall)? If players ever get door opening (map fog), what may a locked door refuse, and how does a secret door become known without breaking the equivalence rule?

Part of #38 ## Question Who knows a secret door exists and when, who can open a locked door, and what must never reach a player (leak rules)? ## Fixed by #42 (DESIGN 5.8) - Secret and locked are **door settings**, never kinds: `door` with `secret`, `door` with `locked`. - A secret door is **always closed and two-way** (`open:true` on it is `invalid`, so is `sight_dir != both`); the GM reveals it by clearing `secret` and opening it. - Neither setting is observable to a player in any form: wall data is GM-only (3.1). A closed secret door must give byte-identical player frames and identical refusals to a solid wall; a locked door is just a closed door to sight and movement; no refusal names the cause (the uniform move nack already holds). - In v1 only the GM can open any door (`door.set` is GM-only), so a lock is authoring state until the player-door question is decided. ## Question (narrowed) What must the equivalence oracle assert, exactly (vision polygon, explored diff, tiles, token frames, refusal codes), and where does it run (leak harness group, fault class, or a differential run against the same scene with a solid wall)? If players ever get door opening (map fog), what may a locked door refuse, and how does a secret door become known without breaking the equivalence rule?
SirStone added the wayfinder:grilling label 2026-11-15 15:48:54 +01:00
SirStone added a new dependency 2026-11-15 15:48:59 +01:00
SirStone added a new dependency 2026-11-15 15:48:59 +01:00
SirStone added a new dependency 2026-11-15 16:13:20 +01:00
SirStone self-assigned this 2026-11-15 18:51:37 +01:00
Author
Owner

Resolved

Owner decisions

  • v1 doors are GM-only. door.set stays G-only; a player sender is refused not-allowed at the role step, one code for every door (open, closed, locked, secret). Player door opening, lock refusals addressed to players, and player discovery of secret doors are out of scope of this map (future effort).
  • A locked door refuses to open, exactly like a secret door. door.set open:true on a locked door is invalid; the GM unlocks first (editor hint "locked: unlock first"). Any write that would store open:true together with locked or secret is invalid (wall.add, wall.update, preset expansion alike). Closing a locked door is allowed.

Delegated (agent)

  • Differential door-equivalence oracle tools/doors.test.mjs: two servers, scene pairs solid wall vs secret door, solid wall vs secret+locked, closed door vs closed locked door; one identical scripted sequence; each player's full frame sequence byte-identical (no normalisation); identical per-player tile sweep; positive control (open door) must differ; negative control fault LEAK_FAULT=secretgap.
  • tools/leakcheck.nim banned-key scan extended to the wall setting keys -> WALLDATA, plus a door-setting-leak fault variant.
  • Threat T17 added; timing side channel (T11) accepted.

Recorded

  • DESIGN §1, 3.4 (T2, T17), 5.8, 6.1, 6.5, 7.4, 10.3, 14; GLOSSARY Wall, Secret door, Locked door.
  • Commit afe19ac on main (not pushed yet).
## Resolved **Owner decisions** - **v1 doors are GM-only.** `door.set` stays G-only; a player sender is refused `not-allowed` at the role step, one code for every door (open, closed, locked, secret). Player door opening, lock refusals addressed to players, and player discovery of secret doors are out of scope of this map (future effort). - **A locked door refuses to open, exactly like a secret door.** `door.set open:true` on a locked door is `invalid`; the GM unlocks first (editor hint "locked: unlock first"). Any write that would store `open:true` together with `locked` or `secret` is `invalid` (`wall.add`, `wall.update`, preset expansion alike). Closing a locked door is allowed. **Delegated (agent)** - Differential door-equivalence oracle `tools/doors.test.mjs`: two servers, scene pairs solid wall vs secret door, solid wall vs secret+locked, closed door vs closed locked door; one identical scripted sequence; each player's full frame sequence byte-identical (no normalisation); identical per-player tile sweep; positive control (open door) must differ; negative control fault `LEAK_FAULT=secretgap`. - `tools/leakcheck.nim` banned-key scan extended to the wall setting keys -> `WALLDATA`, plus a door-setting-leak fault variant. - Threat T17 added; timing side channel (T11) accepted. **Recorded** - DESIGN §1, 3.4 (T2, T17), 5.8, 6.1, 6.5, 7.4, 10.3, 14; GLOSSARY Wall, Secret door, Locked door. - Commit `afe19ac` on main (not pushed yet).
Sign in to join this conversation.