# Static Riot — operator fairness and RGS assurance pack

**Internal evidence reviewed 26 November 2026.** Applies to the three developer-credit evaluation games: Outlaw's Go Wild, Dracula's Lair and Poseidon's Fall. This internal evidence pack is separate from Static Riot's [eCOGRA certification statement](/certification); it is not itself a certificate, jurisdictional approval, or an assertion that real-money wallet integration is live.

## 1. Provably fair evaluation rounds

New RGS sessions accept a player/operator-chosen `clientSeed` (1–128 UTF-8 bytes, no control characters) on `POST /api/integration/v1/sessions`. The server generates a fresh 32-byte secret with Web Crypto, stores it in D1, and returns `serverSeedHash = SHA-256(serverSeed bytes)` **before** any wager. If `clientSeed` is omitted, the public default `static-riot-default` is used. A reviewer should record the commitment and client seed before playing. Existing sessions and older receipts are labeled `legacy-unverifiable`; their outcomes are never retroactively described as provably fair.

The nonce is the session's next immutable round sequence, starting at 1. For each draw the RGS calculates `HMAC-SHA256(key = serverSeed bytes, message = UTF-8(JSON.stringify(["sr-hmac-sha256-v1", clientSeed, nonce, counter])))`, with counter starting at 0 and increasing for each draw. The first 53 bits of the digest form a uniform integer divided by 2^53. That draw feeds the same frozen game-model sampler as before; game paytables, selections, caps and 98% targets are not altered. A settled receipt contains the game, model, client seed, server-seed hash, nonce, exact cent debit/credit and SHA-256 hash of `JSON.stringify(result)`. One idempotency key always replays the saved result.

The seed remains secret during an active session. The Outlaw and Dracula round-replay panel displays the client seed, nonce and commitment, and its export includes the exact result without credentials or the unrevealed server seed. `DELETE /api/integration/v1/sessions/{id}` closes a developer session; after closure or expiry, session and round responses reveal the server seed. Poseidon round evidence is available from the same RGS API. Verify the hash against the commitment recorded before wagering, replay the versioned game model with the seed/client seed/nonce, compare the complete result and hash, then reconcile cents. The downloadable kit includes `scripts/verify-fairness.mjs`: run `node scripts/verify-fairness.mjs round.json` on a **closed-session** `{receipt,result}` response. It fails closed on any mismatch. A prior commitment record matters: a hash first seen after the spin cannot establish pre-commitment. The scheme also cannot prevent a server from declining a wager before settlement or prove independent seed custody. Those risks need operator controls and external review.

The public [browser round verifier](/verify-fairness) runs the same replay model entirely on the visitor's device. It requires a separately recorded pre-spin commitment and client seed as well as the closed-session `{receipt,result}` JSON. It does not upload the receipt or seed. The CLI in the integration kit remains available for independent offline use.

### Minimal API example

```json
{"game":"outlaw","currency":"EUR","environment":"sandbox","funds":"developer_credits","clientSeed":"operator-chosen-2026-11-25"}
```

Use a unique `Idempotency-Key` on creation and on every spin. Retain the same key and exact JSON body for retries.

## 2. RNG statistical evidence

`scripts/operator-rng-evidence.mjs` generates a fixed **100,000,000-byte** vector from the v1 HMAC-SHA256 digest stream, before its 53-bit conversion to game draws. This is exactly **800 complete 1,000,000-bit sequences**. The private binary sample has SHA-256 `01a860a0bbb045762a3bdce11d5001fc96d0f105728e3bbe43d8c19170597cc1`. The original JavaScript generator and independent Python and C/OpenSSL generators matched over those 100 million bytes. The public `operator-rng-report.json` provides the fixed audit seed, construction, sample size, checksum and suite results. The elementary one-bit fraction **0.50003905** and byte chi-square **241.77336832** are separate smoke checks, not substitutes for either suite.

The official NIST STS 2.1.2 source, archive SHA-256 `0238d2f1d26e120e3cc748ed2d4c674cdc636de37fc4027c76cc2a394fff9157`, was compiled and run in Ubuntu WSL with all 15 tests, default parameters, binary input, and 800 sequences of 1,000,000 bits. **All 188 reported rows met the suite's thresholds; no row was flagged.** The lowest p-value uniformity was **0.013217**, above the report threshold **0.0001**. The lowest applicable passing counts were **784/800** against the report minimum **783/800**, and **482/490** for excursion rows against **478/490**. The public final analysis has only its local generator path redacted; numerical results are unchanged. Full per-test output is downloadable from `/rng-audit`.

