Repository navigation
test(fix): Compare cold startup events on one clock - #198
Merged
Merged
Conversation
This was referenced Dec 5, 2026
why: The cold-start fixture waited for an asynchronous trace before checking the caller's timely return. A late trace could hide evidence already in its mailbox even when the exact Root had exited. what: - Observe the caller's return while the code loader is suspended. - Verify the killed Root's event time precedes the caller's return. - Keep the original startup, return and cleanup budgets.
BEAM trace events with :monotonic_timestamp use the VM’s native unit. Record the API return in that same unit so exit ordering holds on every supported Linux time source.
tony
force-pushed
the
cold-return-trace
branch
from
December 6, 2026 01:08
f7bf615 to
dfaa2f3
Compare
tony
added a commit
that referenced
this pull request
Dec 6, 2026
why: A tmux hook could add output to a pane or option read. A large MCP reply could hide an operation outcome or advance a cursor before the client received the page. what: - Fit the Program listener to the server socket path, wake waiters on exit, and retry pane removal after a lost reply (#191, #192, #193). - Keep MCP operation outcomes readable and size pages before advancing their cursors. Show the STDIO client reading a result (#194, #195). - Keep hook output out of pane captures and option reads. Use `Pane.wait_for_text/4` in the notebook (#196, #197). - Check root exit separately from trace delivery in cold-start tests (#198). - Document checkout dependencies, inherited sockets and capability APIs (#199, #200, #201).
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.
Refs #5.
What changed, and why
A delayed trace message could hide a caller that returned on time. The fixture reads the caller’s result under the original deadline and compares the root exit with the caller return on the same native BEAM clock. Both cold-start entry points keep their original retirement and observation budgets.
Checks run
Both cold-start cases ran with the loader suspended. A delayed-message control during the investigation distinguished event time from mailbox delivery. The broader startup qualification remains in issue #5.
Review evidence
The cold-start fixture owns event observation. It tests supervisor and connection startup, measuring root exit and caller return on the same monotonic clock.
The fixture changed without a runtime change. In a separate controlled run, a relay delayed delivery of the exit trace until the loader resumed. The old fixture returned
:root_exit_not_observedfor both entry points in 1.658 s with both roots gone. The corrected fixture passed both in 3.408 s. Moving the recorded return before the actual exit still failed in 0.661 s.Merge stack
This PR follows #197 in the tested merge order. The comparison shows this PR’s own changes. Stack #206 · Changes in this PR
All six required Linux jobs passed on
dfaa2f302. GitHub records the stack merge at15b285de9. CI run · Merged commitTool use
Codex extracted this change from #169 and ran the checks above on the topic branch. A separate Codex reviewer checked the component boundaries and the two corrected test fixtures.