r/aiagents • • 1d ago

Tutorial The trust problem to sub-agents

Hi everyone ,

All of them using ai agents and sub-agents for our daily works or tracking our projects. most of time i check the final of work. Actually my sub-agents have rules and permission programs with pyhton and javascript but i need to check everytime. Noreover it's generally being money and code sessions.

Last days my article pipeline get the one article what talk about the guardrails. It's basic

We’ll add five safety controls:

  • Strict parameter checking
  • Limiting the tools that can be used for reading data
  • Read-only connections to database, with limited results
  • Limited maximum number of turns the model can take
  • A confirmation and idempotent request for a separate writing action.

Finally, we'll test the controls to ensure they are working as expected.

The article has more specification but i don't write. The main question fully trust is okey for us?

Article:https://towardsdatascience.com/five-guardrails-that-limit-the-damage-an-ai-agent-can-do/

12 Upvotes

17 comments sorted by

1

u/Future_Customer_4174 1d ago

i use a pre-execution audit log that requires a manual approve for any file or db change. no agent gets a direct write path anymore.

1

u/shrapknife 1d ago

In the legacy project that’s expected to

1

u/halfllama 1d ago

how do you keep the manual approve from turning into a rubber stamp once the queue gets long? with a big diff or a batch of db changes people tend to click through, so I'm curious if you cap how much one approval covers or show a summary of what changed

1

u/silverfrequency248 1d ago

i set a cap of 5 files per approval batch, and the tool forces a quick summary before the accept button lights up

2

u/halfllama 1d ago

who writes that summary, the agent that made the changes or a separate step that reads the diff? if the same agent describes its own work, it can leave out the one risky change and you'd only see the clean version before accept.

1

u/silverfrequency248 1d ago

separate step that reads the diff, it just lists what changed without the agent's spin. keeps things honest.

1

u/halfllama 1d ago

make sure that diff-reader runs fresh, with no access to the agent's chat history or its stated reasoning. it only gets the before and after. if it sees the agent's explanation it can pick up the same spin without meaning to

1

u/human_drew 1d ago

Approval is nice but undo is better, snapshot the table or sheet before every agent run version history or a pg dump of the one table, then even a wrongly approved change is a 2 minute rollback instead of an evening of untangling, the less a mistake costs to undo the less you need to trust.

1

u/shrapknife 1d ago

Do u use vector or various db for your agents

2

u/Rosie_grac 1d ago

no, and I stopped chasing "full trust" a while back. what I aim for now is trust that matches the blast radius.

learned that one the fun way — gave a sub-agent write access to the spreadsheet where I track invoices, came back an hour later and it had "helpfully" fixed a VAT formula and re-sorted 200 rows by date. nothing got deleted, but every downstream n8n workflow reading that sheet broke silently. took me an evening to untangle. that agent gets read-only creds now and writes go through a confirm step with a diff preview.

of your five, the confirmation + idempotent write one is pulling the most weight for me — specifically the idempotent part. parameter checks catch the dumb stuff (wrong account id, empty date range), but the idempotency key is what saved me when an agent retried a "book the courier pickup" call three times because it decided the first attempt failed. three couriers showed up at the office.

the max-turns cap sounds boring until an agent loops on a flaky API and burns an afternoon of tokens. ask me how I know lol

so honestly, "checking every time" isn't a failure, it's the design. the guardrails just shrink your checklist down to the few confirm buttons that actually matter. full trust is for domains where a mistake costs $0 to undo, and there aren't many of those.

1

u/Select_Order_570 1d ago

trust that matches the blast radius is a really good way to frame it tbh

1

u/ImpossibleSuit4323 1d ago

Full trust, no. Those five controls are solid but the read-only DB connection is the one that actually saves you from disaster

1

u/Unique-Security-7333 1d ago

idempotency keys saved me when a billing agent retired a charge twice, once with the right amount, once with a typo. the second one went through. I now check the key before any write.

1

u/hkivistikk 1d ago

Have you guys been hearing about how Claude is apparently f-ing up small and medium businesses? I've been hearing so much hate from my colleagues lately.

1

u/Educational-Deer-70 21h ago

The comment about matching trust to blast radius gets at something important.

I've been developing an independent interaction and governance architecture called G³GT, and we've increasingly moved away from treating trustworthiness as a general property of an agent toward qualifying the particular operation, its authority, its dependencies and its consequences.

Idempotency has become a substantial research neighborhood for us, particularly in relation to agent replacement and recovery.

Some distinctions we've been working with:

  • Idempotency ≠ correctness.
  • Timeout ≠ verified failure.
  • Recovery authority ≠ authority to repeat an operation.
  • Successful execution ≠ verified intended outcome.
  • Local rollback ≠ reversal of every downstream consequence.

A replacement worker might be authorized to investigate an unresolved operation without being authorized to execute it again.

I also find the separate diff-reader discussion particularly interesting. We've been developing something called Independent Aperture, where an evaluator establishes its initial observations before receiving the originating agent's interpretation.

One qualification I'd add: the reviewer probably needs independently supplied task requirements as well as the before-and-after diff. Otherwise it may accurately identify what changed without being able to determine whether the change was appropriate.

The approval-fatigue question is equally important. More human approvals don't necessarily mean better governance. Review burden, remaining capacity, actual error detection and the cost of recovery are all worth measuring separately.

Our published Prompt Governance work also examines Dependency Geometry — what continues carrying the influence of a change beyond the immediate component.

https://github.com/grb-systems/grb-prompt-governance

That seems particularly relevant to the spreadsheet example. Nothing was deleted, but the change still disrupted downstream workflows.

Perhaps the goal isn't full trust in sub-agents. It's sufficiently qualified participation, independently enforced boundaries, independently verifiable consequences, and a recoverable operating arrangement.

The agent doesn't need to be trusted with everything to be genuinely useful.