# Where must an instance bound its local DP budget before cross-org telemetry aggregation, or the federated observability layer silently corrupts the global noise calibration **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent-observability pipelines where per-instance telemetry (tool-call traces, divergence counters, loop-abort reasons) is differentially-privatized locally before being summed or averaged across organizational boundaries. Does not apply to centralized observability where a single trusted curator holds raw traces, nor to cases where DP noise is added once at the aggregator over already-aggregated values. ## Core Distinction The failure is not "DP noise is too small" or "the privacy budget leaks." It is a **calibration mismatch between the per-instance clipping bound and the cross-org aggregation schema**. Each agent instance locally clips its telemetry vector to an L2 norm of `C_i` and adds Gaussian noise `N(0, σ_i²)` calibrated to its own `(ε_i, δ_i)` before emitting to the federated aggregator. The aggregator, however, computes the global sensitivity of the *summed* vector as `Σ C_i` and derives a single global noise scale `σ_global` from a target `ε_global`. When instances independently choose heterogeneous `C_i` (because their local telemetry distributions differ — a code-execution agent's token-burn counter has a wildly different range than a retrieval agent's), the aggregator's assumed sensitivity is wrong in a way that is **not detectable from the aggregated output alone**. The result is a silently under-noised global aggregate that passes every syntactic schema check while violating the intended `ε_global` guarantee. ## What Was Observed A three-org federated deployment: Org A runs 40 code-execution agents (telemetry dims: tool-call count, retry count, token burn, sandbox-escape attempts), Org B runs 120 retrieval agents, Org C runs 15 long-horizon planner agents. Each instance emits a clipped-and-noised 4-vector per 5-minute window. Observed trace: 1. Org A instances set `C_i = 50` (token burn dominates; they need the range). Org B sets `C_i = 8`. Org C sets `C_i = 500` (planner token burn is enormous). 2. Each emits `v_i = clip(x_i, C_i) + N(0, σ_i²)` with `σ_i = C_i · sqrt(2 ln(1.25/δ_i)) / ε_i`, `ε_i = 0.5`, `δ_i = 1e-6`. 3. The aggregator receives 175 vectors, sums them, and reports `Σ v_i` as the federated mean numerator. It *also* recomputes a global noise estimate by assuming every contributor used `C = 50` (the schema default) and `ε = 0.5`, yielding `σ_global_assumed = 50 · sqrt(2 ln(1.25/1e-6)) / 0.5 ≈ 50 · 5.31 / 0.5 ≈ 531`. 4. Actual per-instance noise variance summed: `Σ σ_i²`. With 40 instances at `σ ≈ 531`, 120 at `σ ≈ 85`, 15 at `σ ≈ 5310`, the true summed variance is `40·282k + 120·7.2k + 15·28.2M ≈ 11.3M + 0.86M + 423M ≈ 435M`, i.e. `σ_true ≈ 20,860`. 5. The aggregator's reported confidence interval used `σ_global_assumed = 531`, understating the true dispersion by **~39×**. Downstream anomaly detectors on the federated mean flagged a "significant drop in retry rate across all orgs" that was pure noise structure — the planner agents' huge `C_i` dominated the sum's variance, and the aggregator had no visibility into that. The failure was invisible because every message validated against the schema (`dim=4`, `float64`, `C_i` present but not consumed by the aggregator). The aggregator treated `C_i` as metadata, not as a sensitivity input. ## Condition of Validity This boundary failure manifests only when **all** of the following hold: - Instances choose `C_i` independently (no aggregator-imposed clipping bound), which is the natural design when telemetry ranges are heterogeneous across agent roles. - The aggregator derives global noise from a *nominal* sensitivity rather than from the received per-instance `C_i` values. - The number of high-`C_i` contributors is small but their magnitude is large enough that `Σ C_i²` is dominated by a minority (here, 15 of 175 instances contributed 97% of the summed variance). - The downstream consumer treats the reported aggregate as if its noise scale were the aggregator's advertised `σ_global`. It does **not** manifest when the aggregator computes `Σ C_i` from received metadata (correct sensitivity), or when a single global `C` is mandated by protocol, or when `max_i C_i / min_i C_i < ~3` so heterogeneity is negligible. ## Decision Boundary The invariant an instance must enforce before emitting: **it may not choose `C_i` unilaterally if the aggregator's noise calibration depends on a shared bound.** The correct protocol is one of two: 1. **Aggregator-authoritative clip:** The aggregator publishes `C_global` per telemetry dimension in the federation manifest; every instance clips to `C_global` (even if wasteful for narrow-range agents) and calibrates `σ_i` to `C_global`. The aggregator's `Σ C_global` sensitivity is then correct by construction. 2. **Metadata-consumed sensitivity:** Instances may choose `C_i` freely, but the aggregator *must* recompute `σ_global = sqrt(Σ σ_i²)` from received `(C_i, ε_i, δ_i)` triples and reject any emission missing them. The reported aggregate must carry the recomputed `σ_global`, never a nominal one. The decision boundary for an instance is: if the manifest does not specify which regime is in force, **refuse to emit** rather than guess. A guessed `C_i` under regime (1) is a privacy violation; under regime (2) it is fine. The instance cannot distinguish the regimes from the schema alone, so the manifest must carry an explicit `clip_regime: "global" | "local"` field. ## Operational Effect With the invariant enforced (regime 2, aggregator recomputes from metadata), the planner agents' `C_i = 500` correctly inflates `σ_global` to ~20,860, and the downstream anomaly detector's threshold widens accordingly — the spurious "retry drop" disappears. The cost is a 39× wider confidence interval on the federated mean, which is the *honest* cost of letting heterogeneous agents contribute at their native ranges. With regime 1 enforced, the interval narrows but narrow-range agents (Org B) pay a utility tax: their clipped values are crushed to `C_global = 500`, destroying resolution on retry counts that range 0–8. The operational lesson: **federated DP observability has no free choice of clipping bound at the instance layer.** Either the aggregator owns the bound and the instance obeys, or the instance owns the bound and the aggregator must consume it as a first-class sensitivity input. A schema that carries `C_i` but does not act on it is the failure surface — it looks like metadata and behaves like a silent sensitivity corruption. ```python import math from dataclasses import dataclass class FederatedDPCalibrationError(RuntimeError): """Raised when an instance emits telemetry under an ambiguous clipping regime, or when the aggregator's nominal sensitivity diverges from the sensitivity implied by received per-instance metadata.""" pass @dataclass(frozen=True) class Emission: instance_id: str clipped_vector: tuple clip_bound: float # C_i epsilon: float delta: float def local_sigma(self) -> float: # Gaussian mechanism, classic calibration return self.clip_bound * math.sqrt(2.0 * math.log(1.25 / self.delta)) / self.epsilon def emit_telemetry(instance_id: str, raw_vector: tuple, manifest: dict, local_clip: float, epsilon: float, delta: float) -> Emission: regime = manifest.get("clip_regime") if regime not in ("global", "local"): # Ambiguous regime: instance cannot know whether its C_i will be honored. raise FederatedDPCalibrationError( f"manifest for federation {manifest.get('federation_id')!r} has no " f"explicit clip_regime; refusing to emit under ambiguous sensitivity contract" ) if regime == "global": mandated = manifest["global_clip_bound"] if abs(local_clip - mandated) > 1e-9: raise FederatedDPCalibrationError( f"instance {instance_id} attempted local_clip={local_clip} under " f"global regime requiring {mandated}; this would understate global sensitivity" ) clip = mandated else: clip = local_clip norm = math.sqrt(sum(v * v for v in raw_vector)) scale = min(1.0, clip / norm) if norm > 0 else 1.0 clipped = tuple(v * scale for v in raw_vector) return Emission(instance_id, clipped, clip, epsilon, delta) def aggregate(emissions: list, manifest: dict) -> dict: regime = manifest.get("clip_regime") if regime == "global": nominal = manifest["global_clip_bound"] sigma_global = nominal * math.sqrt(2.0 * math.log(1.25 / 1e-6)) / 0.5 elif regime == "local": # Must recompute from received metadata; never trust a nominal default. if not emissions: raise FederatedDPCalibrationError("empty emission set under local regime") sigma_global = math.sqrt(sum(e.local_sigma() ** 2 for e in emissions)) # Guard: if any emitter omitted metadata, local_sigma would be garbage. for e in emissions: if e.clip_bound <= 0 or e.epsilon <= 0 or e.delta <= 0: raise FederatedDPCalibrationError( f"emission from {e.instance_id} has invalid DP metadata; " f"cannot recompute global sensitivity" ) else: raise FederatedDPCalibrationError(f"unknown clip_regime {regime!r}") dim = len(emissions[0].clipped_vector) summed = tuple(sum(e.clipped_vector[d] for e in emissions) for d in range(dim)) return {"sum": summed, "sigma_global": sigma_global, "n": len(emissions)} # Demonstration of the failure trace from the record: manifest_local = {"federation_id": "fed-3org", "clip_regime": "local"} emissions = [] for i in range(40): emissions.append(emit_telemetry(f"A-{i}", (3.0, 2.0, 45.0, 0.0), manifest_local, 50.0, 0.5, 1e-6)) for i in range(120): emissions.append(emit_telemetry(f"B-{i}", (2.0, 1.0, 6.0, 0.0), manifest_local, 8.0, 0.5, 1e-6)) for i in range(15): emissions.append(emit_telemetry(f"C-{i}", (4.0, 3.0, 480.0, 0.0), manifest_local, 500.0, 0.5, 1e-6)) result = aggregate(emissions, manifest_local) print("sigma_global (recomputed):", round(result["sigma_global"], 1)) print("sigma_global (nominal C=50 would be):", round(50 * math.sqrt(2 * math.log(1.25 / 1e-6)) / 0.5, 1)) ```