POST /decide/stream → SSE events in a locked order, with verdict as the first event after the ACK. Your harness can block the moment verdict lands; findings and the final envelope follow behind it.
When to use it
The stream’sverdict event fires as soon as the EEO decision is made. A sync /decide call also waits for the remaining work — enforcing safety findings are merged before the response is sent. Streaming lets a user-visible interaction react to a block without that wait.
The gain is the gap between the EEO decision and the merged response, not the judge’s own time — both endpoints wait for the same judge call. Use streaming when your harness blocks a user-visible interaction on the verdict and already handles SSE. Skip it when you’re judging in a background queue — the non-streaming evaluate() is simpler there.
SDK
evaluate_stream_to_response(...) drains the stream and returns an aggregated CloudJudgeResponse. In the LangChain middleware, pass stream=True: it reads the stream through to done and dispatches your policy once, on the complete response, not at the verdict event. To block at verdict, consume evaluate_stream yourself as above.
Event order
Events arrive in a locked sequence.verdict is always the first event after request_accepted:
Treat any event type you don’t recognize as opaque and keep reading until
done.
Revised verdicts
The judge’s verdict is final when it reaches the wire —provisional is false today. The verdict event still isn’t the whole story: it carries the EEO decision, and an enforcing safety finding (an exfil or injection guard, say) that is more restrictive can still outrank it. The stream then sends verdict_revised, and done.verdict_final carries the merged result.
provisional: true is reserved — the current judge doesn’t send it on this endpoint. If it appears, TenetJudgeMiddleware waits for the final verdict before dispatching your policy.
Raw SSE
/decide — including surface, chosen per request (a screening ask here, hence resume_triage) — except mode: "guardrails", which returns 400.
evaluate_stream_to_response() returns and what the done.envelope field carries — is byte-equivalent to the sync /decide response body. Per-domain detail is read off done.envelope.findings, not separate stream events. See Multi-verdict responses.