Skip to content

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 into
canaryfrom
5a0535e7/engine-pool-returns-on-a-real-daemon-wit
Nov 7, 2026
Merged

joelteply merged 2 commits into
canaryfrom
5a0535e7/engine-pool-returns-on-a-real-daemon-wit

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

#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 and others added 2 commits November 7, 2026 13:26
…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
joelteply merged commit 8a6d018 into canary Nov 7, 2026
12 checks passed
@joelteply
joelteply deleted the 5a0535e7/engine-pool-returns-on-a-real-daemon-wit branch November 7, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant