[RefImpl] acs-example-guardian: a policy-backend interface that every step reaches
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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:
- 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.
- 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
- Dominant language
- TypeScript
- Stars
- 183
- Forks
- 56
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 67
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenAI-Security-Project/agent-control-standard
-
status:needs-triage type:bug workstream:refimpl
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GenAI-Security-Project/agent-control-standard#764 ·
Maintainers usually reply within 1 day
-
status:needs-triage type:docs
Difficulty 1/5 Under an hour Newbie friendliness 96/100
GenAI-Security-Project/agent-control-standard#717 ·
Maintainers usually reply within 1 day
-
status:needs-triage type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
GenAI-Security-Project/agent-control-standard#650 ·
Maintainers usually reply within 1 day
-
priority:P1 status:needs-triage type:conformance
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
GenAI-Security-Project/agent-control-standard#614 · 1 comment ·
Maintainers usually reply within 1 day
-
[Conformance] Tool-call trace spans are dropped by a GenAI backend: no gen_ai.operation.name, span name is not execute_toolMay be free again A pull request for this issue was closed without being merged. Openstatus:needs-triage type:conformance
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
GenAI-Security-Project/agent-control-standard#520 · 1 comment ·
Maintainers usually reply within 1 day
All issues in GenAI-Security-Project/agent-control-standard
Similar issues
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TanbirRamim/vibereel#39 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 72/100
lingdojo/kana-dojo#34988 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mastra-ai/mastra#32336 · 1 comment ·
Maintainers usually reply within 1 day