Zeal friends, invitations, lobby display and account QA -- 2026-10-13
Installer 1.24 / Ranked bundle v3.11

Implemented
-----------
Main-menu Options now contains Voice; keyboard navigation and F7 work.
Party Options also opens this submenu without leaving the existing duo.
An idle main menu says "Voice ready - enter Ranked to connect" instead of
"Voice disconnected". Connecting, reconnecting and device errors remain
separate states. Party speaker icons are tied to authenticated participant
identities: dim connecting, white connected, green speaking and red locally
muted. Peer icons also reflect per-player local mute. Remote private microphone
preferences are not advertised as if they were known.
Party Invite opens saved Zeal friends. Players can add registered usernames,
accept requests, decline/cancel requests, remove friends and invite a friend
to a duo. Both players must have Ranked open to receive an invitation.
Friendships and requests persist in the central account database. A request
can be sent while its recipient is offline. Invitations expire in 60 seconds.
Accepting an invitation joins the existing party and never exceeds two people.

Leaderboard is directly below Invite. It shows up to 50 registered players
who have completed five placements, with rank and committed Elo. The player's
own entry is highlighted. Names come from the registration database. Entries
refresh through a shared 20-second cache; an outage is shown as unavailable.

All 15 existing Obsidian badges are retained: III is lowest and I is highest
within each tier. The badge now updates in the same callback as the rank text.
The party panel shows the latest committed match gain/loss in Elo. This result
survives restarts and is backfilled from completed match audit records once.
Existing post-match result screens remain. Elo formulas were not changed.

Issues found and fixed
----------------------
* Wrongly typed account-proof JSON could throw through the native callback.
  Responses are validated; invalid proof fails closed without crashing.
* Leaving while lobby Open failed could retain the leaving flag indefinitely.
  Reset now clears lifecycle state so Ranked can be reopened immediately.
* Registration polling/notices could remain active after successful admission.
  Authentication cleanup suppresses stale notices in active Ranked play.
* Initial server admission could skip SetName when names already matched,
  leaving the native override unset until a later nickname update. The first
  admission now installs the override unconditionally.
* A legacy unpadded rating GUID and its padded record could crowd another
  player out of Top 50. Leaderboard deduplicates before filtering/limiting,
  using the same canonical-record precedence as the player's profile.
* Native UI testing caught Voice keyboard-order, leaderboard header alignment,
  friends loading/selection refresh, and delayed badge refresh issues. Fixed.
* The installer smoke fixture could dereference a null HTTP request after a
  cancelled probe disconnected. This was in the local test package server;
  its early-disconnect handling was corrected and the fixture rerun cleanly.

Verification
------------
Python: python -m unittest discover -s tests -q
72 tests ran: 63 passed; 9 optional SRTP voice checks skipped because pylibsrtp
was not installed in this Python environment. See python-tests.txt.
The voice service suite was then run in MS-02's actual SRTP environment:
11 passed, including all nine skipped cases above. See voice-relay-tests.txt.

New regression coverage includes persistent/offline friendships, spoofed
actor rejection, accepting only incoming requests, private recipient-bound
invitations, replay/expiry/decline/search/unfriend invalidation, concurrent
accepts never creating a third party member, rate limiting/idempotency, exact
committed win/loss/draw deltas, retry/restart/audit migration, canonical GUID
aliases, and a 300-account Top 50 fixture spanning multiple private batches.

Native build: MSVC x86 Release succeeded on the Windows 11 VM, using the pinned
IW4x base d1b175da1a25d31043246de103a702b206269e5a and the updated overlays.

Real Windows 11 IW4x client with isolated account/lobby/rating services:
* Authenticated with the client's actual key against a separate QA database.
* Accepted a friend request, removed the friend and sent a new friend request
  using the native menu; checked persistent backend state for each operation.
* Native outgoing invite accepted by the companion formed a two-person party.
* Companion outgoing invite appeared in the native client; native Accept
  formed the two-person party. The companion used the authenticated lobby API.
