vcmp16_opsel_probe: validate oracle batch/word types and handle run errors #1687
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1687"
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?
Imported from ubiquitarianism/leonida. Originally posted by IlyassRS3 on 2026-11-25T08:13:00Z.
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 ... OKImported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T08:13:09Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T08:41:52Z.
Independent 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.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T14:55:06Z.
Red/green: classified READY by cloud-4 (red on main
09c153948, green on head merged with main); head36f0b75246unchanged since 2026-11-25, before that run.Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
d48a957bbin GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)