_stream_server_call drops validation_summaries; server-path outcomes are hand-copied field-by-field
Found while analyzing #1448.
Guard._single_server_call (guardrails/guard.py:943) and Guard._stream_server_call (guardrails/guard.py:981) both construct ValidationOutcome field-by-field from the wire object rather than deserializing it.
_single_server_call carries validation_summaries over (and back-fills from history if absent). _stream_server_call does not — it only copies call_id, rawLlmOutput, validatedOutput, validationPassed.
Effect: streaming through the server loses the per-validator failure detail that local streaming provides. Same guard, same validators, different observability depending on whether _use_server is set.
Fix: stop hand-copying. Re-hydrate the outcome via model_validate (or a single shared adapter) so the remote path can't silently drop fields. This also removes a recurring maintenance trap — any field added to ValidationOutcome currently has to be added in four places or it vanishes over the server path.
Relevant to the redesign discussed in #1448: whatever new fields land, the server path needs to carry them by construction, not by hand.
Source: guardrails-ai/guardrails