4.2. Safeguards
Overview
AAS blocks what AI agents do at two points.
| Safeguard | What it blocks |
|---|---|
| Question guardrail | When a question a user sends violates policy, the model is not called. |
| Dangerous command block | Stops an AI agent from running a command that deletes its own data folder entirely. |
The guardrail is a checking service that filters out harmful questions and questions that violate policy. Neither safeguard has a setting in the administrator screens to turn it on or off. The administrator has two jobs. When a user reports a blocked request, work out what blocked it, and ask the operator to check if needed (the operator installs AAS and manages the server, see the A.3. Glossary).
Permissions: Administrators do the checks in this chapter. The operator does any check that requires server logs.
Note: On the "Settings (config)" tab of a profile's details, only administrators can change the command approval (approvals) setting. The owner of an AI Agent Workspace and team managers cannot change it. This setting cannot lift the "Dangerous command block" below. For details, see 3.4. Changing a Profile's Model and Settings on Someone's Behalf.
For the user's side of this topic, see 2.7. When an Answer Is Blocked or Slow in the User Manual.
Question Guardrail
How It Works
When a request arrives for an AAS model whose name starts with cogentai-aas, LiteLLM (a relay server that lets you use many AI models through one address) first sends the user's question to the guardrail. If the guardrail blocks it, the model is not called. A block notice goes back as if it were the AI agent's answer.
This works the same way for chat, messenger connections, and scheduled jobs.
The guardrail checks only the following.
- It checks only text from the person who is sending now. It does not check earlier conversation history.
- It does not check text that Hermes and AAS add by themselves. This includes guidance text, skill bodies, tool results, and text that is continued automatically.
- It does not check model answers or tool execution results.
What the User Sees
In the user's chat, the answer area shows a sentence like this.
Sorry, your input violates policy and cannot be processed.
The model did not write this sentence. It is a notice that the guardrail side returns before the model is called. The user reads it as the AI agent refusing to answer. Sending the same text again sometimes passes, because the guardrail does not always give the same verdict.
Limits
These are the limits an administrator should know.
| Limit | Description |
|---|---|
| Guardrail service failure | During a failure or a timeout, questions pass without being checked. |
| Models that are not AAS models | A model whose name does not start with cogentai-aas does not go through the guardrail. Check for the "Not an AAS model" label in 4.1. Models. |
| Alias for auxiliary tasks | cogentai-aas-aux is not checked. |
| Conversation history and personality (SOUL) | Content in earlier questions and in the personality text is not checked. |