Walls v1 build round 1: wall switches, doors, windows, one-way walls and window markers #52

Closed
opened 2026-11-19 21:41:13 +01:00 by SirStone · 3 comments
Owner

Part of #38

Problem Statement

The table currently has one wall shape: a segment typed as a wall or a door, with an open flag. The GM cannot build the barriers the design calls for — a railing, a bush, a pit edge, a fixed or opening window, a one-way wall — and a door is only a kind with a boolean. There is no place to say "this wall blocks movement but not sight", "this door is secret or locked", "sight is blocked from this side only", "this window should tell a player it is here", or "call this railing". Because the only door state is a flag on a kind, the server cannot refuse an impossible combination, and a player's wall facts are all-or-nothing.

The build also has no typed wall storage: the schema still carries the legacy kind column, so a wall's behaviour and its label cannot be validated or checked by the database, and there is no persisted per-player memory for the one wall fact a player is allowed to receive. The wire carries a door kind that the server would silently misread if the model changed, so a version boundary is missing.

As a result the GM cannot author the rooms the design describes, players walk into invisible windows, secret doors cannot exist, one-way sight does not exist, and the schema and protocol are not ready for the wall behaviours that wait behind this round. This round builds the behaviour and the storage that is possible with zero-thickness walls, and leaves the thick-wall and height geometry for the rounds that follow the phone playtest.

Solution

The wall becomes a typed record of independent switches, with named presets expanded on the server and a derived shape label for the GM only. The GM can create a wall, door, window or one-way wall in one action, or compose raw switches, and can label any wall. Doors gain open, secret and locked settings; windows come in a fixed and an opening form; a one-way wall blocks sight from one named side and blocks movement both ways. A secret or locked door is indistinguishable from a solid or closed barrier to every player, including in refusals and explored cells.

A wall that is both marked and a window sends each player who has seen part of it exactly one anchor point and that player's own opaque marker id, kept like explored memory and retracted only when the GM changes the cause. The GM keeps full wall data, including geometry, switches, derived kind and label; players receive no wall data other than their own markers.

Storage moves to typed columns with database checks, the legacy kind column is dropped, a per-player marker-memory table is added, existing walls and figures are migrated to today's behaviour, and the protocol is bumped so an old client cannot silently create the wrong wall. The leak checker, its fault builds and the migration and black-box acceptance tests are extended to prove the player-facing guarantees, including byte-identical behaviour for an existing scene.

User Stories

  1. As a GM, I want one action to place a wall, a door, a window or a one-way wall, so that I do not hand-assemble switches for common barriers
  2. As a GM, I want a preset to set only the switches it names, so that my drawn thickness, placement and height are never overwritten by choosing a preset
  3. As a GM, I want the server to expand a preset for me, so that the stored wall is the switches and not a name that can drift from its behaviour
  4. As a GM, I want to give either a preset or raw switches but never both, so that the request has one meaning
  5. As a GM, I want to start from a plain wall and turn switches off, so that I can make a railing, a bush or a pit edge without a new kind
  6. As a GM, I want a fixed window, so that players can see through a barrier that nobody can walk through
  7. As a GM, I want an opening window, so that players can see through it while closed and walk through once I open it
  8. As a GM, I want a window to be see-through along its whole drawn length with no sill or top, so that I can draw it as one short piece between wall pieces
  9. As a GM, I want a window to arrive with its player marker on, so that players learn a window is there once they see part of it
  10. As a GM, I want to turn the marker off for a window, so that I can make an invisible barrier
  11. As a GM, I want a secret door, so that players treat it exactly like a solid wall until I reveal it
  12. As a GM, I want a locked door, so that a door I have authored cannot be opened until I clear the lock
  13. As a GM, I want a locked opening window, so that a see-through door can still refuse to open
  14. As a GM, I want opening a secret or locked door refused with invalid, so that no request can put a door into a state the model forbids
  15. As a GM, I want a door's open state to change only through the door intent, so that a wall edit can never accidentally open or close a door
  16. As a GM, I want wall.update {door:true} on a fixed window to produce a closed opening window, so that the obvious way to convert one is the way it behaves
  17. As a GM, I want an open field in a wall update to be ignored as an unknown field, so that only the door intent changes open state
  18. As a GM, I want clearing a door's door switch to close and de-secret it, so that a non-door can never store door-only settings
  19. As a GM, I want to choose whether a one-way wall is blind on the left or the right of its draw order, so that sight is blocked from the side I choose
  20. As a GM, I want the field to name the blind side, so that "left" always means the same side to me and to the server
  21. As a GM, I want to flip a one-way wall's direction without moving its endpoints, so that the geometry I drew stays put
  22. As a GM, I want a one-way wall to still block movement both ways, so that direction only changes what can be seen
  23. As a GM, I want the derived kind label (wall, door, window, one_way, custom) to follow what the wall actually does, so that my wall list never lies
  24. As a GM, I want the label custom for any switch combination that fits no shape, so that unusual barriers are still authorable
  25. As a GM, I want to attach a short free-text label such as "railing" or "the king's window", so that one switch set can be many things in my notes
  26. As a GM, I want a label trimmed, free of control characters and at most 64 code points, so that it stays usable and never breaks a frame
  27. As a GM, I want to set, change and clear a label, so that labels are ordinary authoring state
  28. As a GM, I want thickness, placement and height accepted, stored and echoed in my frames, so that the later thick-wall and height rounds need no wire or schema change
  29. As a GM, I want those three fields to change nothing about sight or movement in this round, so that the first playable build is predictable
  30. As a GM, I want any stored thickness to behave exactly like zero thickness, so that a value I set early cannot change play before the thick-wall round
  31. As a GM, I want existing walls to behave exactly as they do today after migration, so that upgrading does not move a scene under my players
  32. As a GM, I want existing doors to keep their stored open state through migration, so that a door I left open stays open
  33. As a GM, I want existing tokens and characters to carry a height of 1.8 metres after migration, so that the heights round has a sane starting value
  34. As a GM, I want a height I set by hand to survive migration untouched, so that the backfill never overwrites my data
  35. As a GM, I want closing a door to push an overlapping token aside exactly as today at zero thickness, so that the zero-thickness behaviour is a regression gate, not a guess
  36. As a GM, I want a fixed or closed window to stick a token exactly as a solid wall does, so that a see-through barrier is still a barrier to the rules
  37. As a GM, I want removing a wall, turning its marker off, making it no longer a window, or moving its geometry to retract its player markers, so that players do not keep a marker for something that changed
  38. As a GM, I want a moved wall to require being seen again before its marker returns, so that a move never reveals a new position early
  39. As a GM, I want restarting the server to preserve walls, marker memory and backfilled props, so that a restart is invisible to the table
  40. As a player, I want to see through a window without receiving any wall data, so that a glass wall is useful without becoming a map of the room
  41. As a player, I want to be blocked by a fixed window, so that seeing through something is not the same as walking through it
  42. As a player, I want to walk through a door the GM opened, so that a doorway behaves like a gap
  43. As a player, I want to be blocked and pushed by a closed door as I am today, so that doors stay predictable
  44. As a player at a secret door, I want exactly the frames, explored cells, tiles and refusals of a solid wall, so that I cannot tell a secret exists
  45. As a player at a locked door, I want exactly the sight, movement and refusals of a closed door, so that the lock is never a signal
  46. As a player, I want no refusal to name locked, secret, solid or any cause, so that a refusal is not an oracle
  47. As a player on the blind side of a one-way wall, I want not to see across it, so that the wall behaves the way the GM drew it
  48. As a player on the seeing side of a one-way wall, I want to see across it, so that one-way sight has a usable side
  49. As a player, I want my explored cells and tiles to follow what my own eyes can see, so that a one-way wall changes what I learn without new state
  50. As a player, I want flipping a one-way wall never to take back what I already explored or the tiles I already hold, so that learning is monotone
  51. As a player, I want a marker when any part of a marked window has been in my sight, so that walking along a window is enough to learn it is there
  52. As a player, I want my marker to stay after I walk away, after a door closes and after I lose sight, so that it behaves like explored memory
  53. As a player, I want my marker removed when the GM removes the wall, turns the switch off, makes it not a window or moves it, so that my memory matches the room
  54. As a player, I want to receive my whole marker set when I connect or resync, so that my memory is complete on any device
  55. As a player, I want my markers to carry only an anchor point and an opaque id, so that they cannot tell me a wall's kind, state, direction, label, thickness or identity
  56. As a player, I want each marker id to be my own and never a wall id, so that the frame reveals neither wall identity nor how many walls exist
  57. As a player, I want a re-earned marker to have a fresh id, so that I add it and remove it without ambiguity
  58. As a player, I want my markers only, never another player's, so that my memory is private
  59. As a player, I want a solid wall with the marker switch on to send me nothing, so that only a window can produce a marker
  60. As a player, I want markers restored after the explored state on reconnect, so that the client can draw them over the fog it has just rebuilt
  61. As a player, I want no wall label, height, thickness, placement, direction or switch in any frame I receive, so that walls stay GM-only
  62. As a player on the blind side, I want no marker, tile or explored cell from behind the wall, so that my own sight is still the gate
  63. As the server, I want one expand-and-validate path for wall add, wall update and the future importer, so that no entry point accepts a state another refuses
  64. As the server, I want every impossible switch set rejected, so that storage and memory never hold a door-only setting on a non-door, an open secret or locked door, an opaque-but-secret gap, or a direction with no sight to block
  65. As the server, I want the database to reject those same impossible states, so that a bad write cannot be smuggled past validation
  66. As the server, I want marker memory stored per player and per wall with an opaque per-player id, so that a marker can never dangle or collide
  67. As the server, I want marker memory written after the wall row commits and before the ack, so that a retraction can never precede the change it reports
  68. As the server, I want marker memory to survive restart and be loaded before the first connection, so that a reconnecting player gets the set they had
  69. As the server, I want the GM never to receive a marker frame, so that a player's memory stays a player's
  70. As the server, I want the protocol version bumped to 2 with a documented history entry, so that an old client is refused rather than silently creating the wrong wall
  71. As the server, I want a protocol mismatch to close with the documented reason and code and send no state, so that a stale client reloads instead of guessing
  72. As the server, I want migration to run as one transaction per step and a re-open on a migrated database to write nothing, so that startup is idempotent
  73. As the server, I want startup on a newer schema refused, so that an older binary cannot read a newer database
  74. As an operator, I want the leak checker to treat every new wall field name as forbidden in a player frame, so that a future frame change cannot expose geometry or authoring state
  75. As an operator, I want fault builds that deliberately leak one-way sight or markers, so that each player-facing guarantee is proven by a test that can fail
  76. As an operator, I want a secret door and a solid wall to give two servers byte-identical player transcripts, so that "indistinguishable" is a checked fact rather than a claim
  77. As an operator, I want an existing schema-7 scene and an equivalent newly authored scene to give byte-identical player transcripts after migration, so that preserving today's behaviour is a gate

