agentscope-ai / agentscope-ai/agentscope-runtime

[Feature] Add deterministic Guardrail to sandbox_tool_adapter

オープン
#465 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
863
フォーク
168
PR マージ指標
30日以内にマージされた PR はありません

説明

## Problem Description
AgentScope Runtime's sandboxing strategy isolates tool execution (good for containment) but doesn't address authorization (what the agent is allowed to do). A sandboxed malicious tool call still exfiltrates data.

## Proposed Solution
The framework needs deterministic pre-action authorization - checking the tool call against policy **BEFORE** it enters the sandbox. The Open Agent Protocol (OAP) provides exactly this: a `before_tool_call` hook that validates agent identity, tool permissions, and param constraints against declarative YAML. Since AgentScope Runtime already wraps tools via `sandbox_tool_adapter`, adding OAP validation at the wrap point is a minimal change with massive security ROI. DOI: [10.5281/zenodo.18901596](https://doi.org/10.5281/zenodo.18901595)

Re: https://www.npmjs.com/package/@aporthq/aport-agent-guardrails

## Affected Component(s)
- [ ] Engine
- [x] Sandbox
- [ ] Common
- [x] Tools
- [ ] Documentation
- [ ] Other: ___________

## Alternatives Considered
Considered input/output guardrails but that is not deterministic and Guardrails in the LLM level can be bypassed.

## Additional Context
Audit Trail of All tools calls

Image

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。