Safety and Guardrails
This chapter covers the controls used to manage agent execution and reduce risk. HuLoop provides three layers of protection: Guardrails, which enforce automated policies; Approval Gates, which require human review before proceeding; and Run Limits, which restrict resource usage and execution scope. These controls can be used together to provide comprehensive oversight.
Where to Find It: GOVERN → Guardrails in the left sidebar for the overview and ready-made policies. You set the rules for a single agent in its Edit tab, under Safety & Guardrails.

Guardrails — Automatic Rules
A guardrail is a rule the agent must follow, checked automatically every time it runs. And if the agent tries to break a rule, HuLoop stops that step for you.
The rules you can set:
| Rule | What It Does |
|---|---|
| Output length limit | Caps how long the agent’s answer can be. |
| Blocked patterns | Stops output that contains text you don’t want to go out. |
| Allowed tools | Limits the agent to only the tools you list. |
| Blocked tools | Forbids specific tools you don’t want it to touch. |
| Cost per turn | Stops a run if any single step spends more than a dollar amount you set. |
Ready-Made Policies
You don’t have to build rules from the beginning. On the GOVERN → Guardrails page, one click applies a tested policy to an agent:
| Policy | What It Adds |
|---|---|
| PII Shield | Blocks sensitive personal details (see below) |
| Cost Guard | A per-step spending cap and an output-length cap |
| Tool Sandbox | Blocks higher-risk tools such as deleting or writing files |
What Happens When a Rule Fires
If the agent tries to break a rule, that step is blocked, the run is marked Failed, and the reason is recorded. You will have a clear record of what happened and why.
Guardrail Activity
Open GOVERN → Guardrails for two at-a-glance views: a posture summary (how many agents have guardrails on and which rules are in use) and an activity feed (recent blocks across all your agents).


The PII Shield — Protecting Personal Details
PII stands for personally identifiable information — the kind of detail that could identify a real person or expose their finances. The PII Shield monitors agent outputs for sensitive personal information and automatically applies the configured protections when such data is detected.

It looks out for things like:
- Social Security numbers
- Credit and debit card numbers
- Bank routing and account numbers
- Dates of birth
- Email addresses, phone numbers, and street addresses
Depending on how it’s set, the shield can block the content entirely, mask it (replace it with a label like [SSN REDACTED]), or just flag it for the record.
This helps support compliance with privacy and financial data regulations, including GLBA and PCI DSS. If your workflows involve regulated data, contact your administrator to enable the PII Shield.
Approval Gates — Pause for a Person
Some actions require human review before execution. An approval gate pauses a run and waits for approval before continuing, providing a standard mechanism for human oversight.
You set gates in the agent’s Edit tab, under Approval Gates:


| Gate | When it pauses |
|---|---|
| Tool approval | Before the agent uses a specific tool (for example, sending an email). |
| Output review | Before the final answer is delivered, so you can check it first. |
| Cost threshold | When the total spend for the run passes an amount you set. |
| Turn checkpoint | Every few steps, for a progress check. |
What You See When a Run Pauses
- The run stops and an approval box appears in the console.
- It shows why it paused and the relevant details — which tool, the current cost, the step number.
- You choose:
- Approve and Continue — the run picks up where it paused.
- Reject — the run stops with a failed status.
For example, adding a Tool approval gate on the email tool will cause the agent to pause and show you the message before trying to send an email.
Informational Note: For a pause built into a multi-step task flow, use a Human node on the Task Flow canvas instead — this will be placed at a specific step. See Task Flows.
Run Limits and Stop
In addition to any configured controls, every run is subject to built-in execution limits that are enforced by default. These safeguards apply automatically, even when no guardrails have been configured.
| Limit | What It Means for You |
|---|---|
| Time limit | A run can’t go on forever — after about 15 minutes it’s stopped and marked failed, with a clear reason. |
| Output size cap | The output of each step is subject to a size limit (approximately 10 MB), preventing excessive output from a single step from impacting system performance. |
| Budget cap | Every run has a spending cap; when it’s reached, the run stops. |
Runs can also be stopped manually at any time by selecting Stop in the run console. The run halts at the next safe execution point and does not continue processing in the background.
Try it: Add an Output Review approval gate from an agent’s Edit tab, then save and run the agent. When execution completes, the run pauses and displays the response for review. Select Approve to continue or Reject to stop the run. This provides human review before the final output is delivered.
See Also
- Running and Results — where you see pauses, limits, and the Stop button in action.
- Task Flows — add a Human pause at a specific step of a multi-step flow.
- When Something Goes Wrong — what to do when a run is blocked or fails.
