01 / DECISION
何時值得加入這個 primitive
當 durable actor 必須保留 scoped state、跨時間溝通並呼叫 bounded tools 時使用 Agent。
02 / ARCHITECTURE
建立最小且站得住腳的路徑
把 identity 綁定 authenticated principal、最小化 durable state、為每個 tool 定義 schema、重大 action 要求 approval,並讓 runs 可恢復。
- 01先命名 contract
當 durable actor 必須保留 scoped state、跨時間溝通並呼叫 bounded tools 時使用 Agent。
- 02只加入一個 primitive
把 identity 綁定 authenticated principal、最小化 durable state、為每個 tool 定義 schema、重大 action 要求 approval,並讓 runs 可恢復。
- 03保留 failure evidence
重播 run、撤銷 tool、拒絕 malformed arguments、中斷後恢復 execution,並檢查 redacted action trace。
03 / REPRODUCE
有證據,再有信心
重播 run、撤銷 tool、拒絕 malformed arguments、中斷後恢復 execution,並檢查 redacted action trace。
npm create cloudflare@latest -- --framework=agents 04 / BOUNDARY
Production boundary
Agent 不得繼承 ambient authority;model intent 不是 authorization,memory 也不是 trusted source of truth。
05 / FIRST-PARTY SOURCES
讓第一方來源保持權威
產品行為、限制、價格與供應狀態會改變;採取行動前請重新核對這些來源。