3
22 Comments

Built a compliance layer for AI agents — logs every tool call, masks PII, holds risky actions for approval

Most teams deploying AI agents focus on what the agent can do.
Few think about what happens when it does something it shouldn't.

Built Trustloop, it sits between your agents and the actions they take.
Before any tool call executes, it gets logged, checked against your
rules, and either cleared or held for a human to review.

What it does:

  • Full audit trail of every agent action, anchored to blockchain
  • Automatic PII masking before data leaves the agent
  • Plain-English governance rules (block file deletions,
    flag transfers over £1,000)
  • Drop in proxy for OpenAI, Anthropic, Gemini, no code changes needed
  • Works with LangChain, CrewAI, n8n out of the box
  • Browser extension for shadow AI, logs what employees type into
    ChatGPT, Claude.ai, Gemini (Mozilla, Chrome)

Built this because the gap between 'we use AI agents' and 'we can
audit what our agents did' is where most compliance teams are sitting
right now.

Still early, if you are running agents in production and thinking about
governance, I would genuinely like to hear what your biggest concern is. Also happy to give free access to anyone who wants to try it and share
feedback. Drop a comment or reach out at [email protected]

www.trustloop.live

on July 2, 2026
  1. 1

    That split makes sense. The "prove what happened" use case feels like the cleanest wedge because it is tied to a buyer who already has an audit job to do.

    The approval-noise point is the real product risk. Specific rules that fire rarely but matter are much easier to trust than a broad "risky action" filter.

    If you were showing one demo first, would you lead with audit replay, PII masking, or a high-consequence approval rule?

    1. 1

      High-consequence approval rule, every time.
      Audit replay is important but passive, people nod and move on. PII masking is expected, they assume you do it. But when you show an agent mid flight, about to do something it shouldn't, and it stops and routes to a human for signoff that's the moment it clicks. You can see it on people's faces.
      The rule we use in demos: flag any external API call that includes a dollar amount over $5,000. Fire the tool call, watch it intercept in real time, approval request lands in the dashboard. Ten seconds. No explanation needed after that.

  2. 1

    The approval layer feels like the part that will decide adoption.

    Logging is useful, but teams will probably feel the pain most when an agent is about to do something irreversible and nobody is sure whether to let it proceed. The hard tradeoff is making approvals strict enough to prevent real damage without turning every action into noise.

    Are you seeing more concern around PII leaving the system, risky tool calls, or proving afterward what the agent actually did?

    1. 1

      Honestly all three, but in different buyer profiles. The "prove what happened" question comes up most with compliance and security teams, they need to show an auditor exactly what the agent did and why it was permitted. PII is close behind, especially in healthcare and legal where a single exposure is a reportable incident. Risky tool calls are more of a developer concern, they are the ones who have already had an agent delete something it shouldn't have.

      On the approval noise problem: the key is that rules are specific, not broad. "Block any write to the production database" has very few edge cases. "Block anything risky" flags everything and trains people to click through. The customers who get the most value out of approvals are the ones who write rules that fire rarely but matter when they do.

  3. 1

    This makes a lot of sense — most people are focused on “can the agent do X” and not “what happens when it does the wrong X.”

    Biggest concern for me would be less about logging and more about real-time intervention. Audit trails are great after the fact, but the scary failures are the ones that execute before anyone notices. So the value is really in how strict and reliable that pre-execution check layer is.

    Also curious how you handle:

    • false positives (blocking too much kills usability fast)
    • rule complexity over time (governance tends to sprawl)
    • latency impact if you’re sitting in the middle of every call

    The shadow AI browser extension angle is actually underrated — that’s probably where a lot of real risk is right now.

    Overall feels like you’re targeting the right gap. The hard part is going to be balancing control vs not slowing teams down.

    1. 1

      All three of those are real and I won't pretend they are fully solved.
      False positives: because the rules are customer written in plain English or from uploaded document, they tend to be specific from the start. "Don't send emails to anyone outside the company domain" doesn't leave much room for ambiguity. The failure mode is when someone writes a vague rule and then wonders why everything is getting flagged.

      Rule sprawl: this is going to get worse over time and I don't have a clean answer yet. Conflict detection between rules is something we will need to build and in the roadmap.

      Latency: typically 80–150ms per call. Not zero, but if the agent is already hitting a database or an external API, we are not the bottleneck.

      On shadow AI being underrated, that's where most organisations have zero visibility right now. An agent with a proper API integration is at least visible. An employee pasting customer data into ChatGPT is not.

  4. 1

    This resonates — I build on-device processing into a mobile app for the same privacy reason (sensitive user text never leaves the device), and the recurring lesson is that a privacy guarantee is only convincing when it costs you something architecturally, not when it's just a policy line.
    "Holds risky actions for approval" is the interesting part: how do you set the risk threshold so the approval step doesn't become noise people just click through?
    That balance feels like where this kind of product lives or dies.

    1. 1

      The threshold is customer defined, which is what keeps it signal rather than noise. They write rules like "flag any file deletion," "flag payments over £500," "flag emails to external addresses." We don't assign a universal risk score, we apply their rules.

      The click through failure you are describing usually means the rule is too broad. When someone approves the same thing 40 times in a row, that is the system telling you that action should be on an allow list, not going through approval. We let customers do that, approve once and create an exception. The approval queue should feel meaningful when it fires, not like a formality.

      Your framing about privacy guarantees costing something architecturally is right. A policy line that says "we don't store PII" is worth nothing. PII masking that runs before the log entry is written is worth something.

  5. 1

    you asked for the biggest concern — the shadow-AI browser extension is it. the moment you log everything employees type into ChatGPT/Claude, that store becomes a bigger PII honeypot (and in the EU a works-council + GDPR problem) than the agents you're governing. it needs the strictest retention and access controls of anything in the system. also, gently: "anchored to blockchain" reads as marketing — a hash-chained append-only log, where each entry signs the previous hash, gives you the same tamper-evidence without the dependency. what does the chain buy you that a signed hash chain doesn't? solid space though, this is becoming table stakes fast.

    1. 1

      The blockchain critique is fair and i have heard it more than once. What Polygon gives us that a self hosted hash chain doesn't is external verifiability, anyone can query the contract without trusting that we have not modified our own logs. A hash chain we control can be swapped before an audit. An on chain hash can't. Whether that's worth the dependency is a legitimate question and I would rather have that conversation with a customer who cares about it than lead with it as a headline.

      On the shadow AI point, you are right and it's the thing I think about most. The browser extension logs are the most sensitive data in the system. We apply PII masking before storage and enforce the same tenant scoped access and retention limits as the API layer. But the works council angle in particular is something I haven't communicated clearly enough to EU prospects. That's a gap to be closed and will be fairly soon.

      1. 1

        fair, swap-before-audit is a real gap. but you dont need a whole chain for that — anchor your periodic head hash to something public you cant edit (a transparency log, an rfc3161 timestamp, worst case a tweet). anyone verifies the anchor, the log stays self hosted, no L2 in the hot path. honestly tho the works-council doc gap is the one id close first, thats what actually blocks EU deals 🙂

  6. 1

    AI governance is the right category, but early users usually won’t adopt a control layer just because the category is important.They usually care when one specific risk is already blocking deployment, procurement, customer security review, or internal approval.So the sharper question may be:What risk would make you uncomfortable putting an agent into production?The signal I’d look for is not whether people say PII masking, audit logs, approvals, or kill switches sound useful.
    It’s whether a team can point to a real workflow where:

    • an agent is already making tool calls in production or an internal workflow
    • deployment was paused because of compliance, security, customer review, or governance concerns
    • there was a recent action that felt too risky to let the agent run automatically
    • they would be willing to connect one concrete agent workflow to TrustLoop as a test

    That would probably tell you which governance feature matters first.Without that, “AI governance” may be correct but still too broad. The first wedge is likely the specific risk that stops a real team from shipping agents safely.

    1. 1

      This is the most useful framing I have seen in this thread. You are right, the category doesn't create urgency. What creates urgency is a CTO who can't get legal sign off on a production agent because they can't explain what it will and won't do. Or a security review that stalled because there's no audit trail. That is when this becomes a real problem to solve, not a nice to have.

      The customers who have actually integrated are almost always ones where a specific blocker already existed, not ones shopping for governance in the abstract. I should probably be leading with "what would stop you from putting this agent in production tomorrow" rather than feature lists. That question gets to the real wedge faster.

      1. 1

        That’s the wedge.“Customers who already had a specific blocker” feels much stronger than “AI governance” as a category.I’d probably test the next few conversations around one question:
        “What agent would you put into production tomorrow if security/legal approved it, and what exactly is blocking that approval today?”
        If the same blocker shows up 3–5 times, that’s probably the homepage lead.

        1. 1

          That question is going straight into my next five sales conversations. The blocker framing is right, 'we can't put this agent into production until legal signs off' is a real, immediate problem. AI governance is a category someone might care about eventually. Will report back what I hear

          1. 1

            That’s a strong next test.For those five conversations, I’d just track:what agent they want to ship, who blocks approval, the exact blocker, and what proof would make legal/security comfortable.If the same blocker repeats 2–3 times, that’s probably the wedge. If every blocker is different, the category may be real but the entry point still needs narrowing.Curious what you hear back.

  7. 1

    What stood out to me is that you're not treating compliance as logging after the fact—you’re treating it as a control layer before execution. That shift matters. Most “AI governance” tools are forensic. This is closer to runtime decision gating. The real test will be how often teams actually allow humans to intervene vs defaulting back to automation when things get noisy.

    1. 1

      That's the right way to put it. Most tools give you a dashboard of what already went wrong. We sit in the call path before the action executes. That is a different product even if the UI looks similar.

      The approval fatigue question is the honest challenge. What we have seen is that it comes down entirely to rule precision. Broad rules create constant noise and people stop reading the requests. Precise rules fire rarely, which means when something does land in the approval queue, it actually gets attention. If a team is reviewing 50 approvals a day, something is wrong with how their rules are written, not with the approval mechanism itself. The goal is that an approval is unusual enough to be meaningful.

      1. 1

        That's exactly what made me think there's a bigger strategic decision underneath your approach.

        I don't think it's really about approval fatigue or rule precision. It's about a business decision that becomes much more significant as the product grows, and I don't think I can explain the reasoning properly in a thread without oversimplifying it.

        If you're interested, what's the best email to reach you on?

        1. 1

          Curious what you are seeing. [email protected]
          thanks!

          1. 1

            Thanks! I've just sent it over.

            Looking forward to hearing your thoughts whenever you have a chance.

Trending on Indie Hackers
How to rank #1 on ChatGPT? User Avatar 112 comments I built a startup-idea scanner. It just told me none of my 3,400 ideas are easy wins. User Avatar 66 comments I Tested Agenmatic for Finding Customers in Communities — Here’s What I Learned User Avatar 63 comments “I’ll just post on Upwork” is not a client strategy. Here’s what I built instead. User Avatar 50 comments Building a Shopify bundles app for stores with real fulfillment: here's the wedge User Avatar 42 comments I recorded myself using 200+ indie SaaS products cold. Here are the 7 conversion killers that keep showing up. User Avatar 32 comments