Repository navigation
bvh_slot_check: use shared report_paths.same_report_path for --save-evidence guard - #8533
Open
suleymansarilar wants to merge 1 commit into
Open
suleymansarilar wants to merge 1 commit into
suleymansarilar wants to merge 1 commit into
Conversation
…vidence guard Use tools/report_paths.same_report_path(save, path) instead of Path.resolve() set membership when guarding --save-evidence against overwriting archive, index, or manifest inputs. Register bvh_slot_check in SHARED in tests/test_report_paths.py and add a folding-volume case-alias test.
leoleahy
approved these changes
Nov 23, 2026
leoleahy
left a comment
Contributor
There was a problem hiding this comment.
AI-assisted.
Independently verified on Windows 11 (Python 3.14.8, CPU-only) at 9f7822aa:
- Merge cleanliness against
upstream/main(867d922f):git merge-tree --write-treeclean,git diff --checkclean,python -I -m compileall -qclean. python -I tests/test_report_paths.py: 21/22 passed, 1 skipped on HEAD; negative control on basedde82f27failstest_switched_tools_import_the_helper_and_define_no_copyforbvh_slot_check.python -I tests/test_bvh_slot_check.py: 7/10 passed including the newtest_save_evidence_uses_shared_same_report_path_and_rejects_input_aliases(the 3 remaining errors are the pre-existingmodel_geometries5-vs-6 unpack bug ondde82f27, fixed separately in #8013 / #8421); negative control on basedde82f27adds an error on the new test (AttributeError: module 'bvh_slot_check' has no attribute 'same_report_path').- Direct unmocked NTFS probe with real
Pathobjects confirmedcensus(..., save=root / "INDEX.JSON")raisesValueError: evidence output would overwrite a census input.
Looks good to merge.
|
Tested
AI-assisted (Claude Code). |
Contributor
|
Tested
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as:
bvh_slot_check: use sharedreport_paths.same_report_pathfor--save-evidenceinput guard (BUILD-589)What and why
tools/bvh_slot_check.pyguarded--save-evidenceagainst overwritingarchive,index, and*manifestsusingsave.resolve() in {path.resolve() ...}instead oftools/report_paths.same_report_path. That check missed hard links and non-existent case-only aliases on case-insensitive volumes.census()intools/bvh_slot_check.pytoreport_paths.same_report_path(save, path)perCONTRIBUTING.md.bvh_slot_checkinSHAREDintests/test_report_paths.pyand add a folding-volume case-alias unit test intests/test_bvh_slot_check.py.Tested
python -I tests/test_report_paths.py(22 tests, OK)python -I tests/test_bvh_slot_check.py SlotControls.test_save_evidence_uses_shared_same_report_path_and_rejects_input_aliases(OK)python -I scripts/check_no_game_data.py tools/bvh_slot_check.py tests/test_bvh_slot_check.py tests/test_report_paths.pygit diff --checkAI-assisted: yes (Antigravity / Gemini 4 Argon)
Checklist
docs/design.md, with how it was confirmed. (N/A — tool path guard only)