Say how an agent should weigh annotations that the page wrote about itself
I maintainer di solito rispondono entro 1 giorno
@kenchris ci sta già lavorando.
Dal 20/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- markdown
- Ambito
- documentation
Direzione di ricerca
Leggi le sezioni 6.3.2, 6.4.4 e 6.4.5, oltre alle lacune attuali e alle considerazioni sulla sicurezza menzionate nell’issue. Redigi una breve aggiunta non normativa alle mitigazioni della sezione 6.4 che spieghi come gli agenti dovrebbero trattare gli indizi che aumentano o riducono il livello di scrutinio e i permessi di origine della pagina. L’aggiunta è completa quando affronta tutti e tre i punti proposti e collega la lacuna attuale alle indicazioni sulle mitigazioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- Bikeshed
- Stelle
- 4.7k
- Fork
- 328
- Merge medio
- 1g 21h
- PR unite (30g)
- 15
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webmachinelearning/webmcp
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
webmachinelearning/webmcp#343 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Agenda+ i18n-tracker
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
webmachinelearning/webmcp#273 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
a11y-tracker Agenda+
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
webmachinelearning/webmcp#272 · 4 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
webmachinelearning/webmcp#234 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
webmachinelearning/webmcp#354 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webmachinelearning/webmcp
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
beginner-friendly category:fixtures community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Berserk-hub150/skillhawk#229 · 1 commento ·
I maintainer di solito rispondono entro 8 giorni
-
changelog investigate
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ramnes/notion-sdk-py#423 ·
-
ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 89/100
duckdb/duckdb-web#7514 ·
I maintainer di solito rispondono entro 1 giorno