Skip to content

The fleet serves only agent-device users: CLI agents, CI runners and operators each hit a gap #945

Closed

Description

@V3RON

Problem

The website promises "one machine, then a fleet of them". Today the fleet is reachable end to end only through agent-device. Every other kind of user hits a gap before they can install and run their own build on a remote worker.

A CLI agent on a developer's laptop (Claude Code, Codex, any shell agent)

  • simlock talks only to the daemon on its own machine (using-devices/remote-agents.mdx, first line). There is no URL-plus-token mode, so an agent on a laptop cannot simlock lease from a gateway at all. The HTTP routes it would need (lease-requests, renew, release, exec) already exist, and simlock --gateway simctl already maps passthrough onto device.exec. What is missing is the transport in the CLI.
  • Even with that, simctl install and adb install resolve the path on the worker. The agent cannot put its build there. docs/internal/IDEAS.md records a device.upload operation as the designed shape, deferred "until a remote agent needs to install a fresh build". That agent is the one in the hero.
  • simlock mcp has both gaps too.

A CI runner over the HTTP API

  • An Android lease returns udid = AVD name, not the adb serial, so the runner loops over adb devices and emu avd name to find its emulator (Android leases over HTTP give no adb serial: udid is the AVD name #817).
  • exec output is decoded as UTF-8, so a screenshot to stdout is lost; the docs say to write it to a file on the worker. There is no download route, so that file is stuck there. Artifacts cannot move in either direction.
  • simlock/client is local-socket only (programmatic-client.mdx), so a remote caller has no typed client.

agent-device through a gateway works, uploads included. Left: the gateway section of using-devices/agent-device.mdx has no --physical part; the page is ambiguous on whether fleet tokens are minted with --gateway; and the capability list lags one status refresh, so an open can land on a worker whose agent-device daemon just stopped (ADR 0026, Consequences).

A fleet operator

  • No way to pin a request to a worker or select by label; label is display-only (src/gateway/worker-registry.ts), and IDEAS.md defers selectors and affinity.
  • A gateway restart loses every queued fleet request (src/gateway/AGENTS.md, Known gaps).
  • A worker's claimed id is never checked against its join token, so any worker token can take over another worker's link (same section).

Context

Found in the 2026-10-23 product review. The maintainer's decision: the fleet must serve CLI agents, CI runners and agent-device users alike.

The pieces are separable and a spec session should split them. The two with the largest effect on the promise are the remote CLI mode and device.upload; #817 is a small fix; a download route and label routing follow.

Written by an agent.

Activity

  1. added
    request:new
    on Oct 23, 2026
  2. V3RON commented on Nov 5, 2026

    @V3RON
    ContributorAuthor

    Data point for this gap from budgie's e2e suite (budgie-at/budgie#1867). It runs the e2e runner from Linux against a simlock gateway behind a Cloudflare tunnel, 10 workers, one iOS lease each.

    • Uploads: each lease uploads the same .app through the gateway. Requests past 100 s end in a Cloudflare 524 error, so the suite uploads at most 3 at a time. About 4 of the run's 15 minutes are setup (leases, uploads, XCTest runner start). Uploading once and installing on many leases would remove most of the upload part.
    • Files onto the device: with no push route, they built a helper simulator app (E2EDrop) and send fixtures as base64 raw-deflate on exec stdin, unpacked with simctl spawn <helper> untar <dir>. That's the device.upload design in IDEAS.md, plus a way to place files in an app's data container.

    Written by an agent.

  3. V3RON commented on Nov 17, 2026

    @V3RON
    ContributorAuthor

    Split in the spec session of 2026-11-17. What is still open of this request is now specified as three features:

    Already done since this request was written: #817 (Android adb serial), lease files upload and download (#1351), and a worker id pinned to its join token. Label routing and pinning a request to a worker stay in docs/internal/IDEAS.md ("Richer routing") until asked for.

    This issue stays open until the three features ship.

    Written by an agent.

  4. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Shipped as #1635.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions