Repository navigation
feat(agent): run parallel tool groups around sequential barriers - #250
Merged
Merged
Conversation
- Let independent calls overlap around sequential barriers - Preserve plan persistence and source-ordered results
- Guard exclusive barriers, settlement, cancellation, and batch termination - Verify completed phases are visible to session preflight hooks
- Describe phase-local preflight and awaited result settlement - Clarify termination, cancellation, and model independence responsibilities
- Match the persisted plan context added to branch and compaction summaries - Keep exact summary assertions while restoring offline suite coverage
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
Mixed tool batches containing
update_planor another sequential tool currently serialize every call.Execute consecutive parallel-capable calls concurrently while keeping sequential tools as exclusive barriers in assistant source order.
For example,
read A, read B, update_plan, read C, read Druns as[A + B], thenupdate_plan, then[C + D].Reasoning
Reuse the existing executors and
executionModemetadata to preserve tool lifecycle behavior without introducing another scheduling mode or configuration flag.Each phase settles execution, result hooks, completion events, and ordered result-message events before the next phase starts preflight.
The model selects independent calls; file dependencies and shell side effects are not inferred.
Changes
update_plantool.Testing
npm run checkpassed../test.shpassed with credentials isolated; localhost fixture servers required running outside the filesystem/network sandbox.