01 / DECIDE
架構決策
適合替 inspection、routine edit、CI 與 trusted maintenance 建立 least-privilege profile。
Configuration 選 default、sandbox 強制 filesystem/network limit,而 approval 管理例外 authority。 先把 input、output、state 與 side effect 畫成一條可觀察路徑,再決定 分開 configuration、sandbox 與 approval 要放在哪一層。
02 / BUILD
三步實作
- 01
框定合約
先寫下 caller、資料分類、成功條件、timeout、取消與 ownership。適合替 inspection、routine edit、CI 與 trusted maintenance 建立 least-privilege profile。
- 02
建立單一路徑
只實作一條 end-to-end path,保留 request correlation、typed state 與可逆 failure handling。Configuration 選 default、sandbox 強制 filesystem/network limit,而 approval 管理例外 authority。
- 03
證明結果
把驗收寫成可重跑的 fixture、contract test 或 browser test。Policy test 證明 denied path/network 仍被拒絕,且每次 escalation 都有窄且可見的 justification。
03 / BOUND
Production 邊界
寬鬆 prompt 不能取代 sandbox enforcement;寬廣 sandbox 也不代表不需要 approval。
04 / PROVE
驗收證據
Policy test 證明 denied path/network 仍被拒絕,且每次 escalation 都有窄且可見的 justification。
SOURCE / HTTP
可重現來源探針
curl -fsSI 'https://learn.chatgpt.com/docs/agent-approvals-security' | sed -n '1,5p'