Walls v1: thickness, height and kinds — planning map #38

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

Status

Destination reached 2026-11-17: wall model decided in docs/DESIGN.md v0.29 (287859d); next: /to-spec.

Destination

A wall model decided and recorded in docs/DESIGN.md (FIXED, dated): wall thickness, wall height and what low walls do to sight and movement, the v1 wall kinds and their rules, and how existing walls and the wire/schema change. Ready for /to-spec and build tickets, before M4's wall/door editor. Origin: walls: per-wall thickness and height (low walls).

Notes

  • Source of truth: docs/DESIGN.md (§1 v1 scope/non-goals, §5.1–5.5 vision and move rules, §6.1 wall payload rules, §7.4 wall editor, §8 data model, §10.3 leak oracles, §13 M4, §14 Q6). Code: server/geometry.nim, server/moverules.nim, server/world.nim, server/vision.nim, server/explored.nim, server/tiles.nim, tools/leakcheck.nim, tools/bench.nim. GLOSSARY.md Wall.
  • Owner decisions at charting (2026-11-15): walls are 3D (length, thickness, height); thickness per wall; low walls exist in v1; kinds reopened — Q6 "wall|door only" and §1 non-goal "windows/transparent walls, one-way walls" will be superseded by this map; kinds in scope: window, secret door, locked door, one-way wall, terrain (blocks movement, not sight). Interim rule from #26: zero-width walls hide exactly what is behind them on the line.
  • Grilling tickets: read and follow /home/davide/.agents/skills/grilling/SKILL.md and /home/davide/.agents/skills/domain-modeling/SKILL.md; the owner rule "one question per message" below overrides grilling's "whole frontier per round".
  • Record each decision in DESIGN.md (FIXED, dated) + GLOSSARY.md inline, small commit on main; push only when the owner says.
  • Principle [FIXED, #48, 2026-11-16]: "Do the most with the fewest things: one object, switches on top, names are only labels." One object, switches on top; preset names are labels, never storage and never a new object type. Apply it to future cards.
  • Research findings go to docs/research/.md committed on main; link from the ticket.
  • Small technical numbers delegated to the agent (see below); anything noticeable in play goes to the owner.

How to talk with the owner (ADHD — read first, every session)

  • Start each session with a 2–3 line recap: where we are on the map, which card we're on, why it matters.
  • One question per message. Never a list of questions at once.
  • Plain words, short sentences. Avoid jargon; if a technical word is needed, explain it in one line.
  • Give a small concrete example for every question.
  • Always give a recommended answer; "yes" accepts it.
  • Refer to cards by their title, not by number.
  • When a card is decided, write a short plain "what we decided" recap before moving on.
  • No rush. Pausing between cards is fine; at the end say exactly where to resume next time.
  • Small technical numbers and knobs (limits, sizes, rates, timeouts) are delegated to the agent: pick, record in DESIGN as FIXED (owner-delegated), mention in the recap. Ask the owner only about things noticeable in play.

Decisions so far

  • Research: how tabletops model wall kinds: VTTs store independent sight/move/light/sound axes with kinds as presets, door type+state, direction for one-way; UVTT expresses only sight+closed; our hidden-data rule leaves vision/explored/refusals as the only leak channels.
  • Research: sight with thick and low walls: Thickness as a rectangle costs 3x the polygon on the 5k sparse scene but 10x on the 5k dense one (12.8 ms, 12x the 1 ms target); height cannot live in one polygon (a low wall hides a band whose depth depends on the viewer's distance), so see-over is a per-ray or per-target predicate — 0.1-0.6 ms per 40 targets.
  • Height model: tokens, eyes and units: metres; height on character with token override, required on plain tokens; eye height 93% unless hand-set; walls full height by default; both GM-only registered props
  • Wall model: kinds or restriction flags: a wall's behaviour is independent switches (blocks_sight, blocks_movement, door open/secret/locked, one sight-only direction); kinds are presets (wall, door, secret door, locked door, terrain, one-way; no window in v1 — window added by #47) and kind is a derived label; secret and locked are never observable to a player. DESIGN 5.8.
  • Prototype: sight polygon with thickness and height: owner fixed see-over as a per-target predicate (the target's top clears the wall on the line from the viewer's eye) with a strict floor polygon, and accepted the thick-door keyhole view; ~10x on the 5k dense scene accepted. Passed downstream: hoistable 4-face quad (#45), the per-viewer filtered sight list (#47 settled its shape: an inline side test over the hoisted faces, no per-viewer copy), one-way occludes its own body and the left/right wording (#47).
  • Low walls: sight and movement: see-over is a per-target predicate (the line from the viewer's eye to the target's top must clear every crossed sight wall, strictly), the fog polygon stays strict (the floor behind a low wall stays black, no band tiles, a visible token may float on black), movement never reads height, players get a binary answer, and the GM gets a GM-only who-sees-it view with a visible fraction. DESIGN 5.9.
  • Secret and locked doors: GM-only doors in v1; locked refuses open like secret (GM unlocks first); equivalence pinned by a two-server differential test (byte-identical player frames and tiles) plus leakcheck key scan. DESIGN 5.8, 10.3.
  • Thick walls: sight and movement: a wall's body is a rectangle |ab| x thickness with square ends, placed centre/left/right of the drawn line (the flip never moves a,b); sight and movement share that exact rectangle (4-face quad hoisted per edit; exact circle-vs-rectangle distance, centre inside = overlap); see-over clears every crossed face; a wall edit that covers a token leaves it stuck and never pushes; a viewer inside a sight-blocking body sees nothing; zero thickness is exactly today, thickness is px 0..256 with the last-used default; joints overlap with a small outer notch and the shape sits behind one seam for future curved/traced walls. DESIGN 5.10.
  • Windows and one-way walls: windows are see-through wall pieces with no sill or top (wall|window|wall), the window preset is an opening see-through door and the fixed form derives terrain; sight_dir names the blind side (left = the (-dy,dx) side) and the editor draws an arrow plus a flip; explored and tiles differ per side with no new state; a thick one-way body is opaque from both sides. DESIGN 1, 5.8, 5.10, 6.1, 7.4, 8, 10.3.
  • Terrain walls: terrain dropped (the fixed window is a window), four presets (wall, door, window, one-way) with secret/locked as checkboxes on any door, a player_marker switch that is the only wall data a player ever receives (an anchor point, nothing else), a GM-only wall label, and the fewest-things principle. DESIGN 1, 3.1, 5.8, 6.1, 7.4, 8, 10.3, 14.
  • Door geometry: thick doors and door push: a door's leaf is its own body — the 5.10 rectangle with the same thickness and position, no clamp to the jambs — and an open door is only the gap between wall pieces (no swing, no slide, no hinge; #43's thick-jamb tunnel view stands). A close pushes each token out of the side its centre is on, measured from the body: the face offset within the axial span, the nearest end corner past the ends with the along-axis coordinate kept, the other side when the first is invalid, squeezed in place when both are (no axial slide, no chain); zero thickness reduces byte-for-byte to today's push. DESIGN 5.4, 5.5, 5.8, 5.10, 10.3.
  • Wall wire format, schema and migration: wall height is a typed wall field (metres, optional, absent = full height, GM-only, BannedAlways); the wall record is typed columns with CHECKs (kind dropped, derived only); migration step 8 rebuilds wall, backfills every token/character to 1.8 m and adds marker_seen; wall.add/wall.update carry geometry + preset XOR raw switches through one expand-and-validate path; proto 2; the player marker message is {full,set:[{id,pos}],del} with an opaque per-player id, never sent to the GM; leakcheck gains every wall field name. DESIGN 3.1, 4.4, 5.7, 5.8, 5.9, 5.10, 6.1, 6.2, 6.3, 8, 10.3.

Not yet specified

Nothing in scope: every wall-model question is decided (see Decisions and DESIGN.md 5.7-5.10, 6.1, 8). What is left is build work, carried to /to-spec and the M4 build tickets:

  • GM editor shape (M4): the thickness and height controls, the preset row with the advanced switch toggle, the one-way arrow and flip, and the who-sees-it panel are fixed in behaviour (DESIGN 5.8, 5.9, 5.10, 7.4); the widget layout is M4's to design.
  • Test oracles and assertions: the independent height test, the thick-body footprint, the one-way side test, the marker oracle with MARKER_EARLY/MARKER_EXTRA/MARKER_OFF, and the #49 migration/behaviour gates (schema-7 fixture, byte-identical player frames against a freshly built scene, the unchanged #50 zero-thickness push tests) — DESIGN 10.3, asserting with the build tickets.
  • Bench/latency re-baseline: the accepted ~10x on the 5k dense scene is recorded (DESIGN 5.3, #39/#43); the numbers and the 5k-wall budget are re-baselined when the thick/low-wall build lands.
  • M6 UVTT importer defaults: fixed in DESIGN 6.1/8 (#49); the import CLI ticket carries them.

Out of scope

  • Players opening doors, lock refusals to players, and player discovery of secret doors (Secret and locked doors): v1 doors are GM-only; a future effort.
  • Windows with a real sill and top height, and light coming through windows (Windows and one-way walls): v1 windows are see-through along their whole drawn length (DESIGN 1, 5.8); the sill/top/lighting version is discussed when lighting arrives.
  • Per-wall material (stone, wood, glass): future lighting effort, alongside sill/top and light through windows (Terrain walls).
  • Difficult terrain, movement cost and pit/fall semantics: rules-engine (FFF) work, not a wall behaviour (Terrain walls).
  • Building any of it (this map plans; /to-spec + tickets build).
  • Dynamic lighting, light sources, sound blocking, darkvision.
  • Rules-engine (FFF) interpretation of walls.
  • Player-facing % / cover rules (how much of a body a player may know is behind cover): a rules-engine judgement, out of scope. The GM-only % view is in scope per #44 (DESIGN 5.9, 7.4).
  • Curved and freeform walls (cave walls): v1 uses chains of straight walls; a future effort (#45).
  • Tracing walls from a map image, by hand or AI-assisted: future effort (#45); v1 design must not block it.

Tickets

  • #39 Research: sight with thick and low walls
  • #40 Research: how tabletops model wall kinds
  • #41 Height model: tokens, eyes and units
  • #42 Wall model: kinds or restriction flags
  • #43 Prototype: sight polygon with thickness and height
  • #44 Low walls: sight and movement
  • #45 Thick walls: sight and movement
  • #46 Secret and locked doors
  • #47 Windows and one-way walls
  • #48 Terrain walls
  • #50 Door geometry: thick doors and door push
  • #49 Wall wire format, schema and migration
## Status Destination reached 2026-11-17: wall model decided in docs/DESIGN.md v0.29 (`287859d`); next: /to-spec. ## Destination A wall model decided and recorded in docs/DESIGN.md (FIXED, dated): wall thickness, wall height and what low walls do to sight and movement, the v1 wall kinds and their rules, and how existing walls and the wire/schema change. Ready for /to-spec and build tickets, before M4's wall/door editor. Origin: [walls: per-wall thickness and height (low walls)](https://git.fossellini.top/SirStone/FFF_vtt/issues/37). ## Notes - Source of truth: docs/DESIGN.md (§1 v1 scope/non-goals, §5.1–5.5 vision and move rules, §6.1 wall payload rules, §7.4 wall editor, §8 data model, §10.3 leak oracles, §13 M4, §14 Q6). Code: server/geometry.nim, server/moverules.nim, server/world.nim, server/vision.nim, server/explored.nim, server/tiles.nim, tools/leakcheck.nim, tools/bench.nim. GLOSSARY.md `Wall`. - Owner decisions at charting (2026-11-15): walls are 3D (length, thickness, height); thickness per wall; low walls exist in v1; kinds reopened — Q6 "wall|door only" and §1 non-goal "windows/transparent walls, one-way walls" will be superseded by this map; kinds in scope: window, secret door, locked door, one-way wall, terrain (blocks movement, not sight). Interim rule from #26: zero-width walls hide exactly what is behind them on the line. - Grilling tickets: read and follow /home/davide/.agents/skills/grilling/SKILL.md and /home/davide/.agents/skills/domain-modeling/SKILL.md; the owner rule "one question per message" below overrides grilling's "whole frontier per round". - Record each decision in DESIGN.md (FIXED, dated) + GLOSSARY.md inline, small commit on main; push only when the owner says. - **Principle [FIXED, #48, 2026-11-16]: "Do the most with the fewest things: one object, switches on top, names are only labels."** One object, switches on top; preset names are labels, never storage and never a new object type. Apply it to future cards. - Research findings go to docs/research/<name>.md committed on main; link from the ticket. - Small technical numbers delegated to the agent (see below); anything noticeable in play goes to the owner. ### How to talk with the owner (ADHD — read first, every session) - Start each session with a 2–3 line recap: where we are on the map, which card we're on, why it matters. - One question per message. Never a list of questions at once. - Plain words, short sentences. Avoid jargon; if a technical word is needed, explain it in one line. - Give a small concrete example for every question. - Always give a recommended answer; "yes" accepts it. - Refer to cards by their title, not by number. - When a card is decided, write a short plain "what we decided" recap before moving on. - No rush. Pausing between cards is fine; at the end say exactly where to resume next time. - Small technical numbers and knobs (limits, sizes, rates, timeouts) are delegated to the agent: pick, record in DESIGN as FIXED (owner-delegated), mention in the recap. Ask the owner only about things noticeable in play. ## Decisions so far - [Research: how tabletops model wall kinds](https://git.fossellini.top/SirStone/FFF_vtt/issues/40): VTTs store independent sight/move/light/sound axes with kinds as presets, door type+state, direction for one-way; UVTT expresses only sight+closed; our hidden-data rule leaves vision/explored/refusals as the only leak channels. - [Research: sight with thick and low walls](https://git.fossellini.top/SirStone/FFF_vtt/issues/39): Thickness as a rectangle costs 3x the polygon on the 5k sparse scene but 10x on the 5k dense one (12.8 ms, 12x the 1 ms target); height cannot live in one polygon (a low wall hides a band whose depth depends on the viewer's distance), so see-over is a per-ray or per-target predicate — 0.1-0.6 ms per 40 targets. - [Height model: tokens, eyes and units](https://git.fossellini.top/SirStone/FFF_vtt/issues/41): metres; height on character with token override, required on plain tokens; eye height 93% unless hand-set; walls full height by default; both GM-only registered props - [Wall model: kinds or restriction flags](https://git.fossellini.top/SirStone/FFF_vtt/issues/42): a wall's behaviour is independent switches (`blocks_sight`, `blocks_movement`, door `open`/`secret`/`locked`, one sight-only direction); kinds are presets (wall, door, secret door, locked door, terrain, one-way; no window in v1 — `window` added by #47) and `kind` is a derived label; secret and locked are never observable to a player. DESIGN 5.8. - [Prototype: sight polygon with thickness and height](https://git.fossellini.top/SirStone/FFF_vtt/issues/43): owner fixed see-over as a per-target predicate (the target's top clears the wall on the line from the viewer's eye) with a strict floor polygon, and accepted the thick-door keyhole view; ~10x on the 5k dense scene accepted. Passed downstream: hoistable 4-face quad (#45), the per-viewer filtered sight list (#47 settled its shape: an inline side test over the hoisted faces, no per-viewer copy), one-way occludes its own body and the left/right wording (#47). - [Low walls: sight and movement](https://git.fossellini.top/SirStone/FFF_vtt/issues/44): see-over is a per-target predicate (the line from the viewer's eye to the target's top must clear **every** crossed sight wall, strictly), the fog polygon stays strict (the floor behind a low wall stays black, no band tiles, a visible token may float on black), movement never reads height, players get a binary answer, and the GM gets a GM-only who-sees-it view with a visible fraction. DESIGN 5.9. - [Secret and locked doors](https://git.fossellini.top/SirStone/FFF_vtt/issues/46): GM-only doors in v1; locked refuses open like secret (GM unlocks first); equivalence pinned by a two-server differential test (byte-identical player frames and tiles) plus leakcheck key scan. DESIGN 5.8, 10.3. - [Thick walls: sight and movement](https://git.fossellini.top/SirStone/FFF_vtt/issues/45): a wall's body is a rectangle |ab| x thickness with square ends, placed centre/left/right of the drawn line (the flip never moves a,b); sight and movement share that exact rectangle (4-face quad hoisted per edit; exact circle-vs-rectangle distance, centre inside = overlap); see-over clears every crossed face; a wall edit that covers a token leaves it stuck and never pushes; a viewer inside a sight-blocking body sees nothing; zero thickness is exactly today, thickness is px 0..256 with the last-used default; joints overlap with a small outer notch and the shape sits behind one seam for future curved/traced walls. DESIGN 5.10. - [Windows and one-way walls](https://git.fossellini.top/SirStone/FFF_vtt/issues/47): windows are see-through wall pieces with no sill or top (`wall|window|wall`), the `window` preset is an opening see-through door and the fixed form derives `terrain`; `sight_dir` names the blind side (left = the `(-dy,dx)` side) and the editor draws an arrow plus a flip; explored and tiles differ per side with no new state; a thick one-way body is opaque from both sides. DESIGN 1, 5.8, 5.10, 6.1, 7.4, 8, 10.3. - [Terrain walls](https://git.fossellini.top/SirStone/FFF_vtt/issues/48): `terrain` dropped (the fixed window is a window), four presets (`wall`, `door`, `window`, `one-way`) with `secret`/`locked` as checkboxes on any door, a `player_marker` switch that is the only wall data a player ever receives (an anchor point, nothing else), a GM-only wall `label`, and the fewest-things principle. DESIGN 1, 3.1, 5.8, 6.1, 7.4, 8, 10.3, 14. - [Door geometry: thick doors and door push](https://git.fossellini.top/SirStone/FFF_vtt/issues/50): a door's leaf is its own body — the 5.10 rectangle with the same thickness and position, no clamp to the jambs — and an open door is only the gap between wall pieces (no swing, no slide, no hinge; #43's thick-jamb tunnel view stands). A close pushes each token out of the side its centre is on, measured from the body: the face offset within the axial span, the nearest end corner past the ends with the along-axis coordinate kept, the other side when the first is invalid, `squeezed` in place when both are (no axial slide, no chain); zero thickness reduces byte-for-byte to today's push. DESIGN 5.4, 5.5, 5.8, 5.10, 10.3. - [Wall wire format, schema and migration](https://git.fossellini.top/SirStone/FFF_vtt/issues/49): wall `height` is a typed wall field (metres, optional, absent = full height, GM-only, `BannedAlways`); the wall record is typed columns with CHECKs (`kind` dropped, derived only); migration step 8 rebuilds `wall`, backfills every token/character to 1.8 m and adds `marker_seen`; `wall.add`/`wall.update` carry geometry + `preset` XOR raw switches through one expand-and-validate path; `proto` 2; the player `marker` message is `{full,set:[{id,pos}],del}` with an opaque per-player id, never sent to the GM; leakcheck gains every wall field name. DESIGN 3.1, 4.4, 5.7, 5.8, 5.9, 5.10, 6.1, 6.2, 6.3, 8, 10.3. ## Not yet specified Nothing in scope: every wall-model question is decided (see Decisions and DESIGN.md 5.7-5.10, 6.1, 8). What is left is build work, carried to /to-spec and the M4 build tickets: - **GM editor shape (M4):** the thickness and height controls, the preset row with the advanced switch toggle, the one-way arrow and flip, and the who-sees-it panel are fixed in behaviour (DESIGN 5.8, 5.9, 5.10, 7.4); the widget layout is M4's to design. - **Test oracles and assertions:** the independent height test, the thick-body footprint, the one-way side test, the marker oracle with `MARKER_EARLY`/`MARKER_EXTRA`/`MARKER_OFF`, and the #49 migration/behaviour gates (schema-7 fixture, byte-identical player frames against a freshly built scene, the unchanged #50 zero-thickness push tests) — DESIGN 10.3, asserting with the build tickets. - **Bench/latency re-baseline:** the accepted ~10x on the 5k dense scene is recorded (DESIGN 5.3, #39/#43); the numbers and the 5k-wall budget are re-baselined when the thick/low-wall build lands. - **M6 UVTT importer defaults:** fixed in DESIGN 6.1/8 (#49); the import CLI ticket carries them. ## Out of scope - Players opening doors, lock refusals to players, and player discovery of secret doors ([Secret and locked doors](https://git.fossellini.top/SirStone/FFF_vtt/issues/46)): v1 doors are GM-only; a future effort. - Windows with a real sill and top height, and light coming through windows ([Windows and one-way walls](https://git.fossellini.top/SirStone/FFF_vtt/issues/47)): v1 windows are see-through along their whole drawn length (DESIGN 1, 5.8); the sill/top/lighting version is discussed when lighting arrives. - Per-wall material (stone, wood, glass): future lighting effort, alongside sill/top and light through windows ([Terrain walls](https://git.fossellini.top/SirStone/FFF_vtt/issues/48)). - Difficult terrain, movement cost and pit/fall semantics: rules-engine (FFF) work, not a wall behaviour ([Terrain walls](https://git.fossellini.top/SirStone/FFF_vtt/issues/48)). - Building any of it (this map plans; /to-spec + tickets build). - Dynamic lighting, light sources, sound blocking, darkvision. - Rules-engine (FFF) interpretation of walls. - Player-facing % / cover rules (how much of a body a player may know is behind cover): a rules-engine judgement, out of scope. The GM-only % view is in scope per #44 (DESIGN 5.9, 7.4). - Curved and freeform walls (cave walls): v1 uses chains of straight walls; a future effort (#45). - Tracing walls from a map image, by hand or AI-assisted: future effort (#45); v1 design must not block it. ## Tickets - [x] #39 Research: sight with thick and low walls - [x] #40 Research: how tabletops model wall kinds - [x] #41 Height model: tokens, eyes and units - [x] #42 Wall model: kinds or restriction flags - [x] #43 Prototype: sight polygon with thickness and height - [x] #44 Low walls: sight and movement - [x] #45 Thick walls: sight and movement - [x] #46 Secret and locked doors - [x] #47 Windows and one-way walls - [x] #48 Terrain walls - [x] #50 Door geometry: thick doors and door push - [x] #49 Wall wire format, schema and migration
SirStone added the wayfinder:map label 2026-11-15 15:48:47 +01:00
Author
Owner

Map closed: destination reached. The wall model is decided and recorded in docs/DESIGN.md v0.29 (FIXED, dated; commit 287859d): thickness, height, kinds as switches/presets, see-over, windows/one-way, doors, and the wall record's wire format, schema and migration (#49). What remains is build work, listed under "Not yet specified" as carried to /to-spec and the M4 build tickets (editor shape, oracles, bench re-baseline, M6 UVTT importer).

Map closed: destination reached. The wall model is decided and recorded in `docs/DESIGN.md` v0.29 (FIXED, dated; commit `287859d`): thickness, height, kinds as switches/presets, see-over, windows/one-way, doors, and the wall record's wire format, schema and migration (#49). What remains is build work, listed under "Not yet specified" as carried to /to-spec and the M4 build tickets (editor shape, oracles, bench re-baseline, M6 UVTT importer).
Sign in to join this conversation.