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

Đang mở
#1,541 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, backend, cli

Hướng nghiên cứu

Start by reading the existing requires handling from issue #513, then trace worker configuration and capability reporting, gateway lease placement, the simlock lease CLI, and the MCP lease schema. Check how CAPABILITY_MISSING is returned when no worker matches. Done means operators can declare custom worker capabilities and leases can require them through the gateway, CLI, and MCP tool.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

request:new
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:

  • #513 added requires for the built-in modules. Its out-of-scope note says no CLI flag and no MCP parameter.
  • #945 notes that a fleet operator cannot pin a request to a worker or select by label, and that label is display-only.

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.

Ngôn ngữ chính
TypeScript
Star
705
Fork
40
Merge trung bình
12 giờ 9 phút
Pull request đã merge (30 ngày)
376

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.