Repository navigation
Conversation
Issacboy123
force-pushed
the
stack/native-plan-03-runtime
branch
from
August 16, 2026 03:14
aa78294 to
530d68d
Compare
Serialize runtime replacement and disposal so outgoing sessions remain valid until their successors are ready.
Prepare forked and restored runtimes without mutating the live session before replacement succeeds.
Activate routed harness sessions atomically and hand accepted plan continuations to the selected runtime.
Pepps233
force-pushed
the
stack/native-plan-03-runtime
branch
from
August 16, 2026 03:54
530d68d to
24b4fec
Compare
This was referenced Aug 16, 2026
Contributor
Author
|
Closing to rebuild on a clean base. This stack does not build. Two separate defects are present, and the first masks the second:
Replacement stacks:
The branch behind this PR is retained unchanged as a backup. |
This was referenced Aug 16, 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.
Summary
Refactors session and harness replacement into a prepared, reserved, and committed runtime transition that keeps the current session intact until its successor is ready.
Routes accepted plan continuations into the appropriate task-scoped runtime before implementation begins, while ordinary planning turns remain in their current session without automatic profile switching.
Reasoning
Runtime replacement spans asynchronous routing, candidate creation, extension shutdown, host invalidation, activation, and UI rebinding.
Tearing down the current runtime before those prerequisites succeed can strand the user with a dead session, while allowing overlapping prompts or replacements can deliver input to the wrong transcript.
Accepted plans add a stricter ordering requirement because the implementation continuation must be delivered exactly once under the selected implementation harness.
Session identity, leaf position, collaboration state, and disposal status therefore need to be revalidated at each asynchronous boundary before ownership changes.
Changes
AgentSession, prepares the successor before shutdown, and releases the reservation without replacing the live runtime when candidate creation fails.SessionManagerthat has been adopted by the successor runtime.Testing
npm run checkpassed.