跳到正文
DEV Community· AXEC·· 3 小時前AI 評分53

對話紀錄並非 AI 智能體行動的審計軌跡

A Transcript Is Not an Audit Trail for AI Agent Actions

AI 導讀

AI 智能體的對話紀錄未必能交代工具呼叫為何獲準,因此單靠對話紀錄不足以構成完整的行動審計軌跡。文章建議每次工具呼叫都保存意圖、授權、相關輸入、政策決策、工具參數及執行結果,並以關聯 ID 串連同一任務的跨工具紀錄。

正文

A transcript can show what an AI agent said. It may not show why the agent was allowed to act.

That distinction matters when an agent can call tools, access systems, or trigger changes on behalf of a user. If a reviewer cannot reconstruct the decision behind each tool call, the audit trail is incomplete.

Consider a hypothetical finance agent reviewing an invoice.

The agent reads the invoice, checks the vendor record, notices that the bank details differ, and calls an accounts-payable tool. The final log says:

update_vendor_payment_details: success

A reviewer can see the result. They cannot see whether the agent was authorized to make that change, which document caused the request, what data the agent supplied, or whether a policy check happened before the call.

That is the failure mode: recording execution without recording justification.

The control is a decision record for every tool call

For each action, the system should preserve a reviewable chain:

  • Intent: what the agent was trying to do
  • Authority: which user, workflow, or policy delegated that action
  • Context: the relevant inputs that led to the request
  • Decision: which control allowed, denied, or paused it
  • Execution: the tool called, parameters sent, and result returned

This does not mean storing every internal model token. It means capturing the facts an engineer or security reviewer needs to answer a narrower question:

Why did this agent have permission to take this action at this moment?

That question changes how teams design logging.

A generic application log records that a function ran. An agent audit trail should bind the function call to an agent identity, a delegated scope, a policy decision, and the execution result. Those records should also share a correlation ID so a reviewer can follow one task across multiple tools without stitching together unrelated timestamps.

The buyer test

Ask your platform team to take one sensitive tool call and reconstruct it from the logs alone.

Can they identify:

  • The initiating user or workflow?
  • The agent identity and delegated authority?
  • The exact tool arguments?
  • The policy that permitted the call?
  • Any approval or pause point?
  • The returned result and the next action it triggered?

If the answer depends on searching model output, application logs, and a separate approval system, the trail may be technically present but operationally weak.

The practical design choice is simple: treat every tool call as a security decision, not just a software event.

That gives engineering teams something they can review, test, and improve. It also gives security leaders evidence that explains agent behavior without asking them to trust a transcript.

Learn more about AXEC and schedule a meeting

來源:DEV Community · dev.to