Iter 28: Add end-to-end in-world verification and A/B regression suite #13

Manually merged
github merged 3 commits from gh-pr/13/head into gh-pr/13/base 2026-12-01 20:02:01 +00:00
Owner

@⁠Androtim on GitHub · 2026-11-28 04:20 UTC · original
Androtim:feat/iter28-in-world-verification-suite → main · +1263 −0 · 4 files · 3 commits · merged 2026-11-28 13:16 UTC

Summary

Replaces menu-only boot checks with a real end-to-end 3D open-world verification and A/B regression gate (scripts/verify-world.ps1 + scripts/analyze-world-run.py + scripts/test_analyze_world_run.py).

Previously, smoke testing only checked draws/frame >= 10 (main menu) and missed severe in-world regressions (e.g., VICTORY_LEVELS_ON_DEMAND=1 creating

**@⁠Androtim** on GitHub · 2026-11-28 04:20 UTC · [original](https://github.com/Androtim/MiniVI/pull/13) `Androtim:feat/iter28-in-world-verification-suite` → `main` · +1263 −0 · 4 files · 3 commits · merged 2026-11-28 13:16 UTC ## Summary Replaces menu-only boot checks with a real **end-to-end 3D open-world verification and A/B regression gate** (scripts/verify-world.ps1 + scripts/analyze-world-run.py + scripts/test_analyze_world_run.py). Previously, smoke testing only checked draws/frame >= 10 (main menu) and missed severe in-world regressions (e.g., VICTORY_LEVELS_ON_DEMAND=1 creating
- Add scripts/analyze-world-run.py (pure stdlib): parses real 3D world telemetry (draws >= 500), card VRAM accounting, levels-on-demand count, MakeResident/mapped() stall rates, and captured world PNG visual metrics (BT.709 luminance, near-black %, edge energy, saturation, magenta/cyan NaN corruption) with hard PASS/FAIL and A/B regression gates
- Add scripts/verify-world.ps1: isolated golden-save sandbox runner matching play.rs baseline with world-frame PNG capture and hard analyzer gating
- Add scripts/test_analyze_world_run.py unittest suite and ignore __pycache__/*.pyc
- Replace WScript.Shell::SendKeys with VICTORY_KEYS_FILE (Enter 0.3) in scripts/verify-world.ps1 so menu/account selection advances without window focus
- Skip decoding before-world menu PNGs when 3D world was never reached and subsample to <=24 world PNGs in scripts/analyze-world-run.py
- Add regression test test_skips_preworld_pngs_when_world_never_reached
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:01:59 +00:00
github manually merged commit 911954d39e into gh-pr/13/base 2026-12-01 20:02:01 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 04:25 UTC · original

Verification summary for @4e1c135 (feat/iter28-in-world-verification-suite):

  • GitHub Actions CI (46107084619): success in 4m41s (Clippy, Clippy, diagnostics build, Tests)
  • Open PR Mergeability (Androtim/MiniVI): PRs #1–#13 all report MERGEABLE
  • Local Verification:
    • python -m unittest -v scripts/test_analyze_world_run.py: 4 tests, OK
    • PowerShell AST check on scripts/verify-world.ps1: ps1_parse_errors=0
    • Historical real playtest log check (playtest-20261128-043800.err.log, --allow-no-frames): exited 1 ([FAIL] VRAM 8373/6720 MB, Texture streaming 21496 waiting / levels_on_demand_alive=0, Residency stalls 219.56 ms/s, median 5.9 fps)
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy: 297 files ok
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask: 6 passed; 0 failed
**@⁠Androtim** on GitHub · 2026-11-28 04:25 UTC · [original](https://github.com/Androtim/MiniVI/pull/13#issuecomment-7234031029) Verification summary for `@4e1c135` (`feat/iter28-in-world-verification-suite`): - **GitHub Actions CI (`46107084619`):** `success` in 4m41s (`Clippy`, `Clippy, diagnostics build`, `Tests`) - **Open PR Mergeability (`Androtim/MiniVI`):** PRs `#1`–`#13` all report `MERGEABLE` - **Local Verification:** - `python -m unittest -v scripts/test_analyze_world_run.py`: `4 tests`, `OK` - PowerShell AST check on `scripts/verify-world.ps1`: `ps1_parse_errors=0` - Historical real playtest log check (`playtest-20261128-043800.err.log`, `--allow-no-frames`): exited `1` (`[FAIL]` VRAM `8373/6720 MB`, Texture streaming `21496` waiting / `levels_on_demand_alive=0`, Residency stalls `219.56 ms/s`, median `5.9 fps`) - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy`: `297 files ok` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask`: `6 passed; 0 failed`
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 05:03 UTC · original

Automated triage for the maintainers (not an approval).

Verdict: merge-candidate · CI (check): passing

Review Summary

PR #13 adds an end-to-end 3D open-world verification and A/B regression suite (scripts/verify-world.ps1, scripts/analyze-world-run.py, scripts/test_analyze_world_run.py) and adds Python bytecode patterns (__pycache__/, *.pyc) to .gitignore. It does not modify any Rust runtime, shader, GPU, or launcher code.

Verification Notes

  • scripts/verify-world.ps1: Baseline environment variables match SETTINGS in apps/victory/src/play.rs (lines 55–111), with isolated VICTORY_DATA_DIR sandboxing, VICTORY_CAPTURE / VICTORY_CAPTURE_WORLD frame capture, an already-running process check, and try/finally cleanup for child processes and Env:VICTORY_* variables.
  • scripts/analyze-world-run.py: Uses Python stdlib only (including an 8-bit RGB/RGBA PNG decoder supporting PNG filters 0–4), parses in-world (draws/frame >= 500) FPS/frame-time windows, card accounting/VRAM, tiled texture counts, residency stall rates, and screenshot luma/edge/color-corruption metrics, and implements A/B non-regression checks against a baseline JSON.
  • scripts/test_analyze_world_run.py: Covers healthy runs, VRAM/queue/tiled/stall failures, dark/black/flat/magenta frames, black fade transitions, A/B regressions, and pre-world-only logs.

Minor Non-Blocking Notes

  • In scripts/verify-world.ps1, if $ExtraEnv overrides a variable in $keep (VICTORY_CONFIG, VICTORY_GAME_DIR, VICTORY_CACHE_DIR), the finally block will remove it rather than restoring its previous value since $keep variables are skipped when populating $saved.
  • In scripts/analyze-world-run.py, if log entries lack timestamps (first_world_ts is None), in_world_acct falls back to including all accounting samples rather than filtering by entry index (first_world_idx).

Note: This is an automated triage review and does not constitute formal maintainer approval.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-28 05:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/13#issuecomment-7234425754) <!-- minivi-triage v1 head=911954d39e951fff8052275f122f981e5ab84bc2 verdict=merge-candidate ci=passing at=2026-11-28T05:03:44Z --> Automated triage for the maintainers (not an approval). **Verdict:** `merge-candidate` · **CI (`check`):** `passing` ### Review Summary PR #13 adds an end-to-end 3D open-world verification and A/B regression suite (`scripts/verify-world.ps1`, `scripts/analyze-world-run.py`, `scripts/test_analyze_world_run.py`) and adds Python bytecode patterns (`__pycache__/`, `*.pyc`) to `.gitignore`. It does not modify any Rust runtime, shader, GPU, or launcher code. ### Verification Notes - **`scripts/verify-world.ps1`**: Baseline environment variables match `SETTINGS` in `apps/victory/src/play.rs` (lines 55–111), with isolated `VICTORY_DATA_DIR` sandboxing, `VICTORY_CAPTURE` / `VICTORY_CAPTURE_WORLD` frame capture, an already-running process check, and `try`/`finally` cleanup for child processes and `Env:VICTORY_*` variables. - **`scripts/analyze-world-run.py`**: Uses Python stdlib only (including an 8-bit RGB/RGBA PNG decoder supporting PNG filters 0–4), parses in-world (`draws/frame >= 500`) FPS/frame-time windows, card accounting/VRAM, tiled texture counts, residency stall rates, and screenshot luma/edge/color-corruption metrics, and implements A/B non-regression checks against a baseline JSON. - **`scripts/test_analyze_world_run.py`**: Covers healthy runs, VRAM/queue/tiled/stall failures, dark/black/flat/magenta frames, black fade transitions, A/B regressions, and pre-world-only logs. ### Minor Non-Blocking Notes - In `scripts/verify-world.ps1`, if `$ExtraEnv` overrides a variable in `$keep` (`VICTORY_CONFIG`, `VICTORY_GAME_DIR`, `VICTORY_CACHE_DIR`), the `finally` block will remove it rather than restoring its previous value since `$keep` variables are skipped when populating `$saved`. - In `scripts/analyze-world-run.py`, if log entries lack timestamps (`first_world_ts is None`), `in_world_acct` falls back to including all accounting samples rather than filtering by entry index (`first_world_idx`). *Note: This is an automated triage review and does not constitute formal maintainer approval.* --- _Generated with Antigravity CLI (`agy`)._
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!13
No description provided.