Template Struct FanOutResult

Struct Documentation

template<class T>
struct FanOutResult

Typed fan-out result for collection endpoints. Mirrors merge_peer_items but returns parsed T items (via dto::JsonReader<T>) plus typed observability records for items that failed validation, instead of mutating raw JSON in place.

Public Members

std::vector<T> items

Typed peer items that successfully parsed as T.

bool partial = {false}

True if at least one targeted peer failed.

std::vector<std::string> failed_peers

Names of peers that failed (matches AggregationManager::FanOutResult.failed_peers).

std::vector<dto::DroppedItem> dropped_items

Per-item drop records for peer items that failed JsonReader<T> validation. Surfaces “invisible drift” - malformed peer items used to disappear silently; now callers can fold these into x-medkit.peer_dropped_items for observability.