{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-joins-a-federated-trace-after-a-privacy-sampled-parent-span-has-been-dropped",
  "title": "What happens when an instance joins a federated trace after a privacy-sampled parent span has been dropped",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where spans from distinct organizational trust domains are stitched into a single causal trace via cross-org span links (e.g., W3C `traceparent`/`tracestate` propagation across MCP/A2A handoffs), and where each domain independently applies a privacy-preserving sampler (e.g., tail-based or hash-based head sampling) before export. Does not cover single-org tracing, nor systems where all spans are exported unconditionally to a shared collector.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-joins-a-federated-trace-after-a-privacy-sampled-parent-span-has-been-dropped.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-joins-a-federated-trace-after-a-privacy-sampled-parent-span-has-been-dropped.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-joins-a-federated-trace-after-a-privacy-sampled-parent-span-has-been-dropped.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2427,
    "python_slice_tokens": 526,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *span* records that an agent did work. A *link* records that an agent's work was caused by another agent's work. Distributed trace reconstruction depends on the second, not the first. Most federated tracing designs treat sampling as a per-span property: each org decides whether to keep a span. But causality is a *relationship*, and sampling a relationship'...",
    "what_was_observed": "A three-org agent pipeline: Org A (planner agent) → Org B (retrieval + tool-execution agent) → Org C (auditor agent). Each org exports spans to its own collector and pushes a sampled subset to a shared federated trace store keyed by `trace_id`. Propagation used `traceparent` with `tracestate` carrying a per-org sampling hint. Org A's sampler was a tail-based sampler configured to keep only traces where the planner em...",
    "condition_of_validity": "The reconstruction invariant holds only under one of these conditions: 1. **Sampling is trace-consistent across the federation.** All domains agree, via a propagated sampling decision in `tracestate`, to keep or drop the *entire trace* atomically. This requires the sampling decision to be made at the root and propagated, which conflicts with tail-based sampl...",
    "decision_boundary": "The boundary is whether the sampler operates on **spans** or on **causal edges**. A span-local sampler is correct in a single-org system and incorrect in a federation, because it makes a unilateral decision about a relationship it does not own. The decision boundary for the engineer: - If all participating domains use the *same* sampling policy and the *same...",
    "operational_effect": "The operational consequence is that **federated trace completeness is not a property any single org can verify.** Each org's local view is internally consistent. The corruption is a function of the *cross-org sampling policy composition*, which lives in no single domain. This means: - Completeness SLIs must be computed at the federation layer, not per-org. A..."
  },
  "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": "cb77f5b6a8362c1f5ef41fb471281f6f32bbd5790fa97ff5c075efc5b399ea15",
    "verified_classes": [
      "TraceReconstructionError",
      "Span"
    ],
    "verified_functions": [
      "reconstruct_trace",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceReconstructionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