Implementation Decisions

Switch model and validation. A wall's behaviour is five independent settings plus door settings: blocks_sight, blocks_movement, player_marker, sight_dir (both, left, right) and the door group door, open, secret, locked. All are typed fields on the wall record and on the wall payloads, never inside flags; flags remains the never-interpreted free object. The defaults are those of the wall preset: both blocks on, direction both, no marker, no door and no door settings. left and right are the sides of the wall's draw order, using the same normal as placement, and sight_dir:"left" names the side that cannot see across: a viewer on that side is blind across the wall, a viewer on the other side sees across. A direction other than both requires blocks_sight on.

The invariants are: open, secret and locked exist only with door; a secret door is closed, two-way and blocks both sight and movement; an open door can be neither secret nor locked; secret with locked is allowed. Any write that would store a forbidden combination is invalid. A non-door stores open, secret and locked off, so clearing door through a wall update closes and de-secrets the wall. A direction with no sight to block is invalid.

Presets and derived kind. Four presets exist: wall, door, window and one_way. A request carries a preset or raw switches, never both, and a preset never implies or resets thickness, placement or height. The server expands a preset to switches before the same validation all wall writes use. wall is both blocks on with no door; door is both blocks on with door set and closed; window is blocks_sight off, blocks_movement on, door set and closed, and player_marker on; one_way is both blocks on with sight_dir:"left" and no door. A fixed window is the window preset with door turned off; it has no second preset and keeps the marker on unless the GM clears it.

kind is an output-only shape label on the GM's wall frames, derived in this order: window when blocks_sight is off and blocks_movement is on (door either way), otherwise one_way when blocks_sight is on and the direction is not both, otherwise door when both blocks are on and door is set, otherwise wall when both blocks are on and there is no door and no direction, otherwise custom. secret and locked never change the label, and a one-way door is labelled one_way. An input kind is an unknown field and is ignored.

Patch semantics. A wall update is absolute and patches only what it names. A preset replaces the whole switch set with its expansion. A raw-switch update patches only the switches present and leaves the rest alone; a raw-switch create leaves omitted switches at the wall defaults. open is not a patch field on a wall update: it is an unknown field and ignored, and a door's open state changes only through the door intent. Consequently an update that sets door:true on a fixed window yields a closed opening window, and a preset that carried open:true is invalid. This is the sentence corrected on main in commit a425395 ("docs: wall.update open is not a patch field"); the wall update documentation now matches the door-only rule.

Geometry fields, stored but inert. Thickness in pixels, placement (center, left, right) and height in metres are accepted on the wire, range-checked, stored and echoed on the GM's wall frames, including height:null for full height. In this round they do not affect sight, movement, statuses, the door push or the marker's visible extent: every stored value behaves exactly as zero thickness and full height. This is the owner-delegated decision recorded for this round (DESIGN §6.1 and ADR-0012): the wire and schema are complete now, and the thick-wall and height rounds add behaviour without a migration. The marker's "visible extent" is therefore the drawn segment for every wall in this round.

