Repository navigation
feat(runtime): add configurable session isolation strategies - #241
Merged
Merged
Conversation
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.
Adds optional Session isolation selection to Team and Workflow calls. A Team can set a run default and role overrides; Workflow agents can inherit that default or override it per call. Existing
use_worktreesand booleanisolationcalls retain their defaults.The implementation reuses the current environment-pool operations for shared workspaces, worktrees and caller-provided factories. Nested roles inherit their actual spawning parent's environment. Cleanup preserves source dependencies and shared aliases, and an isolated entry agent saves its patch before its workspace is reclaimed.
Functional validation covers real Git workspaces, custom providers, nested Team spawns, failed shared-child construction, cross-strategy cleanup and descriptor ownership. Independent review findings were reproduced, repaired and checked again. Ruff, import-linter and deptry pass. The complete GitHub Actions checks pass, including the Python 3.10–3.14 suites, distribution verification, macOS tests and documentation translation checks.
This is the first part of the runtime feature series #241, #242, #243 and #244. It provides the environment selection used by the following Docker and managed Workflow changes.