[PR #457] [MERGED] fspx_prologue_probe: handle hardware oracle Unavailable during run() #508

Closed
opened 2026-11-26 20:18:07 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/457
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: ubiq/fspx-prologue-probe-run-unavailable


📝 Commits (1)

  • fccee2a fspx_prologue_probe: handle unavailable oracle during execution

📊 Changes

2 files changed (+37 additions, -16 deletions)

View changed files

📝 tests/test_fspx_prologue_probe.py (+28 -7)
📝 tools/fspx_prologue_probe.py (+9 -9)

📄 Description

Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123200485

What changed

  • tools/fspx_prologue_probe.py: Catch the runner's Unavailable exception when raised from oracle.run() after the oracle has already opened, closing the oracle exactly once, printing one single-line hardware oracle unavailable: ... diagnostic to stderr (no traceback, empty stdout), and exiting 77.
  • tests/test_fspx_prologue_probe.py: Synthetic tests covering oracle.run() raising Unavailable (exit 77 + single close), plus passing, mismatch, and missed negative-control runs.

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic oracle, zero game data).
  • Verified on ubiquitarianism/leonida main (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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/457 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `ubiq/fspx-prologue-probe-run-unavailable` --- ### 📝 Commits (1) - [`fccee2a`](https://github.com/ubiquitarianism/leonida/commit/fccee2a3c5ac6304d46b63a05c8ca81cd460aaad) fspx_prologue_probe: handle unavailable oracle during execution ### 📊 Changes **2 files changed** (+37 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_fspx_prologue_probe.py` (+28 -7) 📝 `tools/fspx_prologue_probe.py` (+9 -9) </details> ### 📄 Description Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123200485 ### What changed - **`tools/fspx_prologue_probe.py`**: Catch the runner's `Unavailable` exception when raised from `oracle.run()` after the oracle has already opened, closing the oracle exactly once, printing one single-line `hardware oracle unavailable: ...` diagnostic to stderr (no traceback, empty stdout), and exiting `77`. - **`tests/test_fspx_prologue_probe.py`**: Synthetic tests covering `oracle.run()` raising `Unavailable` (exit `77` + single close), plus passing, mismatch, and missed negative-control runs. ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic oracle, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:07 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#508
No description provided.