Doors, windows, secret and locked. A door is a wall with door set; its closed switches are the switches it stores, and an open door blocks neither sight nor movement on either side while its stored switches are unchanged. Opening and closing are the same body appearing and disappearing; nothing swings. Only the GM touches a door in this round, and a player's door request is refused as not allowed for every door, whatever its settings. A secret door must be indistinguishable from a solid wall of the same switches to every player: same frames, same vision and explored cells, same tiles, same refusals. A locked door refuses an open request with invalid until the lock is cleared and is otherwise an ordinary closed door; closing a locked door is allowed. Neither setting ever reaches a player in any form, and no refusal names a cause. A fixed window has no leaf and never closes, so it never pushes; a closing opening window or secret door pushes exactly as a solid wall would, with no signal.

One-way sight. The per-viewer filter is inline in the vision fan: the wall list is viewer-independent and hoisted, and a sight-blocking one-way wall is skipped for a viewer on its seeing side — it blocks only the blind side — by one sign test of the viewer's position against the wall's left normal, after the radius culling. Nothing per-viewer is stored or copied. Movement is unaffected by direction, so a one-way wall blocks movement both ways when movement is on. Explored cells and tiles differ between the sides as a consequence of the filtered fan, with no new state; explored only grows, so flipping the direction or moving the endpoints never un-explores a cell or revokes a tile. A low wall's direction, when heights arrive, filters first and is outside this round.

Player marker emission. player_marker is an ordinary switch, on by default only through the window preset and off for every other preset and for raw switches. A marker is emitted only for a wall that is both marked and derives window; a solid wall with the switch on stores the switch and sends nothing. The anchor is the drawn midpoint, rounded once to integer pixels, and never follows the viewer. A wall qualifies for a player once any point of its visible extent has been inside that player's vision polygon, using the same polygon that decides token visibility, so the player's own sight is the gate and nothing behind a sight blocker qualifies. The marker carries only the anchor and an opaque per-player id: no kind, open state, direction, label, thickness, height, wall id or switch.

Marker lifetime and storage. A marker is the player's memory, like explored. It is stored per player and per wall with the player's own opaque 12-character id, restored at startup with the explored state, sent as a full set on connect and resync after explored, and never retracted by walking away, a door state or lost sight. It is retracted when the GM removes the wall, turns the switch off, makes the wall no longer a window, or moves its geometry including thickness and placement. A retraction reveals only that something changed, never a new position; a moved wall re-earns its marker only when the player sees the new geometry, and the re-earned marker gets a fresh id. A moved anchor is never updated in place. Marker inserts and deletes run in the same ordinary derived-memory transaction as the explored chunks, after the wall row commits and before the ack, so a retraction can never precede the change it reports. The GM never receives marker frames, and no player receives another player's.

Label. A wall label is optional GM-only free text of 1 to 64 code points, trimmed and free of control characters, using the ordinary text rule. It is stored verbatim, has no behaviour, never feeds the derived kind, and never appears in a player frame.

Protocol 2. The wall add and wall update intents change to the typed geometry fields, the raw switches and the preset, with kind removed as an input; the GM's wall and wall-set frames gain the geometry fields and derived kind; the player marker message exists. This is a breaking change because an old client's door kind would be ignored and silently create a solid wall, so the protocol is bumped to 2 with a history entry describing the change. The client announces its version on the upgrade request, and any mismatch closes with the documented mismatch reason and code after the upgrade, with no hello and no state. Within version 2, changes remain additive.

Schema step 8. The migration rebuilds the wall table into typed columns with checks for ranges and for the switch-set invariants, drops the legacy kind column, and adds the per-player marker table with a composite foreign key to the wall so a marker can never dangle. Existing walls map to today's behaviour exactly: zero thickness, centre placement, both blocks on, both-way sight, no marker, no secret or lock, no height and no label; a legacy door becomes a door with its stored open state, and a legacy wall becomes a non-door with open off. The one part SQL cannot express is a data hook inside the same transaction that gives every existing token and character a height of 1.8 metres in its GM bucket when that bucket has no height key, never writes an eye height, and leaves a hand-set height untouched. The step is one transaction with the history row and the version, a failing step rolls back completely, a migrated database re-opens as a no-op, and startup refuses a newer version. The new columns are written with SQL literals for the nullable values because the database binding cannot send null and neither an empty string nor zero is a legal value.

Lean and fault tooling. The leak checker's always-forbidden key set gains every new wall field name, so any of them in a player frame is a wall-data failure; the marker message becomes an allowed player type with its own oracle, built with the checker's own side test and its own visible-extent test, never by calling the server's vision code. New fault classes deliberately make the blind side see across a one-way wall and make markers early, extra or missing, each with an exact-class assertion and its negative control, alongside the existing secret-gap fault. Test artefacts named in the testing strategy but not yet built are deliverables of this round.

Seams. Three seams, highest first: the real server over the wire (extend the existing wall, token-details and restart groups and add a doors group); the leak checker with its scenario rewrite and fault builds; and a schema-7 fixture database driven through the real binary's migration path. No new seam is added, and the in-process wall tests are touched only where they already pin the record, the DDL or the frame shape.

Testing Decisions

A good test here observes only external behaviour: bytes on the wire, HTTP statuses, rows decoded from a database file, and process lifecycle. It never reaches into a module's internals, never calls the server's vision or move code to predict an answer, and never asserts on a private function name. Where the obligation is "a player cannot tell", the test compares two complete transcripts under canonicalised JSON and allows no per-run normalisation. Where the obligation is "never reaches a player", the leak checker derives its own answer from the GM's truth and its own geometry, and the fault builds are the negative controls that prove the assertion can fail. Tests use the real binary and fresh state directories, are deterministic, and fail with a message naming the frame, the recipient and the obligation.

Seam 1 — black-box over the real server. The existing wall acceptance group is extended to the new create and update payloads: presets and raw switches, preset-versus-switch exclusivity, every validation code, the derived kind for all four presets plus a custom shape, label handling, door, secret and locked invariants, the door-only open path, and the GM-only field set. A new doors acceptance group runs the secret-and-locked equivalence obligation as a two-server lockstep script: two fresh worlds identical except one segment, identical player tokens and moves, GM edits, a reconnect and a refused open, with each player's complete frame sequence and its per-tile statuses compared after canonicalisation; a positive control on an open or absent segment must produce different transcripts, and a secret-gap fault build must make the group fail. The existing token-details group is extended for statuses around fixed, closed and opening windows and for the marker-free GM view. The restart group is extended so a world with a marked window, a one-way wall, a secret door and a locked window produces a byte-identical resync before and after a restart, including the full marker set after explored. A player-facing assertion that no wall field appears in any player frame is made once per script, and a separate script proves one-way explored cells and tiles differ by side and are monotone across a flip. Marker assertions cover qualification by any visible part, persistence across a walk-away, the four retraction causes, a fresh id on re-earn, a full set on resync, per-player privacy, and the absence of a marker for a solid wall with the switch on.

