ps_interp_modes: refuse a single named file without a readable PSV0 chunk (DRAFT-241) #936
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!936
Loading…
Reference in a new issue
No description provided.
Delete branch "draft/241"
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:
DRAFT-241(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135362620)Supersedes draft #241, carried over from the original repository. This is the same commit rebased onto current
main, with the original author (Alex Arenas) kept andgit cherry-pick -xrecording where it came from. The change and its explanation are theirs; see #241 for the original description.Tested
python -I tests/test_ps_interp_modes.py: OKpython -I scripts/check_no_game_data.pyon the changed files: clean.Windows 11 (10.0.26200), Python 3.14.4. No game files, nothing online.
AI-assisted (Claude Code): rebasing, conflict resolution and test runs.
Reviewed 9711b34: I ran tests/test_ps_interp_modes.py on the PR head (32/32) and on main (30/30); copied the new tests onto main, where the single-file test fails and the directory guard passes. A probe with the repo's synthetic containers reproduces the bug on main - a single garbage or truncated file exits 0 with an empty "0 shaders" census (JSON mode:
files: []) - while the PR refuses with exit 2 and one error line; valid files and directory scans behave identically on both trees. One adjacent gap this PR does not touch: a single file the index marks as a non-ps stage also exits 0 with an empty census. AI-assisted review.Recommendation: Merge
Red/green: tests/test_ps_interp_modes.py fails on main (single file without PSV0 exits 0 instead of 2) 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)