cd /news/ai-safety/huqan-the-deterministic-trust-layer-… · home topics ai-safety article
[ARTICLE · art-82164] src=dev.to ↗ pub= topic=ai-safety verified=true sentiment=· neutral

HUQAN: The Deterministic Trust Layer That Tells AI Agents "Wait, I Decide First"

HUQAN, a deterministic trust layer for AI agents, is being developed to enforce safety and compliance before actions occur, using a rule-based engine rather than another LLM. The system blocks dangerous operations like deleting production databases and audits memory writes, supporting on-premise deployment for data sovereignty.

read5 min views11 publishedJul 31, 2026

Over the last year or two, the agent ecosystem has grown incredibly fast: LLM-based agents that touch the file system, run terminal commands, call APIs, write to databases, and even update their own memory are now commonplace. Thanks to MCP (Model Context Protocol), connecting an agent to a new tool takes minutes.

But there's something easy to miss here: the fact that an agent can connect to a tool doesn't mean every request it makes to that tool is safe, authorized, and compliant with corporate policy.

A file-deletion command equivalent to rm -rf

, a write request to a production database, privilege escalation, sensitive data exfiltration, or an agent writing false information into its own memory as if it were "true" — these are all hard-to-reverse operations, and in most systems today they're either not audited at all, or only logged after the fact.

HUQAN is being built as a local-first, deterministic trust layer that steps in before the action happens, not after.

This isn't an observability product that says "we're watching the agents," nor an anomaly-detection tool. It's not a dashboard that reports on agent behavior after the fact either. And most importantly:

The final decision authority does not rely on another LLM's free-text interpretation.

That last point matters, because a lot of today's "AI security" solutions essentially have one model police another model — which is a bit like asking someone who can pick locks to double-check the lock. The same class of vulnerabilities (prompt injection, social engineering, context manipulation) can affect both sides.

HUQAN's core decision pipeline works like this:

Input is normalized — agent identity, task context, requested action, authorization scope, data provenance, and the active policy version are converted into a canonical structure.

The deterministic engine decides — instead of free-text interpretation, rules operating on a typed action + schema + verifiable system state produce one of four outcomes:

A Trust Receipt is generated — the decision's inputs, the applied policy version, the reasoning, and the outcome are stored as a signed, hash-linked, auditable, append-only record.

The end-to-end chain looks roughly like: resolver → adapter → verification core → writer/reader → signing chain

The structural, fail-closed parts of this chain (i.e., defaulting to deny when policy or identity is invalid) are already working and under test; the signing and content-integrity binding layers will be completed in separate, auditable stages. In other words, there's no claim here that "everything is done, production-ready" — this is a gradual, evidence-based hardening process.

A concrete example: in prototype testing, a request attempting to delete a production database was stopped instantly with a BLOCK decision, while a scenario requiring outside review was flagged as REVIEW and routed to a human for approval.

Most "agent security" conversations stay at the action/tool-call layer. HUQAN takes a different view: information an agent writes into its persistent memory can be just as dangerous as an action.

The Trusted Memory component evaluates every piece of information headed into memory against criteria such as:

The outcome is again an accept / reject / review decision, receipted along with data provenance. The goal isn't personalization — it's holding memory writes to the same deterministic decision-plus-evidence discipline as actions.

Corporate policy and sensitive context don't need to be sent to a third-party cloud for evaluation. On-premise deployment, private cloud, or isolated environments are all meant to be supported. For teams using privileged file/terminal/API/database tools, and for organizations with strict data-sovereignty requirements, this solves the dilemma of "I want an audit trail, but I don't want my data leaving the building."

Products like Check Point AI Guardrails / Lakera Guard, CyberArk Secure AI Agents (now part of Palo Alto Networks), Prisma AIRS 3.0, and Zenity already offer strong runtime policy, identity, and behavioral-analysis capabilities. HUQAN isn't trying to copy the scope of these platforms.

Its focus is narrower and built for integration:

deterministic action judgment + human approval + evidence receipt

— combined with memory admission inside the same local trust boundary. That's why the first commercial product is named HUQAN Agent Action Firewall, with the MCP Trust Gateway module as the initial entry point; since the core is protocol-agnostic, it's meant to expand via REST API, CLI, IDE plugins, and custom adapters.

The project takes a fairly strict stance on tying claims to test results. Example success criteria include:

An independent security review will also be brought in separately — so this isn't a case of "tested itself, passed itself."

As a non-commercial, complementary output, a lightweight open-core / Developer Edition along with an MCP/IDE plugin is planned. This edition isn't a revenue product — it's meant to produce technical evidence and engage with the ecosystem.

HUQAN doesn't claim to be a "finished product" yet — the team says so openly. But the framework it lays out points to a gap that's becoming increasingly hard to ignore in the agent ecosystem: as tool access grows, the combination of pre-action decision, human approval, and auditable evidence is no longer a "nice to have" — it's a baseline requirement.

The idea of unifying action safety and memory admission under the same local, deterministic trust boundary is a direction worth watching, especially for teams working with privileged tools and organizations that care about data sovereignty.

This post is based on technical documentation from HUQAN's development process. The project is under active development; any claims of performance or superiority hold only to the extent they're proven through testing, adversarial scenarios, and pilot validation.

── more in #ai-safety 4 stories · sorted by recency
── more on @huqan 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/huqan-the-determinis…] indexed:0 read:5min 2026-07-31 ·