glb_inspect: exclude invalid POSITION bounds from model extents #1748
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1748
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/glb-inspect-position-bounds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
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.pyon 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.pyandgit diff --checkpassed.bcaa13dapassed 6,287 semantic tests across 488 files.GPUs tested: N/A (CPU-only metadata inspection).
AI-assisted: Yes.
Checklist
Independent verification (Windows, Python 3.11.9):
_bboxnow 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.py38 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.Red/green: tests/test_glb_inspect.py fails 4 assertions on main (invalid POSITION bounds still counted in the extents) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)