game-gate: export verified numeric run telemetry #3483

Merged
leonida/mandy
MoonEyes merged 3 commits from kaoru-maki/mandy:codex/game-gate-telemetry-zip into main 2026-12-04 23:00:12 +00:00

Pull request successfully merged and closed

Contributor

Claimed in the coordination issue as GAME-GATE-NUMERIC-ZIP.

What changed

The opt-in --archive flag writes a verified run.zip next to the local summary. It exports generated numeric frame, Present, and memory CSVs using fixed columns and run-relative times. The staged archive is reopened and checked against its SHA-256 manifest before it replaces an earlier ZIP. If archiving fails, the summary and any previous verified ZIP are preserved.

Large exports can take less space in a ZIP when the inputs compress well. In a synthetic run with 12,000 generated frame samples and matching Present rows, the loose CSVs took 494,142 bytes. The complete ZIP, including checksums, took 65,026 bytes (86.8% smaller). In the one-sample fixture, the ZIP took 903 bytes versus 244 bytes for loose CSVs.

Validation

  • The synthetic CLI regression reproduced the failure on the base. With the patch, the opt-in export succeeds and leaves the summary bytes identical to a normal summary run.
  • The prepared Windows checks passed all 43 gate tests, 59 documentation checks, three line-ending checks, and four stdout-encoding checks. In the macOS rerun, 41 gate tests passed, the two PowerShell cases were skipped, and all three line-ending checks passed.
  • The project's no-game-data scanner passed for all three changed files. Related PR #3424 also changes tools/game_gate.py.

AI-assisted with OpenAI Codex (GPT-6), with independent read-only review by GPT-6.2 Sol.

Claimed in the coordination issue as [GAME-GATE-NUMERIC-ZIP](https://git.leonida.now/leonida/mandy/issues/3312#issuecomment-26267). ### What changed The opt-in `--archive` flag writes a verified `run.zip` next to the local summary. It exports generated numeric frame, Present, and memory CSVs using fixed columns and run-relative times. The staged archive is reopened and checked against its SHA-256 manifest before it replaces an earlier ZIP. If archiving fails, the summary and any previous verified ZIP are preserved. Large exports can take less space in a ZIP when the inputs compress well. In a synthetic run with 12,000 generated frame samples and matching Present rows, the loose CSVs took 494,142 bytes. The complete ZIP, including checksums, took 65,026 bytes (86.8% smaller). In the one-sample fixture, the ZIP took 903 bytes versus 244 bytes for loose CSVs. ### Validation - The synthetic CLI regression reproduced the failure on the base. With the patch, the opt-in export succeeds and leaves the summary bytes identical to a normal summary run. - The prepared Windows checks passed all 43 gate tests, 59 documentation checks, three line-ending checks, and four stdout-encoding checks. In the macOS rerun, 41 gate tests passed, the two PowerShell cases were skipped, and all three line-ending checks passed. - The project's no-game-data scanner passed for all three changed files. Related [PR #3424](https://git.leonida.now/leonida/mandy/pulls/3424) also changes `tools/game_gate.py`. AI-assisted with OpenAI Codex (GPT-6), with independent read-only review by GPT-6.2 Sol.
Add an opt-in ZIP of generated frame, Present and memory CSVs. Verify the SHA-256 manifest and each member before publishing the archive.

Exercise the export with synthetic telemetry and privacy canaries.

For large runs, the ZIP can use less storage than the same telemetry in loose CSV files when the samples compress well.
First-time contributor

Verification — Merge & Test Gate (Windows 11)

Tested PR head 08865702e merged cleanly onto main (f22b9fa64):

  • python -m unittest tests.test_game_gate — PASS (43 ran: 41 passed, 2 skipped, 0 failed)
  • git diff --check origin/main — PASS
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md — PASS
  • python -I scripts/check_no_game_data.py — PASS

Clean merge and all unit/repo checks pass. Ready for merge.

AI-assisted.

### Verification — Merge & Test Gate (Windows 11) Tested PR head `08865702e` merged cleanly onto `main` (`f22b9fa64`): - `python -m unittest tests.test_game_gate` — **PASS** (`43` ran: `41` passed, `2` skipped, `0` failed) - `git diff --check origin/main` — PASS - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` — PASS - `python -I scripts/check_no_game_data.py` — PASS Clean merge and all unit/repo checks pass. Ready for merge. AI-assisted.
Author
Contributor

Updated this branch to upstream main 0036195a72. The ZIP change is byte-for-byte identical.

  • The Windows game-gate suite passed all 44 tests on the updated tree, including its PowerShell cases. The archive CLI regression fails on plain main and passes on this branch.
  • The repository clean-room and diff checks passed.
  • A generated export with 220,000 telemetry rows occupied 6,817,976 bytes as loose CSV and 1,049,490 bytes as a verified ZIP including its manifest. A one-row export occupied 200 bytes as loose CSV and 877 bytes as a ZIP.

AI-assisted update with OpenAI Codex (GPT-6), independently reviewed with GPT-6.2 Sol.

Updated this branch to upstream main 0036195a72f8. The ZIP change is byte-for-byte identical. - The Windows game-gate suite passed all 44 tests on the updated tree, including its PowerShell cases. The archive CLI regression fails on plain main and passes on this branch. - The repository clean-room and diff checks passed. - A generated export with 220,000 telemetry rows occupied 6,817,976 bytes as loose CSV and 1,049,490 bytes as a verified ZIP including its manifest. A one-row export occupied 200 bytes as loose CSV and 877 bytes as a ZIP. AI-assisted update with OpenAI Codex (GPT-6), independently reviewed with GPT-6.2 Sol.
Member

Merged by Moon's agent on Moon's written authorization (two maintainers). Checked before merging: head merged with main and python -m pytest tests/test_game_gate.py (44 passed) on Windows 11, scripts/check_no_game_data.py clean on the changed files, and an ACCEPT from a separate reviewer agent that did not write the code. No GPU or game run needed: offline tool only.

Merged by Moon's agent on Moon's written authorization (two maintainers). Checked before merging: head merged with main and `python -m pytest tests/test_game_gate.py` (44 passed) on Windows 11, `scripts/check_no_game_data.py` clean on the changed files, and an ACCEPT from a separate reviewer agent that did not write the code. No GPU or game run needed: offline tool only.
Sign in to join this conversation.
No description provided.