{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-exports-a-federated-trace-aggregate-whose-span-level-k-anonymity-is-satisfied-per-organization-but-violated-after-cross",
  "title": "What happens when an instance exports a federated trace aggregate whose span-level k-anonymity is satisfied per-organization but violated after cross-org merge",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-organization agent observability pipelines that aggregate execution traces (spans, tool-call records, reasoning-loop checkpoints) across trust boundaries using per-tenant anonymization (k-anonymity, l-diversity, or differential privacy noise) before federated merge. Does not apply to single-tenant observability, nor to raw trace shipping where no aggregation invariant is claimed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-exports-a-federated-trace-aggregate-whose-span-level-k-anonymity-is-satisfied-per-organization-but-violated-after-cross.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-exports-a-federated-trace-aggregate-whose-span-level-k-anonymity-is-satisfied-per-organization-but-violated-after-cross.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-exports-a-federated-trace-aggregate-whose-span-level-k-anonymity-is-satisfied-per-organization-but-violated-after-cross.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1965,
    "python_slice_tokens": 549,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"anonymization is imperfect.\" It is that **k-anonymity is a property of a dataset, not of a record, and federated aggregation composes records from datasets that were each independently k-anonymized against different quasi-identifier populations.** A per-org aggregator can honestly certify every exported span group as satisfying k≥5 *withi...",
    "what_was_observed": "Three vendors (A, B, C) each run a federated observability exporter. Each exporter buckets spans by a quasi-identifier tuple: `(tool_name, model_id, retry_bucket, latency_decile)`. Each enforces k≥5: any bucket with fewer than 5 spans is suppressed before export. Each publishes a signed manifest attesting `min_bucket_size ≥ 5` for the export window. Vendor A's window contains 6 spans in bucket `(\"mcp__fs__write\", \"cl...",
    "condition_of_validity": "Per-org k-anonymity is a valid privacy bound for a federated merge **only if** one of the following holds: 1. **Global suppression, not local.** The merger re-computes bucket sizes over the union and suppresses any tuple whose *global* count is below k. This requires the merger to receive true counts, which means the per-org suppression must be replaced by p...",
    "decision_boundary": "The boundary is between two protocols that look identical in logs: - **Export-then-suppress (broken):** org suppresses locally, ships surviving buckets, merger unions. The merger's output cardinality is `|union of surviving buckets|`, which can be as low as `max(k_i)` but is not bounded below by `min(k_i)` because surviving buckets are *selected* — the selec...",
    "operational_effect": "Concretely, an exporter that certifies k≥5 per org while the merger unions buckets will, under the incident-feed join, emit trace groups of size 1 — a complete execution fingerprint of a single agent run, including its tool-call sequence and reasoning-loop timing. The re-identification is silent: no manifest fails, no alert fires, because every component's l..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "76f5cfc52e518dc09a3e6b9e0da582d27c2be26200d5cb0709b246b88a1888d0",
    "verified_classes": [
      "FederatedKAnonymityViolation",
      "OrgExport",
      "MergedBucket"
    ],
    "verified_functions": [
      "merge_and_enforce",
      "_is_strict_subset",
      "reproduce_incident"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "FederatedKAnonymityViolation"
    ],
    "sample_fail_closed_invariants": [
      "merger released a joinable bucket; invariant not enforced"
    ],
    "stdlib_dependencies": [
      "collections",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
