跳到正文
DEV Community· Mir Arshad Ali Talpur·· 2 小時前AI 評分40

為何企業級 Agent 需要可審計性,而非確定性承諾

Probabilistic by Nature: Why Enterprise Agents Need Auditability, Not Promises of Determinism

AI 導讀

Agent 本質上具有機率性,增加上下文、記憶、檢索和防護規則都無法令系統變得確定;模型更新、工具與資料變化,以及多步推理,都可能令行為改變。對企業執行而言,Agent 的行動可能帶來財務、法律或聲譽後果,因此需要逐步記錄輸入、工具結果和決策,並提供可重播、可追查的審計紀錄及有證據支持的人手監督。

正文

Agents are probabilistic. You can add context layers, memory layers, retrieval, and hardcoded guardrails, and each one helps in some way, but none of them turns a probabilistic system into a deterministic one. Anyone selling deterministic outcomes from a non-deterministic, model-driven agent is either mistaken or misleading their customers. I would rather say that plainly than build a pitch on a promise that breaks in production.

This is not a pessimistic view. It is the starting point for building something that works, because once you accept it, the real question changes. It stops being how to make the agent never vary, and becomes how to run a system that varies safely.

Why agents are probabilistic

Variation enters an agent system at many levels, and they compound:

Sampling. Language models generate text by choosing among likely next tokens. Even with randomness settings turned down, many hosted models can return different outputs for the same input, because of how inference is run at scale.
Model updates. Providers change models behind the same API name, and your agent’s behavior changes with them, often without notice.
Tools and data. An API responds differently today than yesterday. A search returns different documents. A database row changed.
Retrieval. Which chunks come back depends on the index, the query phrasing, and the ranking.
Memory. What the agent remembers depends on everything it has seen so far.
Multi-step reasoning. Each step is a probabilistic choice that shapes the next one, so small differences early can produce very different outcomes later.

A single model call is variable. A chain of twenty calls, each feeding the next, is a system whose exact path you cannot predict in advance.

Why more layers do not fix it

Every layer people add is useful, and none is a cure.

Context engineering improves the odds that the model has what it needs. It does not control what the model does with it.

Memory gives the agent continuity, but it also adds a moving part. What the agent remembers can be stale, wrong, or irrelevant, and it changes with use.

Retrieval augmented generation grounds answers in documents, but retrieval itself is probabilistic, and the model can still misread or ignore what it retrieved.

Guardrails catch a class of known problems. Many are themselves model based classifiers, so they inherit the same uncertainty. Hardcoded rules are reliable but cover only the cases someone anticipated, and agents are valuable precisely because they handle situations nobody wrote a rule for.

Layers reduce variance along some dimensions. They also add complexity, more places for behavior to shift, and more ways for a failure to hide. The honest conclusion is that you can lower the odds of a bad outcome, and you cannot bring them to zero.

Agents also change over time

There is a second problem that is easy to miss. Even if an agent behaved consistently today, it will not tomorrow.

Behavior shifts as data accumulates. Memories pile up and change what the agent retrieves. Prompts get edited. Tools get swapped. Providers update models. User behavior moves. None of this appears in a standard uptime dashboard, because the agent is still running and still responding. It is just doing something slightly different from what you approved.

So the system you tested is not the system you are running now, and the gap grows quietly.

Where this is acceptable, and where it is not

Not every use of agents needs the same standard, and pretending otherwise helps nobody.

Tolerant uses   Enterprise execution

Examples Coding assistants, content drafts, image generation Payments, customer commitments, claims, credit decisions, compliance actions
Who checks the output A person, immediately Often nobody, until something goes wrong
Cost of an error Low, and usually reversible Financial, legal, or reputational
Output is A draft to be reviewed An action with consequences
Variation is Often a feature A risk to manage

A coding assistant that suggests a different function on each run is fine, because a developer reads the code and runs the tests before it ships. An image generator that produces a new picture each time is working as intended. In these cases the human review is built into the workflow, and the cost of a miss is small.

Enterprise execution is different. When an agent decides on a refund, flags a transaction, or updates a customer record, the action is the product. It may happen at 3 a.m., with no person looking, and a month later someone will ask exactly what happened and why. A shrug and an explanation that language models are probabilistic does not satisfy a customer, an auditor, or a regulator.

