M3 (DESIGN.md §13 "Server core") fully planned: every open detail decided and recorded in docs/DESIGN.md (tagged FIXED, dated), and M3 cut into small vertical slices — Gitea issues each delivering one working piece end-to-end with its own test. Building happens after this map.
Record each decision in DESIGN.md (FIXED, dated) with a small commit on main. Never push. No new long-lived branches.
Research findings go to docs/research/.md committed on main (not pushed branches); link from the ticket.
Check library APIs (mummy tag 0.4.8, db_connector, PixiJS v8) against source, not memory.
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
Test tools check: harnesses can stay Node .mjs (global WebSocket takes {headers}, no raw frames) or go Nim (no header API in treeform/ws; nim-websock needs nim >= 2.2.14); port is cheap, Nim rewrite ~150-250 lines est.
Library check: mummy and db_connector: mummy 0.4.8 has no WS upgrade hook and no Origin check (read headers yourself), 64 KB inbound cap drops TCP without close frame, send/close are thread-safe; db_connector is a raw unlocked DbConn with manual transactions and no busy_timeout. Facts only: docs/research/m3-mummy-db-connector.md.
Wall and token ids: walls get per-scene ids that are never reused (scene keeps a monotonic next-wall-id); tokens get random 12-char opaque ids, unique game-wide.
Token size: one size rule (own radius if set, else scene default); GM grow pushes tokens clear of walls, or they get squeezed; stuck and squeezed replace blocked.
First GM login: fff-vtt gm-link is the only way to create the GM; re-run prints the same link, --new rotates and revokes GM sessions, no first-visitor claim. (amended by Players and invites: gm-key)
Characters and player data: characters are own records (one owner: a player or the GM), separate from tokens; token controller is independent of the character owner; identity on the character, figure state on the token; names revealed per player; per-player encountered list, GM-removed only; server-side SQLite only.
Players and invites: one shared site link; each player signs in with a personal player key the GM generates (no name); player names self-chosen at first sign-in, unique, GM may rename; GM signs in with a GM key from fff-vtt gm-key; GM can replace a player's key live (old key and sessions dead, connections closed); removing a player passes their characters and tokens to the GM; no rate limit on key entry (owner: ~100-bit keys).
Map tiles in M3?: tile gate + test nginx + generated 32px fixture tiles in M3; versioned private tile URLs; import CLI and prod nginx stay M6.
Test tools decision: outside harnesses in Node 26 (node:test, node:net, no deps), ported from prototype; inside tests stay Nim
What M3 done means: done = devbox run test green with 9 named groups (leak/fault, tiles, probing, protocol, auth, chars/names, restart, persistence, logs); concurrency M5
M3 limits: 64 KB inbound msg; 30/s burst 100 per conn, excess refused (no rollback); 4 conns/player (oldest closed), 16 total
Message list: full M3 wire catalogue in §6; noun.verb intents, one ack per reqId, static error/close codes; invite/blocked retired
Cut M3 into slices: 10 vertical build slices (ready-for-agent), bare server → getting in → talking safely → walls and doors → tokens and sight → explored persistence → token details → characters and names → map tiles → finish line
Not yet specified
(none: remaining technical details are owned by the M3 build slices, see Cut M3 into slices)
Out of scope
Building M3 (comes after this map).
Client (M4); outbox coalescing order and nginx WS proxy checks (M5); tile import CLI (M6); concurrency test (M5).
## Destination
M3 (DESIGN.md §13 "Server core") fully planned: every open detail decided and recorded in docs/DESIGN.md (tagged FIXED, dated), and M3 cut into small vertical slices — Gitea issues each delivering one working piece end-to-end with its own test. Building happens after this map.
## Notes
- Source of truth: docs/DESIGN.md (§13 M3; refs §3.1, §3.2, §3.4, §4.2–4.4, §5.5, §6.1–6.4, §8, §9, §10.1, §10.3, §12, §14). Existing code: server/geometry.nim, server/moverules.nim, tests/. Prototype reference (read-only): prototype-server-vision/.
- Grilling tickets: call skills "grilling" + "domain-modeling".
- Record each decision in DESIGN.md (FIXED, dated) with a small commit on main. Never push. No new long-lived branches.
- Research findings go to docs/research/<name>.md committed on main (not pushed branches); link from the ticket.
- Check library APIs (mummy tag 0.4.8, db_connector, PixiJS v8) against source, not memory.
### 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
- [Test tools check](https://git.fossellini.top/SirStone/FFF_vtt/issues/8): harnesses can stay Node .mjs (global WebSocket takes {headers}, no raw frames) or go Nim (no header API in treeform/ws; nim-websock needs nim >= 2.2.14); port is cheap, Nim rewrite ~150-250 lines est.
- [Library check: mummy and db_connector](https://git.fossellini.top/SirStone/FFF_vtt/issues/10): mummy 0.4.8 has no WS upgrade hook and no Origin check (read headers yourself), 64 KB inbound cap drops TCP without close frame, send/close are thread-safe; db_connector is a raw unlocked DbConn with manual transactions and no busy_timeout. Facts only: docs/research/m3-mummy-db-connector.md.
- [Wall and token ids](https://git.fossellini.top/SirStone/FFF_vtt/issues/3): walls get per-scene ids that are never reused (scene keeps a monotonic next-wall-id); tokens get random 12-char opaque ids, unique game-wide.
- [Token size](https://git.fossellini.top/SirStone/FFF_vtt/issues/4): one size rule (own radius if set, else scene default); GM grow pushes tokens clear of walls, or they get squeezed; stuck and squeezed replace blocked.
- [First GM login](https://git.fossellini.top/SirStone/FFF_vtt/issues/5): `fff-vtt gm-link` is the only way to create the GM; re-run prints the same link, `--new` rotates and revokes GM sessions, no first-visitor claim. (amended by Players and invites: gm-key)
- [Characters and player data](https://git.fossellini.top/SirStone/FFF_vtt/issues/14): characters are own records (one owner: a player or the GM), separate from tokens; token controller is independent of the character owner; identity on the character, figure state on the token; names revealed per player; per-player encountered list, GM-removed only; server-side SQLite only.
- [Players and invites](https://git.fossellini.top/SirStone/FFF_vtt/issues/6): one shared site link; each player signs in with a personal player key the GM generates (no name); player names self-chosen at first sign-in, unique, GM may rename; GM signs in with a GM key from `fff-vtt gm-key`; GM can replace a player's key live (old key and sessions dead, connections closed); removing a player passes their characters and tokens to the GM; no rate limit on key entry (owner: ~100-bit keys).
- [Map tiles in M3?](https://git.fossellini.top/SirStone/FFF_vtt/issues/7): tile gate + test nginx + generated 32px fixture tiles in M3; versioned private tile URLs; import CLI and prod nginx stay M6.
- [Test tools decision](https://git.fossellini.top/SirStone/FFF_vtt/issues/9): outside harnesses in Node 26 (node:test, node:net, no deps), ported from prototype; inside tests stay Nim
- [What M3 done means](https://git.fossellini.top/SirStone/FFF_vtt/issues/12): done = devbox run test green with 9 named groups (leak/fault, tiles, probing, protocol, auth, chars/names, restart, persistence, logs); concurrency M5
- [M3 limits](https://git.fossellini.top/SirStone/FFF_vtt/issues/15): 64 KB inbound msg; 30/s burst 100 per conn, excess refused (no rollback); 4 conns/player (oldest closed), 16 total
- [Message list](https://git.fossellini.top/SirStone/FFF_vtt/issues/11): full M3 wire catalogue in §6; noun.verb intents, one ack per reqId, static error/close codes; invite/blocked retired
- [Cut M3 into slices](https://git.fossellini.top/SirStone/FFF_vtt/issues/13): 10 vertical build slices (ready-for-agent), bare server → getting in → talking safely → walls and doors → tokens and sight → explored persistence → token details → characters and names → map tiles → finish line
## Not yet specified
- (none: remaining technical details are owned by the M3 build slices, see Cut M3 into slices)
## Out of scope
- Building M3 (comes after this map).
- Client (M4); outbox coalescing order and nginx WS proxy checks (M5); tile import CLI (M6); concurrency test (M5).
- Character export/import as a file (decided future in [Characters and player data](https://git.fossellini.top/SirStone/FFF_vtt/issues/14)).
## Tickets
- [x] #3 Wall and token ids
- [x] #4 Token size
- [x] #5 First GM login
- [x] #6 Players and invites
- [x] #14 Characters and player data
- [x] #7 Map tiles in M3?
- [x] #8 Test tools check
- [x] #9 Test tools decision
- [x] #10 Library check: mummy and db_connector
- [x] #11 Message list
- [x] #12 What M3 done means
- [x] #13 Cut M3 into slices
- [x] #15 M3 limits
Destination reached: all decision cards closed, decisions recorded in docs/DESIGN.md (pushed at 143cb53). Building continues on the M3 slices: M3 slice 1: Bare server (#16) … M3 slice 10: Finish line (#25).
Destination reached: all decision cards closed, decisions recorded in docs/DESIGN.md (pushed at 143cb53). Building continues on the M3 slices: M3 slice 1: Bare server (#16) … M3 slice 10: Finish line (#25).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Destination
M3 (DESIGN.md §13 "Server core") fully planned: every open detail decided and recorded in docs/DESIGN.md (tagged FIXED, dated), and M3 cut into small vertical slices — Gitea issues each delivering one working piece end-to-end with its own test. Building happens after this map.
Notes
How to talk with the owner (ADHD — read first, every session)
Decisions so far
fff-vtt gm-linkis the only way to create the GM; re-run prints the same link,--newrotates and revokes GM sessions, no first-visitor claim. (amended by Players and invites: gm-key)fff-vtt gm-key; GM can replace a player's key live (old key and sessions dead, connections closed); removing a player passes their characters and tokens to the GM; no rate limit on key entry (owner: ~100-bit keys).Not yet specified
Out of scope
Tickets
Destination reached: all decision cards closed, decisions recorded in docs/DESIGN.md (pushed at
143cb53). Building continues on the M3 slices: M3 slice 1: Bare server (#16) … M3 slice 10: Finish line (#25).