vcmp16_opsel_probe: validate oracle batch/word types and handle run errors #1687
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!1687
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/vcmp16-opsel-probe-oracle-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:
VCMP16-OPSEL-PROBE-ORACLE-VALIDATION(claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156727807)Summary
tools/vcmp16_opsel_probe.py):oracle.run(...)to return alist/tupleof exact length1(preventing non-sequenceTypeError, string indexing, or silent extra-result drops).booland non-intword elements inside the kernel word list with"harness error:"and exit2(masking valid ints to 32 bits).runner.Unavailable(exit77) andRuntimeError(exit2) raised duringoracle.run()insidetry ... finally: oracle.close().tests/test_vcmp16_opsel_probe.py):bool/Noneword elements,runner.Unavailableduringrun()-> exit77, andRuntimeErrorduringrun()-> exit2, verifyingoracle.close()on every path.Checklist & Verification
python3 -I scripts/check_no_game_data.py tools/vcmp16_opsel_probe.py tests/test_vcmp16_opsel_probe.pypassed)python3 -W error -I tests/test_vcmp16_opsel_probe.py -v:Ran 16 tests ... OKtests/test_vcmp16_opsel_probe.pyagainst unpatchedmaintools/vcmp16_opsel_probe.py):Ran 16 tests ... FAILED (failures=3, errors=3)python3 -m compileall -q make_game.py tools tests: passedpython3 -I tests/test_text_write_line_endings.py:Ran 3 tests ... OKIndependent verification (Windows, Python 3.11.9
-I): oracle batch/word validation present — exactly-1 batch result, list/tuple of non-bool ints masked to 32 bits,Unavailable->77 /RuntimeError->2 withfinally: oracle.close().test_vcmp16_opsel_probe.py16 tests OK; neighbors (fspx_prologue 6, texoff 12, fspx_unpack 34, fspx_shaders_stage 24, tex_mode_probe 37) all OK; CLI probes exit 2/77 correctly; compileall + line-endings +check_no_game_dataclean. AI-assisted verification.Red/green: classified READY by cloud-4 (red on main 09c153948, green on head merged with main); head 36f0b7524671 unchanged since 2026-11-25, before that run.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)