Dieharder `3.31.1.4-1.1build3` consumed a continuous stream of the same raw HMAC construction through binary stdin (`dieharder -a -g 200`), without recycling a finite file. Its full run recorded **113 PASSED, 1 WEAK, 0 FAILED**. The weak result was four-dimensional RGB minimum distance at p = **0.00330780**. A targeted repeat with an independent audit seed and the same test settings passed at p = **0.69039830**. We retain the weak row in the public full log. [Dieharder's manual](https://manpages.ubuntu.com/manpages/focal/man1/dieharder.1.html) notes that isolated weak p-values can occur in long runs. This evidence is consistent with the expected statistical behavior of the raw HMAC stream; it does not indicate a need to replace the RNG algorithm.

These tests do **not** establish the entropy or custody of fresh production server seeds, correctness of outcome mapping, game RTP, wallet behavior, or independent certification. The raw sample and unrevealed production seeds remain private. Read the public summary and download the complete reports at [RNG audit](/rng-audit).

References: [NIST SP 800-22 Rev. 1a](https://csrc.nist.gov/pubs/sp/800/22/r1/upd1/final), [NIST software](https://csrc.nist.gov/projects/random-bit-generation/documentation-and-software), [Dieharder manual](https://manpages.ubuntu.com/manpages/focal/man1/dieharder.1.html).

## 3. Game math and 100-million-round PAR evidence

The game models retain an internally calculated **98% theoretical RTP**, at their permitted stakes. Outlaw and Dracula use a 6×5 Cluster Pays grid with three buys (120×, 240×, 1,000×). Poseidon uses a 5×4, 14-line non-cascade grid with two buys (120×, 240×). All three have a **10,000× base-bet complete-round cap**. Bonus Hunt costs 3× and has a modeled natural-entry frequency of 5/256 versus 1/256 in standard base play. These figures describe the published evaluation models; the applicable certified release figures belong in the operator certification documents.

The companion `operator-par.pdf` and `operator-math-simulation.json` report one **100,000,000-round base-game sample per title**, including natural bonuses and cent settlement. The samples are independent weighted complete-round outcome draws from frozen catalogue components, not 100 million full reel renderings, HTTP requests or wallet callbacks. The calculation is reproducible with `node scripts/operator-math-simulation.mjs`. Observed base-game RTP was **98.08173967%** for Outlaw, **97.94453676%** for Dracula and **97.9407818%** for Poseidon. The JSON includes hit rate, volatility as standard deviation of win in base-bet units, observed maximum, natural bonus count, simulation seed, 95% approximate interval and source SHA-256 hashes. Convergence is evidence consistent with the internal target; it cannot prove the mathematical expectation, especially for rare tails. Poseidon's 100-million sample did not observe its configured 10,000× cap.

## 4. RGS API, wallet and failover

The evaluation RGS currently uses **EUR developer credits only**. It has no live operator wallet callback, redeemable player balance, real-money launch, or production release-to-certificate mapping in its sandbox responses. The standalone mock wallet lab exercises debit, payout, rollback, delayed response and retry faults; its protocol is not an operator's approved integration contract.

For evaluation wagers, the server selects the entire round and settles a single immutable D1 ledger row before animation. The `INSERT ... SELECT` reads the latest balance under SQLite's write lock; a validation trigger refuses stale, closed or underfunded sessions, and an after-insert trigger updates balance and sequence in the same transaction. A repeated idempotency key with identical body returns the original result; a changed body gets `409`. A lost HTTP response is **uncertain**, never an assumed failed wager. Reuse the same key, or read `/sessions/{id}/rounds/by-key`, then call `/sessions/{id}/reconciliation`. A browser crash mid-animation resumes from the settled receipt; it cannot create half of a free-spin round. Encrypted backup and isolated restore drills include the fairness seed columns; restore closes active sessions before use and verifies immutable receipt/accounting records. Old receipts remain labeled unverifiable.

For a real-money operator adapter, agree its exact wallet contract first. The design needs stable partner transaction IDs tied one-to-one to RGS round IDs; signed/authenticated debit, credit, status and rollback callbacks; persistent pending/committed/failed states; bounded retries; duplicate and out-of-order response handling; a reconciliation queue; and a tested rule for crash recovery after a debit but before credit. The contract must define when a rollback is legal and who owns a disputed settled round. **This adapter is not deployed**, and the evaluation API cannot be presented as a production wallet integration. Partner staging tests, capacity/failover tests, certified release mapping and any market-specific acceptance remain release prerequisites.

See `integration-guide.md`, `openapi.json`, `operator-rgs-failover.pdf`, and the wallet-lab report for detailed endpoints and fault scenarios.
