You've connected an AI agent to your business systems, or you're about to. It reads orders, drafts replies, updates records, maybe triggers payments. The question your board, your customers and soon your auditors will ask is simple: what stops it when something goes wrong?
That question just got sharper. On 23 November 2026, Reuters reported that several US banks are tightening controls on their own AI agents, after cybersecurity tests in July in which AI models bypassed controls meant to isolate them from the internet. The report says no banks have been affected so far. Banks are acting early, and the controls they're adding are a good blueprint for any business that lets software act on its behalf.
This guide turns those controls into a practical list for a business application, with how each one is built in Laravel.
What controls are banks adding to AI agents?
According to the Reuters report, banks are working on:
- Kill switches that disconnect a malfunctioning or compromised agent from other systems, and identify any processes it created.
- Tighter access: restricted credentials, limits on which systems and actions an agent can use, separation from critical systems, and bringing agents under existing identity and access management.
- Records of every action: which systems an agent accessed, what it did and whether a person approved it, kept where the agent can't reach them.
- Limits on how long agents run and how much work they do.
- Backup plans so critical processes keep running if agents are shut down, and isolated test environments.
None of this is specific to banking. If an agent can change data in your app, you need the same five things.
1. Give each agent its own identity and the least access it needs
The most common mistake is letting an agent use a staff member's account or an all-powerful API key. Then you can't tell what the agent did, and you can't limit it without limiting the person.
Instead:
- One identity per agent, so its actions are attributable and revocable.
- Scoped permissions: read-only by default, with write access to specific actions only.
- Expiring credentials, renewed on purpose rather than forgotten.
In Laravel, Sanctum tokens support all three. A token for an invoicing agent might only be allowed to read invoices and create drafts:
$token = $agentUser->createToken(
'invoice-agent',
['invoices:read', 'invoices:draft'],
now()->addDays(30),
);
Each endpoint or tool then checks the ability, and your existing policies still apply:
abort_unless($request->user()->tokenCan('invoices:draft'), 403);
$this->authorize('create', Invoice::class);
If you're exposing your app to agents through MCP, our guide on making your Laravel app ready for AI agents covers authentication and tool design in detail.
2. Build a kill switch you can actually use
A kill switch that needs a developer and a deployment is not a kill switch. It should be one action, available to the people on call, that takes effect immediately.
A practical kill switch in a Laravel app has three layers:
- A feature flag that every agent entry point checks. With Laravel Pennant, turning all agents off is one call:
Feature::deactivateForEveryone('ai-agents'); - Credential revocation: deleting the agent's tokens (
$agentUser->tokens()->delete()) cuts off access even if something bypasses the flag. - Stopping work in progress: queued agent jobs should check the flag before they act, so a backlog doesn't keep running after you've switched agents off.
public function handle(): void
{
if (Feature::inactive('ai-agents')) {
$this->release(600); // try again later, do nothing now
return;
}
// ... the agent's work
}
Test the kill switch like a fire alarm: switch it on in staging, confirm nothing acts, and write down who is allowed to use it.
3. Keep an audit log the agent can't touch
When something goes wrong, the first question is "what exactly did it do?" Your log must answer that, and it must be trustworthy.
Record for every agent action:
- Which agent (token and name), when, and on whose behalf.
- The tool or endpoint called, with its inputs.
- What changed: the record, the before and after values.
- Whether a person approved it, and who.
Keep the log out of the agent's reach: an append-only table the agent's credentials can't update or delete, or logs shipped to a separate service. An agent that can edit its own history has no audit trail.
4. Require a person for actions that matter
Not every action needs approval. Reading data and drafting don't; sending money, deleting records, emailing customers and changing prices usually should.
Laravel's AI SDK supports this directly: tools can require approval, so the agent pauses until a person approves or rejects the call. Version 1.4 also made agents recover from tool failures instead of stopping. More on designing for failure in our guide to AI features that fail safely.
A good rule is draft, don't send: the agent prepares, a person commits. We apply the same rule to our own blog: the AI agent that helps draft posts can only create drafts, every draft notifies a person, and publishing stays a human step.
5. Limit how long and how much an agent can do
An agent stuck in a loop can make thousands of calls, send hundreds of emails or run up a large provider bill before anyone notices. Set limits at several levels:
- Per run: a maximum number of steps or tool calls, and a timeout. Queued jobs in Laravel take
$timeoutand a retry window (Laravel 13.43 added a#[RetryFor]attribute for this). - Per period: rate limits per agent token with
RateLimiter::for(), like you'd set for any API client. - Per action type: a daily cap on high-impact actions, such as no more than a set number of refunds or customer emails per day, enforced in your code rather than in the prompt.
- Cost: log token usage per agent and alert when it jumps.
Limits written in the prompt are suggestions. Limits written in code are controls.
6. Plan for the agent being switched off
If you have to use the kill switch, what happens to the work? Banks are planning backup processes for loan processing and fraud reviews. In a smaller business it might be support tickets, order processing or data entry.
Write down, for each agent:
- What it does, and who did that work before.
- What happens to queued and half-finished work when it stops.
- How staff are told, and how they pick it up.
Building the manual path into your admin (a queue of "needs a person" items) costs little and makes the kill switch something you can afford to use.
7. Test agents somewhere safe
Agents should be tested against fake providers and fake data before they touch real systems. Laravel's AI SDK has fakes for this (for example Agent::fake() and assertions on what was prompted), so your test suite can check that an agent calls the right tools, respects permissions and stops at its limits, without paying for real model calls.
For staging, use a copy of production with personal data removed, separate credentials and its own kill switch.
A guardrails checklist
| Control | Question to ask | Built with (Laravel) |
|---|---|---|
| Identity | Does each agent have its own, revocable credentials? | Sanctum tokens with abilities and expiry |
| Least access | Can it only do what its job needs? | Token abilities, policies, gates |
| Kill switch | Can on-call staff stop all agents in one action? | Pennant flag, token revocation, job checks |
| Audit log | Can we see every action, and can the agent alter the log? | Append-only table or external log |
| Approval | Does a person confirm high-impact actions? | AI SDK tool approval, draft-then-send |
| Limits | Are runs, rates and costs capped in code? | Job timeouts, rate limiters, daily caps |
| Fallback | Can the business run without the agent tomorrow? | Manual queue in the admin |
| Testing | Is the agent tested before it reaches production? | AI SDK fakes, staging with test data |
Add AI agents to your business, with guardrails built in
CodeBrisk is a Laravel web and mobile app development company, founded in 2014, with a 100% Job Success score as a Top Rated agency on Upwork. We build AI features and agents into existing Laravel applications, connected to your real data and permissions, with the controls above from day one. Our AI-ready transportation management system case study shows an architecture planned with future AI integration in mind.
See our AI integration and automation service, or launch your project and tell us what you'd like an agent to take on.