fix(multiplayer): validate queue response contract

This commit is contained in:
Josh Creek
2026-09-01 22:56:33 +01:00
parent fc3a7ea359
commit f7ab77dec5
3 changed files with 34 additions and 3 deletions
+2
View File
@@ -1611,6 +1611,8 @@ The proposal wire contract now matches the real API participant-object shape (`p
Proposal responses now require and normalize the contract's RFC3339 `expires_at`; malformed or missing expiry metadata fails closed while already-expired terminal proposals remain representable.
Queue responses now validate the complete published shape before projection: opaque ticket/player IDs, playlist and lifecycle enums, integral revision, and RFC3339 enqueue/expiry timestamps.
Signed MatchNet claims now also require exact JSON string/integer types for every identity, protocol, expiry, slot, team, and generation field; string-number coercion is rejected before canonical signature verification.
Presentation progress: a shared `Game/themes/cosmic_clash_theme.tres` now gives the menu, lobby, matchmaking, and settings surfaces consistent button, input, option, and label styling. The custom-font portion of `TODO.md` remains open until a distributable font asset is selected.