01 / DECIDE
架構決策
適合 short creative clip 與 controlled editing,且 latency 不需 interactive。
以 durable job metadata 建立 queued、generating、moderated、uploaded、accepted、failed、expired 與 cancelled state。 先把 input、output、state、tool 與 side effect 畫成一條可觀察路徑,再決定 把 video generation 當成 async media job 的 owner。
02 / OPERATE
三步野戰程序
- 01
鎖定合約
寫下 caller、資料分類、成功條件、timeout、取消與 ownership。適合 short creative clip 與 controlled editing,且 latency 不需 interactive。
- 02
執行有界路徑
只建立一條 end-to-end path,保留 correlation、typed state 與 reversible failure。以 durable job metadata 建立 queued、generating、moderated、uploaded、accepted、failed、expired 與 cancelled state。
- 03
驗證訊號
把驗收變成可重跑的 fixture、contract test 或 browser test。Job test 涵蓋 expiry、retry、cancellation、moderation rejection、corrupt media 與 upload failure。
03 / BOUND
Operation 邊界
保護 source media/output URL、尊重 rights/consent,並揭露 synthetic content。
04 / PROVE
驗收證據
Job test 涵蓋 expiry、retry、cancellation、moderation rejection、corrupt media 與 upload failure。
SOURCE / HTTP
可重現來源探針
curl -fsSI 'https://docs.x.ai/developers/model-capabilities/video/generation' | sed -n '1,5p'