Walls r1: presets, label, one expand-and-validate path and switch-set invariants #55
Notifications
Due Date
No due date set.
Blocks
Depends on
#56 Walls r1: doors — secret/locked, door-only open path, equivalence gate
SirStone/FFF_vtt_frozen
#58 Walls r1: one-way sight — per-viewer filter + ONEWAY fault
SirStone/FFF_vtt_frozen
#54 Walls r1: proto 2 + typed wall record on the wire, inert geometry, derived kind
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#55
Reference in New Issue
Block a user
Part of #52
Goal
preset "wall"|"door" expands server-side to switches before validation; preset xor raw switches; a preset never touches geometry. label 1–64 code points, trimmed, no control chars, null clears, stored verbatim, GM-only. All forbidden switch sets rejected by the single path used by add/update (and the future importer), and by the DB CHECKs.
Acceptance criteria
open:trueare invalid; raw create defaults to wall, raw update patches only named switches;{door:false}closes and de-secrets.blocks_sight:false, open with secret or locked → invalid; a fieldless update is invalid before the id lookup.User stories covered
1, 2, 3, 4, 18, 25, 26, 27, 63, 64
Proven at
Notes
Implemented in
484275e(feat(walls): presets, label rule and one switch-set validation path), pushed to main.resolveWallis the one expand-and-validate path for wall.add/wall.update: preset xor raw switches, presets set switches only (never geometry), and every forbidden switch set is invalid.{door:false}closes and de-secrets. Rawopen/secret/lockedtrue on a non-door is nowinvalidinstead of silently dropped, andopen+lockedis refused.labelis trimmed, 1..64 code points, no control characters, null clears; stored verbatim and GM-only.CHECK (open = 0 OR locked = 0).Standing suites green on a clean checkout: Nim 385, Node 117. No existing test weakened or skipped; new proofs are the walls WS black-box group plus Nim shape pins.