Repository navigation
Desktop launchers start runner containers on demand - #66
Merged
Merged
Conversation
RegisterRunner gains a role and the launch a container was started for. A desktop app can register a runner as a launcher, with no container running, and receive the launch it should work on over LauncherStream; it reports progress with ReportRunnerLaunch and asks ReleaseRunner before stopping a container. The agent registers as an executor and echoes RUNNER_LAUNCH_ID. docs/contracts-sync.md holds the launch and release rules; the desktop app's launcher and the control plane's side are not built yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ol 6 - ReleaseRunnerRequest.container_exited (5): a container the launcher started is gone, or was stopped without a granted release; the control plane ends its executor's session instead of checking it is idle. - RuntimeStatus.adopted_runtime_order (9): the newest runtime this process adopted, read before the session, so a report sampled before a first Start is acknowledged is not taken as "no session" after it. The agent now sends it. - RegisterRunnerRequest.offer_revision (13) and LaunchRunnerCommand.offer_revision (5): a launch carries the launcher's offer it was allocated against, so an offer change needs no new launcher instance. - An unknown launch_id is fenced like a retired one; the release's launcher instance is recorded, not checked; an agent restarted in its own container replaces itself despite the busy rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launcher has its registration with a new offer_revision accepted before it reports FAILED for a launch stamped with an older one: that registration retires the launch, and a FAILED that arrived first would fail its allocation. The control plane issues at most three launches per allocation for containers that exit before their agent registers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
RegisterRunner gains a role and the launch a container was started for. A desktop app can register a runner as a launcher, with no container running, and receive the launch it should work on over LauncherStream; it reports progress with ReportRunnerLaunch and asks ReleaseRunner before stopping a container. The agent registers as an executor and echoes RUNNER_LAUNCH_ID. docs/contracts-sync.md holds the launch and release rules; the desktop app's launcher and the control plane's side are not built yet.