# What structural signals indicate cross-tenant trace aggregation is silently collapsing cardinality in federated agent observability **Date of Record:** 2026 November 25 **Scope:** Applies to federated observability pipelines that aggregate agent execution traces across organizational trust boundaries using privacy-preserving primitives (k-anonymity buckets, differential-privacy histograms, or secure aggregation). Does not apply to single-tenant trace collection where the aggregator sees raw spans. ## Core Distinction The distinction that matters is between **trace loss that is visible** and **trace loss that is indistinguishable from privacy suppression**. In a federated agent observability system, each tenant emits spans (tool calls, reasoning steps, handoff events) tagged with attributes. The aggregator applies privacy transformations—bucketing rare attribute combinations, adding DP noise, or dropping cohorts below a k-threshold—before publishing a merged trace graph. Operators correctly expect that low-cardinality cohorts get suppressed. The failure mode is that *legitimate high-cardinality agent behavior* produces the same structural signature as *privacy suppression*, so genuine systemic failures (e.g., a tool-call error class exploding across one tenant) are absorbed into the "suppressed for privacy" bucket and never surface. The aggregator reports healthy coverage while a real incident is being laundered as k-anonymity. ## What Was Observed Across a three-tenant federation (tenants A, B, C) running MCP-based tool-calling agents, the merged trace graph reported a stable ~94% span-coverage ratio for six weeks. During this window, tenant B experienced a tool-schema negotiation regression: its agents began emitting `tool_call` spans where the `capability_id` attribute resolved to a *new, unique-per-invocation* identifier (a UUID leaked into the attribute by a schema-mismatch fallback). This is a classic agent-protocol failure—the capability negotiation returned a synthetic ID instead of the negotiated capability hash. From the aggregator's perspective, every one of tenant B's failing tool-call spans now had a unique `capability_id`. Under the k-anonymity bucketing rule (`drop cohorts with count < k=25`), each unique-ID cohort had count 1. All of tenant B's failing spans were suppressed. The published coverage ratio stayed flat because the *denominator*—total emitted spans—was computed pre-suppression from tenant-reported counters, while the *numerator*—published spans—silently dropped the suppressed cohort. The ratio should have dropped; it did not, because the numerator and denominator were sourced from different stages of the pipeline. The structural signal was not in the coverage ratio. It was in the **suppression-reason histogram**: the `k_anonymity_suppressed` counter for tenant B climbed from ~2% of spans to ~31% of spans over four days, while tenant A and C stayed at ~2%. That differential is the tell. A second signal: the **distinct-cohort cardinality** for the `capability_id` attribute in tenant B jumped from 40 to over 12,000 in the same window—high cardinality on an attribute that should be low-cardinality is the fingerprint of an ID-leak, not of legitimate behavioral diversity. ## Condition of Validity The invariant "suppression rate is stable across tenants" holds only when the *cardinality distribution of privacy-sensitive attributes is stable*. It is violated whenever an upstream agent bug injects high-entropy values into a bucketed attribute. The guardrail is a **cardinality-drift detector on every bucketed attribute**: track distinct-value count per tenant per attribute per window; if distinct-count grows by more than a factor of N (empirically ~10x) while total span count is flat, flag the attribute as *cardinality-unstable* and route its spans to a quarantine lane rather than the suppression bucket. Quarantined spans are counted as "unaggregatable" in the coverage denominator, which restores the visibility of the loss. The condition of validity for trusting any federated coverage metric is that its numerator and denominator are drawn from the same pipeline stage *and* that suppression is broken out by reason and by tenant. ## Decision Boundary The decision boundary is between **treating suppression as a privacy success** and **treating it as a potential observability failure**. The rule: a suppression-rate increase in a single tenant, co-occurring with a cardinality-drift flag on the same attribute, must be classified as observability loss, not privacy protection, until proven otherwise. The inverse—uniform suppression-rate increase across all tenants—is consistent with a legitimate privacy-policy tightening and can be accepted. Single-tenant differential suppression is the boundary condition that must escalate. ## Operational Effect Without the cardinality-drift detector, the federation reported 94% coverage during an active incident and would have reported 94% coverage during a total tenant-B outage that manifested as ID-leak spans. With the detector, tenant B's spans were quarantined on day two, coverage for tenant B correctly dropped to 61%, and the on-call rotation was paged. The structural signal that mattered was never the headline coverage number—it was the *per-tenant suppression-reason differential paired with attribute cardinality drift*. Federated observability must publish those two signals as first-class metrics, because they are the only place where privacy suppression and agent-protocol failure become distinguishable. ```python class CardinalityDriftError(RuntimeError): """Raised when a bucketed attribute's cardinality drifts beyond the tenant baseline, indicating a probable ID-leak or schema-negotiation regression masquerading as privacy suppression.""" pass CARDINALITY_DRIFT_FACTOR = 10.0 SUPPRESSION_DIFFERENTIAL_THRESHOLD = 5.0 # percentage points vs. federation median def classify_tenant_suppression( tenant: str, baseline_distinct: int, window_distinct: int, tenant_suppression_pct: float, federation_median_suppression_pct: float, ) -> str: """ Decide whether a tenant's suppression increase is privacy success or observability loss. Returns 'privacy_ok', 'quarantine', or escalates. """ if baseline_distinct <= 0: raise CardinalityDriftError( f"tenant={tenant} has non-positive baseline cardinality; " f"cannot compute drift ratio" ) drift_ratio = window_distinct / baseline_distinct suppression_delta = tenant_suppression_pct - federation_median_suppression_pct cardinality_unstable = drift_ratio >= CARDINALITY_DRIFT_FACTOR suppression_anomalous = suppression_delta >= SUPPRESSION_DIFFERENTIAL_THRESHOLD if cardinality_unstable and suppression_anomalous: # Both signals fire: this is observability loss, not privacy. raise CardinalityDriftError( f"tenant={tenant} suspected observability loss: " f"cardinality_drift={drift_ratio:.1f}x " f"suppression_delta={suppression_delta:.1f}pp — " f"quarantine attribute and page on-call" ) if cardinality_unstable: return "quarantine" if suppression_anomalous: return "escalate_review" return "privacy_ok" ```