fspx_prologue_probe: handle hardware oracle Unavailable during run() #457
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!457
Loading…
Reference in a new issue
No description provided.
Delete branch "ubiq/fspx-prologue-probe-run-unavailable"
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
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.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).