AI 智能體查詢訂單時,是否也應獲準修改訂單?
Should the step that looks up an order also be allowed to change it?
Rick Leffke 建議將 AI 智能體可用工具分為讀取與寫入,並要求每項寫入操作在執行前取得人工批准。批准請求應簡短具體,説明將作出的變更及受影響的記錄,並記下批准人和時間。測試時應使用系統副本,確認修改會等待批准,並嘗試不同措辭。
Say a support agent gets this message: "Where's my order? Also, switch the delivery address to my cousin's place." Looking up the order is low stakes. Changing it is not. If one step can do both, a single confident message can trigger a real change.
Disclosure: I run a small AI agent risk-check service called Agent Ready Risk, so this topic is close to my work.
Seeing is not the same as changing
An agent that can see an order has not been given permission to alter it. Those are two different jobs with two different levels of risk, and it helps to treat them that way from the start.
Sort every tool into read or write
The simplest baseline is a plain list. For each tool your agent can reach, mark it "read" or "write."
- Read: looks something up, checks a status, finds a record.
- Write: changes an order, issues a refund, updates an account, sends data out.
Reads can run on their own. Every write needs approval from a person before it happens.
Why one step should not do both
When lookup and action share a step, there is no moment where anyone can say "wait." Splitting them creates that moment. It also makes mistakes easier to spot, because the approval request shows exactly what is about to change.
Make approval practical
Approval only works if people keep using it, so keep requests short and specific:
- Say what will change, in one plain sentence.
- Show the record it will change.
- Let the approver say no without extra steps.
- Record who approved and when.
Test the boundary
On a copy, not on a live system, ask the agent to look something up and change it in the same message. Check that the change waits for approval. Try different phrasings: polite, urgent, or claiming authority.
Do this today
Mark each of your agent's tools as "read" or "write," and require approval for every write. Start with the one write that would hurt most if it were wrong.
Questions for you
- Do your agents have separate read and write tools, or one tool that does both?
- Which writes do you gate behind approval?
- Who decides which side a new tool lands on?
If you want a structured look at your own setup, the Agent Ready Risk page is here: https://rleffke.com/agentrisk
來源:DEV Community · dev.to