Add dynamic child process startup - #1391
Open
Weidong Cui (wdcui) wants to merge 17 commits into
Open
Weidong Cui (wdcui) wants to merge 17 commits into
Weidong Cui (wdcui) wants to merge 17 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Converge child startup publication, acknowledgement, failure, shutdown, and finalization across Linux and Windows while preserving process identity safety. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Use one mutex-serialized std::process::Child lifecycle for Linux and Windows exit observation, termination, and final waiting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Replace the parallel startup-thread pin with explicit StartReady and StartCommitted process states completed after acknowledgement publication. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Model every out-of-process runner with RunnerInstance and represent parent-issued startup through RunnerStartup and ProcessStart coordination. Move the process-start state machine into its own module and share one association-serving path across initial and started runners. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Name the module after RunnerProcessManager and represent each in-progress StartProcess operation as a transaction with explicit state. Clarify started-runner configuration and simplify the non-Linux exit-signal helper. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Make StartProcess block until the new runner reports ready and broker startup completes. Remove acknowledgement tokens, receipt state, watchdog workers, and the intermediate committed process state while preserving bounded startup, teardown, and runner finalization. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Allocate process and initial thread identities before launch, commit startup when the broker association activates, and remove the separate readiness protocol. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Weidong Cui (wdcui)
force-pushed
the
wdcui/ulitebox/child-start
branch
from
September 19, 2026 01:39
04425be to
208ecda
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 05547201-01e0-4ff2-87c6-27739e6cc816
|
🤖 SemverChecks 🤖 Click for details |
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.
This PR adds broker-coordinated dynamic child process startup for userland runners: parent requests reserve child process identity and inherited broker handles, authenticated prepared-runner associations receive bounded bootstrap data, and child execution is gated on parent acknowledgement with rollback on launch failure or disconnect. It wires the transaction through Linux and Windows userland transports and runners, drains committed descendants after root completion, and adds protocol, broker-core, and end-to-end coverage.