Commit Graph
75 Commits
Author SHA1 Message Date
SirStone e612db5826 server: auth schema, keys, sessions, connection registry (#17) 2026-11-14 22:13:04 +01:00
SirStone c89c8eab42 results: slice 1 test and mutation logs (#16) 2026-11-14 21:41:33 +01:00
SirStone 86e7ad397d design: record slice 1 decisions (#16) 2026-11-14 21:40:48 +01:00
SirStone a3c1ac36ef devbox: nodejs 26, sqlite, test runs Nim then Node (#16) 2026-11-14 21:40:44 +01:00
SirStone 65b8f0a148 tools: Node 26 harness base, smoke and ws-header checks (#16) 2026-11-14 21:40:44 +01:00
SirStone f376efdc39 server: config, migrations, redacted logging, /healthz entrypoint (#16) 2026-11-14 21:40:39 +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 809f219f42 results: regenerate mutation log (parallel run)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 19:19:58 +01:00
SirStoneandClaude Sonnet 5.5 8d3b77add4 mutation: parallel jobs in temp copies, per-mutation test files, FFF_MUTATION reduced iterations, trap cleanup, sleep inhibit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 19:19:58 +01:00
SirStoneandClaude Sonnet 5.5 dcb8efa422 results: regenerate test, mutation (a-o), bench logs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 19:03:26 +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 a29bb0bb46 moverules: door close pushes overlapped tokens aside (valid-side check, blocked only if no side valid); Push list; tests; mutations m-o
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:56:06 +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 Sonnet 5.5 0e67331b6c results: regenerate test, mutation (a-l), bench logs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:53:12 +01:00
SirStoneandClaude Sonnet 5.5 388e901541 moverules: blocked policy set/keep/clear (GM moves and placements set/clear, KEEP while any wall overlaps); tests; mutations k, l
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:47:39 +01:00
SirStoneandClaude Sonnet 5.5 0e0b1a6052 mutation: run all test files, add mutations e-j (scanline fill, escape crossing, GM bypass, capsule, step cap, blocked trigger); header limitations updated
Control passes; a-d still caught (1,2,2,1,1 expected tests), new e-j each caught. Logs regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:33:12 +01:00
SirStoneandClaude Sonnet 5.5 e0705a8533 bench: harness with synthetic 5k-wall scenes (devbox run bench), scenegen + tests
Targets met without a spatial grid: polygon+cells 0.048 ms (<= 0.451) on the prototype scene, polygon 0.083 ms
(< 1 ms) on 5k sparse. 5k dense stress layout reported (1.28 ms). Logs: results/bench.log, nimble-test.log.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 12:15:31 +01:00
SirStoneandClaude Sonnet 5.5 afe84f2add moverules: swept-circle move check, token-on-wall escape, blocked flag, step cap, GM bypass
Pure in-process module (server/moverules.nim, plain data, no IO) per DESIGN 5.5. Replaces moveBlocked tests
(ported at r=0), the KNOWN LIMITATION pin and the Q14 pin with positive escape/capsule assertions and
blocked-policy tests. tests/tprobing.nim: in-process T8 probing test with a concrete bound (stepCap + r).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 12:11:49 +01:00
SirStoneandClaude Sonnet 5.5 67fa96e23d geometry: scanline cellsTouched, differential + independent oracle tests, prototype corpus
cellsTouched is now a scanline over cell rows (prototype per-cell version kept test-only in
tests/refold.nim). Differential tests (random polygons, concave, grid-aligned) and a brute-force
explored oracle (0.5 px tolerance) cover it; regression corpus = prototype leak-run polygons.
moveBlocked leaves geometry.nim (replaced by server/moverules.nim next); geometry primitives exported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 12:08:21 +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
SirStoneandClaude Haiku 5.5 2cd0b1cd19 docs: Q4 resolved (32 px tiles), outbox lock invariant, cleanups — all §14 questions answered
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:49:21 +01:00
SirStoneandClaude Haiku 5.5 eb1b128668 prototype-tile-leak: phone run results (Android 10, Chrome 157)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:48:09 +01:00
SirStoneandClaude Sonnet 5.5 b091882d7d prototype-tile-leak: phone test page (Pixi tile-size client check)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 11:34:48 +01:00
SirStoneandClaude Sonnet 5.5 f28cb902e5 prototype-tile-leak: Q4 masked tiles vs cell-size tiles
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 11:22:44 +01:00
SirStoneandClaude Haiku 5.5 1078154b36 docs: record Q13 (bounded outbox) and Q20 (buildNimPackage) decisions
- 4.2 step 7: diff against known moves to flush time (outbox).
- 4.3 slow client: bounded per-client outbox, coalescing, Ping(seq)/Pong lag, no mummy patch.
- 6.1 ping row: lag is WS Ping/Pong, not app ping.
- 10.3 slow-client test expectations.
- 11.1 service: nix/package.nix + nix/module.nix + nix/lock.json; mummy tag 0.4.8.
- 12 H18, 13 M5/M6 scope and accept, 14 Q13/Q20 resolved.
- Status v0.3; mummy pin is tag 0.4.8 (fixes stale no-tags note).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:21:45 +01:00
SirStoneandClaude Haiku 5.5 9b3b154fc8 docs: add Q13/Q20 research notes
Q13: mummy slow WebSocket clients (pin 01deb1f), option analysis.
Q20: Nix packaging of the Nim server (buildNimPackage, nim_lk lock, NixOS module).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:21:19 +01:00
SirStoneandClaude Haiku 5.5 24fa9b25b8 docs: Q1 resolved, max 6 players in v1
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:14:54 +01:00
SirStoneandClaude Haiku 5.5 69704b9c29 docs: record owner decisions on §14 open questions
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 11:14:18 +01:00
SirStoneandClaude Haiku 5.5 b23993bcce chore: add .vscode IDE config
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 10:39:20 +01:00
SirStoneandClaude Haiku 5.5 efc72d6859 docs: DESIGN.md fixes after M1 (layout, test counts, Q14 pointers, token-on-wall limitation, refs)
- 13 M1: drop client/ and nix/ from M1 scope; client/ -> M4, nix/ -> M6 (Q20)
- 33 checks -> 33 test blocks / 98 checks ported, none dropped (5.2, 10.1, 13 M1)
- 5.4 and 12 H2: door closing on a token left open (Q14), with pinning test
- 5.4: token-on-wall limitation stated as code behaviour + KNOWN LIMITATION test; escape fix as PROPOSED item in 13 M2
- 5.1/5.2/5.3/5.4: prototype README/NOTES/HANDOFF refs repointed to tests and server/geometry.nim; prototype NOTES kept as bug/measurement evidence

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-08 10:24:12 +01:00
SirStoneandClaude Sonnet 5.5 8751b83ad8 tools/mutation.sh: temp-copy mutations a-d (d1/d2 = shared-vertex arms); logs results/mutation.log, nimble-test.log
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 10:09:20 +01:00
SirStoneandClaude Sonnet 5.5 b8d68cdb3a tests: shared-vertex both-arms test, door-closed-on-token pin (Q14), KNOWN LIMITATION token-on-wall pin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 10:08:26 +01:00
SirStoneandClaude Sonnet 5.5 547458c37e m1: devbox, nimble, layout; port geometry.nim and 33 tgeometry tests (98 checks)
Fixture tests/fixtures/scene.json copied from prototype data/; seed test no longer skips if missing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 10:06:58 +01:00
SirStoneandClaude Sonnet 5.5 daeadca9c2 docs: add DESIGN.md
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 10:06:07 +01:00
SirStoneandClaude Haiku 5.5 8ad7759665 prototype-server-vision: docs: fix shared-endpoint test comments, stale spike link, SLOW count; HANDOFF items
- tests/tgeometry.nim: shared-endpoint comments had hidden/visible sides inverted (ray y=10 at x=70; (70,9) hidden, (70,11) visible). Comments only.
- README: spike link -> results/spike/investigation.md
- investigation.md: base run 1 had three SLOW lines (gseq 136, 138, 152), not one
- HANDOFF: test gap (vertical-arm-only passes shared-endpoint test), timing instrumentation do-not-port, synchronous=NORMAL merged into existing item, caveats section

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-07 18:28:24 +01:00