* A deliberately malformed proof response actually reached the native client;
  it stayed responsive and denied admission. A failing Open/Leave race then
  recovered immediately on retry.
* Opened Options > Voice with mouse and keyboard. Viewed the Top 50 list and
  scrolled to entry 50. Rendered Gold III, II and I with distinct badges and
  positive/negative latest Elo. These were isolated synthetic rating fixtures.

Party voice follow-up on the final Windows native build:
* Used an isolated SRTP relay on MS-02 and the authenticated API companion to
  deliver synthetic 440 Hz Opus frames. No user's microphone was recorded.
* Confirmed visible gray/white/red states and the green speaking tint in an
  actual client screenshot; a pixel check verified green beside QueueBuddy.
  The icon returned to white when transmission stopped. A read-only process
  probe independently confirmed the live per-player tint values.
* Used the engine's non-default foreground-color flag so shader items actually
  render their state tint. Setting a static flag alone did not apply it.
* Clicked Party Options > Voice and returned through both menus, then checked
  that the same two authenticated players remained in their party.
* Main-menu Voice shows the ready message before Ranked admission. The VM had
  a temporary null-backed USB playback device but no microphone; its missing-
  microphone message was preserved. Received 347 encrypted frames, rejected 0,
  concealed 0 at the sampled instant; output was 48 kHz and relay RTT was 3 ms.
  One output underrun was observed. This validates routing/indicators, not
  subjective quality or a glitch-free audio-performance benchmark.
* The Windows VM's automated keyboard acceptance used gpad_enabled=0. This
  follow-up did not exercise a physical controller. User settings were not
  changed to make that VM-only test work.
See voice-ui-stats.txt and the voice-*.png screenshots.
The user also confirmed that their own party indicator lit when they spoke
in the installed client. No audio was recorded for that confirmation.

Installer 1.24: real WinForms workflow fixture on Windows 11 passed and exited
0. Checked new install, repair, required DLL/menu/settings/class resources,
backups, existing player preferences, repeat repair, optional DLC completeness,
required-file failures blocking completion/launch, and cancellation. The DLL
and menu installed by the fixture were compared byte-for-byte with embedded
resources. Tests use a loopback package server and temporary game directories.
See installer-tests.txt. This is not a fresh Internet download of the full game.

MS-02: deployed account/friends, rating and lobby services, updated native DLL
and ranked_system.gsc. Backed up source, account/rating databases and game files
before replacement. Restarted the empty game server; ranked_system.gsc and
ranked_loadout.gsc loaded and executed successfully. Account, tunnel, game,
lobby, rating and both bridge services are active. Public /healthz returned
HTTP 200 with ok=true. No synthetic accounts/ratings were added to production.

Local Linux/Wine: installed the same final DLL/public menu, launched the user's
visible client. It entered the production party successfully and subsequently
logged a normal quit request; the final DLL remains installed for the next launch.
Windows QA client was closed, its public menu restored, and owned QA scheduled
tasks, isolated API services and temporary SSH forwards removed. The temporary
MS-02 voice QA service/proxy ports and VM USB audio device were also removed.

Limits
------
Native invitation tests used one real Windows game client plus an API
companion, not two independent native clients. No new eight-player match or
production rated result was created in this pass. Match settlement/delta
correctness was exercised in temporary databases; presentation used fixtures.
Prior eight-client, voice, bandwidth and balance evidence remains elsewhere
under docs/qa. This pass makes no new audio-quality or Internet-latency claim.
Game/lobby/voice still use the MS-02 LAN pool pending the VPS rollout.

Artifacts
---------
SHA256.json identifies the shipped native DLL, public menu, installer and
corresponding native-source archive. Screenshots contain isolated QA players.
The release ZIP includes project source, native corresponding source/licenses,
installer, public player files and a per-file checksum manifest.

Public deployment follow-up: see docs/SECURITY-ARCHITECTURE.txt for the
current trust boundaries and remaining launch hardening. Passing functional
QA does not certify the LAN test deployment for hostile public traffic.
