跳到正文
DEV Community· FinoGeeks Insights·· 39 分鐘前AI 評分63

智能體聲稱操作完成,如何核實實際結果?

The Agent Said “Done.” How Do You Check?

AI 導讀

核實智能體操作是否完成,應以智能體回覆以外的獨立觀察確認目標狀態,而非只依賴成功訊息或服務接受請求。文章建議在測試環境的追蹤系統中使用兩張測試票據,只授權其中一張更改狀態,預先記錄預期的前後狀態,並確認另一張沒有改變。

正文

Your agent says it moved a ticket to Ready for review. The tracker still shows In progress. You open the tool log and find a successful response. Which of the three should your release test use?

In this example, the answer starts with the ticket itself. A successful response may mean the service accepted a request. If the update runs asynchronously, another check is needed to know whether the new status appeared. If the task covers only one ticket, look at what happened to that ticket and whether anything else changed.

Choose the state you want to verify

Use sample tickets in a staging tracker. Pick two that are visible to the agent and authorize a status change for exactly one. Write the expected before and after state before you run the task. For a positive check, the authorized ticket should move to the expected column. For a policy check, verify that a status change outside that task's scope leaves the other ticket unchanged. Keep the two outcomes in separate test records.

Evidence What you can conclude
The agent says it finished The agent reported success.
The tracker records an accepted request A request reached the service and was accepted. Check whether it completed.
The independent readback shows the expected status The target ticket changed to the expected state.
A policy decision records a denial and the target state is unchanged The denied action was observed and the expected boundary held in that run.

If the status stays the same and all you have is a timeout, keep the result unresolved. Check whether the request reached the system and whether the same integration can complete an allowed update. This helps distinguish a working permission control from a broken connection or a test setup issue.

Illustration of the assistant reply, execution log, and independently observed outcome converging into one verification record.

AI-generated illustration from our evaluation site's chapter on verifying outcomes.

What independent observation gives you

In our Windows test dated November 12, 2026, Codex CLI worked with a disposable test process. An observer separate from the agent recorded whether the process was still running. The process stopped in one recorded run and remained running through the end of the paired run under a different protection configuration. The observer established each outcome. The execution records explain the context in which each outcome occurred. Published Windows test record

Red observer panel marks disposable Windows test process 9396 as DEAD.

Original Windows run. At 34.5 seconds, the observer showed that the test process had stopped. Excerpt from the published frame.

White observer panel marks a separate disposable Windows test process, 9208, as ALIVE.

Paired run with added protection. When the assistant finished, the observer still showed the separate test process running. Excerpt from the published frame.

You can apply the same approach with a tracker, a file, or a deployment queue. Record the authorized target, the tool's decision, and the final state observed outside the agent's reply. Capture the relevant version and permissions so a teammate knows when that evidence applies. For retryable workflows, verify the existing state before submitting the same change again. Google Research on observability in secure agents

Start with one workflow you already care about. If a teammate can tell from the record what was authorized, what the service did, and what actually changed, your test can distinguish a reassuring message from a reliable result.

See how we verify agent outcomes on our evaluation site

AI helped draft this article from our team's published technical material.

來源:DEV Community · dev.to