Guard human-only Intent commands from agent execution
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- cli, documentation, security, testing
Direzione di ricerca
Inizia individuando la registrazione dei comandi e la gestione esistente di IntentAudience, agent e automation-context. Associa ogni comando elencato a una classe esplicita di effetto e autorità, quindi esegui o aggiungi test mirati che coprano l’osservazione, il rifiuto delle mutazioni, le eccezioni di dry-run, l’autorizzazione di automation e la non-autorità di audience o pseudo-TTY; il lavoro è completato quando tutti i comandi registrati sono classificati e la matrice di accettazione ha esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
IntentAudience controls presentation and redaction only. It is not authority. A TTY proves terminal interaction, not human identity. Current hooks are soft, fail-open convenience controls, not a security boundary. An agent with unrestricted shell and repository write access can bypass CLI guards or edit files directly. OS and host permissions remain the hard boundary.
Intent needs a command effect and authority classification that is separate from audience so an agent context cannot use presentation state or a pseudo-TTY to authorize trust or delivery changes.
Intent has no skill download command today. load reads an already installed permitted skill; it does not download content.
User outcome
Humans can keep existing confirmation-based trust and delivery workflows. Agents can inspect permitted Intent state and load already installed permitted skills. Automation can run its supported paths only through an explicit automation context. Audience never grants mutation authority.
In scope
- Introduce a command effect and authority classification separate from
IntentAudience:observe,trust-mutation,delivery-mutation,source-mutation, andautomation. - Classify these as agent-safe observation:
listandlist --jsonloadof an already installed permitted skillmetaexclude listvalidateandvalidate --checkstaleandstale --jsoninstall --dry-runinstall --map --dry-runinstall --print-promptscaffold
- Classify these as human-only trust or delivery mutations:
installwhen it writesintent.skillsor guidanceinstall --mapwhen it writes guidanceexclude addandexclude removehooks installsetupandsetup-github-actions- any future skill acquisition or download command, if introduced
- Classify
validate --fix,validate --set-version, andedit-package-jsonas source mutations governed by the caller's repository-write authority, not byIntentAudience. - Classify
validate --github-summaryand supported CI workflow paths as automation-only, with explicit CI identity and token permissions. - Require command implementations to declare their effect and authority class at registration or through one shared command policy.
- Deny an agent context before a human-only command can prompt, scan for selectors, write package policy, write guidance, install hooks, or install workflows.
- Preserve explicit automation paths without treating a TTY, an environment variable, or audience as authenticated human authority.
- Add focused tests for every command class, dry-run exception, mutation denial, automation allowance, and the rule that audience cannot grant authority.
Out of scope
- Cryptographic proof of human identity.
- A claim that Intent can contain an actor with unrestricted shell and repository write access.
- New dependencies or a new skill-content download command.
- Changes to the current Clack interactive permission setup work.
- Amendments to #220 or #228.
Acceptance criteria
- Every registered command action has an explicit effect and authority class.
- Agent execution can run only classified observation paths and can load only already installed permitted skills.
- Agent execution fails before any human-only trust or delivery mutation and before its related prompt or write path.
IntentAudience, TTY detection, host permissions, and CI identity have separate documented roles.- Existing supported automation paths remain usable only through an explicit automation context.
- Tests cover the command matrix and prove that changing audience or using a pseudo-TTY cannot grant human mutation authority.
- The documentation states that host permissions remain the security boundary for actors with unrestricted shell and repository write access.
Dependencies
Blocked by: None
#220 and #228 remain independent. This issue must not block or alter the current Clack work.
- Lingua principale
- TypeScript
- Stelle
- 331
- Fork
- 22
- Merge medio
- 12h 17m
- PR unite (30g)
- 51
Guida per i contributori
Apri la guida per i contributori
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 TanStack/intent
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
Tutte le issue di TanStack/intent
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/inspector#2458 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carbon-design-system/ibm-products#9907 ·