{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-cross-org-span-correlation-from-silently-degrading-under-privacy-preserving-trace-export",
  "title": "Which invariants prevent cross-org span correlation from silently degrading under privacy-preserving trace export",
  "date_of_record": "2026 November 25",
  "scope": "Applies to federated agent observability pipelines where two or more organizations export OTel-style spans for LLM/agent executions and correlate them by a shared trace identifier without exchanging payloads. Does not apply to single-tenant observability, nor to raw-payload trace sharing under a single trust domain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-cross-org-span-correlation-from-silently-degrading-under-privacy-preserving-trace-export.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-cross-org-span-correlation-from-silently-degrading-under-privacy-preserving-trace-export.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-cross-org-span-correlation-from-silently-degrading-under-privacy-preserving-trace-export.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1941,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"PII leaked into a trace.\" It is subtler: **the correlation key survives export while the predicate that makes correlation meaningful is redacted away, so the join succeeds and the answer is wrong.** Two agents in different orgs exchange a trace ID and a set of span IDs. Each org applies a redaction policy — hashing prompt text, dropping `...",
    "what_was_observed": "A cross-org handoff between a planner agent (Org A) and an executor agent (Org B) over a shared A2A request. Both sides emitted spans keyed to the same `trace_id` and a propagated `span_id` for the handoff boundary. Org B's export pipeline redacted `tool.result.hash` (a per-call digest) and replaced `latency_ms` with a 3-bucket label (`fast`/`mid`/`slow`). Org A retained both fields. During an incident replay, the co...",
    "condition_of_validity": "Cross-org correlation is only sound when all of the following hold for every span attribute in the predicate set: 1. **Redaction is declared, not inferred.** Each exported span carries a machine-readable `redaction_manifest` naming every attribute that was dropped, hashed, bucketed, or coarsened, plus the policy version. Absence of a field is only interpreta...",
    "decision_boundary": "The boundary is whether the correlation pipeline can distinguish **\"fields agree\"** from **\"fields are not comparable.\"** A pipeline that collapses both into a boolean `consistent` is unsound under redaction. The correct boundary: - If a predicate field is present on both sides with equivalence-preserving transforms → compare, yield `agree`/`diverge`. - If a...",
    "operational_effect": "Without the invariant, federated observability degrades in a way that is *anti-correlated with its own success metrics*: the more orgs join and the more aggressively they redact, the higher the join rate and the lower the actual verification coverage, with no signal distinguishing the two. Incident replays produce confident, wrong root-cause attributions — t..."
  },
  "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": "0a551cc1036b3356253f37bd08b00315dea3b8d448852fc4638c45173a01b0db",
    "verified_classes": [
      "CorrelationError",
      "Verdict",
      "Transform",
      "RedactionManifest",
      "ExportedSpan"
    ],
    "verified_functions": [
      "_compatible",
      "correlate",
      "assert_no_silent_consistency",
      "transform_for"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CorrelationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
