M4: GM characters, reveals and who-sees-it #75

Closed
opened 2026-11-20 22:31:45 +01:00 by SirStone · 1 comment
Owner

Part of #63

Goal

Character CRUD/assignment, reveal to one/all, encountered remove, who-sees-it panel with the GM-only seen_by field.

Acceptance criteria

  • Server seen_by additive and GM-only, banned for players in the leak checker
  • Panel lists seeing players per token (0/100)
  • Reveal updates the player's name in e2e
  • Encountered remove
  • Character owner change does not move token controllers
  • DESIGN 6.1/7.4 updated
  • Standing gate: full devbox run test green on a clean checkout, no test weakened or skipped, and the behaviour above proven at the seam(s) listed under "Proven at".

User stories covered

  • 35 — As a GM, I want to see which players see each token, so that I can adjudicate hiding and revealing.
  • 58 — As a GM, I want to create characters and give them to players, so that every player has their own record.
  • 59 — As a GM, I want to reveal an actual name to one player or to all, so that names are discovered in play.
  • 60 — As a GM, I want to remove an encountered entry, so that I control what a player remembers.

Proven at

server views/egress + leakcheck, GM panels; e2e

Notes

  • Size: M (about one agent session, ~100K tokens). Lane: G (panels, after T11).
Part of #63 ## Goal Character CRUD/assignment, reveal to one/all, encountered remove, who-sees-it panel with the GM-only `seen_by` field. ## Acceptance criteria - [ ] Server `seen_by` additive and GM-only, banned for players in the leak checker - [ ] Panel lists seeing players per token (0/100) - [ ] Reveal updates the player's name in e2e - [ ] Encountered remove - [ ] Character owner change does not move token controllers - [ ] DESIGN 6.1/7.4 updated - [ ] Standing gate: full `devbox run test` green on a clean checkout, no test weakened or skipped, and the behaviour above proven at the seam(s) listed under "Proven at". ## User stories covered - 35 — As a GM, I want to see which players see each token, so that I can adjudicate hiding and revealing. - 58 — As a GM, I want to create characters and give them to players, so that every player has their own record. - 59 — As a GM, I want to reveal an actual name to one player or to all, so that names are discovered in play. - 60 — As a GM, I want to remove an encountered entry, so that I control what a player remembers. ## Proven at server views/egress + leakcheck, GM panels; e2e ## Notes - Size: M (about one agent session, ~100K tokens). Lane: G (panels, after T11).
SirStone added the ready-for-agentenhancement labels 2026-11-20 22:31:45 +01:00
SirStone added a new dependency 2026-11-20 22:31:46 +01:00
SirStone added a new dependency 2026-11-20 22:31:46 +01:00
SirStone added a new dependency 2026-11-20 22:31:46 +01:00
Author
Owner

Implemented and pushed to main (0323fbd).

  • Server: GM token frames gain additive, GM-only seen_by:[player ids], computed from each player’s existing sight (PlayerVision.visibleTo, no extra polygon pass). proto stays 2 per DESIGN 6.2 (recorded). Bench run: GM egress 0.218 ms.
  • Leak checker: seen_by added to BannedAlways; positive-control seenBy fault caught as exactly WALLDATA.
  • Client: new slices/cast.ts (character/encountered/seen_by state) and panels/gmcast.ts (character create/rename/assign/remove, reveal to one/all, encountered Forget for grey entries, who-sees-it 0/100), mounted beside the #74 panel.
  • E2E: client/e2e/characters.test.mjs proves reveal updates the player name, encountered remove reaches the player wire, owner change leaves token controllers untouched, who-sees-it shows 100/0, and seen_by never reaches a player.
  • Docs: DESIGN 5.9/6.1/6.2/7.4 updated.
  • Gates: devbox run test (159 Node + Nim), devbox run client-test (97), devbox run e2e (11) green on the rebased tree; scratch results/ reverted.
Implemented and pushed to main (0323fbd). - **Server:** GM `token` frames gain additive, GM-only `seen_by:[player ids]`, computed from each player’s existing sight (`PlayerVision.visibleTo`, no extra polygon pass). `proto` stays 2 per DESIGN 6.2 (recorded). Bench run: GM egress 0.218 ms. - **Leak checker:** `seen_by` added to `BannedAlways`; positive-control `seenBy` fault caught as exactly `WALLDATA`. - **Client:** new `slices/cast.ts` (character/encountered/seen_by state) and `panels/gmcast.ts` (character create/rename/assign/remove, reveal to one/all, encountered Forget for grey entries, who-sees-it 0/100), mounted beside the #74 panel. - **E2E:** `client/e2e/characters.test.mjs` proves reveal updates the player name, encountered remove reaches the player wire, owner change leaves token controllers untouched, who-sees-it shows 100/0, and `seen_by` never reaches a player. - **Docs:** DESIGN 5.9/6.1/6.2/7.4 updated. - **Gates:** `devbox run test` (159 Node + Nim), `devbox run client-test` (97), `devbox run e2e` (11) green on the rebased tree; scratch `results/` reverted.
Sign in to join this conversation.