01 / DECIDE
架構決策
適合無 write collision 的平行 research、test analysis、review 與 independent component。
Subagent 需要獨立 ownership 與 result contract;headless CI 需要固定 permission、machine-readable output 與隔離 credential。 先把 input、output、state 與 side effect 畫成一條可觀察路徑,再決定 平行化 evidence,不平行化衝突寫入 要放在哪一層。
02 / BUILD
三步實作
- 01
框定合約
先寫下 caller、資料分類、成功條件、timeout、取消與 ownership。適合無 write collision 的平行 research、test analysis、review 與 independent component。
- 02
建立單一路徑
只實作一條 end-to-end path,保留 request correlation、typed state 與可逆 failure handling。Subagent 需要獨立 ownership 與 result contract;headless CI 需要固定 permission、machine-readable output 與隔離 credential。
- 03
證明結果
把驗收寫成可重跑的 fixture、contract test 或 browser test。CI artifact 顯示 task ownership、structured outcome、test、diff,以及每個 worker 都在邊界內。
03 / BOUND
Production 邊界
不可讓 untrusted pull request 取得 privileged secret,也不可讓多個 worker 無協調修改相同檔案。
04 / PROVE
驗收證據
CI artifact 顯示 task ownership、structured outcome、test、diff,以及每個 worker 都在邊界內。
SOURCE / HTTP
可重現來源探針
curl -fsSI 'https://learn.chatgpt.com/docs/agent-configuration/subagents' | sed -n '1,5p'