01 / DECIDE
Architecture decision
request-response audio では不連続になる low-latency speech や multimodal interaction に使う。
transport、session configuration、turn detection、interruption、tool、reconnect、terminal state が体験を共同で定義する。 input、output、state、side effect を一つの観測可能な経路にしてから、Realtime を live distributed system として設計する の所有層を決めます。
02 / BUILD
3段階の実装
- 01
contract を定義
caller、data classification、success condition、timeout、cancel、ownership を先に記述します。request-response audio では不連続になる low-latency speech や multimodal interaction に使う。
- 02
狭い経路を構築
request correlation、typed state、reversible failure handling を持つ一つの end-to-end path だけを実装します。transport、session configuration、turn detection、interruption、tool、reconnect、terminal state が体験を共同で定義する。
- 03
outcome を証明
acceptance を再実行可能な fixture、contract test、browser test にします。network test で jitter、reconnect、double-talk、device change、long session、late tool、clean shutdown を確認する。
03 / BOUND
Production boundary
client credential は short-lived、interruption で stale work を cancel、tool result に turn ownership を持たせる。
04 / PROVE
Acceptance evidence
network test で jitter、reconnect、double-talk、device change、long session、late tool、clean shutdown を確認する。
SOURCE / HTTP
再現可能な source probe
curl -fsSI 'https://developers.openai.com/api/docs/guides/realtime' | sed -n '1,5p'