Walls r1: windows — opening and fixed forms, see-through barrier #57

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

Part of #52

Goal

window preset (blocks_sight off, blocks_movement on, door on closed, player_marker on) and the fixed form (door off); see-through along the whole drawn length, no sill/top; a fixed or closed window sticks exactly as a solid wall; a fixed window never closes so never pushes; a locked opening window refuses to open until unlocked.

Acceptance criteria

  • Both forms author, echo and derive kind "window"; sight passes through, movement and stuck/squeezed follow blocks_movement; closing an opening window pushes as a solid wall, fixed never pushes.
  • Locked opening window: open refused invalid until unlocked, then opens as a door.
  • Player transcripts carry no wall field and reflect only the sight/movement change.
  • 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

6, 7, 8, 13, 36, 40, 41

Proven at

  • WS black-box (walls, token-details, tiles groups).

Notes

  • Size: M.
  • Blocked by: #56.
Part of #52 ## Goal window preset (blocks_sight off, blocks_movement on, door on closed, player_marker on) and the fixed form (door off); see-through along the whole drawn length, no sill/top; a fixed or closed window sticks exactly as a solid wall; a fixed window never closes so never pushes; a locked opening window refuses to open until unlocked. ## Acceptance criteria - Both forms author, echo and derive kind "window"; sight passes through, movement and stuck/squeezed follow blocks_movement; closing an opening window pushes as a solid wall, fixed never pushes. - Locked opening window: open refused invalid until unlocked, then opens as a door. - Player transcripts carry no wall field and reflect only the sight/movement change. - 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 6, 7, 8, 13, 36, 40, 41 ## Proven at - WS black-box (walls, token-details, tiles groups). ## Notes - Size: M. - Blocked by: #56.
SirStone added the ready-for-agentenhancement labels 2026-11-19 21:48:24 +01:00
Author
Owner

Implemented on main as e989100.

  • geometry.Wall now carries sightBarrier/movementBarrier; the vision fan asks blocksSight, the move rules and the walls-sourced statuses ask blocks, and an open door passes both. worldmap maps both stored switches; moverules.setDoor only pushes on a movement barrier.
  • Leak checker and the independent tile oracle read the GM’s blocks_sight themselves (window dropped from their wall list; open door still passes).
  • Tests: walls group (window preset + fixed form, echo, derived kind, fixed has no open state, door:true -> closed opening window, open ignored); token-details group (sight through, movement blocked, stuck, blocks_movement off -> no stuck, closing push, re-open walk-through); doors group (locked opening window refuses open until unlocked, then opens); tiles group (see-through sweep with a negative control that makes the window opaque).
  • Full suites green on the rebased tree: nimble test 389 OK, node --test tools/*.test.mjs 129 pass. Existing scene behaviour-preservation test (migrated vs authored, byte-identical) stays green.
  • Rebased onto #58: the sight filter now honours both blocks_sight and sight_dir.
Implemented on `main` as e989100. - `geometry.Wall` now carries `sightBarrier`/`movementBarrier`; the vision fan asks `blocksSight`, the move rules and the walls-sourced statuses ask `blocks`, and an open door passes both. `worldmap` maps both stored switches; `moverules.setDoor` only pushes on a movement barrier. - Leak checker and the independent tile oracle read the GM’s `blocks_sight` themselves (window dropped from their wall list; open door still passes). - Tests: walls group (window preset + fixed form, echo, derived kind, fixed has no open state, `door:true` -> closed opening window, `open` ignored); token-details group (sight through, movement blocked, stuck, blocks_movement off -> no stuck, closing push, re-open walk-through); doors group (locked opening window refuses open until unlocked, then opens); tiles group (see-through sweep with a negative control that makes the window opaque). - Full suites green on the rebased tree: `nimble test` 389 OK, `node --test tools/*.test.mjs` 129 pass. Existing scene behaviour-preservation test (migrated vs authored, byte-identical) stays green. - Rebased onto #58: the sight filter now honours both `blocks_sight` and `sight_dir`.
Sign in to join this conversation.