[Feature] Content-level governance boundary — PII detection, prompt injection defense, and cost budgets for Bot tool arguments
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
- Domaine
- backend-api-design, security
Piste de recherche
Commencez par localiser le pipeline de gateway du serveur décrit dans l’issue, en particulier le point situé après l’évaluation de CEL et avant l’appel à l’ordinateur, puis examinez l’interface existante du plugin de boundary. Comparez les points d’entrée proposés pour le plugin de gateway, le preset de boundary et le middleware de l’agent ; le travail est terminé lorsqu’un chemin d’intégration arrêté et son comportement de gouvernance du contenu sont définis et couverts par les tests appropriés du projet.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 6.6k
- Forks
- 914
- Merge moyen
- 23 h 27 min
- PR mergées (30 j)
- 136
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CopilotKit/OpenBot
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
CopilotKit/OpenBot#817 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Telemetry scrubber: case-insensitive mysql rule redacts an attached port (-P3306) and lets a real password survive in the same commandPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
CopilotKit/OpenBot#815 ·
Les mainteneurs répondent en général sous 1 jour
-
Wrong key location at startupPeut-être pris @charan-rathore l’a pris il y a 6 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
CopilotKit/OpenBot#800 ·
Les mainteneurs répondent en général sous 1 jour
-
setup-learning.ts fails on Windows with "spawn npx.cmd EINVAL"Peut-être pris @Caldas l’a pris il y a 9 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
CopilotKit/OpenBot#792 ·
Les mainteneurs répondent en général sous 1 jour
-
Remote AG-UI Bots can't use the browser in chat: `computer_*` calls refused as "unavailable for this headless turn"Peut-être pris @charan-rathore l’a pris il y a 5 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
CopilotKit/OpenBot#804 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de CopilotKit/OpenBot
Issues similaires
-
[Feature]: 建议导入源后,自动切换到新导入的源Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
lyswhut/lx-music-desktop#3026 ·
-
area: ci type: test
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
schlessera/brain-kit#2769 ·
Les mainteneurs répondent en général sous 1 jour
-
Read a vector index's quantization back on Neo4j 2026.10, which reports vector.quantization.typeOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
liberation-data/drivine#231 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
alveusgg/alveusgg#2502 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour