IW4X-COMP Elo/menu integration: QA record, 2026-10-11 (America/Chicago)
====================================================================

Result: native smoke tests passed on BOTH Windows 11 and Linux/Wine.
This is an integration test build, not a claim that every multiplayer match
scenario or real-world skill calibration has been proven.

Native environments
-------------------
IW4x MP r5154 win-x86, build dated 2026-10-01; Bot Warfare v2.3.0.
Linux: ms-02, isolated Debian 13 Incus container iw4x-qa, Wine 10.
Windows: existing win11-dev VM; game at G:\IW4X on a separate 48 GiB QA disk.
The game package came from the existing repo installer's configured download.
Windows required the legacy DirectX runtime; the installer already handles it.
No live player database was read, migrated, reset or used by these tests.

Executed
--------
- Full repository GSC scripts compiled, linked and initialized in IW4x on both
  platforms. The repo really contains draft_system.gsc and Rebalancer.gsc;
  their calls were existing integrations, not invented standalone APIs.
- tests/native/elo_smoke.gsc ran in the actual IW4x VM: K boundaries, probability,
  compact ranks, signed/corrupt records, GUID ties and 120 native rounding cases.
- Actual GSC BEGIN -> file spool -> Python bridge -> HTTP -> SQLite -> reply
  parsing -> GSC/cache verification, followed by FINISH, on both platforms.
  Eight synthetic GUIDs ended at 1532 x 4 and 1468 x 4: total 12000, one game each.
- A deliberately unknown FINISH was rejected through that same native path.
  The GSC parser distinguished rejection from timeout; the bridge retained its
  .rejected payload. The log's expected rejection is part of this test.
- 15 Python service/bridge/menu tests passed locally and on Windows 11 with
  Python 3.13.7. Includes simultaneous commits, duplicate/conflicting results,
  overlapping player reservations, transaction rollback, restart/retry after
  lost acknowledgement, import validation, rejected-payload retention, and
  deterministic IWD packaging/input validation.
- 57 mocked GSC scenario/property groups; 98,415 integrated rounding-offset
  cases; 100,000 float32 cases; 19,683 conservation cases; 27,909 rank cases;
  1,500 mock settlements and 140,400 synthetic growth-simulation matches.
  These source-level tests are not native multiplayer sessions.
- Five edited GSC modules passed a separate IW5/PC grammar parser check. Native
  IW4x loading above supplies the actual linking/startup evidence.
- Main menu and Ranked panel rendered in the actual IW4x client via Wine and
  llvmpipe at 1280x800. Ranked opens; Back and Escape return to the main menu.
  Screenshots: qa/main-menu.png and qa/ranked-menu.png.
- Installer built successfully with Mono/C#. Embedded menu installation,
  backup of a differing IWD and repeated installation were exercised.
  One pre-existing compiler warning remains: unused variable 'ignored'.
- Python compilation and git diff --check passed.

Issues fixed during integration/native QA
----------------------------------------
- Old 50-start, five-placement and 1000-wide-rank copies in game UI/draft/bot.
- Placement projection exaggerating captain ratings. First pick now uses
  current MMR, so later cosmetic rank additions do not change pick order.
- Fabricated career W/L reconstructed from a ten-result mask; draws cannot be
  reconstructed as losses. Only actual recorded career counts are shown.
- Roster capture before all drafted players had loaded; capture now occurs at
  the pre-match release boundary. Continued rounds retain bot observation.
- Fixed 18-second lobby restart interrupting the actual postgame sequence.
- Duplicate watcher startup: this IW4x build invokes both main() and init().
- Unsupported menu-level disableColor in the backup and doubled centering
  offsets that put Ranked text outside the panel; corrected after rendering.
- Nonstandard rankedSearch/rankedCancel handlers replaced with stock lobby
  connect commands. No external matchmaking service is pretended to exist.
- Simultaneous VPS rating writers replaced by central transactions and durable,
  idempotent requests. Service caches cannot be written by GSC.

Still required before a public launch
------------------------------------
Run a real eight-human session covering draft/loading timeout, captain picks,
normal wins/draws, surrender, CTF halftime, one-flag round restart, disconnect /
reconnect, spawn-out, fill-in, bot invalidation and visible rank screens.
The native smoke uses synthetic GUIDs; it does NOT replace that session.
Do an outage/restart rehearsal with actual games and the chosen VPS network.
The menu's live server join targets were not contacted during QA. Replace the
old installer addresses in client_menu/servers.json when the VPSs are rented,
then rebuild the IWD/installer and test those destinations.

Elo is centralized. Existing Discord linking markers, status, parties, remote
process control and career K/D/W/L still need their own deployment arrangement
across VPSs. See RATINGS.txt; shared Elo does not make those older file protocols
a distributed bot system automatically.

No parameters can be called provably optimal for this community without real
match data. The checks establish conservation, rounding behavior, recovery and
native execution. Assess skill prediction after launch with rotating teams.

Artifacts/reproduction
----------------------
See RATINGS.txt for setup, migration choices, tokens, backups and recovery.
See tests/elo/README.txt for exact automated commands and scope.
qa-results.json records source hashes and extracted native test markers.
Generated menu: client_menu/z_cordite_menu.iwd.
Installer: installer/src/Planet Zeal Competitive Sniping IW4X Installer.exe.
The original Desktop menu backup and Downloads/elo_system.gsc were left intact;
deploy the integrated scripts/mp folder together from this checkout.
No changes were pushed to GitHub or deployed to public servers.

Balance follow-up, 2026-10-12
---------------------------
Requested 10,000-match experiment plus independent seeds and draft/equal-skill
controls: 110,000 unique synthetic matches using the production Python policy.
Point conservation passed; ten-game skill uncertainty and draft prediction
calibration remain limitations. See qa/elo-10000/REPORT.txt and comparison.png.
This was an offline mathematical experiment. No production constants changed.
