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>
This commit is contained in:
+24
@@ -25,3 +25,27 @@ _Avoid_: DM, admin, host
|
||||
**Invite link**:
|
||||
A secret link that admits one person to the table, with no password.
|
||||
_Avoid_: invite code, join key, password
|
||||
|
||||
**Player**:
|
||||
A real person at the table who joins through an invite link. A player is not a character; one player may own several characters.
|
||||
_Avoid_: user, account, member
|
||||
|
||||
**Character**:
|
||||
A named record of who someone is: identity and base values. Has exactly one owner, a player or the GM. Its tokens show it on the map.
|
||||
_Avoid_: PC, hero
|
||||
|
||||
**Token**:
|
||||
A figure on the map. It may belong to a character; a plain token (monster, item) belongs to none. Holds what is happening to the figure. Its controller is set on its own and does not follow the character's owner.
|
||||
_Avoid_: entity, piece, counter
|
||||
|
||||
**Descriptive name**:
|
||||
The name a player sees for a character or plain token until the GM reveals the actual name, e.g. "a grumpy man". Every character and plain token has one.
|
||||
_Avoid_: alias, label, nickname
|
||||
|
||||
**Actual name**:
|
||||
The true name of a character or plain token, e.g. "Lord Vex". Its character's owner always sees it; a player sees it once the GM reveals it to them.
|
||||
_Avoid_: real name (ambiguous with a player's real name), true name
|
||||
|
||||
**Encountered list**:
|
||||
Per player, every token that the player's tokens have ever seen, under the name that player knows. Out of sight, an entry is greyed ("met before, whereabouts unknown"). Only the GM removes entries.
|
||||
_Avoid_: roster (that is the player list), contacts
|
||||
|
||||
+41
-18
@@ -1,6 +1,6 @@
|
||||
# FFF_vtt design
|
||||
|
||||
Status: draft v0.5, 2026-11-08 (owner decisions recorded in section 14; v0.4 records Q4 (tile_size 32 px), the outbox lock invariant (4.2, 4.3), and the follow-ups in 3.4, 8, 11.1, 12, 13; v0.5 records the M2 move-rule decisions in 5.5 and updates 3.4, 4.2, 5.1, 5.4, 6.1, 7.4, 8, 10.3, 12, 13. All of Q1-Q24 are RESOLVED or DEFERRED; none OPEN). Audience: the owner and coding agents.
|
||||
Status: draft v0.6, 2026-11-10 (owner decisions recorded in section 14; v0.4 records Q4 (tile_size 32 px), the outbox lock invariant (4.2, 4.3), and the follow-ups in 3.4, 8, 11.1, 12, 13; v0.5 records the M2 move-rule decisions in 5.5 and updates 3.4, 4.2, 5.1, 5.4, 6.1, 7.4, 8, 10.3, 12, 13; v0.6 records #14 (characters and player data) in 3.1, 3.4, 4.1, 4.4, 6.1, 8, 9, 10.3, 13, 14. All of Q1-Q24 are RESOLVED or DEFERRED; none OPEN). Audience: the owner and coding agents.
|
||||
|
||||
Legend:
|
||||
- **[FIXED]** owner decision, not up for debate here.
|
||||
@@ -97,10 +97,16 @@ A browser virtual tabletop for one table (1 GM + up to 6 players [FIXED, Q1]), s
|
||||
| Data | GM | Player (own) | Player (others) |
|
||||
|---|---|---|---|
|
||||
| Walls, doors (geometry, open/closed) | all, always | **never** (WS or HTTP) | never |
|
||||
| Tokens/entities | all | owned: always. Others: only if inside own LOS polygon **and** not `gm_only` | -- |
|
||||
| Entity props, `public` bucket | all | for visible tokens | -- |
|
||||
| Entity props, `owner` bucket | all | only for owned tokens | never |
|
||||
| Entity props, `gm` bucket | all | never | never |
|
||||
| Tokens/entities (position, radius, statuses, name per 8) | all | controlled by this player (`entity.owner`): always. Others: only if inside own LOS polygon **and** not `gm_only` | -- |
|
||||
| Token props, `public` bucket | all | for visible tokens | -- |
|
||||
| Token props, `owner` bucket (owner = token controller) | all | only for tokens this player controls | never |
|
||||
| Token props, `gm` bucket | all | never | never |
|
||||
| Character records (owner, names, character props) | all | own characters: always. Others: never; no browsable list of characters | never |
|
||||
| Character props, `public` bucket | all | for characters with a visible token | -- |
|
||||
| Character props, `owner` bucket (owner = character owner) | all | own characters only | never |
|
||||
| Character props, `gm` bucket | all | never | never |
|
||||
| Names (descriptive / actual, 8) | all actual | descriptive; actual for own characters and where revealed to this player | descriptive, or actual where revealed to that player |
|
||||
| Encountered list (8) | all players' lists; GM may remove an entry | own list only | never |
|
||||
| Vision polygons | none needed (GM sees all) | own tokens' polygons only | never |
|
||||
| Explored grid | none | own grid only | never other players' |
|
||||
| Map tiles | all | only tiles touching own explored cells (403 otherwise) | -- |
|
||||
@@ -113,6 +119,7 @@ Notes:
|
||||
- Prototype gap [INFERRED]: every message carries the global `gseq`; player-visible gaps in `gseq` reveal that hidden mutations occurred. Real build: players get a per-connection monotonic counter.
|
||||
- `hello` to a player carries world size, tile size, explored cell size, scene default token radius, owned ids. None of these is secret. It must not carry scene/entity counts or wall counts.
|
||||
- A token's radius and status entries (5.5, 5.6) go to every recipient who sees the token [FIXED, owner decision 2026-11-10, #4].
|
||||
- [FIXED, #14] Names and lists: no code path sends an actual name, a reveal state, or another player's character or encountered entry to a player, unless the rules in 8 allow it. Players learn a character only through a token they saw or controlled, or through their own encountered list. A character owner change never changes token controllers.
|
||||
|
||||
### 3.2 Authentication and invite secrets
|
||||
- Invite = 128-bit random secret from the OS CSPRNG (prototype: `urandom(16)`, hex). Link `https://host/join/<secret>`.
|
||||
@@ -151,6 +158,7 @@ Notes:
|
||||
| T13 | Player-controlled strings (token names, props) as XSS in DOM overlay | render with `textContent`, never `innerHTML`; CSP | new test |
|
||||
| T14 | Boundary ambiguity: token exactly on vision edge | documented epsilon; tests use 0.5 px tolerance [MEASURED] | leak test |
|
||||
| T15 | Backend reachable bypassing nginx (prototype nginx binds 0.0.0.0, `HANDOFF.md`) | Nim binds 127.0.0.1 only [MEASURED: prototype does], systemd `IPAddressAllow`, TLS at nginx | deploy check |
|
||||
| T16 | Name leak: actual name or reveal state of an unrevealed character/token, another player's character or encountered entry, or a browsable character list reaches a player | names and lists built per recipient at egress (8); no list-all message; encountered list is per player | fault classes `ACTUAL_NAME`, `CHAR_LIST` (10.3) |
|
||||
|
||||
---
|
||||
|
||||
@@ -159,8 +167,8 @@ Notes:
|
||||
### 4.1 State model
|
||||
Single process, in-memory authoritative state, SQLite as write-through persistence (loaded at start, never queried at runtime for reads).
|
||||
|
||||
- **World**: scenes; per scene: dimensions, tile config, grid, walls (per-scene stable id, never reused; see 8), entities.
|
||||
- **Players**: id, name, role (`gm`|`player`), colour; owned entities derive from `entity.owner`.
|
||||
- **World**: scenes; per scene: dimensions, tile config, grid, walls (per-scene stable id, never reused; see 8), entities (tokens). Characters, name reveals and encountered lists (8) are world state too.
|
||||
- **Players**: id, name, role (`gm`|`player`), colour; a player is a real person, not a character. Controlled tokens derive from `entity.owner` (token controller); owned characters from `character.owner`.
|
||||
- **Per-player runtime** (`Role` in prototype, renamed `PlayerState`): current vision polygons (one per owned entity with `vision` enabled), `ver` counter bumped on change, explored set, `fresh` cells added by the current mutation.
|
||||
- **Per-connection runtime**: `known` table (entity id -> last sent view), last-sent vision `ver`, per-connection counter, player id, role.
|
||||
- Prototype used fixed roles `gm`/`A`/`B`; real build uses player ids. Multiple connections per player are allowed and share the player's vision/explored (as prototype).
|
||||
@@ -224,8 +232,14 @@ session(id PK, player_id FK, token_hash, created_at, last_seen) -- never expir
|
||||
scene(id PK, name, w, h, tile_size, cell, grid_size, vision_radius_default, token_radius_default,
|
||||
art_version, active, next_wall_id, extra_json) -- next_wall_id: monotonic, §8 [FIXED, #3]; token_radius_default [FIXED, #4]
|
||||
wall(scene_id FK, id, ax, ay, bx, by, kind, open, flags, PRIMARY KEY(scene_id, id)) -- kind: wall|door|(later: window, one-way)
|
||||
entity(id TEXT PK, scene_id FK, kind, name, x, y, radius REAL NULL, owner_player_id NULL,
|
||||
gm_only, flags, props_public JSON, props_owner JSON, props_gm JSON)
|
||||
character(id PK, owner_player_id FK NOT NULL, descriptive_name, actual_name, reveal_all BOOL,
|
||||
props_public JSON, props_owner JSON, props_gm JSON) -- NOT NULL: exactly one owner; GM owns via the GM's player id [FIXED, #14]
|
||||
entity(id TEXT PK, scene_id FK, kind, character_id FK NULL, descriptive_name NULL, actual_name NULL, reveal_all BOOL,
|
||||
x, y, radius REAL NULL, owner_player_id NULL, -- token controller; NULL = GM-controlled; never copied from the character [FIXED, #14]
|
||||
gm_only, flags, props_public JSON, props_owner JSON, props_gm JSON) -- names NULL when character_id is set
|
||||
name_reveal(player_id FK, subject_id, PRIMARY KEY(player_id, subject_id)) -- subject = character or plain token id; per player [FIXED, #14]
|
||||
encountered(player_id FK, entity_id, character_id NULL, descriptive_name, actual_name NULL,
|
||||
PRIMARY KEY(player_id, entity_id)) -- snapshot, no FK cascade: survives token/character delete; never auto-removed [PROPOSED]
|
||||
entity_status(entity_id FK, status, source, PRIMARY KEY(entity_id, status, source)) -- status: stuck|squeezed; source: walls|GM [FIXED, #4]
|
||||
explored_chunk(player_id, scene_id, cx, cy, bits BLOB, PRIMARY KEY(player_id, scene_id, cx, cy))
|
||||
```
|
||||
@@ -328,6 +342,8 @@ Transport: one WebSocket per client at `/ws`, JSON text frames (prototype). Enve
|
||||
|
||||
### 6.1 Catalogue
|
||||
|
||||
Message names and fields for character CRUD, owner reassignment, token controller change, name reveals, the encountered list and its GM removal, and character data edits are deferred to "Message list" (#11) [FIXED, #14]. The rules they carry are in 3.1 and 8.
|
||||
|
||||
Client -> server (intents). Authority column: P = player, G = GM.
|
||||
|
||||
| t | fields (contract) | who | server behaviour |
|
||||
@@ -351,7 +367,7 @@ Server -> client.
|
||||
| `door` | `id, open` | GM only (players learn only via LOS changes) |
|
||||
| `vision` | `polys` (integer px, owned tokens only) | player |
|
||||
| `explored` | `cells` (full on connect, fresh cells after) | player |
|
||||
| `token` | `id, name, kind, pos, radius, mine, statuses` (list of `{status, source}`; 5.5, 5.6 [FIXED, #4]), visible props | per visibility |
|
||||
| `token` | `id, name` (the name this recipient may see, 8), `kind, pos, radius, mine, statuses` (list of `{status, source}`; 5.5, 5.6 [FIXED, #4]), visible props | per visibility |
|
||||
| `remove` | `id` (left LOS / deleted) | per visibility |
|
||||
| `moveAck` | `reqId, ok, pos` | sender only |
|
||||
| `error` | static `msg` code | sender only |
|
||||
@@ -431,10 +447,14 @@ All ids are server-assigned. **Walls [FIXED, owner decision 2026-11-10, #3]**: p
|
||||
- **Scene** (exactly one in v1, Q3): `id, name, w, h` (px), `tile_size` (32 default = `explored_cell` [FIXED, Q4]; 64 is the per-scene fallback), `explored_cell` (32 default; `tile_size % cell == 0` required, prototype assumes it silently), `grid_size`, `vision_radius_default`, `token_radius_default` (px, > 0, no upper cap [FIXED, #4]), `art_version`, `active`, free-form `extra`.
|
||||
- **Wall/Door**: `scene, id` (per-scene, see above), `a:[x,y], b:[x,y], kind ('wall'|'door'), open:bool, flags`. `blocks = not (door and open)`. GM-only everywhere. Later kinds (window, one-way, secret door) are extra `kind`/`flags` values; v1 geometry treats any non-open blocker identically.
|
||||
- **Entity (token and anything else) [PROPOSED, FFF seam]**:
|
||||
- `id` (random text, see above), `scene, kind` (free string: `pc`, `npc`, `item`...), `name`, `pos`, `radius` (px, > 0, no upper cap; NULL = use scene `token_radius_default`; GM-only to set [FIXED, #4]; 5.6), `owner` (player id or null = GM-controlled), `gm_only`, `flags` (`vision`, `blocks_move`...), `vision_radius` (optional; per-entity numeric with scene default, Q7 FIXED; also the player step cap, 5.5), `statuses` (set of `(status, source)` entries; status `stuck`|`squeezed`, source `walls`|`GM`; locked while any entry exists; Q14, 5.5, #4).
|
||||
- `props`: three JSON objects by visibility bucket: `public` (anyone who sees the entity), `owner` (owner + GM), `gm` (GM only). Keys are strings, values JSON scalars/arrays/objects with a size cap. No hidden state beyond these buckets and `gm_only` in v1 [FIXED, Q19].
|
||||
- `id` (random text, see above), `scene, kind` (free string: `pc`, `npc`, `item`...), `character_id` (NULL = plain token, e.g. monster or item; else the character it figures), `descriptive_name`, `actual_name` (plain tokens only; a character's tokens use the character's names), `pos`, `radius` (px, > 0, no upper cap; NULL = use scene `token_radius_default`; GM-only to set [FIXED, #4]; 5.6), `owner` = token controller (player id or null = GM-controlled; independent of the character's owner, 8), `gm_only`, `flags` (`vision`, `blocks_move`...), `vision_radius` (optional; per-entity numeric with scene default, Q7 FIXED; also the player step cap, 5.5), `statuses` (set of `(status, source)` entries; status `stuck`|`squeezed`, source `walls`|`GM`; locked while any entry exists; Q14, 5.5, #4).
|
||||
- `props`: three JSON objects by visibility bucket: `public` (anyone who sees the entity), `owner` (token controller + GM), `gm` (GM only). Keys are strings, values JSON scalars/arrays/objects with a size cap. No hidden state beyond these buckets and `gm_only` in v1 [FIXED, Q19].
|
||||
- The server never interprets props in v1 except via a registered property schema (type, bucket, writable-by) used for validation and for FFF later.
|
||||
- **Player**: `id, name, role (gm|player), colour`. Exactly one GM.
|
||||
- **Character [FIXED, owner decision 2026-11-10, #14]**: own record, separate from tokens. Fields (indicative): `id` (random, same format as token ids), `owner` (exactly one player id; the GM is a player, so GM ownership = the GM's player id; the GM reassigns), `descriptive_name`, `actual_name` (names rule below), `reveal_all`, `props` (three buckets, identity/base values). A character has any number of tokens in any scene. A new token for a character starts controlled by the character's owner; the GM may change it. Changing a character's owner never changes its tokens' controllers (GM adjusts by hand). Rejected: token controller derived from character; auto-follow on reassignment; all data on the token (duplicated stats); all data on the character.
|
||||
- **Character props vs token props [FIXED, #14]**: the character holds who the figure is (identity, base values); the token holds what is happening to that figure (damage, conditions, scene effects). Plain tokens (monsters, items) keep their own data. Both use the three buckets: `owner` for a character = character owner + GM; for a token = token controller + GM. The server stores both and never interprets them; FFF decides the split (9). A recipient's view of a token is built from its own props and its character's props, each under its own bucket rule [PROPOSED].
|
||||
- **Names [FIXED, #14]**: every character and every plain token has a `descriptive_name` (e.g. "a grumpy man") and an `actual_name` (e.g. "Lord Vex"). Players see the descriptive name until the GM reveals the actual name to that player; the GM can also reveal to all at once (`reveal_all`). The owner of a character always sees its actual name. A character's tokens use the character's names, so one reveal covers all of them. Applies to player characters too (introductions). Reveals are not revoked when ownership changes [PROPOSED].
|
||||
- **Encountered list [FIXED, #14]**: per player, every token that the player's controlled tokens have ever seen, shown under the name that player knows. Out of sight: greyed ("met before, whereabouts unknown"). `gm_only` tokens never enter it. Entries are never removed automatically (not on token removal or scene change); only the GM removes an entry for a player. Server tracks and persists it. No browsable list of all characters for players. Not the player roster (Q9 lists players only).
|
||||
- **Player**: `id, name, role (gm|player), colour`. Exactly one GM. A player is a real person who joins via an invite link; not a character. A player may own several characters.
|
||||
- **Invite**: `id, player_id, secret (plaintext, re-copyable by GM, Q11 FIXED), created, revoked, used`.
|
||||
- **Session**: `id, player_id, token_hash, created, last_seen`; never expires (Q10 FIXED).
|
||||
- **Explored grid**: per `(player, scene)`, strictly per player (Q9 FIXED): bitset over `ceil(w/cell) x ceil(h/cell)` cells; persisted as chunked bitmaps (4.4). Only grows. Players with no vision-enabled entity have an empty grid.
|
||||
@@ -449,7 +469,7 @@ Prototype entity (for mapping): `Tok{id,name,kind,pos,gmOnly}` + `tokenRadius` g
|
||||
|
||||
Principle: v1 has no rules, but every state change already flows through a validated mutation with a recipient-aware view, and entities already carry bucketed properties. FFF later adds **interpretation**, not new plumbing.
|
||||
|
||||
- **Entities with properties**: FFF characters, monsters, items are entities with `props` in the three buckets. FFF decides which keys live where; the VTT enforces the bucket on egress.
|
||||
- **Characters and tokens with properties**: FFF characters are character records (8); monsters and items are plain tokens. Both carry `props` in the three buckets. FFF decides which keys live where (token state vs character identity and base values); the VTT enforces the bucket on egress and never interprets the values.
|
||||
- **Action hook** (server side): the reserved `act` intent carries `actor, action, args`. Handling = `rules.handle(world, actor, action, args) -> list of mutations | error`. Mutations are the same primitive set the pipeline already validates (set prop, move, create/remove entity, emit event). Hook output is validated like any client intent; FFF cannot bypass the egress filter.
|
||||
- **Events**: `event{kind, data}` server->client messages with per-recipient filtering (e.g. roll results visible to all, GM-only whispers). Not implemented in v1; message type name reserved.
|
||||
- **Schema registry**: `property schema` (key, type, bucket, writable-by role, default) registered by the rules module; v1 ships an empty/default registry.
|
||||
@@ -482,7 +502,8 @@ Principles carried from the prototype: the checker must be independent of the co
|
||||
- Leak checker oracle initially only checked "nothing extra", not "everything visible shows"; completeness check is kept (assert (b)).
|
||||
|
||||
### 10.3 New
|
||||
- **Fault classes** for new data: `GMONLY_TOKEN`, `OWNER_PROP`, `GM_PROP`, `GLOBAL_COUNTER` (gseq side channel), `WALL_DELTA` (wall.add reaches player), `INVITE_IN_LOG`. Each with an injected fault and exact-class assertion, same as existing.
|
||||
- **Fault classes** for new data: `GMONLY_TOKEN`, `OWNER_PROP`, `GM_PROP`, `GLOBAL_COUNTER` (gseq side channel), `WALL_DELTA` (wall.add reaches player), `INVITE_IN_LOG`, `CHAR_OWNER_PROP`, `ACTUAL_NAME`, `CHAR_LIST`, `CONTROLLER_CHANGE` (#14). Each with an injected fault and exact-class assertion, same as existing.
|
||||
- **Characters and names (#14)**: tests for reveal per player and reveal to all; owner sees own actual name; character owner change leaves token controllers unchanged; encountered entries survive token removal and scene change and are removed only by the GM; `gm_only` tokens never enter an encountered list. Fault classes: `ACTUAL_NAME` = unrevealed actual name sent to a player; `CHAR_LIST` = another player's character or encountered entry sent; `CONTROLLER_CHANGE` = owner change altering controllers; `CHAR_OWNER_PROP` = character owner-bucket prop sent to a non-owner.
|
||||
- **Probing test (T8)**: M2, in-process against the move-rules module (5.5): arbitrary far moves; assertion: facts about walls/doors beyond LOS recoverable from replies <= a bounded amount (step cap), and uniform nack shape. M3: same test over WS with a hostile client (moved from M2).
|
||||
- **Auth tests**: invite revoke, one invite reused on several devices (Q10 FIXED), Origin mismatch rejected, cookie flags present.
|
||||
- **Protocol tests**: proto mismatch, unknown message type both directions, oversized frame, malformed JSON flood, rate limit.
|
||||
@@ -576,10 +597,10 @@ Each is small, ends with a green gate, and no milestone depends on browser UI be
|
||||
- Scope: scanline `cellsTouched`, differential + independent explored oracle tests, radius-bbox wall cull (spatial grid only if the 5k bench misses), capsule/swept move check and token-on-wall escape (5.5), step cap = effective vision radius (5.5), `blocked` flag with circle-overlap trigger and Set/Keep/Clear policy (5.5), GM moves ignore walls and step cap (and set/clear `blocked`), bench harness incl. 5k-wall scene, pure in-process move-rules module with unit tests. The WS/hostile-client harness is M3, not M2.
|
||||
- Accept: `visibilityPolygon` and `cellsTouched` equal the old implementation on the corpus (5.5); `moveBlocked` excluded (its results change on purpose); polygon+cells bench <= prototype (0.451 ms) on the prototype scene and polygon < 1 ms on the 5k-wall scene [targets PROPOSED]; in-process probing test passes; escape and capsule positive and negative unit tests pass; door-push tests pass (each side, centre on the line uses the previous side, other-side fallback for a blocking wall and for out of bounds, both invalid -> blocked and opening frees it, GM-owned token pushed, wall add still sticks); `blocked` tests pass (every Set/Keep/Clear rule of 5.5: overlap trigger, doorway, two overlapping walls, GM drop/move sets and clears, GM clear then escape, unrelated change does not re-block); mutations k (no Keep), l (GM moves do not set blocked), m (push to the wrong side), n (push skips the validity check) and o (previous side ignored) each fail >= 1 test; over-cap move gives the same nack as a blocked move; thresholds documented in the module header; oracle tolerance 0.5 px. The KNOWN LIMITATION test and the Q14 pin test are replaced with positive assertions and `blocked`-policy tests.
|
||||
- **M3 - Server core.**
|
||||
- Scope: entities with bucketed props, players, invites/sessions, scenes, chunked explored persistence, typed per-recipient views and single egress, per-connection counters, proto versioning, wall/entity CRUD intents, Origin check, plaintext invite secrets and non-expiring sessions (Q10, Q11), SQLite schema + migrations.
|
||||
- Accept: ported leak test (A and B) + fault test with the extended fault classes: all caught with exact class sets, clean build passes; restart test passes incl. CRUD; auth tests pass; no secrets in logs.
|
||||
- Scope: entities with bucketed props, characters with names, name reveal and encountered list (8, #14), players, invites/sessions, scenes, chunked explored persistence, typed per-recipient views and single egress, per-connection counters, proto versioning, wall/entity CRUD intents, Origin check, plaintext invite secrets and non-expiring sessions (Q10, Q11), SQLite schema + migrations.
|
||||
- Accept: ported leak test (A and B) + fault test with the extended fault classes: all caught with exact class sets, clean build passes; restart test passes incl. CRUD; auth tests pass; no secrets in logs; character and name tests pass (10.3, #14).
|
||||
- **M4 - Client v1.**
|
||||
- Scope: new `client/` dir (first real client build): Vite + TS + Pixi v8 client: layers, tiles, grid, tokens (BitmapText), fog textures, wall/door editor, token drag with prediction/rollback, DOM overlay, reconnect backoff, reducer tests; after the client port, archive `prototype-*` dirs (Q24).
|
||||
- Scope: new `client/` dir (first real client build): Vite + TS + Pixi v8 client: layers, tiles, grid, tokens (BitmapText), character list, encountered list (greyed), reveal buttons (#14 UI; server side in M3), fog textures, wall/door editor, token drag with prediction/rollback, DOM overlay, reconnect backoff, reducer tests; after the client port, archive `prototype-*` dirs (Q24).
|
||||
- Accept: headless e2e: fog pixel checks, player traffic audit clean, reconnect restores; manual run on laptop and Note 10 at 60 fps with 50 tokens, 16384 px map (tiled; PROPOSED test target, Q2), fog active.
|
||||
- Tile-size gates [FIXED, Q4]: (a) automated headless-Chromium test with mobile emulation (viewport, dpr, CPU + network throttle) against the real server path (nginx HTTP/2 + caching): viewport fills in < 1 s at zoom 1; (b) one manual run on the owner's 5-year-old Android phone (worst-case reference). If either fails: `tile_size` 64 px (per-scene config, no code change). The 2026-11-08 prototype phone run (`prototype-tile-leak/README.md`) is evidence, not the gate: HTTP/1.1, no-store, zoom 0.5 only, first cold load up to 3.3 s.
|
||||
- **M5 - Robustness and observability.**
|
||||
@@ -625,3 +646,5 @@ Each is small, ends with a green gate, and no milestone depends on browser UI be
|
||||
Owner also decided 2026-11-08 [FIXED (owner decision)]: restore drill belongs in M6 (sections 11.2, 13).
|
||||
|
||||
Owner also decided 2026-11-08 (M2): move rules, `blocked` trigger and GM move bypass are recorded in 5.5; M2 scope and accept criteria in 13.
|
||||
|
||||
Owner also decided 2026-11-10 [FIXED (owner decision), #14]: characters are separate records from tokens (one owner: a player or the GM; a token may link to one character; token controller is independent of the character owner); character holds identity, token holds the state of the figure; descriptive and actual names, revealed per player or to all; per-player encountered list, persisted, removed only by the GM; storage on the server only (SQLite). Character export/import as a file is future, not M3. See 3.1, 4.4, 8.
|
||||
|
||||
Reference in New Issue
Block a user