[Feature] Content-level governance boundary — PII detection, prompt injection defense, and cost budgets for Bot tool arguments
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- backend-api-design, security
Hướng nghiên cứu
Bắt đầu bằng việc xác định pipeline gateway của máy chủ được mô tả trong issue, đặc biệt là điểm sau khi đánh giá CEL và trước computer call, đồng thời xem xét interface plugin boundary hiện có. So sánh các entry point được đề xuất cho gateway plugin, boundary preset và agent middleware; công việc hoàn tất khi một hướng tích hợp đã được quyết định cùng với hành vi quản trị nội dung của hướng đó được xác định và được bao phủ bởi các test phù hợp của dự án.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
OpenBot's gateway handles infrastructure-level governance brilliantly — CEL policies on browser URLs, file paths, shell commands, and MCP tool classification. But there's a gap at the content level:
-
PII in tool arguments — A Bot can pass an SSN, credit card number, or email to a tool without the gateway noticing, because CEL evaluates
tool.nameandpage.url, not the argument content itself. -
Prompt injection via tool inputs — If a retrieved document or user message contains "ignore previous instructions...", that flows through the AG-UI endpoint into the Bot's tool arguments. The gateway sees a valid tool call to a permitted target — the adversarial content is invisible to CEL.
-
Per-session cost budgets — The gateway records actions but doesn't enforce cumulative spend limits. A Bot can loop tool calls indefinitely without hitting a cost ceiling.
-
Secret leakage in arguments — A Bot might pass
api_key=sk-abc123...as a tool argument. The gateway correctly redacts secrets from the audit trail, but doesn't prevent the call from executing with the secret in-flight.
Proposed Solution
Add a content-level governance evaluator that runs alongside CEL, inspecting the content of tool arguments (not just tool names and targets). This would fire between "policy evaluated" and "call the computer" in the gateway pipeline.
One implementation: TealTiger — deterministic, in-process, no LLM in the evaluation path, <2ms per check. Already provides:
| Check | What It Catches |
|---|---|
| PII detection | SSN, credit card, email, phone in tool args |
| Secret detection | API keys, tokens, credentials |
| Prompt injection | Instruction override, DAN, delimiter injection, system prompt override (8 patterns) |
| Cost budget | Cumulative session spend with hard-stop |
| Argument validation | SQL injection, path traversal in tool inputs |
It could integrate as:
Option A — Gateway plugin:
// In the server gateway, after CEL evaluation, before calling computer
const contentDecision = await tealtigerEvaluate({
toolName: resolvedTarget.tool,
arguments: resolvedTarget.input,
botId: bot.id,
sessionCost: auditRow.cumulativeCost,
});
if (contentDecision.action === "DENY") {
return refuse(contentDecision.reason);
}
Option B — Boundary preset:
A preset at /admin/boundaries that enables content-level checks:
# Content governance preset
name: "Content Protection"
rules:
- scope: tool_arguments
check: pii
action: deny
categories: [ssn, credit_card, email]
- scope: tool_arguments
check: prompt_injection
action: deny
- scope: session
check: cost_budget
action: deny
max_usd: 5.00
Option C — Agent-level middleware:
The AG-UI agent (LangGraph, etc.) wraps itself with TealTiger middleware before registering as a Bot endpoint. Content governance happens inside the agent, infrastructure governance happens at the gateway. Defense-in-depth.
Use Cases
- Financial services Bot handling account data — must not leak PII in tool arguments to third-party MCP servers
- Research Bot consuming external documents — needs injection defense before those documents influence tool calls
- Multi-Bot deployment with cost allocation — each Bot needs a per-session budget that hard-stops regardless of CEL rules
- Compliance audit — need evidence that content-level checks were evaluated (not just that the URL/tool was permitted)
Why not just extend CEL?
CEL is great for structural checks (tool.name == "browser_navigate" && page.host != "internal.company.com"). But content scanning requires:
- Regex pattern matching across variable-length text (PII/injection)
- Stateful tracking (cumulative cost)
- Confidence thresholds (injection detection isn't binary)
These are better served by a purpose-built content evaluator running alongside CEL rather than shoehorning them into CEL expressions.
Additional Context
- TealTiger: https://github.com/agentguard-ai/tealtiger (Apache 2.0)
- Already integrated with AG2 (built-in), Haystack, LangChain, CrewAI, Strands
- NVIDIA Inception member
- No external server required — runs in-process
- Happy to contribute a PR once the boundary plugin interface stabilizes
This is complementary to existing governance, not a replacement. CEL handles infrastructure boundaries. Content evaluation handles what's inside the calls that pass those boundaries.
- Ngôn ngữ chính
- TypeScript
- Star
- 6.6k
- Fork
- 914
- Merge trung bình
- 17 giờ 52 phút
- Pull request đã merge (30 ngày)
- 155
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CopilotKit/OpenBot
-
Wrong key location at startupCó thể đã có người làm @charan-rathore đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
CopilotKit/OpenBot#800 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
setup-learning.ts fails on Windows with "spawn npx.cmd EINVAL"Có thể đã có người làm @Caldas đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
CopilotKit/OpenBot#792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Remote AG-UI Bots can't use the browser in chat: `computer_*` calls refused as "unavailable for this headless turn"Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
CopilotKit/OpenBot#804 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Five out-of-subject findings from PR #770's tier-3 review (credential-revoking tests, single-user boot gate, OAuth client rotation, shared-use atomicity, untyped server/tests)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 22/100
CopilotKit/OpenBot#786 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
server/tests leaks database connections: 55 files open a pool and never close itCó thể đã có người làm @adamsiwiec1 đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
CopilotKit/OpenBot#785 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CopilotKit/OpenBot
Issue tương tự
-
The inspector never shows the instances field, so scaling out is unreachableCó thể đã có người làm @Mrkewl đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
xevrion/breakscale#96 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Object parameters lose their structure when resources is enabledCó thể đã có người làm @asts-top đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rossant/awesome-math#199 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
jaegertracing/jaeger-ui#4618 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
mifi/lossless-cut#3125 ·
Maintainer thường phản hồi trong vòng 1 ngày