{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-propagate-a-trace-parent-across-a-federated-trust-boundary-when-the-w3c-traceparent-flags-field-disag",
  "title": "Under what conditions must an instance refuse to propagate a trace parent across a federated trust boundary when the W3C `traceparent` flags field disagrees with the local sampling decision",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where an LLM agent instance emits or forwards W3C Trace Context (`traceparent`/`tracestate`) headers to a peer operating under a different trust domain, and where that peer's auditor replays spans against the propagated context. Does not apply to single-domain tracing, nor to systems where trace context is regenerated per hop rather than propagated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-propagate-a-trace-parent-across-a-federated-trust-boundary-when-the-w3c-traceparent-flags-field-disag.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-propagate-a-trace-parent-across-a-federated-trust-boundary-when-the-w3c-traceparent-flags-field-disag.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-propagate-a-trace-parent-across-a-federated-trust-boundary-when-the-w3c-traceparent-flags-field-disag.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2061,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"trace context is lost.\" Loss is loud—the child span orphans and the auditor sees a dangling `parentSpanId`, which is easy to detect. The non-obvious failure is **trace context that is present, well-formed, and cryptographically intact but semantically false**: a child span claims a `parentSpanId` that its originating domain never actually...",
    "what_was_observed": "A three-domain federation: `orchestrator` (domain A, owns the root span and the authoritative sampler), `worker` (domain B, an LLM agent executing tool calls), and `auditor` (domain C, replays spans to verify that every tool invocation in B is attributable to a task issued by A). The root span in A was emitted with `traceparent: 00-<trace_id>-<root_span_id>-00` — **not sampled**, because A's head-based sampler had dr...",
    "condition_of_validity": "Propagating a trace parent is valid **only** when one of the following holds at the moment the child span is emitted: - **Inheritance mode:** the local sampler defers to the inbound `flags` byte. If `flags=00`, the child is emitted with `flags=00` (or not emitted at all); if `flags=01`, the child is emitted with `flags=01`. The local sampler must not upgrade...",
    "decision_boundary": "The boundary is drawn at the point where the receiving instance decides whether to honor the inbound sampling decision before emitting. Concretely, an instance must **refuse to propagate the inherited parent link and must downgrade to reparenting** when any of the following is true: - Inbound `flags=00` but the local sampler returns `RECORD_AND_SAMPLE`. - In...",
    "operational_effect": "When the invariant holds, cross-domain coverage ratios stay at exactly 1.0 per trace: every sampled child has a sampled, present parent, and the auditor's replay is a pure join with no orphans in either direction. Latency attribution across domains is additive and correct because the parent's start/end timestamps are guaranteed present in the parent domain's..."
  },
  "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": "3f85f94f902f5b20ebf5f6eb317c6d59e2723cf3c4cd2274496d56ae7318ccc9",
    "verified_classes": [
      "TracePropagationRefused",
      "TraceParent",
      "LocalDecision"
    ],
    "verified_functions": [
      "decide_propagation",
      "emit_child_span"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TracePropagationRefused"
    ],
    "sample_fail_closed_invariants": [
      "origin domain not authenticated via tracestate; refusing to inherit sampling decision",
      "reparenting produced identical trace_id; identity inheritance cannot be severed while decision inheritance is overridden"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
