Repository navigation
e2e:supervisor-daemon case (n): the need may find the host parked or still settling its idle exit - #413
Merged
Conversation
…still settling its idle exit (restarting for one pid poll, longer while the command's own load holds mawsd's event loop, the supervisor then holding the wake's ping and launching at the close); both state words are the need's wake, the need's line and the new host still asserted (merge gate 41231090341, attempt and retry) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 1, 2026
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
This was referenced Nov 1, 2026
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.
The failure
e2e:supervisor-daemon case (n) from #411 failed twice, attempt and retry, on the merge gate for #410 (run 41231090341). The failing line asserted that the need's log line read
which is parked: waking it. In both attempts it readwhich is restarting: waking it. Both attempts answered within the bound from a newly spawned engine host, so the product behaved correctly.Is
restartingafter an exit-when-idle a normal transient? YesFrom the code:
closed()reportsdisconnected, and the link readsrestarting.PID_POLL_MS, 200 ms), with the pid gone and the exit asked asidle, the transport reportslost('deliberate').deliberate()then does one of two things:So the link cannot stay
restarting. In the failing run the window was stretched by the command's own spine load, which held mawsd's event loop for about 170 ms. The need landed inside it, and the supervisor held the wake'sengine.ping. Then:This is #411's held-ping path through the closing window, working as designed.
The fix (test only)
The case now accepts both state words,
parkedorrestarting. A comment explains why. I chose this over waiting for the park because, apart from mawsd's own status read, nothing outside the daemon shows the park, and that read (daemon.status'shost.supervisorStatus) wakes the host itself. A fixed sleep would only shorten the window, not remove it. The case still asserts:Note from reading the code (not observed)
There is one path where an idle exit does not end in a park: the host's pid is still alive one poll after its socket closed. That is read as a quiet loss (
lost('quiet')), and the host is relaunched after the restart backoff instead of parked. It needs the process to outlive its socket by more than 200 ms. In these logs the exit came about 30 ms after the ask, so I have not acted on it.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)