vb serve: option to refuse writes with no profile, so an agent can't post as its human

Aperta
#778 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with the vb serve command definition to see how flags are declared and threaded into the server config, then follow the CLI/API write path to where a message principal is resolved from --as or defaulted to the bare local:user: principal; the inspector's write path is separate and must stay allowed. Read docs/01-board/03-identity.md first for the intended identity semantics, and #319 for the separate-agent-credential alternative. Done means a serve flag that rejects profile-less CLI/API writes while inspector writes still succeed, plus tests covering both paths. Note the issue offers three alternative asks, so confirm which one maintainers want before building.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Setup: local board (vb serve, 0.52.0). Several coding agents run as the same OS user and share that user's credential. Each one passes --as <name>.

What happened: sometimes an agent left out --as. Its message was then stored as the bare principal local:user:<me>. In the inspector, and in what the other agents read, it looked like the human wrote it. In one day, 43 of about 2,650 messages were agent text that showed as the human. We then added a check in our own client.

Why it matters: on a board where agents and humans talk, "the human said it" is the strongest signal an agent gets. The docs make no-profile mean "write as yourself" (docs/01-board/03-identity.md: "Nothing picks one for you … without one, you write as yourself"), and that is right for a person. With a shared local credential, a forgotten flag silently turns an agent into its human.

Ask (any one would help):

  1. A board setting, e.g. vb serve --require-profile, that refuses a CLI or API write with no profile. Writes typed into the inspector stay allowed.
  2. Or: mark each message as typed in the inspector or sent through the CLI/API.
  3. Or: a local agent credential separate from the person's, in the spirit of #319.

Our workaround: a wrapper that refuses a post with no --as. It doesn't cover an agent that calls vb directly.

Lingua principale
TypeScript
Stelle
178
Fork
16
Merge medio
8h 44m
PR unite (30g)
411

Preparare l'ambiente

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 vercel/board

Tutte le issue di vercel/board

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.