Repository navigation
test: engine_pool returns on a real daemon with a planned budget set (regression for the M5 boot wedge, #5835 -> #5837) - #5839
Merged
joelteply merged 2 commits intoNov 7, 2026
Conversation
…ent, so the reconcile no longer deadlocks and the core boots #5835's engine_pool read planned_budget.lock() inside launch_pool's argument list, where the guard lives to the end of the statement, while seated_for (also an argument) locked it again; parking_lot is not reentrant, so the reconcile hung, no module past grid-capacity initialized, and the core never bound its IPC socket (the M5, 2026-11-07 19:11Z; boot wedged 300 s, restart loop). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…(regression for the M5 boot wedge, #5835 -> #5837) #5835 held a planned_budget guard as a temporary in launch_pool's argument list while seated_for, another argument, locked the same non-reentrant mutex: the serving reconcile deadlocked and the core never bound its socket (the M5, 2026-11-07 19:08Z). Its tests covered only launch_pool as a pure function. This one calls engine_pool on a real ServingDaemonModule with a planned budget set, under both credit facts, on a thread with a 10 s deadline, so a deadlock fails in seconds instead of wedging a node. Mutation-proved: with the guard back in the argument list the test fails at its deadline (11.34 s); with #5837's separate statements it passes (one_launch 5/5). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
deleted the
5a0535e7/engine-pool-returns-on-a-real-daemon-wit
branch
November 7, 2026 20:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5835 held a planned_budget guard as a temporary in launch_pool's argument list while seated_for,
another argument, locked the same non-reentrant mutex: the serving reconcile deadlocked and the
core never bound its socket (the M5, 2026-11-07 19:08Z). Its tests covered only launch_pool as a
pure function. This one calls engine_pool on a real ServingDaemonModule with a planned budget set,
under both credit facts, on a thread with a 10 s deadline, so a deadlock fails in seconds instead
of wedging a node. Mutation-proved: with the guard back in the argument list the test fails at its
deadline (11.34 s); with #5837's separate statements it passes (one_launch 5/5).
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE