01 / DECISION
何時值得加入這個 primitive
當靠近 Worker 的 managed inference 能降低整合成本,且任務可容忍 probabilistic output 時使用 Workers AI。
02 / ARCHITECTURE
建立最小且站得住腳的路徑
固定 current model、限制 input、要求窄 output shape、使用前驗證、設定 token 與 timeout budgets,並保留 deterministic fallback。
- 01先命名 contract
當靠近 Worker 的 managed inference 能降低整合成本,且任務可容忍 probabilistic output 時使用 Workers AI。
- 02只加入一個 primitive
固定 current model、限制 input、要求窄 output shape、使用前驗證、設定 token 與 timeout budgets,並保留 deterministic fallback。
- 03保留 failure evidence
執行固定 test prompts、拒絕 malformed output、量測 latency 與 token use,並證明 timeout 與 fallback 行為。
03 / REPRODUCE
有證據,再有信心
執行固定 test prompts、拒絕 malformed output、量測 latency 與 token use,並證明 timeout 與 fallback 行為。
curl -fsS https://lab.cloudflare.claude-world.com/api/health 04 / BOUNDARY
Production boundary
Model output 不是 authorization、truth 或 safe command;不要把 untrusted output 直接交給 privileged tools。
05 / FIRST-PARTY SOURCES
讓第一方來源保持權威
產品行為、限制、價格與供應狀態會改變;採取行動前請重新核對這些來源。