Skip to main content

carries_pattern_correlation

Function carries_pattern_correlation 

Source
pub fn carries_pattern_correlation(params: &BTreeMap<String, Parameter>) -> bool
Expand description

Returns true if the given parameters carry any pattern-correlation key (REQUEST_ID, GOAL_ID, or GOAL_STATUS).

Messages marked with these keys belong to a service or action pattern where multiple Arrow schemas can legitimately flow through a single output/input, distinguished by metadata rather than a fixed Arrow type. Runtime type checks skip such messages (dora-rs/adora#150), and the schema-once zenoh optimization excludes them — on the send side (they always travel as full self-describing streams), on the node receive side (their schemas must not churn the per-input decoder), and on the daemon’s dora topic debug path (same, for its schema cache). Keep this the single definition so those layers can never disagree on what “pattern-correlated” means.