Repository navigation
Route Environment work through one owner - #510
Merged
Merged
Conversation
dispatch.Environment is the contract between the Router and a Session's Environment owner, resolved once from the Session's first assignment_bind. The owner configures and prepares executions (including read-only preparation), applies runtime_prepare, lists, writes and exports the workspace, and releases its hold on assignment_release. The Router keeps admission, transfer framing and fencing. Preparation admits the assignment before it consults the owner. A Session without an owner gets each operation's typed unsupported code, and a Runtime that resolves owners rejects the bind of a Session it does not serve with assignment_conflict. The daemon adapts localworkspace.Binding as the owner at composition and declares workspace_read_preparation and workspace_output_export from it. The Run-path type assertion that fell back to the Harness Session is gone, and with it the workspace extension interfaces, the adapter stubs and declarations, and Claude's workspace_directory bridge in Go and TypeScript.
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.
dispatch.Environmentis the one contract between the Router and a Session's Environment owner. It is resolved once, at the Session's firstassignment_bindon a Router, and closed at release after work and Executors settle.runtime_prepare, lists, writes and exports the workspace. The Router keeps admission, transfer framing and fencing.assignment_conflict.localworkspace.Bindingas the owner and declaresworkspace_read_preparationandworkspace_output_exportfrom it.workspace_directorybridge (Go and TypeScript), and unreachable write/export branches.runtime-protocol.mdandharness-onboarding.md(en + zh).Lane H2a of the agent-outside-sandbox plan; blind-reviewed. Deferred to H2b: typed results/errors in the contract file, owner close on Router shutdown, and one composition of the read-only/export declaration.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.