Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Say how an agent should weigh annotations that the page wrote about itself

Aperta Adatta ai principianti
#353 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@kenchris ci sta già lavorando.

Dal 20/10/2026.

  • #355 di @kenchris — aperta
  • #358 di @kenchris — aperta

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 consequentialHint to 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:

  1. Annotations are advisory. A hint that raises scrutiny may always be honoured.
  2. 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.
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webmachinelearning/webmcp

Tutte le issue di webmachinelearning/webmcp

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.