wave64_pipeline_audit: validate half-specified subgroup bounds, unknown stages, empty chains, and --report (WAVE64-PIPELINE-AUDIT-VALIDATION) #1563
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!1563
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/wave64-pipeline-audit-validation"
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
Item ID:
WAVE64-PIPELINE-AUDIT-VALIDATION(new item; coordination issue #14 is at GitHub's 2,500-comment cap with no open successor at PR time — confirmed 0 open PRs touchtools/wave64_pipeline_audit.py)Summary
Device.read()previously acceptedmin_subgroup_size == 0withmax_subgroup_size > 0(also bypassing theminimum <= default <= maximumcheck whenminimum == 0), andassess()evaluated0 <= wanted <= maxas true and falsely reportedexact(required-width). NowDevice.read()rejectsbool(minimum) != bool(maximum)while still allowing(0, 0)for devices withoutVK_EXT_subgroup_size_control, andassess()requirescaps.minimum > 0forrequired-width.assess(): returnAssessment("unknown", "unknown-stage")instead of raising rawKeyErroron missing"stage"or stages outsideSTAGE_BITS(such as"hs"orNone).build_report(): raise a clearValueError("pipeline chain has no shader stages")instead ofmax() iterable argument is empty.--reportbefore auditing and catchRecursionErrorinload_json(): reject empty/whitespace--reportpaths (previously--report " "exited 0 and created a literal" "file in cwd, and--report ""resolved toPath(".")and tried to overwrite cwd after writing a temp file incwd.parent) and reject existing directories before running the audit.Testing
python3 -W error -I tests/test_wave64_pipeline_audit.py -v: 17/17 passedpython3 -W error -I tests/test_text_write_line_endings.py -v: 3/3 passedpython3 -I scripts/check_no_game_data.py tools/wave64_pipeline_audit.py tests/test_wave64_pipeline_audit.py: passedpython3 -m compileall -q make_game.py tools tests: passedmain:tools/wave64_pipeline_audit.py: all 4 new/updated tests fail (FAILED (failures=8, errors=3)).Tested
7b1ae5b22on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), againstmainc7e82e26e(Python tool; no GPU):tests/test_wave64_pipeline_audit.py: 17 passed, 34 subtests passed at this head.main: 11 failed, 14 passed, 26 subtests — the half-specified subgroup ranges, unknown stages, empty chains and--reportguards are not enforced there.AI-assisted; synthetic fixtures only, no game data.
#1563 | head
7b1ae5b22ed7acc1da9f5646ee02620a3464998a|python3 -I tests/test_wave64_pipeline_audit.py -v| red: 17 run, 8 failures, 3 errors | green: 17 passed | Red → greenThe pipeline audit tests exercised subgroup bounds, unknown shader stages, empty chains and report handling.
Base
3bd936ecd98995bca3e1da83d5e28d2343001aefwas merged into the recorded PR head for the second run. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Counts include unittest subtest events where applicable. AI-assisted with OpenAI Codex. Batch claim.Red/green: the PR's tests fail on main and pass with this PR (Linux, Python 3.13.18).
Targeted batch of 19 PRs (their tests, the tests importing the changed modules, the docs tests) on main 3ca0707: no new failure, Linux / Python 3.13.
AI-assisted (Claude Code, Claude Opus 5.5)