Seam 2 — leak checker, scenario and faults. The checker's scenario is rewritten to include a window, a one-way wall, a secret door, a locked door and marked walls on both sides of the sight test, so every existing rule is exercised in the new world. The checker gains the wall-field key ban, the marker-type oracle with its own side and visible-extent maths, and exact-class assertions for the one-way and marker faults; its positive controls are a window in the open that yields exactly one marker and a seeing-side viewer who sees across a one-way wall. The fault group checks that each new fault build is caught as exactly its class, that a clean build passes, and that the shipped binary carries no fault hook. The scenario rewrite must keep the existing classes working, so the old obligations are not traded for the new.

Seam 3 — migration from a schema-7 fixture. The persistence group gains a fixture database at the previous schema version holding both legacy wall kinds, an open door, non-empty flags, tokens with props and a character with props. The real binary migrates it; every decoded row matches the mapping above, every token and character has a height of 1.8 in the GM bucket, an eye height is absent, and a hand-set height is untouched. A second run is a no-op, and a deliberately failing step leaves no DDL, no history row and no version change. A behaviour-preservation script builds the same scene through the new wall intents and compares its player frames, refusals and per-tile statuses with the migrated scene byte-for-byte; the zero-thickness door-push tests run unchanged against migrated rows, which is the push gate.

In-process tests. The existing wall, database and view tests are updated only where they already cover the record, the DDL or the frame shape, so the typed record, the new step's version and the GM-only wall payload stay pinned at their own level. No new in-process suite is introduced; new behaviour is proven at the three seams above.

