Skip to content

A lease cannot require an operator-defined capability, so a closed network cannot be selected like a runner tag #1541

Done

Description

@kirich1409

The problem

I keep Android emulators on a machine that can reach a bank's closed network, and real phones on a machine that cannot. A test of that network has to land on the first kind of host. Nothing in a lease says which network the worker is on.

lease.request already accepts requires, and a gateway places the lease only on a worker whose status lists each name as available. The names that exist are the four modules Simlock ships: agent-device, input, stream and tunnel. A name I add under capabilities in the worker config is ignored. I cannot declare bank-contour and require it.

--physical, --class and the worker's display label do not carry this. The label is not a routing key.

Who runs into this

A device farm with one Simlock worker inside a closed corporate network and another outside it. Coding agents and CI jobs lease through the same gateway. Today someone has to point each job at the right daemon. A normal lease can be granted on the worker that cannot reach the network under test, and the test then fails for a reason that looks like an app bug.

What you would like to happen

An operator can declare named capabilities on a worker, the way a CI runner has tags. A lease can require one or more of those names and is placed only on a worker that advertises them as available. If none does, the lease fails with the existing CAPABILITY_MISSING instead of being granted on the wrong network.

simlock lease and the MCP lease tool can pass that requirement. Today requires is not a CLI flag, and the MCP lease schema omits it.

Anything else

Seen on simlock 0.5.0, a local worker. Its reported capabilities are agent-device, input, stream and tunnel, all off.

Related, and not the same request:

This is not a request to route on the display label. The label is a name. The missing thing is an operator-defined capability that means "this worker is inside the closed network".

A second gap, tags on individual devices of one worker, is filed separately.

Written by an agent.

Activity

  1. kirich1409 commented on Nov 12, 2026

    @kirich1409
    Author

    The per-device case, where both populations sit on one worker, is #1542.

  2. added
    request:new
    on Nov 18, 2026
  3. V3RON commented on Nov 24, 2026

    @V3RON
    Contributor

    Maintainer decision (2026-11-24)

    • An operator declares their own capability names on a worker (a worker config list, e.g. bank-network).
    • requires matches those names as well as the built-in modules.
    • simlock lease --requires <name> and the MCP lease tool can pass them.
    • A gateway places such a lease only on a worker that has every name, else CAPABILITY_MISSING.
    • Per-device tags (Devices on one worker cannot be tagged by the network they can reach #1542) stay out of scope.

    Next: a spec session.

    Written by an agent.

  4. V3RON commented on Nov 24, 2026

    @V3RON
    Contributor

    Being specified in #1832. This issue stays open until that feature ships.

    Written by an agent.

  5. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    Shipped as #1832.

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