Say how an agent should weigh annotations that the page wrote about itself
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- markdown
- Lĩnh vực
- documentation
Hướng nghiên cứu
Đọc các mục 6.3.2, 6.4.4 và 6.4.5, cùng với những khoảng trống hiện tại và các cân nhắc về bảo mật được đề cập trong issue. Soạn một phần bổ sung ngắn, không mang tính quy phạm vào các biện pháp giảm thiểu ở mục 6.4, giải thích cách các agent nên xử lý những gợi ý làm tăng hoặc giảm mức độ rà soát và quyền của origin của trang. Phần bổ sung được xem là hoàn tất khi đề cập đủ cả ba điểm được đề xuất và liên kết khoảng trống hiện tại với hướng dẫn giảm thiểu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The annotations (readOnlyHint, untrustedContentHint, consequentialHint) are written by the page, and agents will use them to decide when to ask the user. The security considerations describe the risk, but the mitigations do not say how much weight an agent should give a hint that the page wrote about itself. I'd like to propose a short, non-normative addition.
What the spec says today
- 6.3.2: "There is no guarantee that a WebMCP tool's declared intent matches its actual behavior."
- 6.3.2.4 (Current Gaps) lists "Agents must assume good faith from site developers."
- 6.4.4 and 6.4.5 call the hints "a signal to the client", and 6.4.5 says clients can use
consequentialHintto enforce confirmation prompts. - 6.3.2.1 notes that the user's cookies and session state are available to the page, so a tool can do high-privilege actions on that origin.
So the spec says a declared intent may not match the behavior, lists the need to assume good faith as a current gap, and then offers the hints as the mechanism for confirmations. It does not say what an agent should do with that tension, so an implementer has to decide on their own. MCP is clearer: clients must treat annotations as untrusted unless the server is trusted, and its post on annotations as a risk vocabulary says hints inform decisions and only controls enforce them.
Why it matters
Hints do not all carry the same risk when they are wrong.
- A hint that raises scrutiny (
consequentialHint: true,untrustedContentHint: true) can only add friction. An agent can honour it from anyone. - A hint that lowers scrutiny (
readOnlyHint: true,consequentialHint: false) is a claim by the page about itself. If it is wrong, a tool runs without the user being asked, with the user's session on that origin (6.3.2.1).
Without guidance, agents will make different choices, and a page author cannot know what a hint will do in a given agent.
Proposal
Add a short note to the mitigations in 6.4 (non-normative to start with) saying:
- Annotations are advisory. A hint that raises scrutiny may always be honoured.
- A hint that lowers scrutiny should not on its own cause an agent to skip a confirmation that it would otherwise require. It may be taken into account together with what the agent knows about the origin and the tool.
- A tool runs with the registering page's own reach: the cookies and session of that origin (6.3.2.1), and nothing beyond what scripts in the page already have.
This would also give the "current gaps" in 6.3.2.4 something to point at.
Related: #331 (what consequentialHint covers), #53 (hint semantics and defaults), #288 and #298 (page-side approval steps and write boundaries), #313 (mitigations in general).
- Ngôn ngữ chính
- Bikeshed
- Star
- 4.7k
- Fork
- 328
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 15
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 webmachinelearning/webmcp
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webmachinelearning/webmcp#343 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Agenda+ i18n-tracker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
webmachinelearning/webmcp#273 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y-tracker Agenda+
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
webmachinelearning/webmcp#272 · 4 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
webmachinelearning/webmcp#234 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
webmachinelearning/webmcp#354 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của webmachinelearning/webmcp
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
qatrackplus/qatrackplus#913 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jhspetersson/fselect#187 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
drevendev/BeautifulRepo#42 ·
Maintainer thường phản hồi trong vòng 1 ngày