Out of Scope

  • Thick-wall behaviour, including sight through a body, circle-versus-rectangle movement, thick door push and the body as the leaf (round 2, #45 and #50)
  • Wall and token heights, eye resolution, see-over and the visible fraction (#41 and #44)
  • The GM editor interface, its thickness, placement and height controls, the one-way arrow, the marker checkbox and the zoom clamp (the M4 client)
  • The UVTT importer (M6), including its wall and portal mapping
  • Build-list engine work from the review: the world thread and group commit, the angular sweep, polygon and wall-edit caches, per-entity version diffs and affected-recipient egress (separate specs)
  • Players opening or closing doors, lock refusals addressed to players, and player discovery of secret doors
  • Lighting, material, cave walls, curved or traced walls, and distance-limited windows
  • Create-requires-height for tokens and the effective-height and 93 percent eye rule (deferred to the heights round)

Further Notes

  • This is the first build round of the wall model on map #38; the design is FIXED in DESIGN §3.1, §4.4 step 8, §5.5, §5.7 (migration only), §5.8, §5.10 (zero thickness only), §6.1, §6.2, §6.3, §6.5 and §8, and the proving obligations are in TESTING §3.4, §5.5, §5.8, §5.10, §6.3, §6.5 and §10.3. ADR-0012 fixes the build order; ADR-0006, ADR-0010, ADR-0011 and ADR-0015 fix the model, storage, protocol bump and marker rules.
  • The contradiction in the wall update documentation is corrected on main in commit a425395 ("docs: wall.update open is not a patch field"); that commit is the reference for the door-only open state.
  • Related closed decisions: #3 (wall ids), #19 (walls and doors slice), #22 (token details), #41 (height model), #44 (low walls), #45 (thick walls), #46 (secret and locked doors), #47 (windows and one-way), #48 (four presets, marker and label), #49 (wire format, schema and migration) and #50 (thick doors and push). #45, #50, #41 and #44 are design-only for this round.
  • Two gates are explicit acceptance criteria: any stored thickness must pass the existing zero-thickness push and movement tests unchanged, and a migrated existing scene must be byte-identical to a newly built equivalent scene for players.
  • The testing strategy names certain tools and scenarios that are not built yet; this round delivers them. Their absence is not a reason to weaken an assertion, and a test that cannot fail is not evidence.
Part of #38 ## Problem Statement The table currently has one wall shape: a segment typed as a wall or a door, with an open flag. The GM cannot build the barriers the design calls for — a railing, a bush, a pit edge, a fixed or opening window, a one-way wall — and a door is only a kind with a boolean. There is no place to say "this wall blocks movement but not sight", "this door is secret or locked", "sight is blocked from this side only", "this window should tell a player it is here", or "call this railing". Because the only door state is a flag on a kind, the server cannot refuse an impossible combination, and a player's wall facts are all-or-nothing. The build also has no typed wall storage: the schema still carries the legacy kind column, so a wall's behaviour and its label cannot be validated or checked by the database, and there is no persisted per-player memory for the one wall fact a player is allowed to receive. The wire carries a door kind that the server would silently misread if the model changed, so a version boundary is missing. As a result the GM cannot author the rooms the design describes, players walk into invisible windows, secret doors cannot exist, one-way sight does not exist, and the schema and protocol are not ready for the wall behaviours that wait behind this round. This round builds the behaviour and the storage that is possible with zero-thickness walls, and leaves the thick-wall and height geometry for the rounds that follow the phone playtest. ## Solution The wall becomes a typed record of independent switches, with named presets expanded on the server and a derived shape label for the GM only. The GM can create a wall, door, window or one-way wall in one action, or compose raw switches, and can label any wall. Doors gain open, secret and locked settings; windows come in a fixed and an opening form; a one-way wall blocks sight from one named side and blocks movement both ways. A secret or locked door is indistinguishable from a solid or closed barrier to every player, including in refusals and explored cells. A wall that is both marked and a window sends each player who has seen part of it exactly one anchor point and that player's own opaque marker id, kept like explored memory and retracted only when the GM changes the cause. The GM keeps full wall data, including geometry, switches, derived kind and label; players receive no wall data other than their own markers. Storage moves to typed columns with database checks, the legacy kind column is dropped, a per-player marker-memory table is added, existing walls and figures are migrated to today's behaviour, and the protocol is bumped so an old client cannot silently create the wrong wall. The leak checker, its fault builds and the migration and black-box acceptance tests are extended to prove the player-facing guarantees, including byte-identical behaviour for an existing scene. ## User Stories 1. As a GM, I want one action to place a wall, a door, a window or a one-way wall, so that I do not hand-assemble switches for common barriers 2. As a GM, I want a preset to set only the switches it names, so that my drawn thickness, placement and height are never overwritten by choosing a preset 3. As a GM, I want the server to expand a preset for me, so that the stored wall is the switches and not a name that can drift from its behaviour 4. As a GM, I want to give either a preset or raw switches but never both, so that the request has one meaning 5. As a GM, I want to start from a plain wall and turn switches off, so that I can make a railing, a bush or a pit edge without a new kind 6. As a GM, I want a fixed window, so that players can see through a barrier that nobody can walk through 7. As a GM, I want an opening window, so that players can see through it while closed and walk through once I open it 8. As a GM, I want a window to be see-through along its whole drawn length with no sill or top, so that I can draw it as one short piece between wall pieces 9. As a GM, I want a window to arrive with its player marker on, so that players learn a window is there once they see part of it 10. As a GM, I want to turn the marker off for a window, so that I can make an invisible barrier 11. As a GM, I want a secret door, so that players treat it exactly like a solid wall until I reveal it 12. As a GM, I want a locked door, so that a door I have authored cannot be opened until I clear the lock 13. As a GM, I want a locked opening window, so that a see-through door can still refuse to open 14. As a GM, I want opening a secret or locked door refused with `invalid`, so that no request can put a door into a state the model forbids 15. As a GM, I want a door's open state to change only through the door intent, so that a wall edit can never accidentally open or close a door 16. As a GM, I want `wall.update {door:true}` on a fixed window to produce a closed opening window, so that the obvious way to convert one is the way it behaves 17. As a GM, I want an `open` field in a wall update to be ignored as an unknown field, so that only the door intent changes open state 18. As a GM, I want clearing a door's door switch to close and de-secret it, so that a non-door can never store door-only settings 19. As a GM, I want to choose whether a one-way wall is blind on the left or the right of its draw order, so that sight is blocked from the side I choose 20. As a GM, I want the field to name the blind side, so that "left" always means the same side to me and to the server 21. As a GM, I want to flip a one-way wall's direction without moving its endpoints, so that the geometry I drew stays put 22. As a GM, I want a one-way wall to still block movement both ways, so that direction only changes what can be seen 23. As a GM, I want the derived kind label (`wall`, `door`, `window`, `one_way`, `custom`) to follow what the wall actually does, so that my wall list never lies 24. As a GM, I want the label `custom` for any switch combination that fits no shape, so that unusual barriers are still authorable 25. As a GM, I want to attach a short free-text label such as "railing" or "the king's window", so that one switch set can be many things in my notes 26. As a GM, I want a label trimmed, free of control characters and at most 64 code points, so that it stays usable and never breaks a frame 27. As a GM, I want to set, change and clear a label, so that labels are ordinary authoring state 28. As a GM, I want thickness, placement and height accepted, stored and echoed in my frames, so that the later thick-wall and height rounds need no wire or schema change 29. As a GM, I want those three fields to change nothing about sight or movement in this round, so that the first playable build is predictable 30. As a GM, I want any stored thickness to behave exactly like zero thickness, so that a value I set early cannot change play before the thick-wall round 31. As a GM, I want existing walls to behave exactly as they do today after migration, so that upgrading does not move a scene under my players 32. As a GM, I want existing doors to keep their stored open state through migration, so that a door I left open stays open 33. As a GM, I want existing tokens and characters to carry a height of 1.8 metres after migration, so that the heights round has a sane starting value 34. As a GM, I want a height I set by hand to survive migration untouched, so that the backfill never overwrites my data 35. As a GM, I want closing a door to push an overlapping token aside exactly as today at zero thickness, so that the zero-thickness behaviour is a regression gate, not a guess 36. As a GM, I want a fixed or closed window to stick a token exactly as a solid wall does, so that a see-through barrier is still a barrier to the rules 37. As a GM, I want removing a wall, turning its marker off, making it no longer a window, or moving its geometry to retract its player markers, so that players do not keep a marker for something that changed 38. As a GM, I want a moved wall to require being seen again before its marker returns, so that a move never reveals a new position early 39. As a GM, I want restarting the server to preserve walls, marker memory and backfilled props, so that a restart is invisible to the table 40. As a player, I want to see through a window without receiving any wall data, so that a glass wall is useful without becoming a map of the room 41. As a player, I want to be blocked by a fixed window, so that seeing through something is not the same as walking through it 42. As a player, I want to walk through a door the GM opened, so that a doorway behaves like a gap 43. As a player, I want to be blocked and pushed by a closed door as I am today, so that doors stay predictable 44. As a player at a secret door, I want exactly the frames, explored cells, tiles and refusals of a solid wall, so that I cannot tell a secret exists 45. As a player at a locked door, I want exactly the sight, movement and refusals of a closed door, so that the lock is never a signal 46. As a player, I want no refusal to name locked, secret, solid or any cause, so that a refusal is not an oracle 47. As a player on the blind side of a one-way wall, I want not to see across it, so that the wall behaves the way the GM drew it 48. As a player on the seeing side of a one-way wall, I want to see across it, so that one-way sight has a usable side 49. As a player, I want my explored cells and tiles to follow what my own eyes can see, so that a one-way wall changes what I learn without new state 50. As a player, I want flipping a one-way wall never to take back what I already explored or the tiles I already hold, so that learning is monotone 51. As a player, I want a marker when any part of a marked window has been in my sight, so that walking along a window is enough to learn it is there 52. As a player, I want my marker to stay after I walk away, after a door closes and after I lose sight, so that it behaves like explored memory 53. As a player, I want my marker removed when the GM removes the wall, turns the switch off, makes it not a window or moves it, so that my memory matches the room 54. As a player, I want to receive my whole marker set when I connect or resync, so that my memory is complete on any device 55. As a player, I want my markers to carry only an anchor point and an opaque id, so that they cannot tell me a wall's kind, state, direction, label, thickness or identity 56. As a player, I want each marker id to be my own and never a wall id, so that the frame reveals neither wall identity nor how many walls exist 57. As a player, I want a re-earned marker to have a fresh id, so that I add it and remove it without ambiguity 58. As a player, I want my markers only, never another player's, so that my memory is private 59. As a player, I want a solid wall with the marker switch on to send me nothing, so that only a window can produce a marker 60. As a player, I want markers restored after the explored state on reconnect, so that the client can draw them over the fog it has just rebuilt 61. As a player, I want no wall label, height, thickness, placement, direction or switch in any frame I receive, so that walls stay GM-only 62. As a player on the blind side, I want no marker, tile or explored cell from behind the wall, so that my own sight is still the gate 63. As the server, I want one expand-and-validate path for wall add, wall update and the future importer, so that no entry point accepts a state another refuses 64. As the server, I want every impossible switch set rejected, so that storage and memory never hold a door-only setting on a non-door, an open secret or locked door, an opaque-but-secret gap, or a direction with no sight to block 65. As the server, I want the database to reject those same impossible states, so that a bad write cannot be smuggled past validation 66. As the server, I want marker memory stored per player and per wall with an opaque per-player id, so that a marker can never dangle or collide 67. As the server, I want marker memory written after the wall row commits and before the ack, so that a retraction can never precede the change it reports 68. As the server, I want marker memory to survive restart and be loaded before the first connection, so that a reconnecting player gets the set they had 69. As the server, I want the GM never to receive a marker frame, so that a player's memory stays a player's 70. As the server, I want the protocol version bumped to 2 with a documented history entry, so that an old client is refused rather than silently creating the wrong wall 71. As the server, I want a protocol mismatch to close with the documented reason and code and send no state, so that a stale client reloads instead of guessing 72. As the server, I want migration to run as one transaction per step and a re-open on a migrated database to write nothing, so that startup is idempotent 73. As the server, I want startup on a newer schema refused, so that an older binary cannot read a newer database 74. As an operator, I want the leak checker to treat every new wall field name as forbidden in a player frame, so that a future frame change cannot expose geometry or authoring state 75. As an operator, I want fault builds that deliberately leak one-way sight or markers, so that each player-facing guarantee is proven by a test that can fail 76. As an operator, I want a secret door and a solid wall to give two servers byte-identical player transcripts, so that "indistinguishable" is a checked fact rather than a claim 77. As an operator, I want an existing schema-7 scene and an equivalent newly authored scene to give byte-identical player transcripts after migration, so that preserving today's behaviour is a gate ## Implementation Decisions **Switch model and validation.** A wall's behaviour is five independent settings plus door settings: `blocks_sight`, `blocks_movement`, `player_marker`, `sight_dir` (`both`, `left`, `right`) and the door group `door`, `open`, `secret`, `locked`. All are typed fields on the wall record and on the wall payloads, never inside `flags`; `flags` remains the never-interpreted free object. The defaults are those of the `wall` preset: both blocks on, direction `both`, no marker, no door and no door settings. `left` and `right` are the sides of the wall's draw order, using the same normal as placement, and `sight_dir:"left"` names the side that cannot see across: a viewer on that side is blind across the wall, a viewer on the other side sees across. A direction other than `both` requires `blocks_sight` on. The invariants are: `open`, `secret` and `locked` exist only with `door`; a secret door is closed, two-way and blocks both sight and movement; an open door can be neither secret nor locked; `secret` with `locked` is allowed. Any write that would store a forbidden combination is `invalid`. A non-door stores `open`, `secret` and `locked` off, so clearing `door` through a wall update closes and de-secrets the wall. A direction with no sight to block is `invalid`. **Presets and derived kind.** Four presets exist: `wall`, `door`, `window` and `one_way`. A request carries a preset or raw switches, never both, and a preset never implies or resets thickness, placement or height. The server expands a preset to switches before the same validation all wall writes use. `wall` is both blocks on with no door; `door` is both blocks on with `door` set and closed; `window` is `blocks_sight` off, `blocks_movement` on, `door` set and closed, and `player_marker` on; `one_way` is both blocks on with `sight_dir:"left"` and no door. A fixed window is the `window` preset with `door` turned off; it has no second preset and keeps the marker on unless the GM clears it. `kind` is an output-only shape label on the GM's wall frames, derived in this order: `window` when `blocks_sight` is off and `blocks_movement` is on (door either way), otherwise `one_way` when `blocks_sight` is on and the direction is not `both`, otherwise `door` when both blocks are on and `door` is set, otherwise `wall` when both blocks are on and there is no door and no direction, otherwise `custom`. `secret` and `locked` never change the label, and a one-way door is labelled `one_way`. An input `kind` is an unknown field and is ignored. **Patch semantics.** A wall update is absolute and patches only what it names. A preset replaces the whole switch set with its expansion. A raw-switch update patches only the switches present and leaves the rest alone; a raw-switch create leaves omitted switches at the `wall` defaults. `open` is not a patch field on a wall update: it is an unknown field and ignored, and a door's open state changes only through the door intent. Consequently an update that sets `door:true` on a fixed window yields a closed opening window, and a preset that carried `open:true` is `invalid`. This is the sentence corrected on `main` in commit `a425395` ("docs: wall.update open is not a patch field"); the wall update documentation now matches the door-only rule. **Geometry fields, stored but inert.** Thickness in pixels, placement (`center`, `left`, `right`) and height in metres are accepted on the wire, range-checked, stored and echoed on the GM's wall frames, including `height:null` for full height. In this round they do not affect sight, movement, statuses, the door push or the marker's visible extent: every stored value behaves exactly as zero thickness and full height. This is the owner-delegated decision recorded for this round (DESIGN §6.1 and ADR-0012): the wire and schema are complete now, and the thick-wall and height rounds add behaviour without a migration. The marker's "visible extent" is therefore the drawn segment for every wall in this round. **Doors, windows, secret and locked.** A door is a wall with `door` set; its closed switches are the switches it stores, and an open door blocks neither sight nor movement on either side while its stored switches are unchanged. Opening and closing are the same body appearing and disappearing; nothing swings. Only the GM touches a door in this round, and a player's door request is refused as not allowed for every door, whatever its settings. A secret door must be indistinguishable from a solid wall of the same switches to every player: same frames, same vision and explored cells, same tiles, same refusals. A locked door refuses an open request with `invalid` until the lock is cleared and is otherwise an ordinary closed door; closing a locked door is allowed. Neither setting ever reaches a player in any form, and no refusal names a cause. A fixed window has no leaf and never closes, so it never pushes; a closing opening window or secret door pushes exactly as a solid wall would, with no signal. **One-way sight.** The per-viewer filter is inline in the vision fan: the wall list is viewer-independent and hoisted, and a sight-blocking one-way wall is skipped for a viewer on its seeing side — it blocks only the blind side — by one sign test of the viewer's position against the wall's left normal, after the radius culling. Nothing per-viewer is stored or copied. Movement is unaffected by direction, so a one-way wall blocks movement both ways when movement is on. Explored cells and tiles differ between the sides as a consequence of the filtered fan, with no new state; explored only grows, so flipping the direction or moving the endpoints never un-explores a cell or revokes a tile. A low wall's direction, when heights arrive, filters first and is outside this round. **Player marker emission.** `player_marker` is an ordinary switch, on by default only through the `window` preset and off for every other preset and for raw switches. A marker is emitted only for a wall that is both marked and derives `window`; a solid wall with the switch on stores the switch and sends nothing. The anchor is the drawn midpoint, rounded once to integer pixels, and never follows the viewer. A wall qualifies for a player once any point of its visible extent has been inside that player's vision polygon, using the same polygon that decides token visibility, so the player's own sight is the gate and nothing behind a sight blocker qualifies. The marker carries only the anchor and an opaque per-player id: no kind, open state, direction, label, thickness, height, wall id or switch. **Marker lifetime and storage.** A marker is the player's memory, like explored. It is stored per player and per wall with the player's own opaque 12-character id, restored at startup with the explored state, sent as a full set on connect and resync after explored, and never retracted by walking away, a door state or lost sight. It is retracted when the GM removes the wall, turns the switch off, makes the wall no longer a window, or moves its geometry including thickness and placement. A retraction reveals only that something changed, never a new position; a moved wall re-earns its marker only when the player sees the new geometry, and the re-earned marker gets a fresh id. A moved anchor is never updated in place. Marker inserts and deletes run in the same ordinary derived-memory transaction as the explored chunks, after the wall row commits and before the ack, so a retraction can never precede the change it reports. The GM never receives marker frames, and no player receives another player's. **Label.** A wall label is optional GM-only free text of 1 to 64 code points, trimmed and free of control characters, using the ordinary text rule. It is stored verbatim, has no behaviour, never feeds the derived kind, and never appears in a player frame. **Protocol 2.** The wall add and wall update intents change to the typed geometry fields, the raw switches and the preset, with `kind` removed as an input; the GM's wall and wall-set frames gain the geometry fields and derived kind; the player marker message exists. This is a breaking change because an old client's door kind would be ignored and silently create a solid wall, so the protocol is bumped to 2 with a history entry describing the change. The client announces its version on the upgrade request, and any mismatch closes with the documented mismatch reason and code after the upgrade, with no hello and no state. Within version 2, changes remain additive. **Schema step 8.** The migration rebuilds the wall table into typed columns with checks for ranges and for the switch-set invariants, drops the legacy kind column, and adds the per-player marker table with a composite foreign key to the wall so a marker can never dangle. Existing walls map to today's behaviour exactly: zero thickness, centre placement, both blocks on, both-way sight, no marker, no secret or lock, no height and no label; a legacy door becomes a door with its stored open state, and a legacy wall becomes a non-door with open off. The one part SQL cannot express is a data hook inside the same transaction that gives every existing token and character a height of 1.8 metres in its GM bucket when that bucket has no height key, never writes an eye height, and leaves a hand-set height untouched. The step is one transaction with the history row and the version, a failing step rolls back completely, a migrated database re-opens as a no-op, and startup refuses a newer version. The new columns are written with SQL literals for the nullable values because the database binding cannot send null and neither an empty string nor zero is a legal value. **Lean and fault tooling.** The leak checker's always-forbidden key set gains every new wall field name, so any of them in a player frame is a wall-data failure; the marker message becomes an allowed player type with its own oracle, built with the checker's own side test and its own visible-extent test, never by calling the server's vision code. New fault classes deliberately make the blind side see across a one-way wall and make markers early, extra or missing, each with an exact-class assertion and its negative control, alongside the existing secret-gap fault. Test artefacts named in the testing strategy but not yet built are deliverables of this round. **Seams.** Three seams, highest first: the real server over the wire (extend the existing wall, token-details and restart groups and add a doors group); the leak checker with its scenario rewrite and fault builds; and a schema-7 fixture database driven through the real binary's migration path. No new seam is added, and the in-process wall tests are touched only where they already pin the record, the DDL or the frame shape. ## Testing Decisions A good test here observes only external behaviour: bytes on the wire, HTTP statuses, rows decoded from a database file, and process lifecycle. It never reaches into a module's internals, never calls the server's vision or move code to predict an answer, and never asserts on a private function name. Where the obligation is "a player cannot tell", the test compares two complete transcripts under canonicalised JSON and allows no per-run normalisation. Where the obligation is "never reaches a player", the leak checker derives its own answer from the GM's truth and its own geometry, and the fault builds are the negative controls that prove the assertion can fail. Tests use the real binary and fresh state directories, are deterministic, and fail with a message naming the frame, the recipient and the obligation. **Seam 1 — black-box over the real server.** The existing wall acceptance group is extended to the new create and update payloads: presets and raw switches, preset-versus-switch exclusivity, every validation code, the derived kind for all four presets plus a custom shape, label handling, door, secret and locked invariants, the door-only open path, and the GM-only field set. A new doors acceptance group runs the secret-and-locked equivalence obligation as a two-server lockstep script: two fresh worlds identical except one segment, identical player tokens and moves, GM edits, a reconnect and a refused open, with each player's complete frame sequence and its per-tile statuses compared after canonicalisation; a positive control on an open or absent segment must produce different transcripts, and a secret-gap fault build must make the group fail. The existing token-details group is extended for statuses around fixed, closed and opening windows and for the marker-free GM view. The restart group is extended so a world with a marked window, a one-way wall, a secret door and a locked window produces a byte-identical resync before and after a restart, including the full marker set after explored. A player-facing assertion that no wall field appears in any player frame is made once per script, and a separate script proves one-way explored cells and tiles differ by side and are monotone across a flip. Marker assertions cover qualification by any visible part, persistence across a walk-away, the four retraction causes, a fresh id on re-earn, a full set on resync, per-player privacy, and the absence of a marker for a solid wall with the switch on. **Seam 2 — leak checker, scenario and faults.** The checker's scenario is rewritten to include a window, a one-way wall, a secret door, a locked door and marked walls on both sides of the sight test, so every existing rule is exercised in the new world. The checker gains the wall-field key ban, the marker-type oracle with its own side and visible-extent maths, and exact-class assertions for the one-way and marker faults; its positive controls are a window in the open that yields exactly one marker and a seeing-side viewer who sees across a one-way wall. The fault group checks that each new fault build is caught as exactly its class, that a clean build passes, and that the shipped binary carries no fault hook. The scenario rewrite must keep the existing classes working, so the old obligations are not traded for the new. **Seam 3 — migration from a schema-7 fixture.** The persistence group gains a fixture database at the previous schema version holding both legacy wall kinds, an open door, non-empty flags, tokens with props and a character with props. The real binary migrates it; every decoded row matches the mapping above, every token and character has a height of 1.8 in the GM bucket, an eye height is absent, and a hand-set height is untouched. A second run is a no-op, and a deliberately failing step leaves no DDL, no history row and no version change. A behaviour-preservation script builds the same scene through the new wall intents and compares its player frames, refusals and per-tile statuses with the migrated scene byte-for-byte; the zero-thickness door-push tests run unchanged against migrated rows, which is the push gate. **In-process tests.** The existing wall, database and view tests are updated only where they already cover the record, the DDL or the frame shape, so the typed record, the new step's version and the GM-only wall payload stay pinned at their own level. No new in-process suite is introduced; new behaviour is proven at the three seams above. ## Out of Scope - Thick-wall behaviour, including sight through a body, circle-versus-rectangle movement, thick door push and the body as the leaf (round 2, #45 and #50) - Wall and token heights, eye resolution, see-over and the visible fraction (#41 and #44) - The GM editor interface, its thickness, placement and height controls, the one-way arrow, the marker checkbox and the zoom clamp (the M4 client) - The UVTT importer (M6), including its wall and portal mapping - Build-list engine work from the review: the world thread and group commit, the angular sweep, polygon and wall-edit caches, per-entity version diffs and affected-recipient egress (separate specs) - Players opening or closing doors, lock refusals addressed to players, and player discovery of secret doors - Lighting, material, cave walls, curved or traced walls, and distance-limited windows - Create-requires-height for tokens and the effective-height and 93 percent eye rule (deferred to the heights round) ## Further Notes - This is the first build round of the wall model on map #38; the design is FIXED in DESIGN §3.1, §4.4 step 8, §5.5, §5.7 (migration only), §5.8, §5.10 (zero thickness only), §6.1, §6.2, §6.3, §6.5 and §8, and the proving obligations are in TESTING §3.4, §5.5, §5.8, §5.10, §6.3, §6.5 and §10.3. ADR-0012 fixes the build order; ADR-0006, ADR-0010, ADR-0011 and ADR-0015 fix the model, storage, protocol bump and marker rules. - The contradiction in the wall update documentation is corrected on `main` in commit `a425395` ("docs: wall.update open is not a patch field"); that commit is the reference for the door-only open state. - Related closed decisions: #3 (wall ids), #19 (walls and doors slice), #22 (token details), #41 (height model), #44 (low walls), #45 (thick walls), #46 (secret and locked doors), #47 (windows and one-way), #48 (four presets, marker and label), #49 (wire format, schema and migration) and #50 (thick doors and push). #45, #50, #41 and #44 are design-only for this round. - Two gates are explicit acceptance criteria: any stored thickness must pass the existing zero-thickness push and movement tests unchanged, and a migrated existing scene must be byte-identical to a newly built equivalent scene for players. - The testing strategy names certain tools and scenarios that are not built yet; this round delivers them. Their absence is not a reason to weaken an assertion, and a test that cannot fail is not evidence.
SirStone added the ready-for-agentenhancement labels 2026-11-19 21:41:13 +01:00
Author
Owner

Build tickets — Walls r1 (9)

Build order: W1 → W2 → W3; then lane A W4 → W5 ∥ lane B W6; join W7 → W8 → W9.

# Ticket Size Blocked by Stories
W1 #53 Walls r1: schema step 8 — typed wall storage, marker_seen, height backfill M — 5
W2 #54 Walls r1: proto 2 + typed wall record on the wire, inert geometry, derived kind L #53 16
W3 #55 Walls r1: presets, label, one expand-and-validate path and switch-set invariants M #54 10
W4 #56 Walls r1: doors — secret/locked, door-only open path, equivalence gate M #55 10
W5 #57 Walls r1: windows — opening and fixed forms, see-through barrier M #56 7
W6 #58 Walls r1: one-way sight — per-viewer filter + ONEWAY fault M #55 9
W7 #59 Walls r1: player markers — emission, opaque ids, storage, resync L #57, #58 14
W8 #60 Walls r1: marker retraction, re-earn and marker fault classes S/M #59 5
W9 #61 Walls r1: leak scenario rewrite and final fault gate S #56, #58, #60 1

Story coverage

All 77 user stories above are claimed exactly once: 5 + 16 + 10 + 10 + 7 + 9 + 14 + 5 + 1 = 77/77, no gaps.

  • Story 1's window/one_way presets are delivered in W5/W6 (W3 delivers wall/door).
  • Story 62 is claimed in W6; its marker clause is proven in W7.
  • Story 75's per-feature fault hooks are built in W4/W6/W8; W9 is the final fault gate.

Every ticket carries the standing criterion: full nimble + node suites green on a clean checkout, no existing test weakened or skipped, behaviour proven at the three approved seams (WS black-box, leak checker + fault builds, schema-7 migration fixture).

## Build tickets — Walls r1 (9) **Build order:** W1 → W2 → W3; then **lane A** W4 → W5 **∥ lane B** W6; join W7 → W8 → W9. | # | Ticket | Size | Blocked by | Stories | |---|---|---|---|---| | W1 | [#53 Walls r1: schema step 8 — typed wall storage, marker_seen, height backfill](https://git.fossellini.top/SirStone/FFF_vtt/issues/53) | M | — | 5 | | W2 | [#54 Walls r1: proto 2 + typed wall record on the wire, inert geometry, derived kind](https://git.fossellini.top/SirStone/FFF_vtt/issues/54) | L | #53 | 16 | | W3 | [#55 Walls r1: presets, label, one expand-and-validate path and switch-set invariants](https://git.fossellini.top/SirStone/FFF_vtt/issues/55) | M | #54 | 10 | | W4 | [#56 Walls r1: doors — secret/locked, door-only open path, equivalence gate](https://git.fossellini.top/SirStone/FFF_vtt/issues/56) | M | #55 | 10 | | W5 | [#57 Walls r1: windows — opening and fixed forms, see-through barrier](https://git.fossellini.top/SirStone/FFF_vtt/issues/57) | M | #56 | 7 | | W6 | [#58 Walls r1: one-way sight — per-viewer filter + ONEWAY fault](https://git.fossellini.top/SirStone/FFF_vtt/issues/58) | M | #55 | 9 | | W7 | [#59 Walls r1: player markers — emission, opaque ids, storage, resync](https://git.fossellini.top/SirStone/FFF_vtt/issues/59) | L | #57, #58 | 14 | | W8 | [#60 Walls r1: marker retraction, re-earn and marker fault classes](https://git.fossellini.top/SirStone/FFF_vtt/issues/60) | S/M | #59 | 5 | | W9 | [#61 Walls r1: leak scenario rewrite and final fault gate](https://git.fossellini.top/SirStone/FFF_vtt/issues/61) | S | #56, #58, #60 | 1 | ### Story coverage All 77 user stories above are claimed exactly once: 5 + 16 + 10 + 10 + 7 + 9 + 14 + 5 + 1 = **77/77**, no gaps. - Story 1's `window`/`one_way` presets are delivered in W5/W6 (W3 delivers `wall`/`door`). - Story 62 is claimed in W6; its marker clause is proven in W7. - Story 75's per-feature fault hooks are built in W4/W6/W8; W9 is the final fault gate. Every ticket carries the standing criterion: full nimble + node suites green on a clean checkout, no existing test weakened or skipped, behaviour proven at the three approved seams (WS black-box, leak checker + fault builds, schema-7 migration fixture).
Author
Owner

Corrected inverted blind-side sentence; behaviour unchanged (see #47)

Corrected inverted blind-side sentence; behaviour unchanged (see #47)
Author
Owner

Walls round 1 complete. Tickets #53–#61 closed; crash-window fix a69563f; two-axis review (Spec: 77/77 stories, 75 proven + 2 closed by 38941da; Standards: 1 critical label-aliasing fixed) addressed in e1a5b29 (server) and 38941da (tests/tools). Final: Nim all green, Node 142/142, mutation 73/73 killed. Next: round 2 (thick walls #45/#50, heights #41/#44) after the M4 playable client per ADR-0012.

Walls round 1 complete. Tickets #53–#61 closed; crash-window fix a69563f; two-axis review (Spec: 77/77 stories, 75 proven + 2 closed by 38941da; Standards: 1 critical label-aliasing fixed) addressed in e1a5b29 (server) and 38941da (tests/tools). Final: Nim all green, Node 142/142, mutation 73/73 killed. Next: round 2 (thick walls #45/#50, heights #41/#44) after the M4 playable client per ADR-0012.
Sign in to join this conversation.