The third path: keep the power, and make it accountable

If determinism is not available, and unconstrained variability is not acceptable, there is a third option. Keep what makes language models valuable, which is flexible reasoning in situations nobody scripted. Then make the system accountable to a very fine level of detail, and keep people in charge.

That has two parts.

Make the system auditable at the smallest practical level. Record each step an agent takes, linked to what caused it. Be able to ask why a particular action happened and get a chain of inputs, context, tool results, and decisions. Be able to replay a whole session in order. Be able to reconstruct what the agent looked like at a given moment, including its prompt, tools, and model. Detect when behavior drifts away from its baseline. And be able to show that the records have not been altered since they were written.

Put human oversight on top, with evidence. A person somewhere in the loop is not oversight. Real oversight means a reviewer can understand what the agent did, see why, notice anomalies, and intervene, and that the review itself leaves a record. Without an audit trail, oversight is guesswork. Without oversight, an audit trail is an archive nobody reads.

What reliability means for a probabilistic system

We already know how other fields handle systems that cannot be made perfect. Aviation does not promise zero failures. It records everything, investigates every incident, and feeds findings back into practice. Finance does not promise zero errors. It keeps ledgers, reconciles, and audits. Medicine uses checklists, second opinions, and records.

The pattern is the same in each. Reliability does not mean the absence of errors. It means errors are bounded, detected quickly, explained, and corrected, and the record proves what happened.

For agents, a reliable system is one where you can say:

We know what the agent did.
We can explain why.
We can show what it looked like at the time.
We notice when its behavior changes.
A person can step in, and we can show they did.
The record has not been tampered with.

That is a standard you can actually meet, and it is the one regulators are moving toward. Rules such as the EU AI Act ask for automatic logging, transparency, and human oversight for high risk systems, and they do not ask for perfect outputs.

What ZizkaDB is built to do, and not to do

ZizkaDB is built for this third path. It is an audit trail database for AI agents. It records agent steps with explicit cause links, so you can ask why something happened, replay sessions, reconstruct past state, and measure behavioral drift against a baseline. Events carry checksums and are linked in a hash chain, so edits, deletions, and reordering can be detected. It can be self-hosted, so the evidence stays in your environment, and it supports erasure for personal data under GDPR.

It is just as important to say what it does not do:

It does not make an agent deterministic.
It does not prevent a bad output from occurring.
It does not replace guardrails, testing, or governance.
It does not replace the people who exercise oversight.
It does not decide whether an agent’s behavior is acceptable. It gives the people responsible the evidence to decide.

I think that honesty is the point. A tool claiming to eliminate unpredictability would be selling the very thing I am arguing cannot be sold.

Questions to ask anyone selling agents for enterprise work

If you are buying or building, these questions separate serious answers from comfortable ones:

Can you show me exactly what the agent did in a specific past session, step by step?
Can you tell me why it took a particular action, and show the inputs behind it?
Can you reconstruct which prompt, tools, and model version were live on a given date?
How do you detect that the agent’s behavior has changed, and how quickly?
How do humans oversee it, what do they see, and is that review recorded?
How do you show that the records have not been altered?
What happens when a customer asks to have their data deleted?
When the agent is wrong, how long does it take to find out why?

Notice that none of these ask whether the agent is always right. They ask whether the system can be held to account when it is not.

Closing

Agents are going to run real work inside enterprises, because the value is too large to ignore. They will also keep being probabilistic, and keep changing as data builds up, whatever layers we add. The vendors who tell you otherwise are offering comfort instead of engineering.

The better bet is to accept the uncertainty and build around it: record everything that matters, make every decision explainable, watch for change, and keep people in charge with the evidence to act. Systems built that way can be trusted, because they can be examined. That is what we are building ZizkaDB to support.

Want to test ZizkaDB on your agent? Try our open source version here: https://github.com/ZIZKA-AI-SL/ZizkaDB

Interested in a design partnership? Fill in the form on our site or reach me directly at founder@zizka.ai

來源:DEV Community · dev.to