Commit Graph

6 Commits

Author SHA1 Message Date
38f9a734b9 Merge main into fix/bvh-groups-guards-and-io (resolve conflict in tests/test_bvh_groups.py, tools/bvh_groups.py)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:30:07 +01:00
042a2d206a bvh_groups: validate scan bounds and --json upfront, use same_report_path, catch write OSError 2026-11-25 06:32:14 +01:00
6349981144 bvh_groups: use shared same_report_path and catch --json write OSError
(cherry picked from commit 0dc1645400)
2026-11-24 10:03:03 -05:00
f8b2f7bede bvh_groups: stage --json so a write failure keeps the previous report
Publish the groups report through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-23 20:54:52 +01:00
7dbaa0409a Repo rules after round 44: stdout guards on 13 programs, newline= on four text writes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:25:51 -05:00
f4ec24236c ASSET-321: decode the BVH descriptor templates and tie 6,701 BLAS to them
The 24,832 "other descriptor" streams of core_bvh4.rpf are two templates,
told apart by the page word in the block that the 0x08 pointer addresses:

* 2,531 instance descriptors with N > 1 slots (the 208-byte record is the
  N = 1 case). The stream after each holds the BLAS of its non-zero entries
  back to back; each entry's low u32 is that BLAS's declared end rounded up
  to 256. 2,531/2,531 pass and 6,701 BLAS are tied; the N = 1 entry rule
  holds for 269,106/269,106 records.
* 22,301 table streams (page word 0x1): K sorted u32 values and K 32-byte
  items. None is followed by a BVH stream, and no key or value matches
  anything beyond chance.

tools/bvh_groups.py reproduces the template and buffer counts, with
synthetic tests. docs/bvh.md gains §3.2a with the layouts, the rule,
the tested non-links and what stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:52:58 +01:00