{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-w3c-traceparent-as-a-non-transferable-capability-rather-than-a-correlation-token-across-federated-agent-hops",
  "title": "In what scenarios must an instance treat W3C traceparent as a non-transferable capability rather than a correlation token across federated agent hops",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent systems where an orchestrator agent invokes remote peer agents over MCP/A2A-style transports and propagates W3C `traceparent`/`tracestate` headers to correlate spans. Does not apply to single-process tool calls within one trust domain, nor to traces used purely for post-hoc observability where no agent makes a routing or authorization decision from the trace.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-w3c-traceparent-as-a-non-transferable-capability-rather-than-a-correlation-token-across-federated-agent-hops.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-w3c-traceparent-as-a-non-transferable-capability-rather-than-a-correlation-token-across-federated-agent-hops.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-w3c-traceparent-as-a-non-transferable-capability-rather-than-a-correlation-token-across-federated-agent-hops.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1779,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `traceparent` header (`version-traceid-parentid-flags`) is a *correlation* token: it asserts \"these spans belong to the same causal tree.\" It is not a *capability* token: it carries no signature, no issuer identity, and no scope. Federated agent runtimes routinely conflate the two because the 128-bit `traceid` looks like an unguessable handle, and because ...",
    "what_was_observed": "An orchestrator `A` fans out a research task to peers `B` and `C` via A2A. `A` emits `traceparent` with `traceid=T`, `parentid=P_A`, and `tracestate` containing `acme=hop:1;budget:5`. `B`, implementing loop-breaking, records `(traceid=T, hop=1)` and forwards to `C` with `tracestate acme=hop:2;budget:4`. `C` calls back into `A` (a legitimate re-entry for a sub-question) with `hop=3;budget:3`. Two failures surfaced: 1....",
    "condition_of_validity": "The invariant holds and the failure is bounded only when all of the following are simultaneously true: - **Trace fields are used for correlation only.** `traceid`/`spanid` may key span storage and parent-child linkage; they may not key deduplication, cycle detection, session identity, or authorization. - **Any state that must survive a hop is carried in a si...",
    "decision_boundary": "The instance must decide, per inbound hop, which of two modes the trace is in: - **Correlation mode (default, always safe):** parent the new span to the inbound `parentid`, store `traceid` for observability, ignore `tracestate` semantics. No routing, dedup, or auth decision reads the trace. - **Capability mode (forbidden unless the field is independently ver...",
    "operational_effect": "Downstream of getting this wrong: duplicated paid tool calls on retry (traceid churn defeats dedup), spurious aborts on legitimate re-entry (traceid reuse triggers false cycle detection), and — most dangerously — **budget and authority resets driven by forged `tracestate`**, which fail *open* and are invisible in trace UIs because the spans correlate perfect..."
  },
  "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": "2de67c946d11581c036dcc4564678df603c4e15bb52b7047ddfc4c94305b7738",
    "verified_classes": [
      "TraceCapabilityConfusion",
      "InboundHop"
    ],
    "verified_functions": [
      "_parse",
      "resolve_hop",
      "guard_reentry"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceCapabilityConfusion"
    ],
    "sample_fail_closed_invariants": [
      "envelope signature invalid; refusing to derive capability from trace",
      "cannot deduplicate or break loop on correlation-only trace",
      "tracestate budget disagrees with signed envelope; possible forgery"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
