glb_inspect: exclude invalid POSITION bounds from model extents #1748

Open
github-bot wants to merge 1 commit from github-bot/gh-1748 into main AGit
Owner

@⁠kirigayakazima on GitHub · 2026-11-25 11:04 UTC · original
kirigayakazima:codex/glb-inspect-position-bounds → main · +32 −4 · 2 files · 1 commits · open

Claimed in the coordination issue as: GLB-INSPECT-POSITION-BOUND-VALIDITY

What and why

An inverted or oversized POSITION bound could be reported as complete. An overflowing JSON exponent could prevent writing the entire JSON report. Both bounds now need exactly three finite numbers with ordered ranges. Good primitives still contribute to the aggregate and missing or invalid bounds mark it partial.

Tested

Two synthetic tests mix a good primitive with inverted, extra-component or boolean bounds, and pass an overflowing exponent through the GLB JSON parser and strict JSON report serialization.

  • python -I tests/test_glb_inspect.py on Windows with Python 3.14.7 ran 38 tests on this branch with one platform skip. The new tests also failed against the original inspector.
  • python -I scripts/check_no_game_data.py tools/glb_inspect.py tests/test_glb_inspect.py and git diff --check passed.
  • The shared base at bcaa13da passed 6,287 semantic tests across 488 files.

GPUs tested: N/A (CPU-only metadata inspection).
AI-assisted: Yes.

Checklist

  • Based on current upstream main.
  • One topic.
  • All test inputs are synthetic. No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-25 11:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1748) `kirigayakazima:codex/glb-inspect-position-bounds` → `main` · +32 −4 · 2 files · 1 commits · open Claimed in the coordination issue as: [GLB-INSPECT-POSITION-BOUND-VALIDITY](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why An inverted or oversized POSITION bound could be reported as complete. An overflowing JSON exponent could prevent writing the entire JSON report. Both bounds now need exactly three finite numbers with ordered ranges. Good primitives still contribute to the aggregate and missing or invalid bounds mark it partial. ### Tested Two synthetic tests mix a good primitive with inverted, extra-component or boolean bounds, and pass an overflowing exponent through the GLB JSON parser and strict JSON report serialization. - `python -I tests/test_glb_inspect.py` on Windows with Python 3.14.7 ran 38 tests on this branch with one platform skip. The new tests also failed against the original inspector. - `python -I scripts/check_no_game_data.py tools/glb_inspect.py tests/test_glb_inspect.py` and `git diff --check` passed. - The shared base at `bcaa13da` passed 6,287 semantic tests across 488 files. GPUs tested: N/A (CPU-only metadata inspection). AI-assisted: Yes. ### Checklist - [x] Based on current upstream main. - [x] One topic. - [x] All test inputs are synthetic. No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:03:35 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-25 11:19 UTC · original · reviewed

Independent check at "855f2ef8". Windows: 37 tests reported, 1 platform skip. The mixed valid/invalid bounds and strict JSON serialization regressions passed. This also passed in the combined inspector tree with the other four PRs applied.

AI-assisted review and CPU-only testing with synthetic inputs.

**@⁠lixonik** on GitHub · 2026-11-25 11:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1748#pullrequestreview-6056671646) · **reviewed** Independent check at "855f2ef8". Windows: 37 tests reported, 1 platform skip. The mixed valid/invalid bounds and strict JSON serialization regressions passed. This also passed in the combined inspector tree with the other four PRs applied. AI-assisted review and CPU-only testing with synthetic inputs.
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 11:25 UTC · original

Independent verification (Windows, Python 3.11.9): _bbox now requires exactly 3 components, non-bool ints or finite floats (isfinite kills 1e999->inf), ordered min<=max; invalid bounds excluded + aggregate marked partial. test_glb_inspect.py 38 OK (6 env skips); both new tests pass; compileall + line-endings + check_no_game_data + diff-check clean. Non-blocking nit: returns accessor min/max lists by reference rather than copies — no downstream mutation observed. AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 11:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1748#issuecomment-7161027497) Independent verification (Windows, Python 3.11.9): `_bbox` now requires exactly 3 components, non-bool ints or finite floats (isfinite kills 1e999->inf), ordered min<=max; invalid bounds excluded + aggregate marked partial. `test_glb_inspect.py` 38 OK (6 env skips); both new tests pass; compileall + line-endings + check_no_game_data + diff-check clean. Non-blocking nit: returns accessor min/max lists by reference rather than copies — no downstream mutation observed. AI-assisted verification.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1748/head:github-bot/gh-1748'
git switch 'github-bot/gh-1748'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1748'
git switch 'github-bot/gh-1748'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1748'
git switch 'github-bot/gh-1748'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1748'
git switch 'main'
git merge --squash 'github-bot/gh-1748'
git switch 'main'
git merge --ff-only 'github-bot/gh-1748'
git switch 'main'
git merge 'github-bot/gh-1748'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.