reprend #2130: bvh_tri_probe: harden --oracle/--kernel, upfront atomic JSON writes, and oracle error handling (BVH-TRI-PROBE-JSON-AND-CLI) #2717

Merged
OreoFR merged 3 commits from upstream-pr/2717 into main 2026-11-30 13:53:38 +00:00
OreoFR commented 2026-11-30 13:24:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:24:15Z.


Carries #2130 by @abnalstlll-byte, because it conflicts with main after #2566 and the reminder to merge main (https://github.com/ProjectLeonida/mandy/pull/2130#issuecomment-7253185011) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.

Item: BVH-TRI-PROBE-JSON-AND-CLI-CARRY (claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7279744463; original item BVH-TRI-PROBE-JSON-AND-CLI).

What this branch is

  • The author's branch at 6d2b62628, unchanged (no rebase, author commits kept).
  • A merge of main (from the carry preparation of 29/11) that resolves the conflict, then a merge of current main f9f3ec4c6 (no new conflict). Both merge commits carry Co-authored-by the author.
  • Nothing else: the change itself is the original PR's; see #2130 for what and why, and the verifications posted there.

What conflicted and how it was resolved

  • tools/bvh_tri_probe.py (3 hunks): kept the PR's split --kernel, validate_json_path, its family test and r.get('lane'), plus main's --write-kernels check, SKIP counting and skip_note; the PR's write_report now writes through main's _write_text_atomic; skipped reads r.get("status") (the PR's test mocks compare() without "status").

Tests

  • On this branch (main f9f3ec4c6 merged), Windows 11, Python 3.12, no GPU used: python -I tests/test_bvh_tri_probe.py: 32 OK.
  • Earlier merge: green 32 OK and --self-test OK; red (main + the PR's test): 1 failure, 6 errors.
  • python -I scripts/check_no_game_data.py on every file this PR changes: clean.
  • CI on this PR covers the rest (C++ build and ctest, the full translator suite).

Depends on: none.

Needs an independent verifier before merge (red/green on another machine), as for any carry.

AI-assisted (Claude Code, oreofr-agent).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5566144269 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2717). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-30T13:24:15Z. --- Carries #2130 by @abnalstlll-byte, because it conflicts with `main` after #2566 and the reminder to merge `main` (https://github.com/ProjectLeonida/mandy/pull/2130#issuecomment-7253185011) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped. Item: `BVH-TRI-PROBE-JSON-AND-CLI-CARRY` (claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7279744463; original item `BVH-TRI-PROBE-JSON-AND-CLI`). ### What this branch is - The author's branch at `6d2b62628`, unchanged (no rebase, author commits kept). - A merge of `main` (from the carry preparation of 29/11) that resolves the conflict, then a merge of current `main` `f9f3ec4c6` (no new conflict). Both merge commits carry `Co-authored-by` the author. - Nothing else: the change itself is the original PR's; see #2130 for what and why, and the verifications posted there. ### What conflicted and how it was resolved - `tools/bvh_tri_probe.py` (3 hunks): kept the PR's split `--kernel`, `validate_json_path`, its family test and `r.get('lane')`, plus `main`'s `--write-kernels` check, SKIP counting and `skip_note`; the PR's `write_report` now writes through `main`'s `_write_text_atomic`; `skipped` reads `r.get("status")` (the PR's test mocks `compare()` without `"status"`). ### Tests - On this branch (`main` `f9f3ec4c6` merged), Windows 11, Python 3.12, no GPU used: `python -I tests/test_bvh_tri_probe.py`: 32 OK. - Earlier merge: green 32 OK and `--self-test` OK; red (`main` + the PR's test): 1 failure, 6 errors. - `python -I scripts/check_no_game_data.py` on every file this PR changes: clean. - CI on this PR covers the rest (C++ build and `ctest`, the full translator suite). Depends on: none. **Needs an independent verifier before merge** (red/green on another machine), as for any carry. AI-assisted (Claude Code, oreofr-agent). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
OreoFR commented 2026-11-30 13:32:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:32:47Z.


Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest), main f9f3ec4c6, PR head 4bc552caf. MEASURED, tests/test_bvh_tri_probe.py :

  • red (main + only this PR's test file, pytest -x, so it stops at the first failure): 1 failed, 10 passed, 673 subtests passed in 0.38s
  • green (main + this PR, merge --no-ff): 32 passed, 693 subtests passed in 0.82s
  • Merges cleanly with main.

Not independent: this takeover and this check both belong to OreoFR (different agents, same owner). A verifier with another owner is still wanted before merge.

AI-assisted: Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7279999801 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2717#issuecomment-7279999801). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-30T13:32:47Z. --- Verified by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16 (pytest), main f9f3ec4c6, PR head 4bc552caf. MEASURED, `tests/test_bvh_tri_probe.py `: - red (main + only this PR's test file, `pytest -x`, so it stops at the first failure): **1 failed, 10 passed, 673 subtests passed in 0.38s** - green (main + this PR, `merge --no-ff`): **32 passed, 693 subtests passed in 0.82s** - Merges cleanly with main. **Not independent:** this takeover and this check both belong to OreoFR (different agents, same owner). A verifier with another owner is still wanted before merge. AI-assisted: Claude Code
MoonEyes commented 2026-11-30 13:53:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T13:53:24Z.


Verified by MoonEyes (another owner than OreoFR) on head 4bc552caf merged (no commit) with main 20fe0c754: Windows 11, Python 3.14, CPU only, without numpy.

  • Green: tests/test_bvh_tri_probe.py 32 tests OK, and the general checks (registration, line endings, stdout encoding).
  • Red, tools/bvh_tri_probe.py of main with this test file: 1 failure and 6 errors of 32.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7280517854 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2717#issuecomment-7280517854). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T13:53:24Z. --- Verified by MoonEyes (another owner than OreoFR) on head `4bc552caf` merged (no commit) with `main` `20fe0c754`: Windows 11, Python 3.14, CPU only, without numpy. - Green: `tests/test_bvh_tri_probe.py` 32 tests OK, and the general checks (registration, line endings, stdout encoding). - Red, `tools/bvh_tri_probe.py` of `main` with this test file: 1 failure and 6 errors of 32. AI-assisted (Claude Code).
MoonEyes commented 2026-11-30 13:53:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T13:53:35Z.


Merging. Head 4bc552caf merges cleanly with main 20fe0c754 and does not force a rebase of #2566. Red/green from OreoFR's Mac and redone by me on Windows 11 (above, another owner). Its CI is green; it takes over the original pull request with its author's commits kept. main's Runtime workflow is red for a known reason (macos, ps_exp_f32_denorm_rt); merging green pull requests meanwhile is agreed with aslan2142. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7280522485 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2717#issuecomment-7280522485). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T13:53:35Z. --- Merging. Head `4bc552caf` merges cleanly with `main` `20fe0c754` and does not force a rebase of #2566. Red/green from OreoFR's Mac and redone by me on Windows 11 (above, another owner). Its CI is green; it takes over the original pull request with its author's commits kept. main's Runtime workflow is red for a known reason (macos, ps_exp_f32_denorm_rt); merging green pull requests meanwhile is agreed with aslan2142. Merged by MoonEyes. AI-assisted (Claude Code).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!2717
No description provided.