Skip to content

Desktop launchers start runner containers on demand - #66

Merged
radiatingreverberations merged 3 commits into
mainfrom
launcher-protocol
Nov 23, 2026
Merged

radiatingreverberations merged 3 commits into
mainfrom
launcher-protocol

Conversation

@radiatingreverberations

Copy link
Copy Markdown
Contributor

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.

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>
@radiatingreverberations
radiatingreverberations merged commit 3459507 into main Nov 23, 2026
10 checks passed
@radiatingreverberations
radiatingreverberations deleted the launcher-protocol branch November 23, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant