M4 client v1 — planning map #62

Open
opened 2026-11-20 22:29:19 +01:00 by SirStone · 3 comments
Owner

Map: M4 client v1

Destination

M4 (DESIGN §13 "Client v1") fully planned and cut into independently mergeable slices: a Vite + TS + PixiJS v8 browser client that signs in, shows the GM's map to players through the fog, supports token drag with prediction/rollback, the round-1 GM wall editor and the GM panels, reconnects cleanly, and passes the headless-browser + traffic-audit gates. The real-phone playtest (Note 10, 60 fps) stays a single human ticket at the end. Building happens after this map.

Notes

  • Source of truth: docs/DESIGN.md §7.1–7.5, §6.1–6.5, §3.1/§3.3, §13 M4; docs/TESTING.md §10.3 (browser e2e, traffic audit), §13; ADR-0012 (thick walls/heights after the phone playtest), ADR-0013 (player min zoom 0.5); docs/ANALYSIS-review.md build list items 2, 6, 12 (before-M4) and 3, 4 (only if the 50-token fog benchmark misses); GLOSSARY.md.
  • Stack is FIXED in DESIGN (§2): mummy 0.4.8 server, PixiJS v8 client, Vite + TS, plain DOM overlay (no framework), Node 26 harnesses. Not reopened here.
  • Build-list "before-M4" items land first: 12 (nginx HTTP/2 + TLS test vhost, chromium in devbox) before the first browser e2e and the phone gate; 2 (sector-limited ray test) and 6 (session cache, explored bitmap, tile gate off the global lock) before the fog/tiles client work.
  • Item 13 (db_connector → thin sqlite3 binding) stays deferred; not M4.
  • Walls round 2 (#37/#45/#50/#41/#44) and #34 heartbeat are out of scope (ADR-0012; heartbeat → M5).
  • No pre-optimisation of vision (build items 3, 4) until the 50-token fog measurement says the miss is real.

Owner rules (ADHD — read first, every session)

  • Start with a 2–3 line recap: where we are on the map, which card, why it matters.
  • One question per message, plain words, a concrete example, always a recommendation; "yes" accepts it.
  • Small technical numbers (limits, sizes, rates, timeouts) are delegated to the agent: pick, record in the spec as FIXED (owner-delegated), mention in the recap. Ask only about things noticeable in play.

Decisions so far

  • 2026-11-20 — spec published (#63): M4 scope, stories, seams, tests and the draft ticket breakdown. Owner-delegated decisions recorded in the spec: build order 12 → e2e/phone, 2/6 → fog/tiles; item 13 deferred; wall editor omits thickness/position flip but authors every round-1 field; walls round 2 and #34 out; finish = automatable gates green, phone playtest a separate ready-for-human ticket.

Tickets

  • #63 — M4 client v1 — spec (ready-for-agent)
# Map: M4 client v1 ## Destination M4 (DESIGN §13 "Client v1") fully planned and cut into independently mergeable slices: a Vite + TS + PixiJS v8 browser client that signs in, shows the GM's map to players through the fog, supports token drag with prediction/rollback, the round-1 GM wall editor and the GM panels, reconnects cleanly, and passes the headless-browser + traffic-audit gates. The real-phone playtest (Note 10, 60 fps) stays a single human ticket at the end. Building happens after this map. ## Notes - Source of truth: `docs/DESIGN.md` §7.1–7.5, §6.1–6.5, §3.1/§3.3, §13 M4; `docs/TESTING.md` §10.3 (browser e2e, traffic audit), §13; ADR-0012 (thick walls/heights after the phone playtest), ADR-0013 (player min zoom 0.5); `docs/ANALYSIS-review.md` build list items 2, 6, 12 (before-M4) and 3, 4 (only if the 50-token fog benchmark misses); `GLOSSARY.md`. - Stack is FIXED in DESIGN (§2): mummy 0.4.8 server, PixiJS v8 client, Vite + TS, plain DOM overlay (no framework), Node 26 harnesses. Not reopened here. - Build-list "before-M4" items land first: 12 (nginx HTTP/2 + TLS test vhost, chromium in devbox) before the first browser e2e and the phone gate; 2 (sector-limited ray test) and 6 (session cache, explored bitmap, tile gate off the global lock) before the fog/tiles client work. - Item 13 (`db_connector` → thin sqlite3 binding) stays deferred; not M4. - Walls round 2 (#37/#45/#50/#41/#44) and #34 heartbeat are out of scope (ADR-0012; heartbeat → M5). - No pre-optimisation of vision (build items 3, 4) until the 50-token fog measurement says the miss is real. ## Owner rules (ADHD — read first, every session) - Start with a 2–3 line recap: where we are on the map, which card, why it matters. - One question per message, plain words, a concrete example, always a recommendation; "yes" accepts it. - Small technical numbers (limits, sizes, rates, timeouts) are delegated to the agent: pick, record in the spec as FIXED (owner-delegated), mention in the recap. Ask only about things noticeable in play. ## Decisions so far - 2026-11-20 — spec published (#63): M4 scope, stories, seams, tests and the draft ticket breakdown. Owner-delegated decisions recorded in the spec: build order 12 → e2e/phone, 2/6 → fog/tiles; item 13 deferred; wall editor omits thickness/position flip but authors every round-1 field; walls round 2 and #34 out; finish = automatable gates green, phone playtest a separate `ready-for-human` ticket. ## Tickets - [ ] #63 — M4 client v1 — spec (`ready-for-agent`)
SirStone added the wayfinder:map label 2026-11-20 22:29:19 +01:00
Author
Owner

Spec published: #63 (enhancement, ready-for-agent). It carries the 70 user stories, the FIXED (owner-delegated) 2026-11-20 decisions, the M4 ambiguity resolutions, the seams (client reducer, browser e2e over TLS/h2, independent player-traffic audit, existing server harnesses/bench) and the draft 14-ticket breakdown with a coverage table and file-disjoint lanes. No tickets created yet: next step is creating them from the spec.

Spec published: #63 (`enhancement`, `ready-for-agent`). It carries the 70 user stories, the FIXED (owner-delegated) 2026-11-20 decisions, the M4 ambiguity resolutions, the seams (client reducer, browser e2e over TLS/h2, independent player-traffic audit, existing server harnesses/bench) and the draft 14-ticket breakdown with a coverage table and file-disjoint lanes. No tickets created yet: next step is creating them from the spec.
Author
Owner

Status: built; awaiting human playtest #77.

M4 is implemented and merged (fcd9052), with every automatable gate green on the rebased tree:
devbox run test (159 Node + Nim), client-test 164, e2e 27/27, mutation 80/80, bench PASS,
fogbench PASS. The headless e2e covers join, fog pixel probes, drag/rollback and reconnect; the
independent player-browser traffic audit (client/e2e/audit.test.mjs) is clean and has a leaking-build
negative control. results/m4-fog-bench.md records 50 tokens on a 16384 px map (server move path
0.12-0.14 ms); the headless SwiftShader cadence is recorded but is not a phone number.

Task list is ticked except #77, which carries the full LAN/phone checklist. This spec and #62 close
only after #77 reports pass.

Status: **built; awaiting human playtest #77**. M4 is implemented and merged (`fcd9052`), with every automatable gate green on the rebased tree: `devbox run test` (159 Node + Nim), `client-test` 164, `e2e` 27/27, `mutation` 80/80, `bench` PASS, `fogbench` PASS. The headless e2e covers join, fog pixel probes, drag/rollback and reconnect; the independent player-browser traffic audit (`client/e2e/audit.test.mjs`) is clean and has a leaking-build negative control. `results/m4-fog-bench.md` records 50 tokens on a 16384 px map (server move path 0.12-0.14 ms); the headless SwiftShader cadence is recorded but is not a phone number. Task list is ticked except #77, which carries the full LAN/phone checklist. This spec and #62 close only after #77 reports pass.
Author
Owner

M4 built; all automatable gates green at 9c05bb1 (test 165, client-test 183, e2e 29, mutation 80/80 at fcd9052). Awaiting human real-phone playtest #77 (checklist: SirStone/FFF_vtt#77 (comment)). Follow-up GM UI gaps parked in #81 (needs-triage).

M4 built; all automatable gates green at 9c05bb1 (test 165, client-test 183, e2e 29, mutation 80/80 at fcd9052). Awaiting human real-phone playtest #77 (checklist: https://git.fossellini.top/SirStone/FFF_vtt/issues/77#issuecomment-2993). Follow-up GM UI gaps parked in #81 (needs-triage).
Sign in to join this conversation.