What a finished Game keeps, and which guest identity owns it #348
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#352 How are guest games merged into an account?
amaurycoudr/chess-project
#347 Postgres on the VPS: a database per preview, or a schema per preview on a shared server?
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#346
Question
When a Game ends, what row is written (moves as a UCI line, start FEN, result, Draw reason, Resignation, timestamps, Room code?) and who are its two owners? A guest must be identifiable without an account — by Seat token, by a device identifier, or another id — so that "my games" works on this device, a guest can later claim the games into an account, and an Elo can be recomputed after the fact. Do Local games count?
Resolution
agreed), and Resignation. A Game cut short (restart mid-game, Room evicted, redeploy) is not stored.localStorage, sent as a header, never in a URL. It sits alongside the Seat token; ADR 0016 is unchanged, and whether the two secrets merge is left to the account ↔ Seat token ticket. If storage is cleared, the Guest's Games stay in the database but can no longer be claimed — accepted; accounts are the fix.w,bor none) and how it ended (checkmate,resignation, ordrawwith its reason); started and ended timestamps. No Room code (recycled, meaningless once the Room is gone) and nothing derived (SAN, Status come from replaying, as in ADR 0014).Left to the guest-history spec: how the server stores the Guest secret (hashed or not); what name "my games" shows for the opponent.
Glossary, to land with the spec (
GLOSSARY.md):mentioned in issue #352
mentioned in issue #346
mentioned in issue #347
marked this issue as related to #346
marked this issue as related to #347
marked this issue as related to #352
mentioned in commit
6ba8bbcfa7