Skip to content

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

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:

RuleWhat It Does
Output length limitCaps how long the agent’s answer can be.
Blocked patternsStops output that contains text you don’t want to go out.
Allowed toolsLimits the agent to only the tools you list.
Blocked toolsForbids specific tools you don’t want it to touch.
Cost per turnStops 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:

PolicyWhat It Adds
PII ShieldBlocks sensitive personal details (see below)
Cost GuardA per-step spending cap and an output-length cap
Tool SandboxBlocks 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).

guardrails
guardrails-activity-feed

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.

pii-shield

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:

agent-edit-tab
approval-gates
GateWhen it pauses
Tool approvalBefore the agent uses a specific tool (for example, sending an email).
Output reviewBefore the final answer is delivered, so you can check it first.
Cost thresholdWhen the total spend for the run passes an amount you set.
Turn checkpointEvery few steps, for a progress check.

What You See When a Run Pauses

  1. The run stops and an approval box appears in the console.
  2. It shows why it paused and the relevant details — which tool, the current cost, the step number.
  3. 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.

LimitWhat It Means for You
Time limitA run can’t go on forever — after about 15 minutes it’s stopped and marked failed, with a clear reason.
Output size capThe 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 capEvery 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

Last updated: Nov 03, 2026
Back To Top