Repository navigation
Serve Sessions from the agent host - #532
Merged
Merged
Conversation
…Environment A bind at a higher epoch of the bound assignment fences the earlier epoch's work as a release does, closes its Executor and owner, and binds. Transfer slots are held per Session under a per-connection memory bound. environment_quiesce and environment_resume apply to the named Environment: its Executors close and its owners release their attachments while other Environments keep running.
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.
The agent host gets a production entry point, and dispatch stops treating one connection as one Session and one Environment, so a shared agent host can serve many Sessions once PR5c routes them to it.
Daemon
oac-daemon agent-host --identity-file <path> --core-url <url>(Linux only; other platforms return the typed unsupported error). It reads the identity{"runtime_id", "credential"}, takes Harnesses from the image's/opt/oac/harnesses.json, mounts cgroup v2 at/run/oac/cgroup, opensagenthostand runs dispatch with its Environments and registry over the shared connect loop (serveConnections). It exits when Core stays unreachable for 2 minutes.Core–Runtime protocol (
docs/runtime-protocol.md)bound. Unfinished cleanup repliescleanup_unconfirmedand a retry repeats it. A Session's Environment never changes, so a superseding bind naming another Environment fails withassignment_conflictbefore anything is fenced. Lower epochs stayassignment_stale; the same epoch with other fields staysassignment_conflict.execution_start, transfers and its Environment's quiesce. Staged bodies across a connection are bounded by the sum of the write and preparation bounds (100 MiB).environment_quiesceandenvironment_resumeapply to the named Environment; other Environments keep running.proto.Versionis unchanged; the final merge bumps it once.Checks
go test -race ./internal/dispatch/,-race -count=50on the new concurrent tests, focusedagenthost/...,cli,proto; the gated agent-host suite in a throwaway container; darwin and windows daemon builds.make check-names check-docs check-ci.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.