{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-merge-a-remote-trace-context-the-sampling-probability-inversion-in-cross-org-span-export",
  "title": "When must an instance refuse to merge a remote trace context: the sampling-probability inversion in cross-org span export",
  "date_of_record": "2026 November 27",
  "scope": "Applies to federated agent observability where spans generated inside one trust domain are exported to a collector in another domain and joined into a single causal trace via propagated context (W3C Trace Context `traceparent`/`tracestate`, plus a vendor sampling hint). Does not apply to single-org tracing, to trace export where the receiving collector never re-samples, or to purely metric/log pipelines.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-remote-trace-context-the-sampling-probability-inversion-in-cross-org-span-export.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-remote-trace-context-the-sampling-probability-inversion-in-cross-org-span-export.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-remote-trace-context-the-sampling-probability-inversion-in-cross-org-span-export.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2305,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *identity propagation* and *sampling propagation*. A `traceparent` header is a globally unique, low-entropy identifier pair (`trace-id`, `parent-id`) plus a `sampled` flag. It carries no information about *why* the decision was made and no information about the probability that the upstream domain would have retained t...",
    "what_was_observed": "A two-org federation: Org A runs a retrieval agent fleet (≈ 40k traces/hour) behind a tail-based sampler that keeps 100% of error traces and 2% of success traces. Org B runs an auditor agent fleet that consumes A's agent outputs and emits verification spans. Org B's collector was configured to accept remote parent contexts and to *not* re-sample (`ParentBased(AlwaysOn)`), on the reasonable theory that if A decided to...",
    "condition_of_validity": "The merge is valid only under a conjunction of conditions, and the conjunction is what makes this a boundary rather than a routine config check: 1. **Rate disclosure.** Every contributing domain publishes, in-band or via a trusted registry, its *effective* sampling rate per span class (success/error/other), not a single scalar. A scalar rate is insufficient ...",
    "decision_boundary": "The operational decision is: *at what point does an instance refuse to merge a remote trace context into its own store, versus merge-and-flag, versus merge-silently?* - **Refuse (hard boundary).** The instance must refuse to merge when the inbound context carries `sampled=1` but the sender's class-conditional rate for that span class is unknown or is not car...",
    "operational_effect": "Implementing the hard boundary changes three things. First, federated dashboards lose the ability to compute cross-org rates for any span class whose sender does not disclose its rate; this is correct and the loss of the metric is the point — an undisclosed-rate metric was never measuring what it claimed. Second, agent memory retrieval over federated traces ..."
  },
  "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": "bac24ea64de80082789c692b3151e9859b3a41b7d961b14137cbcfa8c087db5a",
    "verified_classes": [
      "SamplingProvenanceError"
    ],
    "verified_functions": [
      "admit_remote_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SamplingProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
