fspx_prologue_probe: handle hardware oracle Unavailable during run() #457
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/457"
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 EdenBendheim on 2026-11-24T05:42:38Z.
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123200485
What changed
tools/fspx_prologue_probe.py: Catch the runner'sUnavailableexception when raised fromoracle.run()after the oracle has already opened, closing the oracle exactly once, printing one single-linehardware oracle unavailable: ...diagnostic to stderr (no traceback, empty stdout), and exiting77.tests/test_fspx_prologue_probe.py: Synthetic tests coveringoracle.run()raisingUnavailable(exit77+ single close), plus passing, mismatch, and missed negative-control runs.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):test_fspx_prologue_probe.py(6/6),--self-test(50 positive cases + 8 negative controls),check_no_game_data.py, LF check — all passed.Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T06:57:57Z.
Merging. Why merged: an Unavailable error from oracle.run() now exits 77 with a one-line message, and the oracle is always closed.
Why it's good: security-reviewed; tested on Windows 11 merged onto main
c023a36: 5 -> 6 tests OK, and the new test errors on main.AI-assisted (Claude Code, Claude Opus 5.5).