Repository navigation
Preserve descendant limits and settle owned subagent execution - #124
Draft
Ken Chau (kenotron-ms) wants to merge 2 commits into
Draft
Ken Chau (kenotron-ms) wants to merge 2 commits into
Ken Chau (kenotron-ms) wants to merge 2 commits into
Conversation
Ken Chau (kenotron-ms)
requested a review
from Brian Krabach (bkrabach)
as a code owner
October 28, 2026 21:29
Ken Chau (kenotron-ms)
marked this pull request as draft
October 28, 2026 22:03
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
Subagents could reset their delegation depth in a new host session, restart a closed pending handle, and continue executing after
close_agentreturned. Propagate the effective depth and limit, own one execution task per handle, wait for cancellation to settle, and report unfinished host results as unsuccessful.The root-install CI fixture also overrode every module in this repository, displacing the public engine's same-named filesystem apply-patch dependency. Limit candidate overrides to the root distribution's five declared same-repository runtime dependencies; keep engine-owned dependencies and the mandatory public
create_agentsmoke intact.The canonical coding-agent-loop specification §§7.2–7.3 defines termination, independent child sessions and configurable descendant depth together; these changes preserve that lifecycle contract without changing pipeline traversal or the existing deferred-start interface.
Verification
create_agent/closesmoke passes.uv pip checkpasses for all 113 installed packages.Checklist
ruff checkclean (existing file warnings retained)ruff format --checkclean