Public: anyone can read this; the crew can change it.

Migrated from github.com/Trevato/SO-ARM100

workbenchthis machine

Each anonymous /live viewer gets a stable guest name from src/guest-names.ts, keyed by an HttpOnly browser-id cookie - lobby and test only #362

Closed opened this
opened this

Rewritten from #292, piece 1 of 3. It wires the existing src/guest-names.ts into the lobby. The page does not change.

Done:

  • [ ] The page GET sets an HttpOnly; SameSite=Lax; Secure browser-id cookie (random, 128 bits) when it is absent. src/lobby.ts reads it on /live upgrade, validates its shape, and gives each anonymous socket a guest name and colour from guest-names.ts. Two browsers never hold one name at once, and a name is freed when its last socket closes.
  • [ ] The socket is told its own name once: {type:'you', guest:{name, colour}}.
  • [ ] Tests in src/lobby.test.ts: two anonymous sockets with different cookies get different names, the same cookie gets the same name after a reconnect, and a malformed cookie is treated as absent.
  • [ ] forge.json untouched, and bun --cwd Software/so101 test passes.
commented

Replaced by #370: the same work, without the blocker on #291 (closed as split) that this one inherited and that kept it parked. Dropping this one.

commented

Unstick note: this is parked only because it inherited the edge to #291, which was closed as split into #358 and #359. #358 is on main (97ab64b), and #359 is being built. The work as written still stands, and its real blockers are already named, so nothing about it needs to change. Planner edits cannot lift a park, so a person needs to clear it. Once that is done, #362 is ready now, and #363, #364 and #366 follow their named blockers.

commented

Re-planned as #396. Same scope. #362 waited on #291, which was split, so the map held it as parked; #396 waits on nothing.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs