[GH-ISSUE #8179] fix(dottore): settle active finder requests before leaving the failure funnel #7599

Closed
opened 2026-10-24 04:04:38 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8179

Originally assigned to: @SpicyMarinara on GitHub.

Owner: @SpicyMarinara (Codex investigation; implementation not started).

When one Dottore finder fails while another finder request is active, run_finders() propagates the exception after pool.shutdown(wait=False, cancel_futures=True). Only queued jobs are cancelled; active requests remain alive after the failure funnel continues. This is inherited from staging d4f3ecfc6e, independently discovered during the unrelated #8153 repair review; no workflow source is changed in that PR.

Runnable read-only reproduction and output. Run the Python fixture from a current Engine checkout with Python3.12. Its second case runs the actual run_finders with two synchronized local request stand-ins. The first raises only after the second enters. The function raises while that second request is still blocked. The fixture then releases and joins all work; it makes no model/network requests.

Expected: finish/cancel active finder work coherently before the failure funnel publishes or exits. Cancellation of queued jobs should remain. Verify behavior with one failed finder, one active finder and queued work, including finite deadlines. Waiting alone does not cancel paid work; do not claim provider cancellation unless implemented and supported.

This is a bounded cleanup follow-up, separate from the maintainer's model-variable switch to Sonnet5.5/xhigh. Do not bundle unrelated reviewer architecture changes.

Originally created by @SpicyMarinara on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8179 Originally assigned to: @SpicyMarinara on GitHub. Owner: @SpicyMarinara (Codex investigation; implementation not started). When one Dottore finder fails while another finder request is active, `run_finders()` propagates the exception after `pool.shutdown(wait=False, cancel_futures=True)`. Only queued jobs are cancelled; active requests remain alive after the failure funnel continues. This is inherited from staging `d4f3ecfc6e`, independently discovered during the unrelated #8153 repair review; no workflow source is changed in that PR. [Runnable read-only reproduction and output](https://gist.github.com/SpicyMarinara/a03a43c99982f8e3dd5eef0afaaa2999). Run the Python fixture from a current Engine checkout with Python3.12. Its second case runs the actual `run_finders` with two synchronized local request stand-ins. The first raises only after the second enters. The function raises while that second request is still blocked. The fixture then releases and joins all work; it makes no model/network requests. Expected: finish/cancel active finder work coherently before the failure funnel publishes or exits. Cancellation of queued jobs should remain. Verify behavior with one failed finder, one active finder and queued work, including finite deadlines. Waiting alone does not cancel paid work; do not claim provider cancellation unless implemented and supported. This is a bounded cleanup follow-up, separate from the maintainer's model-variable switch to Sonnet5.5/xhigh. Do not bundle unrelated reviewer architecture changes.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

Owner: @SpicyMarinara (Codex). I am taking this bounded reviewer follow-up in a dedicated PR together with #8178. Both reported paths reproduce against the unchanged current reviewer source. The separate Sonnet5.5/xhigh repository-variable change is already live and will remain unchanged.

<!-- gh-comment-id:6367352734 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): Owner: @SpicyMarinara (Codex). I am taking this bounded reviewer follow-up in a dedicated PR together with #8178. Both reported paths reproduce against the unchanged current reviewer source. The separate Sonnet5.5/xhigh repository-variable change is already live and will remain unchanged.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 23, 2026):

The source repair is merged to staging in e471bca3 via #8183. Local baseline, both canonical regression files and independent negative controls pass; final-head Dottore is Viable With Notes (0 defects), all eight required gates passed, and merge ancestry is verified. Runnable proof and logs.

This does not make the hosted fix live: the reviewer executes maintainer-controlled trusted tooling/pins. I am leaving this issue open to track that normal promotion and the subsequent live verification. No main promotion or trust-boundary change was made. Post-merge staging CI is separate and is still being monitored.

<!-- gh-comment-id:6368890745 --> @SpicyMarinara commented on GitHub (Oct 23, 2026): The source repair is merged to `staging` in [e471bca3](https://github.com/Pasta-Devs/Marinara-Engine/commit/e471bca346cb50de7ce6d48ea90ff78d1e41a025) via #8183. Local baseline, both canonical regression files and independent negative controls pass; final-head Dottore is Viable With Notes (0 defects), all eight required gates passed, and merge ancestry is verified. [Runnable proof and logs](https://gist.github.com/SpicyMarinara/6660de767c3c4c19e27a3a5ac4ef3380). This does **not** make the hosted fix live: the reviewer executes maintainer-controlled trusted tooling/pins. I am leaving this issue open to track that normal promotion and the subsequent live verification. No `main` promotion or trust-boundary change was made. Post-merge staging CI is separate and is still being monitored.
Sign in to join this conversation.
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
Pasta-Devs/Marinara-Engine#7599
No description provided.