[RefImpl] acs-example-guardian: a policy-backend interface that every step reaches

Aperta
#745 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
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, security

Direzione di ricerca

Start with adapters/src/acs/guardian/example_guardian.py, especially _policy_backend_decision(), and trace the ACS_POLICY_BACKEND selection into the OPA backend. Identify how toolCallRequest, toolCallResult, and the informational steps such as sessionStart, userMessage, and knowledgeRetrieval are dispatched. Done means the Guardian exposes separate evaluate and record operations, OPA implements both, informational steps are audited without changing their responses, and the no-backend default behavior remains unchanged.

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

Descrizione

status:needs-triage type:refimpl
Target runtime or language

Python, adapters/src/acs/guardian (acs-example-guardian)

What this proves

Following Rock's note on #183: the example Guardian has a policy backend since #602, but example_guardian.py imports opa_backend directly in _policy_backend_decision(), and only toolCallRequest and toolCallResult reach it. A policy engine that decides on what happened earlier in the session also needs the other steps (sessionStart, userMessage, knowledgeRetrieval and so on), even if it may only allow them.

Proposal:

  1. A small backend interface in acs/guardian (evaluate for toolCallRequest and toolCallResult, record for the informational steps), selected by ACS_POLICY_BACKEND as now. opa_backend becomes the first implementation; the default path without a backend does not change.
  2. Informational steps reach the backend audit-only: the backend sees them, and the Guardian's answer for them stays as it is.

This shows that the reference Guardian can carry a stateful policy engine without changing the wire layer. We would use it for Kyvvu's policy engine, which now runs behind its own ACS Guardian, kyvvu-acs (announced in https://github.com/GenAI-Security-Project/agent-control-standard/discussions/617). With this interface we would maintain one backend plug-in instead of our own wire layer.

Do you intend to implement this yourself

Yes, I want this assigned to me

Current Priority Scope

Feeds the runnable Guardian reference implementation

Lingua principale
TypeScript
Stelle
183
Fork
56
Merge medio
3g 1h
PR unite (30g)
67

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 GenAI-Security-Project/agent-control-standard

Tutte le issue di GenAI-Security-Project/agent-control-standard

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.