Walls r1: proto 2 + typed wall record on the wire, inert geometry, derived kind #54

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

Part of #52

Goal

proto=2 with history entry; wall.add/wall.update take thickness, position, height and the eight raw switches (kind in, open in an update: unknown → ignored); GM wall/walls frames echo the typed fields plus derived kind. Stored geometry changes no sight/movement/status/push. Players still receive no wall field.

Acceptance criteria

  • hello.proto=2; /ws?proto=1 → closing {proto-mismatch,4003}, no hello, no state; harness default proto bumped once.
  • Existing schema-7 scene and the same scene authored via raw switches give byte-identical player frames, refusals and per-tile statuses; zero-thickness push/movement tests unchanged.
  • Any stored thickness/height/position behaves exactly as 0/full/centre; wall.update {open:true} ignored; {door:true} on a see-through fixed window yields a closed opening window.
  • BannedAlways gains every wall field name; positive control (injected height in a player token frame) fails as exactly WALLDATA.
  • 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

5, 15, 16, 17, 23, 24, 28, 29, 30, 31, 32, 61, 70, 71, 74, 77

Proven at

  • WS black-box (walls group rewritten to typed payload; token-details GM view).
  • Behaviour-preservation script.
  • Leak checker BannedAlways + positive control.

Notes

  • Size: L.
  • Blocked by: #53.
Part of #52 ## Goal proto=2 with history entry; wall.add/wall.update take thickness, position, height and the eight raw switches (`kind` in, `open` in an update: unknown → ignored); GM wall/walls frames echo the typed fields plus derived kind. Stored geometry changes no sight/movement/status/push. Players still receive no wall field. ## Acceptance criteria - hello.proto=2; `/ws?proto=1` → closing {proto-mismatch,4003}, no hello, no state; harness default proto bumped once. - Existing schema-7 scene and the same scene authored via raw switches give byte-identical player frames, refusals and per-tile statuses; zero-thickness push/movement tests unchanged. - Any stored thickness/height/position behaves exactly as 0/full/centre; `wall.update {open:true}` ignored; `{door:true}` on a see-through fixed window yields a closed opening window. - `BannedAlways` gains every wall field name; positive control (injected `height` in a player `token` frame) fails as exactly `WALLDATA`. - 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 5, 15, 16, 17, 23, 24, 28, 29, 30, 31, 32, 61, 70, 71, 74, 77 ## Proven at - WS black-box (walls group rewritten to typed payload; token-details GM view). - Behaviour-preservation script. - Leak checker `BannedAlways` + positive control. ## Notes - Size: L. - Blocked by: #53.
SirStone added the ready-for-agentenhancement labels 2026-11-19 21:48:24 +01:00
Author
Owner

Progress (not closed): implemented in 77fa2df on main. proto 2 (/ws?proto=1 -> closing {proto-mismatch,4003}); typed wall.add/wall.update (thickness/position/height + eight raw switches, kind output-only, open not a patch field); GM wall/walls echo the full record with derived kind; geometry stored but inert. BannedAlways bans every wall field name, wallHeight positive control fails exactly WALLDATA. New behaviour-preservation test: migrated schema-7 scene vs the same walls authored via raw switches -> byte-identical player frames, refusals and per-tile statuses. Full suites green: 382 Nim / 113 Node. Remaining #54-adjacent slices: #55 presets/label/switch invariants, #56 doors, #57 windows, #58 one-way, #59/#60 markers.

Progress (not closed): implemented in 77fa2df on main. proto 2 (`/ws?proto=1` -> closing {proto-mismatch,4003}); typed wall.add/wall.update (thickness/position/height + eight raw switches, `kind` output-only, `open` not a patch field); GM `wall`/`walls` echo the full record with derived kind; geometry stored but inert. BannedAlways bans every wall field name, `wallHeight` positive control fails exactly WALLDATA. New behaviour-preservation test: migrated schema-7 scene vs the same walls authored via raw switches -> byte-identical player frames, refusals and per-tile statuses. Full suites green: 382 Nim / 113 Node. Remaining #54-adjacent slices: #55 presets/label/switch invariants, #56 doors, #57 windows, #58 one-way, #59/#60 markers.
Author
Owner

Implemented in 77fa2df (feat(walls): proto 2 typed wall record, inert geometry, derived kind), pushed to main. Standing suites green: Nim 382, Node 113. The proto-2 wall record, raw switches, inert geometry, derived kind and schema-7 behaviour-preservation gate are in.

Implemented in 77fa2df (`feat(walls): proto 2 typed wall record, inert geometry, derived kind`), pushed to main. Standing suites green: Nim 382, Node 113. The proto-2 wall record, raw switches, inert geometry, derived kind and schema-7 behaviour-preservation gate are in.
Sign in to join this conversation.