results: rerun the slice 8 gates on the final tree (#23)

This commit is contained in:
2026-11-15 12:01:40 +01:00
parent dab7c77675
commit 74272c1e70
8 changed files with 3293 additions and 940 deletions
+43 -2
View File
@@ -15,6 +15,35 @@
... [OK] only the hash is stored; the token itself appears nowhere
... [OK] unknown hash gives no player; revoking one player leaves the other alone
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tcharacters (from package fff_vtt) using c backend
Nim Output [Suite] the name rule (DESIGN 8: one copy, used by every frame)
... [OK] an owner, a reveal_all and a per-player reveal each expose the actual name
... [OK] visibleName picks the name the recipient knows
... [OK] a character owner sees the actual name without any reveal row
... [OK] a linked token borrows the character's names, so one reveal covers all of them
... [OK] a plain token is nobody's character: only a reveal or reveal_all shows the actual name
... [OK] revealedPlayers lists the reveal rows of one subject, sorted
... [OK] player.remove takes that player's reveal rows with it
... [OK] one reveal row per (player, subject): a repeated reveal changes nothing
... [Suite] encountered snapshot (DESIGN 8: the name the player knows, frozen)
... [OK] a first sighting records what the player knows right now
... [OK] a rename follows the subject, and a player who was never told keeps not knowing
... [OK] a reveal fills in the actual name and leaves the rest alone
... [Suite] names and validation (6.5: 1..64 code points, trimmed, no control characters)
... [OK] a character needs two valid names and an owner
... [OK] a linked token carries no names of its own (they belong to the character)
... [OK] parseSubject accepts exactly the two wire words
... [Suite] persistence (write-through, restart-identical)
... [OK] create assigns an id from the shared namespace, stores every column, reloads identically
... [OK] the id namespace is shared with tokens: taken ids are never handed out again
... [OK] reveal_all and the props round-trip through a full replacement
... [OK] remove deletes the row; a second remove reports nothing
... [OK] a reveal row survives a reload and a repeated reveal
... [OK] encountered rows survive a reload, keep their NULL actual name, and replace per entry
... [OK] a character rename follows the snapshots of everyone who met it
... [OK] player.remove hands the player's characters to the GM (DESIGN 3.2)
... [OK] a character still figured by a token is in use (6.5)
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tconfig (from package fff_vtt) using c backend
Nim Output [Suite] config defaults
... [OK] defaults: dev origin, port 9000, state dir run
@@ -106,7 +135,7 @@
... [OK] restore: two players' explored never mix
... [OK] restore: an empty store restores nothing and a removed player takes its chunks
... [Suite] cost
... chunk write: avg 0.016 ms, p99 0.035 ms over 200 commits
... chunk write: avg 0.023 ms, p99 0.057 ms over 200 commits
... [OK] a mutation-scale chunk write stays inside the 4.3 commit budget
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tgeometry (from package fff_vtt) using c backend
@@ -350,7 +379,7 @@
... [OK] status helpers keep the entry set unique and ordered
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tviews (from package fff_vtt) using c backend
Nim Output /home/davide/Projects/GDR/FFF_vtt/tests/tviews.nim(6, 8) Warning: imported and not used: 'geometry' [UnusedImport]
Nim Output /home/davide/Projects/GDR/FFF_vtt/tests/tviews.nim(6, 20) Warning: imported and not used: 'geometry' [UnusedImport]
... [Suite] GM view (3.1: everything, with the GM-only extras)
... [OK] every token, in token order, with controller and both names
... [OK] a GM-controlled token shows controller null
@@ -379,6 +408,18 @@
... [OK] the controller is not told what caused a status either (5.5, 6.1 note 6)
... [OK] a prop change and a status change each reach a viewer as one `token` frame
... [OK] a radius change reaches every viewer as the effective radius
... [Suite] characters in the egress (3.1, 6.1, 8)
... [OK] the GM gets every character with owner, reveal_all, revealed and all three buckets
... [OK] a player gets only its own characters, without owner, reveal_all or revealed
... [OK] a reassignment withdraws the record from the old owner and sends it to the new one
... [OK] a linked token's name follows the character, and the owner sees the actual one
... [OK] cprops carries the character's public bucket to a non-owner, and never the owner bucket
... [OK] a player sees the actual name only when the GM revealed it to them (8)
... [Suite] the encountered list (8)
... [OK] a resync sends the whole list, then only what changed, then what was removed
... [OK] an entry for a token that is gone (or out of view) is grey
... [OK] the GM gets one list per player, tagged with the player id
... [OK] a player never receives another player's list
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tvision (from package fff_vtt) using c backend
Nim Output [Suite] polygons (5.1: one per controlled token with the `vision` flag)