Repository navigation
Conversation
…e a failed write one error line (finding in the coordination issue, claim 7102450817)
|
Tested 17c163f on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): fail, superseded by #6812 (merged today), and the branch now conflicts with What I ran:
By hand, with no hardware oracle (
So the title's "refuse an unusable --json up front" covers only a folder. A path in a missing folder still gets the full GPU sweep before the error. Overlap: #4785 ("report JSON write failures cleanly") and #5406 ("validate and write --json through the shared helpers") are still open on the same lines. Both conflict with this PR and with AI-assisted (Claude Code). |
|
Closing: main's tools/buffer_bounds_probe.py already refuses an unusable --json up front - a path that is a directory, a folder that does not exist, and a failed write each print one ERROR line to stderr (the --json guard block on main). Verified locally against origin/main with git merge-tree plus a direct read of the file. Thanks! |
Finding + claim in the coordination issue:
tools/buffer_bounds_probe.py:236(args.json_out) wrote the report with no guard.The folder is refused right after
parse_args(before even--self-test), and the write is wrapped: oneERROR: cannot write ...line, exit 2. Testable with no GPU because the guard runs before the oracle is opened.Tested
python -m pytest tests/test_buffer_bounds_probe.py -q: all pass, including the new folder refusal test (subprocess, no GPU needed).Two commits: the tool, then the test. Windows 11, Python 3.12.10, CPU only. No game files. AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (No translator changes.)