Repository navigation
π feat: Add Per-Call Subagent Machine Selection #16757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,108
β205
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
45ad7a6
π§ feat: Let a Parent Choose Its Subagent's Code Machine Per Call
danny-avila 9d2a990
π§ fix: Reserve Default Routes Early and Route a Routed Subagent's Graβ¦
danny-avila b55612a
π§ fix: Settle Concurrent Inherited Routes and Register Routed Graph Mβ¦
danny-avila aaeef87
π§ fix: Re-read Inherited Routes After Resolving Subagent Targets
danny-avila c78629f
π§ͺ test: Prove a Routed Graph Member Takes Its Machine's Policy Througβ¦
danny-avila e841b31
π§ fix: Hold a Lazily Loaded Graph Member's Default Machine While It Iβ¦
danny-avila a6ce0fa
π§ fix: Validate the Approval Mode Against Every Machine a Subagent Maβ¦
danny-avila ab9e7c7
π§ fix: Admit, Prime, and Cancel Per-Call Subagent Routes Conservatively
danny-avila f570bca
π§ fix: Release Unused Route Claims and Scope Per-Call Machines to Theβ¦
danny-avila 9469c22
π§ fix: Give Back a Route When Its Placement Verification Fails
danny-avila a9727a5
π§ fix: Commit a Lazy Child's Routes Only When Its Whole Resolution Suβ¦
danny-avila a6c1757
π§ fix: Drop a Failed Lazy Resolution's Config from the Graph Cache
danny-avila dcc783b
π§ fix: Follow a Routed Agent Through Self-Spawned Runs and Scope Routβ¦
danny-avila f63b34e
π§ fix: Pass a Machine On Through Self-Spawned Runs of Agents Without β¦
danny-avila f3f8b82
π§ fix: Keep a Pass-Through Route Only When Its Resolution Succeeds
danny-avila 331c2e7
π§ fix: Settle a Lazy Child's Routing State at the SDK Handoff
danny-avila faded6d
π§ fix: Keep Per-Agent Tool Contexts on Live Placements and Queue Targβ¦
danny-avila 1a25692
π§ refactor: Load Routed Graph Members Through a packages/api Service
danny-avila f274737
π§ fix: Share a Lazy Child's Config with Later Graphs Only After It Coβ¦
danny-avila File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a lazy child has a permissive attached default but a routable alternate machine whose policy can return
ask, approval-mode validation now examines both routes, butbuildAttachedCodeEnvironmentAdmissionHooksstill receives the default-onlyattachedCodeEnvironmentSettings. On a scheduled run,runCanPausecan therefore remain false and skip the Redis/durable-checkpointer requirements; if the model selects the alternate, lazy registration changes the runtime hook toaskonly after that preflight, leaving the resulting pause on an unsupported topology. Build admission metadata conservatively from everycodeExecutionChoice, not only the default context.Useful? React with πΒ / π.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in ab9e7c7:
buildAttachedCodeEnvironmentAdmissionHooksnow also takes each agent's per-call route policies (collectAttachedCodeRoutePolicies: default route plus every attachedcodeExecutionChoice), and an agent counts as able to pause for a category when any of those machines asks. The client's scheduled-run admission passes them, so a permissive default no longer hides an asking alternate and the Redis/durable-checkpointer requirements apply. Covered by a test.