Slim features: the agent-device front maps deviceNeeds
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/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
- backend-api-design, documentation
Hướng nghiên cứu
Read src/agent-device/AGENTS.md and ADR 0105, then trace leaseCallFields in src/agent-device/shared/rpc.ts, the mapping and stripped allocate in src/agent-device/front/allocate.ts, and key rules in src/agent-device/front/request-rules.ts. Use src/agent-device/device-mode.test.ts as the test entry point for B14, covering mapping, invalid values, and removal before forwarding. Done when pnpm test:changed passes and website/src/content/docs/docs/using-devices/agent-device.mdx mentions deviceNeeds beside deviceExcept.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #2100.
Scope
An agent-device client that sends deviceNeeds on allocate leases with needs, and agent-device itself never sees the field. agent-device's CLI must add the flag before its users can send it (it has none for deviceExcept either); this task makes Simlock ready for it.
If it goes wrong, deviceNeeds would be dropped (the lease granted without the needs) or passed to agent-device, which would refuse the unknown key.
Technical spec
Commit 9280021730c4e42a4523592833c68bff7bf9ff05.
Rows
- Behaviours: B14
- Interfaces: I8
- Existing code: X25, X29
Facts
| # | Fact | Source |
|---|---|---|
| F1 | agent-device v0.21.43 (the version package.json pins) passes deviceMode and deviceBaseline from its options into a command's flags and has no deviceExcept or deviceNeeds; Simlock's front maps deviceExcept only when a client sends it |
gh api 'repos/callstack/agent-device/contents/packages/command-surface/src/command-flags.ts?ref=v0.21.43' printed lines 64-65 (deviceMode: options.deviceMode, deviceBaseline: options.deviceBaseline); gh api 'search/code?q=deviceExcept+repo:callstack/agent-device' printed 0 |
Modules touched
Searches: rg -n "deviceExcept" src.
src/agent-device/shared/rpc.ts(leaseCallFields),src/agent-device/front/allocate.ts(the mapping and the stripped allocate),src/agent-device/front/request-rules.ts(ruleLeaseKeys)src/agent-device/device-mode.test.ts(B14)- website:
using-devices/agent-device.mdx
Rules in play
- ADR 0105 §1 and Consequences: the front maps
deviceNeedsas it mapsdeviceExcept. src/agent-device/AGENTS.md, Front:checkRequestand the key rules run before anything is forwarded.
Tests
The seam is the agent-device front, model on src/agent-device/device-mode.test.ts.
- B14: An agent-device allocate with
deviceNeedsleases withneeds, and agent-device never sees the field:deviceNeeds: [push]→ lease requestneeds: [push], allocate forwarded without it;deviceNeeds: null→ absent;["Push"]→refused by simlock:with I1's message and no lease;"push"→refused by simlock:with the messagelease.requestgives it and no lease; a command withdeviceNeedsonflags, oninputor in a batch step reaches agent-device without it
Done when
pnpm test:changedpasses, with the B14 cases above.website/src/content/docs/docs/using-devices/agent-device.mdxnamesdeviceNeedsbesidedeviceExcept.
Out of scope
- The flag in agent-device itself (callstack/agent-device).
Depends on
- #2104
Written by an agent.
- Ngôn ngữ chính
- TypeScript
- Star
- 730
- Fork
- 44
- Merge trung bình
- 15 giờ 44 phút
- Pull request đã merge (30 ngày)
- 378
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của callstackincubator/simlock
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
callstackincubator/simlock#2113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
callstackincubator/simlock#2112 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
callstackincubator/simlock#2108 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform:ios task:ready
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
callstackincubator/simlock#2107 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform:ios request:new
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
callstackincubator/simlock#2106 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của callstackincubator/simlock
Issue tương tự
-
BUG: Backend Docker build fails due to Go version mismatchCó thể đã có người làm @Aakriti0207 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 93/100
gittuf/visualizer#203 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug 🐛
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
BaaRai/ARTEX#981 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participantsCó thể đã có người làm @Djiit đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#4517 ·
Maintainer thường phản hồi trong vòng 1 ngày