Commit Graph
59 Commits
Author SHA1 Message Date
SirStone dc16db1b72 docs: rewrite DESIGN.md as the current-only spec (#51)
Same section numbers as v0.30, so all DESIGN §x.y references still resolve. Removes the
change log, the decision log, the HANDOFF table and the superseded/duplicated statements
(history + ADRs hold those); dedupes rules to one authoritative block with wire/storage/
recipient layers pointing at it; §14 now holds only open items and the ADR index; all prose
wrapped. No decision changed.
2026-11-17 23:12:08 +01:00
SirStone 8aaf03be04 docs: add ADRs for the durable design decisions
22 ADRs: server-authoritative sight and single egress, per-recipient views/diffs, uniform
nack, opaque ids, 32 px tile unit, wall switches/presets, see-over, thick walls, open-door
gap, typed wall columns, proto 2, build order, zoom clamp, accepted status leak, player
marker, chunked explored, slow-client policy, session/key split, closing message, character
records, global lock, synchronous choice. Each links its tickets and its spec section.
2026-11-17 23:12:04 +01:00
SirStone 7a69779c5a docs: extract DESIGN history (change log, decision log, superseded text)
The v0.4-v0.30 change log, the old §12 HANDOFF table and the whole §14 owner-decision log
(Q1-Q24) move here verbatim, with the superseded statements removed from the spec quoted
with their surviving rule. Non-normative.
2026-11-17 23:12:04 +01:00
SirStone 7b804f4e5e docs: analysis review and decisions 2026-11-17 22:45:58 +01:00
SirStone 287859d890 design: wall wire format, schema and migration (#49) 2026-11-17 22:31:16 +01:00
SirStone 2a160fb274 design: door geometry, thick doors and door push (#50) 2026-11-17 22:17:16 +01:00
SirStone 409d2c8621 docs: tag #42 preset list superseded by #48 2026-11-16 22:42:56 +01:00
SirStone 7ac915ae6c design: terrain dropped, presets, window markers (#48) 2026-11-16 22:39:20 +01:00
SirStone b8f04c2faf design: windows and one-way walls (#47) 2026-11-16 22:08:14 +01:00
SirStone 5c3a123d41 design: thick walls sight and movement (#45) 2026-11-15 21:53:55 +01:00
SirStone afe19ac258 design: secret and locked doors (#46) 2026-11-15 19:27:15 +01:00
SirStone 4c968b78d8 design: low walls sight and see-over (#44) 2026-11-15 19:21:10 +01:00
SirStone 7511daa3c5 design: wall switches, presets and one-way sight (#42) 2026-11-15 18:23:26 +01:00
SirStone a7f302ec26 design: height model for tokens, eyes and walls (#41) 2026-11-15 16:47:40 +01:00
SirStone b4720779d4 research: sight with thick and low walls (#39) 2026-11-15 16:12:15 +01:00
SirStone d5147ec4db research: how tabletops model wall kinds (#40) 2026-11-15 15:54:46 +01:00
SirStone b6c006d08b agents: add bug and enhancement category labels 2026-11-15 15:30:23 +01:00
SirStone b4bddf1d52 design: record the #27-#31 rules and the measured egress numbers (#27-#31)
6.1: a link patch hands the token's names over; the encountered snapshot is
written by one path in both stores, and a reveal is scoped to its player. 4.3:
egress borrows (never copies) under the lock, and the scene is a value swapped
under the lock that each request reads once. 10.3: STALE_NAME is a leakcheck
class. 14: the five fixes, their tests and mutations, with the before/after
egress measurements (context build 4.87 ms -> 0.008 us at 262144 cells; GM
egress 142.8 ms -> 0.80 ms). Doc bumped to v0.20.
2026-11-15 14:26:23 +01:00
SirStone e68c6eefbf design: owner confirms prop registry fallback (#22)
Mark the 6.1 property-schema registry as an owner decision (2026-11-15):
keep the empty registry with the permissive fallback in v1, strict mode
with the FFF seam post-v1. Record it in 14 and bump the doc to v0.19.
2026-11-15 13:06:58 +01:00
SirStone 2c0ce47134 design: record the measured M3 gate results (#25) 2026-11-15 13:03:51 +01:00
SirStone 14939afd81 design: record the finish line, the scene rules and the M3 acceptance checklist (#25) 2026-11-15 12:52:23 +01:00
SirStone 7ef5cc433a design: record the map-tile gate and test nginx decisions (#24) 2026-11-15 12:30:53 +01:00
SirStone dab7c77675 design: record the characters and names decisions (#23) 2026-11-15 12:01:33 +01:00
SirStone 3c6e926122 design: record the token details decisions (#22)
Migration step 6, the status/source payload rules, the prop caps and the
property-schema registry (empty at start with a permissive fallback, because
8 says v1 never interprets props), and the grow-push search that 5.6 left
PROPOSED are all FIXED owner-delegated in 5.6/6.1 and summarised in 14. The
token payload rules now say `radius`/`props` are accepted on create from
slice 7 and refused nowhere else. 10.3 lists the three new fault classes,
and the glossary gains property, bucket and registry.
2026-11-15 11:02:43 +01:00
SirStone fe7ffb0000 design: record the explored persistence decisions (#21)
Step 5 DDL, the 64x64/512 B chunk format with its pinned bit layout, the write policy (dirty
chunks only, whole-chunk encoding, NORMAL durability, one transaction with a move and a
separate one after GM authoring), the startup restore and the measured costs, all tagged
FIXED (owner-delegated, #21), plus what slice 6 built in 10.3.
2026-11-15 09:58:51 +01:00
SirStone 91192b36ce design: record the tokens and sight decisions (#20)
v0.17: migration step 4 (entity) and what it deliberately leaves out, the token
payload rules 6.1 was silent on (plain tokens only, radius/props/character_id
refused invalid, effective radius = scene default, descriptive name only on the
wire, controller null as the single GM spelling, explored RLE on connect), the
slice-5 resync, the egress timing, the fault classes built at this slice, the
slice-5 rollout, and the full decision record as a FIXED owner-delegated entry.
2026-11-15 09:35:33 +01:00
SirStone 864cf26e98 design: record the walls and doors decisions (#19)
v0.16. 4.4 gets migration step 3 (scene + wall DDL and the seeded v1 scene);
6.1 gets the wall payload rules the catalogue left open (scene id, a/b
validation, open never true on a wall, flags as an object, wall.update's
patch set, fields before lookup, ids from next_wall_id, synchronous=FULL);
6.1/6.3 note what slice 4 actually sends (`walls` on GM connect); 8 points
next_wall_id at the scene row; 14 records the whole slice as FIXED
(owner-delegated).
2026-11-15 08:49:42 +01:00
SirStone db22b33567 design: record the closing message and the protocol-shell decisions (#18)
Owner decision (#18), option A: mummy 0.4.8 cannot send an application close code
(close(ws) -> an empty close frame -> the browser sees 1005), and mummy is not forked
for it. Every server-initiated close now sends one closing {reason, code} message and
then the close frame; the client reads the reason from that last message. Amends 3.2
(the OPEN note is FIXED) and 6.5, and adds the message to the 6.1 catalogue (server
messages 14 -> 15) with the reason/code table.

Also recorded FIXED: proto is a required query parameter (400 when absent, 4003 on a
mismatch, no hello); the server Ping interval (20 s, plus one right after hello, lag
enforcement stays M5); the n rule (server frames only, no number for Ping/Pong); the
explicit 64 KB maxMessageLen; and the slice-3 rollout note that catalogue intents
whose slice has not landed answer unknown-type. 10.3 lists the protocol test group.
2026-11-15 08:33:16 +01:00
SirStone 527e216c37 design: mark sign-in path and ws origin check fixed (#17) 2026-11-14 22:13:25 +01:00
SirStone f85665b53e design: record slice 2 decisions (#17) 2026-11-14 22:13:09 +01:00
SirStone 86e7ad397d design: record slice 1 decisions (#16) 2026-11-14 21:40:48 +01:00
SirStoneandClaude Haiku 5.5 143cb534dc design: retag gm-key service user as owner-delegated (#13)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-14 20:58:58 +01:00
SirStoneandClaude Sonnet 5.5 4465e7e89d design: M3 slices and gm-key service user (#13)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 20:56:32 +01:00
SirStoneandClaude Haiku 5.5 7667e28f5e design: owner review of message list flags (#11)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-14 20:49:11 +01:00
SirStoneandClaude Sonnet 5.5 277cb5f896 design: fix M3 message list (#11)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 20:42:16 +01:00
SirStoneandClaude Haiku 5.5 2801fbcca5 design: fix M3 limits (#15)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-14 20:12:15 +01:00
SirStoneandClaude Haiku 5.5 356a70f2b5 design: fix M3 done criteria (#12)
M3 done = devbox run test green on a clean checkout with nine named
groups (leak+fault, tiles, probing, protocol, auth, characters and
names, restart, persistence, logs). Concurrency moves to M5, bind check
to M6. Protocol limits pending on the "M3 limits" card.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-14 19:47:06 +01:00
SirStoneandClaude Haiku 5.5 acc69c9fb6 design: fix test tools (#9)
Node 26 black-box harnesses under tools/ (no Nim rewrite, no npm deps);
in-process tests stay Nim; devbox run test runs Nim then Node.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-14 19:35:54 +01:00
SirStoneandClaude Haiku 5.5 8c03224f2a design: fix map tiles in M3 (#7)
Tile gate, test nginx and generated 32 px fixtures in M3 scope.
Versioned private tile URLs (art_version, Cache-Control private).
404 for malformed paths, 403 for unexplored tiles.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-14 18:41:34 +01:00
SirStoneandClaude Haiku 5.5 0772f26400 design: fix players and player keys (#6)
One shared site link; each player signs in with a personal player key
generated by the GM. GM signs in the same way with a GM key from
`fff-vtt gm-key` (replaces gm-link, #5). GM can replace a key live
(old key invalid, sessions and connections revoked). Removing a player
passes characters and tokens to the GM. No rate limit on key entry
(owner decision: ~100-bit key space).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 19:27:22 +01:00
SirStoneandClaude Haiku 5.5 d9e135f6bd design: fix characters and player data (#14)
Characters are own records separate from tokens; tokens may link to one.
Character owner: exactly one (player or GM). Token controller is independent
and never changes with the character owner. Identity lives on the character,
per-figure state on the token. Descriptive/actual names revealed per player
or to all. Per-player encountered list, GM-removed only. Server-side SQLite only.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 19:11:16 +01:00
SirStoneandClaude Haiku 5.5 ae2f7c48dc design: fix first GM login bootstrap (#5)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 18:04:11 +01:00
SirStoneandClaude Haiku 5.5 90576381df design: fix token size and stuck/squeezed statuses (#4)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 17:51:02 +01:00
SirStoneandClaude Haiku 5.5 48b77888c6 design: fix wall and token ids (#3)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 17:13:25 +01:00
SirStoneandClaude Haiku 5.5 91cea1a364 research: mummy 0.4.8 and db_connector API facts (#10)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 16:54:03 +01:00
SirStoneandClaude Haiku 5.5 8f65680176 research: M3 test harness WebSocket options (#8)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-10 16:52:29 +01:00
SirStoneandClaude Haiku 5.5 c9d94e40b2 docs: handoff for M3 session
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 19:22:51 +01:00
SirStoneandClaude Sonnet 5.5 65c6b53c2a docs: DESIGN door push rule (5.5, 5.4, 6.1, H2, M2 accept, Q14)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:56:22 +01:00
SirStoneandClaude Sonnet 5.5 153ff6cd18 docs: DESIGN blocked policy (set/keep/clear), 5k bench target, test-count baseline, GM OOB nack, wall id stability (M3)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:53:12 +01:00
SirStoneandClaude Haiku 5.5 206f99deda docs: M2 decisions (blocked trigger, GM moves, move rules scope)
Record owner decisions for M2 in DESIGN.md section 5.5 and update
sections 3.4 (T8), 4.2, 5.1, 5.4, 6.1, 7.4, 8, 10.3, 12 (H2, H3, H10,
H26), 13 (M2) and 14.

- blocked trigger: wall added / door closed overlapping any part of a
  token circle (dist centre-segment < r), not only centre-on-wall
- GM moves ignore walls, step cap and blocked
- player step cap = token vision radius, scene default if no vision
- capsule/swept check; escape rule for start-overlapping walls
- over-cap and blocked moves share one uniform nack
- M2 test layer: in-process move-rules module; WS probing test in M3

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:59:55 +01:00