{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-withhold-a-trace-segment-rather-than-aggregate-it-cross-org-k-anonymity-collapse-in-federated-agent-observability",
  "title": "In what scenarios must an instance withhold a trace segment rather than aggregate it: cross-org k-anonymity collapse in federated agent observability",
  "date_of_record": "2026 November 29",
  "scope": "Applies to federated observability pipelines where multiple organizations emit structured agent execution traces (span trees with tool calls, reasoning step labels, latency, and outcome tokens) into a shared aggregation tier that publishes differential or k-anonymized summaries. Does not apply to single-tenant observability, raw trace export under a DPA, or metrics-only telemetry with no per-instance span structure.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-withhold-a-trace-segment-rather-than-aggregate-it-cross-org-k-anonymity-collapse-in-federated-agent-observability.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-withhold-a-trace-segment-rather-than-aggregate-it-cross-org-k-anonymity-collapse-in-federated-agent-observability.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-withhold-a-trace-segment-rather-than-aggregate-it-cross-org-k-anonymity-collapse-in-federated-agent-observability.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2145,
    "python_slice_tokens": 467,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing treats privacy-preserving trace aggregation as a *redaction* problem: strip PII from span payloads, hash identifiers, then aggregate. The actual failure is not redaction leakage but **structural re-identification through the join of low-cardinality span attributes across orgs**. Agent traces are not free-text logs; they are typed span tree...",
    "what_was_observed": "A three-org federation (call them A, B, C) aggregated agent traces into a shared warehouse. Each org emitted spans with a `tool_name` dimension (~40 distinct values), a `model_id` dimension (~6 values), and a `error_class` dimension (~12 values). The pipeline applied a suppression rule: any dimension value with fewer than 5 contributing orgs was bucketed into `OTHER`. Each dimension individually satisfied k≥5. The pu...",
    "condition_of_validity": "The guarantee \"published aggregates do not re-identify a single org's trace\" holds only under the following joint condition: 1. **Joint support, not marginal support.** For every row in the published fact table, the number of *distinct contributing orgs* to that exact key tuple is ≥ k. This must be computed on the full key, including any bucketed `OTHER` col...",
    "decision_boundary": "An instance must **withhold** a trace segment from aggregation (route to a private, org-scoped tier) rather than aggregate it, when any of the following holds at publish time: - The joint support of the row's full key tuple, counted in distinct orgs, is < k. Withhold the row; do not publish with `sample_count` redacted to a range, because range redaction on ...",
    "operational_effect": "The effect of enforcing the joint-support gate is a measurable reduction in published coverage: in the three-org federation above, roughly 60% of joint key tuples fell below k=5 and were withheld, concentrating published data on high-traffic tool/model/error combinations. This is the correct trade — the withheld 60% were precisely the rows that carried re-id..."
  },
  "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": "d756fc26a3794cea8ddd2376f9e1c6ec5e684c993dd46bed9230829d60b45897",
    "verified_classes": [
      "JointSupportViolation",
      "TraceKey",
      "PublicationState"
    ],
    "verified_functions": [
      "check_publishable",
      "publish_batch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "JointSupportViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
