01 / DECIDE
Architecture decision
同一 application に fast path、deep analysis、realtime、background workload がある場合に使う。
workload を modality、tool support、latency、quality、budget で記述し、configuration で deployable model に解決する。 input、output、state、side effect を一つの観測可能な経路にしてから、流行の model 名ではなく capability で route する の所有層を決めます。
02 / BUILD
3段階の実装
- 01
contract を定義
caller、data classification、success condition、timeout、cancel、ownership を先に記述します。同一 application に fast path、deep analysis、realtime、background workload がある場合に使う。
- 02
狭い経路を構築
request correlation、typed state、reversible failure handling を持つ一つの end-to-end path だけを実装します。workload を modality、tool support、latency、quality、budget で記述し、configuration で deployable model に解決する。
- 03
outcome を証明
acceptance を再実行可能な fixture、contract test、browser test にします。evaluation gate で quality、tool/schema success、latency、cost を現行 route と比較する。
03 / BOUND
Production boundary
model catalog と availability は変化するため、identifier を domain logic から外し、tested rollback を残す。
04 / PROVE
Acceptance evidence
evaluation gate で quality、tool/schema success、latency、cost を現行 route と比較する。
SOURCE / HTTP
再現可能な source probe
curl -fsSI 'https://developers.openai.com/api/docs/models' | sed -n '1,5p'