01 / DECIDE
Architecture decision
Use it when first-token feedback matters and the interface must remain responsive during longer reasoning.
Model start, typed deltas, tool activity, completion, cancellation, and failure as separate states instead of appending arbitrary text. Map input, output, state, tools, and side effects as one observable path, then name the owner of render streaming through a state machine.
02 / OPERATE
Three-step field procedure
- 01
Lock the contract
Write down the caller, data classification, success condition, timeout, cancellation, and ownership. Use it when first-token feedback matters and the interface must remain responsive during longer reasoning.
- 02
Run one bounded path
Build one end-to-end path with correlation, typed state, and reversible failure handling. Model start, typed deltas, tool activity, completion, cancellation, and failure as separate states instead of appending arbitrary text.
- 03
Verify the signal
Turn acceptance into a repeatable fixture, contract test, or browser test. Browser tests cover abort, reconnect, malformed events, slow consumers, and terminal cleanup.
03 / BOUND
Operational boundary
Partial output is not final evidence and must not trigger irreversible actions.
04 / PROVE
Acceptance evidence
Browser tests cover abort, reconnect, malformed events, slow consumers, and terminal cleanup.
SOURCE / HTTP
Reproducible source probe
curl -fsSI 'https://docs.x.ai/developers/model-capabilities/text/streaming' | sed -n '1,5p'